[03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:38]recv_with_timeout no data received [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:54]recv_with_timeout no data received [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:13]recv_with_timeout no data received [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:30]recv_with_timeout no data received [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:50]recv_with_timeout no data received [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:21]recv_with_timeout no data received [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:11]accept exits with 5 [03:54:11]New connection [03:54:11]New thread 3066920292 created [03:54:11]Thread 3066776932 joined [03:54:11]Waiting for new connection... [03:54:11] Sock 5.Parse request [03:54:11]Sock 5.Check first char [03:54:11]Sock 5.First char is OK [03:54:11]request: POST /json_proto HTTP/1.0 [03:54:11]Method: POST [03:54:11]URL: /json_proto [03:54:11]Method is POST - this is cgi request [03:54:11]url: /json_proto [03:54:11]query_string will be loaded in cgi processing [03:54:11]execute_cgi json_proto POST (null) [03:54:11]execute_cgi path=json_proto method=POST [03:54:11]POST find Content-Length [03:54:11]Host: 172.17.53.195:8080 [03:54:11]Content-Length: 679 [03:54:11]Content-Type: application/json [03:54:11] [03:54:11]POST finish read [03:54:11]Found Content-Length = 679 [03:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:11]execute_script... [03:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:11]POST & json_proto [03:54:11]process_json_proto [03:54:11]json parsed OK: [03:54:11]protocol is kg_v1.0 [03:54:11]action value=close_receipt [03:54:11]process_action close_receipt [03:54:11]cmd_close_receipt [03:54:11]MH_GetDate [03:54:11]Write to MH i2c: F0 00 00 BB 95 3F [03:54:11]Write i2c OK [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: F0 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: F0 09 00 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: F0 09 00 BB 95 00 F9 21 17 67 21 48 4A 65 F8 [03:54:11]GetLastDocTimeStamp 1729565554 [03:54:11]current date 1729569273 [03:54:11]FM_GetShiftState [03:54:11]SAM_PROTO_GetShiftState [03:54:11]wFMCommunicate request_size=4 [03:54:11]MH_SAM_APDU [03:54:11]CAPDU: 80 13 01 00 [03:54:11]Write to MH i2c: E2 08 00 BC 95 80 13 01 00 00 00 00 00 CE [03:54:11]Write i2c OK [03:54:11]MH_I2C_Read... [03:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:11]Read from MH i2c: E2 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 0E 00 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 0E 00 BC 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 21 [03:54:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [03:54:11]wFMCommunicate OK [03:54:11]SAM_PROTO_GetShiftState done [03:54:11]FM_GetShiftState done [03:54:11]opened in 1729557463 [03:54:11]opened+sec_in_day 1729643863 [03:54:11]quantity*price = 300075 [03:54:11]sum+1 = 300077 [03:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 13 22.10.2024 03:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166258 ФПД: 13590715200992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T035433&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166258&fm=13590715200992&tin=02508201610067®Number=0000000000091764&sum=300000 [03:54:12]StoreToDocumentArchive [03:54:12]shift 536 fd 166258 [03:54:12]save to /storage/0536/doc_00166258 [03:54:12]save last doc name /storage/0536/doc_00166258 to /storage/kkm_last_doc_name [03:54:12]save OK [03:54:12]Clear old archive folders... [03:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:54:12]tlvbuf is 01522C20 [03:54:12]SAM_PROTO_ClearQueue [03:54:12]wFMCommunicate request_size=4 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 09 00 00 [03:54:12]Write to MH i2c: E2 08 00 C9 95 80 09 00 00 00 00 00 00 D0 [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:54:12]Read from MH i2c: E2 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 C9 95 00 90 00 D2 [03:54:12]RAPDU: 90 00 [03:54:12]wFMCommunicate OK [03:54:12]SAM_PROTO_ClearQueue done [03:54:12]KKMCreateOFDPacket [03:54:12]OFDProtocolAddRootSTLVToBuf [03:54:12]FM_MakeSignedData [03:54:12]FM_MakeSignedData [03:54:12]SAM_PROTO_SignData [03:54:12]wFMCommunicate request_size=4 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 0D 01 02 [03:54:12]Write to MH i2c: E2 08 00 CA 95 80 0D 01 02 00 00 00 00 D8 [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:54:12]Read from MH i2c: E2 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 CA 95 00 90 00 D3 [03:54:12]RAPDU: 90 00 [03:54:12]wFMCommunicate OK [03:54:12]wFMCommunicate request_size=255 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F9 21 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 89 02 00 35 04 06 00 0C 5C 55 C0 [03:54:12]Write to MH i2c: E2 02 01 CB 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F9 21 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 89 02 00 35 04 06 00 0C 5C 55 C0 00 00 D4 [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:12]Read from MH i2c: E2 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 CB 95 00 90 00 D4 [03:54:12]RAPDU: 90 00 [03:54:12]wFMCommunicate OK [03:54:12]wFMCommunicate request_size=7 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 0D 02 02 02 75 E0 [03:54:12]Write to MH i2c: E2 0A 00 CC 95 80 0D 02 02 02 00 75 E0 00 00 34 [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:12]Read from MH i2c: E2 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 03 00 CC 95 00 90 00 D5 [03:54:12]RAPDU: 90 00 [03:54:12]wFMCommunicate OK [03:54:12]wFMCommunicate request_size=4 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 0D 03 02 [03:54:12]Write to MH i2c: E2 08 00 CD 95 80 0D 03 02 00 00 00 00 DD [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:54:12]Read from MH i2c: E2 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 0B 00 [03:54:12]MH_I2C_Read... [03:54:12]Read from MH i2c: E2 0B 00 CD 95 00 4F B6 94 CB EF AD 40 ED 90 00 0B [03:54:12]RAPDU: 4F B6 94 CB EF AD 40 ED 90 00 [03:54:12]wFMCommunicate OK [03:54:12]SAM_PROTO_SignData done [03:54:12]FM_MakeSignedData done [03:54:12]CreateOFDProtocolMessage [03:54:12]wFMCommunicate request_size=4 [03:54:12]MH_SAM_APDU [03:54:12]CAPDU: 80 11 00 00 [03:54:12]Write to MH i2c: E2 08 00 CE 95 80 11 00 00 00 00 00 00 DD [03:54:12]Write i2c OK [03:54:12]MH_I2C_Read... [03:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:13]Read from MH i2c: E2 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: E2 17 00 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: E2 17 00 CE 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [03:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:54:13]wFMCommunicate OK [03:54:13]CreateOFDProtocolMessage done [03:54:13]OFDSenderStorePacket 166258 [03:54:13]StoreOFDPacket docnum=166258 [03:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 02 86 04 01 BC EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F9 21 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 89 02 00 35 04 06 00 0C 5C 55 C0 75 E0 4F B6 94 CB EF AD 40 ED [03:54:13]CheckFolder [03:54:13]dirname=/storage/ofd_packets [03:54:13]CheckFolder done [03:54:13]ProducePacketName [03:54:13]name=ofd_packets/00166258 [03:54:13]NVStorageSaveData ofd_packets/00166258 [03:54:13]File name is /storage/ofd_packets/00166258 [03:54:13]Write 298 bytes [03:54:13]NVStorageSaveData done [03:54:13]OFDSenderStorePacket done [03:54:13]KKMCreateOFDPacket done [03:54:13]NVStorageSaveData kkm_last_timestamp [03:54:13]File name is /storage/kkm_last_timestamp [03:54:13]Write 4 bytes [03:54:13]NVStorageSaveData done [03:54:13]ExternCall_PrintAddStr [03:54:13]wPrintStart [03:54:13]Write to MH i2c: 01 00 00 CF 95 64 [03:54:13]Write i2c OK [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 07 00 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 07 00 CF 95 00 00 00 00 00 FF 0F 79 [03:54:13]RasterBufferAndPrint [03:54:13]line Счет N : (1)220831 [03:54:13]line ИНН: 02508201610067 [03:54:13]line Контрольно-Кассовый Чек [03:54:13]line ПРОДАЖА [03:54:13]line ТРК (МРК, ГНК) : 21 [03:54:13]line Товар: 2710194210 [03:54:13]line ДТ-К-5 [03:54:13]line 39.380 * 76.20 [03:54:13]line = 3000.76 [03:54:13]line НДС 12% НСП 1% [03:54:13]line > о реализуемом товаре [03:54:13]line ОКРУГЛЕНИЕ: -0.76 [03:54:13]line ИТОГО: 3000.00 [03:54:13]line Внесено: 3000.00 [03:54:13]line СДАЧА: 0.00 [03:54:13]line НСП 1% : 26.55 [03:54:13]line НДС 12% : 318.66 [03:54:13]line Наличными: 3000.00 [03:54:13]line Безнал.: 0.00 [03:54:13]line Место: АЗС № 161 "Партнер Нефть" [03:54:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [03:54:13]line СНО: Общий режим [03:54:13]line Чек 13 22.10.2024 03:54 [03:54:13]line Смена: 536 ФФД: 1.0 [03:54:13]line ЗНМ: 0300000104 [03:54:13]line РНМ: 0000000000091764 [03:54:13]line Версия ККМ: 001 [03:54:13]line ФМ: 0000000000871759 [03:54:13]line ФД: 166258 [03:54:13]line ФПД: 13590715200992 [03:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T035433&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166258&fm=13590715200992&tin=02508201610067®Number=0000000000091764&sum=300000 [03:54:13]OFD Sender: Processing packet 166258 [packets to send 48, broken 47] [03:54:13]ProducePacketName [03:54:13]name=ofd_packets/00166258 [03:54:13]OFD Sender: To server: pG, [03:54:13]CommunicateWithHost lk.salyk.kg:30040 [03:54:13]ConnectInit lk.salyk.kg [03:54:13]written 0, free lines is 4095 [03:54:13]Connected sock=7 [03:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 02 86 04 01 BC EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F9 21 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 89 02 00 35 04 06 00 0C 5C 55 C0 75 E0 4F B6 94 CB EF AD 40 ED [03:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 24 47 00 90 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 89 02 00 F4 03 04 00 65 C8 16 67 B6 04 01 00 00 B7 5D 8A B0 E1 E3 56 FE [03:54:13]CommunicateWithHost err = 0 [03:54:13]CheckOFDResponse [03:54:13]1017 (14) - 77093643461234 [03:54:13]1041 (16) - 0000000000871759 [03:54:13]1040 (4) - 166258 [03:54:13]1012 (4) - 21.10.2024 21:32 [03:54:13]1206 (1) - 0 [03:54:13]OFD Sender: Remove packet 166258 [03:54:13]ProducePacketName [03:54:13]name=ofd_packets/00166258 [03:54:13]NVStorageDeleteData [03:54:13]Write to MH i2c: 01 00 00 FA 95 8F [03:54:13]Write i2c OK [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 07 00 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: 01 07 00 FA 95 00 00 00 00 00 BA 0C 5C [03:54:13]RasterBufferAndPrint [03:54:13]line [03:54:13]line [03:54:13]line [03:54:13]line [03:54:13]line [03:54:13]written 0, free lines is 3264 [03:54:13]MH_Cut [03:54:13]Write to MH i2c: D1 01 00 01 96 01 69 [03:54:13]Write i2c OK [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: D1 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: D1 01 00 [03:54:13]MH_I2C_Read... [03:54:13]Read from MH i2c: D1 01 00 01 96 00 68 [03:54:13]Write to MH i2c: 01 00 00 02 96 98 [03:54:13]Write i2c OK [03:54:13]MH_I2C_Read... [03:54:14]OFD Sender: No OFD packet to send [03:54:14]*** Cut start [03:54:14]*** Partial cut [03:54:14]*** CUTSNS_PIN = 1 [03:54:14]*** CUTSNS_PIN = 0 [03:54:14]*** Brake cut motor [03:54:15]Read from MH i2c: 01 [03:54:15]MH_I2C_Read... [03:54:15]*** Stop cut motor [03:54:15]*** Cut end [03:54:15]Read from MH i2c: 01 07 00 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: 01 07 00 02 96 00 00 00 00 00 FF 0F AD [03:54:15]process_action close_receipt done [03:54:15]requested_data is exist [03:54:15]produce_requested_data [03:54:15]requested_item fm.sn is exist - process it [03:54:15]wFMCommunicate request_size=4 [03:54:15]MH_SAM_APDU [03:54:15]CAPDU: 80 11 00 00 [03:54:15]Write to MH i2c: E2 08 00 03 96 80 11 00 00 00 00 00 00 13 [03:54:15]Write i2c OK [03:54:15]MH_I2C_Read... [03:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:15]Read from MH i2c: E2 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 17 00 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 17 00 03 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [03:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:54:15]wFMCommunicate OK [03:54:15]requested_item fd.num is exist - process it [03:54:15]SAM_PROTO_GetFieldsCounters [03:54:15]wFMCommunicate request_size=4 [03:54:15]MH_SAM_APDU [03:54:15]CAPDU: 80 13 00 00 [03:54:15]Write to MH i2c: E2 08 00 04 96 80 13 00 00 00 00 00 00 16 [03:54:15]Write i2c OK [03:54:15]MH_I2C_Read... [03:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:54:15]Read from MH i2c: E2 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 62 00 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 62 00 04 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [03:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:54:15]wFMCommunicate OK [03:54:15]SAM_PROTO_GetFieldsCounters done [03:54:15]requested_item shift.num is exist - process it [03:54:15]requested_item shift.opened is exist - process it [03:54:15]req_shift_opened [03:54:15]FM_GetShiftState [03:54:15]SAM_PROTO_GetShiftState [03:54:15]wFMCommunicate request_size=4 [03:54:15]MH_SAM_APDU [03:54:15]CAPDU: 80 13 01 00 [03:54:15]Write to MH i2c: E2 08 00 05 96 80 13 01 00 00 00 00 00 18 [03:54:15]Write i2c OK [03:54:15]MH_I2C_Read... [03:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:15]Read from MH i2c: E2 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 0E 00 [03:54:15]MH_I2C_Read... [03:54:15]Read from MH i2c: E2 0E 00 05 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6B [03:54:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [03:54:15]wFMCommunicate OK [03:54:15]SAM_PROTO_GetShiftState done [03:54:15]FM_GetShiftState done [03:54:15]req_shift_opened done [03:54:15]requested_item shift.open_date is exist - process it [03:54:15]req_shift_open_date [03:54:15]req_shift_open_date done [03:54:15]produce_requested_data done [03:54:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166258,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [03:54:15]process_action_free close_receipt [03:54:15]json_value_free [03:54:15]json_value_free done [03:54:15]process_json_proto returns [03:54:15]Send response to host [03:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166258,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [03:54:15]free response buf [03:54:15]execute_script done [03:54:15]execute_script returns [03:54:15]free content buf [03:54:15]Sock 5.Close socket [03:54:15]Sock 5.Thread stoped [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:36]recv_with_timeout no data received [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:03]recv_with_timeout no data received [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:21]recv_with_timeout no data received [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:42]accept exits with 6 [04:05:42]New connection [04:05:42]New thread 3066776932 created [04:05:42]Thread 3066920292 joined [04:05:42]Waiting for new connection... [04:05:42] Sock 6.Parse request [04:05:42]Sock 6.Check first char [04:05:42]Sock 6.First char is OK [04:05:42]request: POST /json_proto HTTP/1.0 [04:05:42]Method: POST [04:05:42]URL: /json_proto [04:05:42]Method is POST - this is cgi request [04:05:42]url: /json_proto [04:05:42]query_string will be loaded in cgi processing [04:05:42]execute_cgi json_proto POST (null) [04:05:42]execute_cgi path=json_proto method=POST [04:05:42]POST find Content-Length [04:05:42]Host: 172.17.53.195:8080 [04:05:42]Content-Length: 679 [04:05:42]Content-Type: application/json [04:05:42] [04:05:42]POST finish read [04:05:42]Found Content-Length = 679 [04:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:42]execute_script... [04:05: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)220832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:42]POST & json_proto [04:05:42]process_json_proto [04:05:42]json parsed OK: [04:05:42]protocol is kg_v1.0 [04:05:42]action value=close_receipt [04:05:42]process_action close_receipt [04:05:42]cmd_close_receipt [04:05:42]MH_GetDate [04:05:42]Write to MH i2c: F0 00 00 06 96 8B [04:05:42]Write i2c OK [04:05:42]MH_I2C_Read... [04:05:42]Read from MH i2c: F0 [04:05:42]MH_I2C_Read... [04:05:42]Read from MH i2c: F0 09 00 [04:05:42]MH_I2C_Read... [04:05:42]Read from MH i2c: F0 09 00 06 96 00 AC 24 17 67 21 48 4A 65 FA [04:05:42]GetLastDocTimeStamp 1729569273 [04:05:42]current date 1729569964 [04:05:42]FM_GetShiftState [04:05:42]SAM_PROTO_GetShiftState [04:05:42]wFMCommunicate request_size=4 [04:05:42]MH_SAM_APDU [04:05:42]CAPDU: 80 13 01 00 [04:05:42]Write to MH i2c: E2 08 00 07 96 80 13 01 00 00 00 00 00 1A [04:05:42]Write i2c OK [04:05:42]MH_I2C_Read... [04:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:42]Read from MH i2c: E2 [04:05:42]MH_I2C_Read... [04:05:42]Read from MH i2c: E2 0E 00 [04:05:42]MH_I2C_Read... [04:05:42]Read from MH i2c: E2 0E 00 07 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6D [04:05:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [04:05:42]wFMCommunicate OK [04:05:42]SAM_PROTO_GetShiftState done [04:05:42]FM_GetShiftState done [04:05:42]opened in 1729557463 [04:05:42]opened+sec_in_day 1729643863 [04:05:42]quantity*price = 100050 [04:05:42]sum+1 = 100052 [04:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 14 22.10.2024 04:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166259 ФПД: 223393815779732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T040604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166259&fm=223393815779732&tin=02508201610067®Number=0000000000091764&sum=100000 [04:05:43]StoreToDocumentArchive [04:05:43]shift 536 fd 166259 [04:05:43]save to /storage/0536/doc_00166259 [04:05:43]save last doc name /storage/0536/doc_00166259 to /storage/kkm_last_doc_name [04:05:43]save OK [04:05:43]Clear old archive folders... [04:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:05:43]tlvbuf is 014FEE50 [04:05:43]SAM_PROTO_ClearQueue [04:05:43]wFMCommunicate request_size=4 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 09 00 00 [04:05:43]Write to MH i2c: E2 08 00 14 96 80 09 00 00 00 00 00 00 1C [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 14 96 00 90 00 1E [04:05:43]RAPDU: 90 00 [04:05:43]wFMCommunicate OK [04:05:43]SAM_PROTO_ClearQueue done [04:05:43]KKMCreateOFDPacket [04:05:43]OFDProtocolAddRootSTLVToBuf [04:05:43]FM_MakeSignedData [04:05:43]FM_MakeSignedData [04:05:43]SAM_PROTO_SignData [04:05:43]wFMCommunicate request_size=4 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 0D 01 02 [04:05:43]Write to MH i2c: E2 08 00 15 96 80 0D 01 02 00 00 00 00 24 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 15 96 00 90 00 1F [04:05:43]RAPDU: 90 00 [04:05:43]wFMCommunicate OK [04:05:43]wFMCommunicate request_size=255 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AC 24 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 89 02 00 35 04 06 00 CB 2C ED 08 [04:05:43]Write to MH i2c: E2 02 01 16 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AC 24 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 89 02 00 35 04 06 00 CB 2C ED 08 00 00 10 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 16 96 00 90 00 20 [04:05:43]RAPDU: 90 00 [04:05:43]wFMCommunicate OK [04:05:43]wFMCommunicate request_size=7 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 0D 02 02 02 D9 94 [04:05:43]Write to MH i2c: E2 0A 00 17 96 80 0D 02 02 02 00 D9 94 00 00 98 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 03 00 17 96 00 90 00 21 [04:05:43]RAPDU: 90 00 [04:05:43]wFMCommunicate OK [04:05:43]wFMCommunicate request_size=4 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 0D 03 02 [04:05:43]Write to MH i2c: E2 08 00 18 96 80 0D 03 02 00 00 00 00 29 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 0B 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 0B 00 18 96 00 B6 31 0B 17 DF 8D 64 18 90 00 1B [04:05:43]RAPDU: B6 31 0B 17 DF 8D 64 18 90 00 [04:05:43]wFMCommunicate OK [04:05:43]SAM_PROTO_SignData done [04:05:43]FM_MakeSignedData done [04:05:43]CreateOFDProtocolMessage [04:05:43]wFMCommunicate request_size=4 [04:05:43]MH_SAM_APDU [04:05:43]CAPDU: 80 11 00 00 [04:05:43]Write to MH i2c: E2 08 00 19 96 80 11 00 00 00 00 00 00 29 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:43]Read from MH i2c: E2 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 17 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: E2 17 00 19 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [04:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:05:43]wFMCommunicate OK [04:05:43]CreateOFDProtocolMessage done [04:05:43]OFDSenderStorePacket 166259 [04:05:43]StoreOFDPacket docnum=166259 [04:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DE 12 04 01 96 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AC 24 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 89 02 00 35 04 06 00 CB 2C ED 08 D9 94 B6 31 0B 17 DF 8D 64 18 [04:05:43]CheckFolder [04:05:43]dirname=/storage/ofd_packets [04:05:43]CheckFolder done [04:05:43]ProducePacketName [04:05:43]name=ofd_packets/00166259 [04:05:43]NVStorageSaveData ofd_packets/00166259 [04:05:43]File name is /storage/ofd_packets/00166259 [04:05:43]Write 298 bytes [04:05:43]NVStorageSaveData done [04:05:43]OFDSenderStorePacket done [04:05:43]KKMCreateOFDPacket done [04:05:43]NVStorageSaveData kkm_last_timestamp [04:05:43]File name is /storage/kkm_last_timestamp [04:05:43]Write 4 bytes [04:05:43]NVStorageSaveData done [04:05:43]ExternCall_PrintAddStr [04:05:43]wPrintStart [04:05:43]Write to MH i2c: 01 00 00 1A 96 B0 [04:05:43]Write i2c OK [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: 01 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: 01 07 00 [04:05:43]MH_I2C_Read... [04:05:43]Read from MH i2c: 01 07 00 1A 96 00 00 00 00 00 FF 0F C5 [04:05:43]RasterBufferAndPrint [04:05:43]line Счет N : (1)220832 [04:05:43]line ИНН: 02508201610067 [04:05:43]line Контрольно-Кассовый Чек [04:05:43]line ПРОДАЖА [04:05:43]line ТРК (МРК, ГНК) : 21 [04:05:43]line Товар: 2710194210 [04:05:43]line ДТ-К-5 [04:05:43]line 13.130 * 76.20 [04:05:43]line = 1000.51 [04:05:43]line НДС 12% НСП 1% [04:05:43]line > о реализуемом товаре [04:05:43]line ОКРУГЛЕНИЕ: -0.51 [04:05:43]line ИТОГО: 1000.00 [04:05:43]line Внесено: 1000.00 [04:05:43]line СДАЧА: 0.00 [04:05:43]line НСП 1% : 8.85 [04:05:43]line НДС 12% : 106.25 [04:05:43]line Наличными: 1000.00 [04:05:43]line Безнал.: 0.00 [04:05:43]line Место: АЗС № 161 "Партнер Нефть" [04:05:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [04:05:43]line СНО: Общий режим [04:05:43]line Чек 14 22.10.2024 04:06 [04:05:43]line Смена: 536 ФФД: 1.0 [04:05:43]line ЗНМ: 0300000104 [04:05:43]line РНМ: 0000000000091764 [04:05:43]line Версия ККМ: 001 [04:05:43]line ФМ: 0000000000871759 [04:05:43]line ФД: 166259 [04:05:43]line ФПД: 223393815779732 [04:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T040604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166259&fm=223393815779732&tin=02508201610067®Number=0000000000091764&sum=100000 [04:05:44]OFD Sender: Processing packet 166259 [packets to send 48, broken 47] [04:05:44]ProducePacketName [04:05:44]name=ofd_packets/00166259 [04:05:44]OFD Sender: To server: pG, [04:05:44]CommunicateWithHost lk.salyk.kg:30040 [04:05:44]ConnectInit lk.salyk.kg [04:05:44]written 0, free lines is 4095 [04:05:44]Connected sock=7 [04:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DE 12 04 01 96 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AC 24 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 89 02 00 35 04 06 00 CB 2C ED 08 D9 94 B6 31 0B 17 DF 8D 64 18 [04:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 C7 47 00 82 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 89 02 00 F4 03 04 00 18 CB 16 67 B6 04 01 00 00 08 00 6E D7 CE 6E C6 15 [04:05:44]CommunicateWithHost err = 0 [04:05:44]CheckOFDResponse [04:05:44]1017 (14) - 77093643461234 [04:05:44]1041 (16) - 0000000000871759 [04:05:44]1040 (4) - 166259 [04:05:44]1012 (4) - 21.10.2024 21:43 [04:05:44]1206 (1) - 0 [04:05:44]OFD Sender: Remove packet 166259 [04:05:44]ProducePacketName [04:05:44]name=ofd_packets/00166259 [04:05:44]NVStorageDeleteData [04:05:44]Write to MH i2c: 01 00 00 45 96 DB [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 07 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: 01 07 00 45 96 00 00 00 00 00 BA 0C A8 [04:05:44]RasterBufferAndPrint [04:05:44]line [04:05:44]line [04:05:44]line [04:05:44]line [04:05:44]line [04:05:44]written 0, free lines is 3266 [04:05:44]MH_Cut [04:05:44]Write to MH i2c: D1 01 00 4C 96 01 B4 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: D1 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: D1 01 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: D1 01 00 4C 96 00 B3 [04:05:44]Write to MH i2c: 01 00 00 4D 96 E3 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:45]OFD Sender: No OFD packet to send [04:05:45]*** Cut start [04:05:45]*** Partial cut [04:05:45]*** CUTSNS_PIN = 1 [04:05:45]*** CUTSNS_PIN = 0 [04:05:45]*** Brake cut motor [04:05:46]Read from MH i2c: 01 [04:05:46]MH_I2C_Read... [04:05:46]*** Stop cut motor [04:05:46]*** Cut end [04:05:46]Read from MH i2c: 01 07 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: 01 07 00 4D 96 00 00 00 00 00 FF 0F F8 [04:05:46]process_action close_receipt done [04:05:46]requested_data is exist [04:05:46]produce_requested_data [04:05:46]requested_item fm.sn is exist - process it [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 11 00 00 [04:05:46]Write to MH i2c: E2 08 00 4E 96 80 11 00 00 00 00 00 00 5E [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 17 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 17 00 4E 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [04:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:05:46]wFMCommunicate OK [04:05:46]requested_item fd.num is exist - process it [04:05:46]SAM_PROTO_GetFieldsCounters [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 13 00 00 [04:05:46]Write to MH i2c: E2 08 00 4F 96 80 13 00 00 00 00 00 00 61 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 62 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 62 00 4F 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [04:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:46]wFMCommunicate OK [04:05:46]SAM_PROTO_GetFieldsCounters done [04:05:46]requested_item shift.num is exist - process it [04:05:46]requested_item shift.opened is exist - process it [04:05:46]req_shift_opened [04:05:46]FM_GetShiftState [04:05:46]SAM_PROTO_GetShiftState [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 13 01 00 [04:05:46]Write to MH i2c: E2 08 00 50 96 80 13 01 00 00 00 00 00 63 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 0E 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 0E 00 50 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B6 [04:05:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [04:05:46]wFMCommunicate OK [04:05:46]SAM_PROTO_GetShiftState done [04:05:46]FM_GetShiftState done [04:05:46]req_shift_opened done [04:05:46]requested_item shift.open_date is exist - process it [04:05:46]req_shift_open_date [04:05:46]req_shift_open_date done [04:05:46]produce_requested_data done [04:05:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166259,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [04:05:46]process_action_free close_receipt [04:05:46]json_value_free [04:05:46]json_value_free done [04:05:46]process_json_proto returns [04:05:46]Send response to host [04:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166259,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [04:05:46]free response buf [04:05:46]execute_script done [04:05:46]execute_script returns [04:05:46]free content buf [04:05:46]Sock 6.Close socket [04:05:46]Sock 6.Thread stoped [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:45]recv_with_timeout no data received [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:13:59]recv_with_timeout no data received [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:22]recv_with_timeout no data received [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:30]recv_with_timeout no data received [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:52]recv_with_timeout no data received [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:21]recv_with_timeout no data received [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:38]recv_with_timeout no data received [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:36]accept exits with 5 [04:59:36]New connection [04:59:36]New thread 3066920292 created [04:59:36]Thread 3066776932 joined [04:59:36]Waiting for new connection... [04:59:36] Sock 5.Parse request [04:59:36]Sock 5.Check first char [04:59:36]Sock 5.First char is OK [04:59:36]request: POST /json_proto HTTP/1.0 [04:59:36]Method: POST [04:59:36]URL: /json_proto [04:59:36]Method is POST - this is cgi request [04:59:36]url: /json_proto [04:59:36]query_string will be loaded in cgi processing [04:59:36]execute_cgi json_proto POST (null) [04:59:36]execute_cgi path=json_proto method=POST [04:59:36]POST find Content-Length [04:59:36]Host: 172.17.53.195:8080 [04:59:36]Content-Length: 769 [04:59:36]Content-Type: application/json [04:59:36] [04:59:36]POST finish read [04:59:36]Found Content-Length = 769 [04:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.140, "sum" : 1280.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1280.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:36]execute_script... [04:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.140, "sum" : 1280.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1280.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:36]POST & json_proto [04:59:36]process_json_proto [04:59:36]json parsed OK: [04:59:36]protocol is kg_v1.0 [04:59:36]action value=close_receipt [04:59:36]process_action close_receipt [04:59:36]cmd_close_receipt [04:59:36]MH_GetDate [04:59:36]Write to MH i2c: F0 00 00 51 96 D6 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: F0 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: F0 09 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: F0 09 00 51 96 00 4E 31 17 67 21 48 4A 65 F4 [04:59:36]GetLastDocTimeStamp 1729569964 [04:59:36]current date 1729573198 [04:59:36]FM_GetShiftState [04:59:36]SAM_PROTO_GetShiftState [04:59:36]wFMCommunicate request_size=4 [04:59:36]MH_SAM_APDU [04:59:36]CAPDU: 80 13 01 00 [04:59:36]Write to MH i2c: E2 08 00 52 96 80 13 01 00 00 00 00 00 65 [04:59:36]Write i2c OK [04:59:36]MH_I2C_Read... [04:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:36]Read from MH i2c: E2 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 0E 00 [04:59:36]MH_I2C_Read... [04:59:36]Read from MH i2c: E2 0E 00 52 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B8 [04:59:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [04:59:36]wFMCommunicate OK [04:59:36]SAM_PROTO_GetShiftState done [04:59:36]FM_GetShiftState done [04:59:36]opened in 1729557463 [04:59:36]opened+sec_in_day 1729643863 [04:59:36]quantity*price = 128046 [04:59:36]sum+1 = 128048 [04:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1280.47 НСП 1% : 11.33 НДС 12% : 135.98 Наличными: 0.00 Безнал.: 1280.47 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 15 22.10.2024 04:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166260 ФПД: 46231833480899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045958&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166260&fm=46231833480899&tin=02508201610067®Number=0000000000091764&sum=128047 [04:59:37]StoreToDocumentArchive [04:59:37]shift 536 fd 166260 [04:59:37]save to /storage/0536/doc_00166260 [04:59:37]save last doc name /storage/0536/doc_00166260 to /storage/kkm_last_doc_name [04:59:37]save OK [04:59:37]Clear old archive folders... [04:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:59:37]tlvbuf is 015FC720 [04:59:37]SAM_PROTO_ClearQueue [04:59:37]wFMCommunicate request_size=4 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 09 00 00 [04:59:37]Write to MH i2c: E2 08 00 5F 96 80 09 00 00 00 00 00 00 67 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 5F 96 00 90 00 69 [04:59:37]RAPDU: 90 00 [04:59:37]wFMCommunicate OK [04:59:37]SAM_PROTO_ClearQueue done [04:59:37]KKMCreateOFDPacket [04:59:37]OFDProtocolAddRootSTLVToBuf [04:59:37]FM_MakeSignedData [04:59:37]FM_MakeSignedData [04:59:37]SAM_PROTO_SignData [04:59:37]wFMCommunicate request_size=4 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 0D 01 02 [04:59:37]Write to MH i2c: E2 08 00 60 96 80 0D 01 02 00 00 00 00 6F [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 60 96 00 90 00 6A [04:59:37]RAPDU: 90 00 [04:59:37]wFMCommunicate OK [04:59:37]wFMCommunicate request_size=255 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2F F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E 31 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 89 02 00 35 04 06 00 2A [04:59:37]Write to MH i2c: E2 02 01 61 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2F F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E 31 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 89 02 00 35 04 06 00 2A 00 00 49 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 61 96 00 90 00 6B [04:59:37]RAPDU: 90 00 [04:59:37]wFMCommunicate OK [04:59:37]wFMCommunicate request_size=10 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 0D 02 02 05 0C 30 03 0E C3 [04:59:37]Write to MH i2c: E2 0D 00 62 96 80 0D 02 02 05 00 0C 30 03 0E C3 00 00 8C [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 03 00 62 96 00 90 00 6C [04:59:37]RAPDU: 90 00 [04:59:37]wFMCommunicate OK [04:59:37]wFMCommunicate request_size=4 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 0D 03 02 [04:59:37]Write to MH i2c: E2 08 00 63 96 80 0D 03 02 00 00 00 00 74 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 0B 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 0B 00 63 96 00 D3 A3 9E EC E7 96 07 48 90 00 41 [04:59:37]RAPDU: D3 A3 9E EC E7 96 07 48 90 00 [04:59:37]wFMCommunicate OK [04:59:37]SAM_PROTO_SignData done [04:59:37]FM_MakeSignedData done [04:59:37]CreateOFDProtocolMessage [04:59:37]wFMCommunicate request_size=4 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 11 00 00 [04:59:37]Write to MH i2c: E2 08 00 64 96 80 11 00 00 00 00 00 00 74 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 17 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 17 00 64 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [04:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:59:37]wFMCommunicate OK [04:59:37]CreateOFDProtocolMessage done [04:59:37]OFDSenderStorePacket 166260 [04:59:37]StoreOFDPacket docnum=166260 [04:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 62 BC 07 01 80 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2F F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E 31 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 89 02 00 35 04 06 00 2A 0C 30 03 0E C3 D3 A3 9E EC E7 96 07 48 [04:59:37]CheckFolder [04:59:37]dirname=/storage/ofd_packets [04:59:37]CheckFolder done [04:59:37]ProducePacketName [04:59:37]name=ofd_packets/00166260 [04:59:37]NVStorageSaveData ofd_packets/00166260 [04:59:37]File name is /storage/ofd_packets/00166260 [04:59:37]Write 301 bytes [04:59:37]NVStorageSaveData done [04:59:37]OFDSenderStorePacket done [04:59:37]KKMCreateOFDPacket done [04:59:37]NVStorageSaveData kkm_last_timestamp [04:59:37]File name is /storage/kkm_last_timestamp [04:59:37]Write 4 bytes [04:59:37]NVStorageSaveData done [04:59:37]ExternCall_PrintAddStr [04:59:37]wPrintStart [04:59:37]Write to MH i2c: 01 00 00 65 96 FB [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 07 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: 01 07 00 65 96 00 00 00 00 00 FF 0F 10 [04:59:37]RasterBufferAndPrint [04:59:37]line Счет N : (1)220833 [04:59:37]line ИНН: 02508201610067 [04:59:37]line Контрольно-Кассовый Чек [04:59:37]line ПРОДАЖА [04:59:37]line ТРК (МРК, ГНК) : 13 [04:59:37]line Товар: 2710124130 [04:59:37]line Аи-92-К-5 [04:59:37]line 19.140 * 66.90 [04:59:37]line = 1280.47 [04:59:37]line НДС 12% НСП 1% [04:59:37]line > о реализуемом товаре [04:59:37]line ИТОГО: 1280.47 [04:59:37]line НСП 1% : 11.33 [04:59:37]line НДС 12% : 135.98 [04:59:37]line Наличными: 0.00 [04:59:37]line Безнал.: 1280.47 [04:59:37]line Место: АЗС № 161 "Партнер Нефть" [04:59:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [04:59:37]line СНО: Общий режим [04:59:37]line Чек 15 22.10.2024 04:59 [04:59:37]line Смена: 536 ФФД: 1.0 [04:59:37]line ЗНМ: 0300000104 [04:59:37]line РНМ: 0000000000091764 [04:59:37]line Версия ККМ: 001 [04:59:37]line Платежная система: Mbank [04:59:37]line ФМ: 0000000000871759 [04:59:37]line ФД: 166260 [04:59:37]line ФПД: 46231833480899 [04:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045958&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166260&fm=46231833480899&tin=02508201610067®Number=0000000000091764&sum=128047 [04:59:37]written 0, free lines is 4095 [04:59:37]OFD Sender: Processing packet 166260 [packets to send 48, broken 47] [04:59:37]ProducePacketName [04:59:37]name=ofd_packets/00166260 [04:59:37]OFD Sender: To server: pG, [04:59:37]CommunicateWithHost lk.salyk.kg:30040 [04:59:37]ConnectInit lk.salyk.kg [04:59:37]Connected sock=7 [04:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 62 BC 07 01 80 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 4A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2F F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E 31 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 89 02 00 35 04 06 00 2A 0C 30 03 0E C3 D3 A3 9E EC E7 96 07 48 [04:59:38]Write to MH i2c: 01 00 00 8E 96 24 [04:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 16 47 00 80 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 89 02 00 F4 03 04 00 BA D7 16 67 B6 04 01 00 00 7D 4B DA BC CE C5 FA A8 [04:59:38]CommunicateWithHost err = 0 [04:59:38]CheckOFDResponse [04:59:38]1017 (14) - 77093643461234 [04:59:38]1041 (16) - 0000000000871759 [04:59:38]1040 (4) - 166260 [04:59:38]1012 (4) - 21.10.2024 22:37 [04:59:38]1206 (1) - 0 [04:59:38]OFD Sender: Remove packet 166260 [04:59:38]ProducePacketName [04:59:38]name=ofd_packets/00166260 [04:59:38]NVStorageDeleteData [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: 01 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: 01 07 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: 01 07 00 8E 96 00 00 00 00 00 DE 0C 15 [04:59:38]RasterBufferAndPrint [04:59:38]line [04:59:38]line [04:59:38]line [04:59:38]line [04:59:38]line [04:59:38]written 0, free lines is 3311 [04:59:38]MH_Cut [04:59:38]Write to MH i2c: D1 01 00 95 96 01 FD [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: D1 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: D1 01 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: D1 01 00 95 96 00 FC [04:59:38]Write to MH i2c: 01 00 00 96 96 2C [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]OFD Sender: No OFD packet to send [04:59:39]*** Cut start [04:59:39]*** Partial cut [04:59:39]*** CUTSNS_PIN = 1 [04:59:39]*** CUTSNS_PIN = 0 [04:59:39]*** Brake cut motor [04:59:39]Read from MH i2c: 01 [04:59:39]MH_I2C_Read... [04:59:39]*** Stop cut motor [04:59:39]*** Cut end [04:59:39]Read from MH i2c: 01 07 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: 01 07 00 96 96 00 00 00 00 00 FF 0F 41 [04:59:39]process_action close_receipt done [04:59:39]requested_data is exist [04:59:39]produce_requested_data [04:59:39]requested_item fm.sn is exist - process it [04:59:39]wFMCommunicate request_size=4 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 11 00 00 [04:59:39]Write to MH i2c: E2 08 00 97 96 80 11 00 00 00 00 00 00 A7 [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 17 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 17 00 97 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [04:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [04:59:39]wFMCommunicate OK [04:59:39]requested_item fd.num is exist - process it [04:59:39]SAM_PROTO_GetFieldsCounters [04:59:39]wFMCommunicate request_size=4 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 13 00 00 [04:59:39]Write to MH i2c: E2 08 00 98 96 80 13 00 00 00 00 00 00 AA [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 62 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 62 00 98 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [04:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:39]wFMCommunicate OK [04:59:39]SAM_PROTO_GetFieldsCounters done [04:59:39]requested_item shift.num is exist - process it [04:59:39]requested_item shift.opened is exist - process it [04:59:39]req_shift_opened [04:59:39]FM_GetShiftState [04:59:39]SAM_PROTO_GetShiftState [04:59:39]wFMCommunicate request_size=4 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 13 01 00 [04:59:39]Write to MH i2c: E2 08 00 99 96 80 13 01 00 00 00 00 00 AC [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 0E 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 0E 00 99 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FF [04:59:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [04:59:39]wFMCommunicate OK [04:59:39]SAM_PROTO_GetShiftState done [04:59:39]FM_GetShiftState done [04:59:39]req_shift_opened done [04:59:39]requested_item shift.open_date is exist - process it [04:59:39]req_shift_open_date [04:59:39]req_shift_open_date done [04:59:39]produce_requested_data done [04:59:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166260,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [04:59:39]process_action_free close_receipt [04:59:39]json_value_free [04:59:39]json_value_free done [04:59:39]process_json_proto returns [04:59:39]Send response to host [04:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166260,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [04:59:39]free response buf [04:59:39]execute_script done [04:59:39]execute_script returns [04:59:39]free content buf [04:59:39]Sock 5.Close socket [04:59:39]Sock 5.Thread stoped [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:48]accept exits with 6 [05:14:48]New connection [05:14:48]New thread 3066776932 created [05:14:48]Thread 3066920292 joined [05:14:48]Waiting for new connection... [05:14:48] Sock 6.Parse request [05:14:48]Sock 6.Check first char [05:14:48]Sock 6.First char is OK [05:14:48]request: POST /json_proto HTTP/1.0 [05:14:48]Method: POST [05:14:48]URL: /json_proto [05:14:48]Method is POST - this is cgi request [05:14:48]url: /json_proto [05:14:48]query_string will be loaded in cgi processing [05:14:48]execute_cgi json_proto POST (null) [05:14:48]execute_cgi path=json_proto method=POST [05:14:48]POST find Content-Length [05:14:48]Host: 172.17.53.195:8080 [05:14:48]Content-Length: 679 [05:14:48]Content-Type: application/json [05:14:48] [05:14:48]POST finish read [05:14:48]Found Content-Length = 679 [05:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:48]execute_script... [05:14:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:48]POST & json_proto [05:14:48]process_json_proto [05:14:48]json parsed OK: [05:14:48]protocol is kg_v1.0 [05:14:48]action value=close_receipt [05:14:48]process_action close_receipt [05:14:48]cmd_close_receipt [05:14:48]MH_GetDate [05:14:48]Write to MH i2c: F0 00 00 9A 96 1F [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 09 00 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: F0 09 00 9A 96 00 DE 34 17 67 21 48 4A 65 D0 [05:14:48]GetLastDocTimeStamp 1729573198 [05:14:48]current date 1729574110 [05:14:48]FM_GetShiftState [05:14:48]SAM_PROTO_GetShiftState [05:14:48]wFMCommunicate request_size=4 [05:14:48]MH_SAM_APDU [05:14:48]CAPDU: 80 13 01 00 [05:14:48]Write to MH i2c: E2 08 00 9B 96 80 13 01 00 00 00 00 00 AE [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:48]Read from MH i2c: E2 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: E2 0E 00 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: E2 0E 00 9B 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 01 [05:14:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:14:48]wFMCommunicate OK [05:14:48]SAM_PROTO_GetShiftState done [05:14:48]FM_GetShiftState done [05:14:48]opened in 1729557463 [05:14:48]opened+sec_in_day 1729643863 [05:14:48]quantity*price = 120015 [05:14:48]sum+1 = 120016 [05:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 16 22.10.2024 05:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166261 ФПД: 168125475774558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166261&fm=168125475774558&tin=02508201610067®Number=0000000000091764&sum=120000 [05:14:49]StoreToDocumentArchive [05:14:49]shift 536 fd 166261 [05:14:49]save to /storage/0536/doc_00166261 [05:14:49]save last doc name /storage/0536/doc_00166261 to /storage/kkm_last_doc_name [05:14:49]save OK [05:14:49]Clear old archive folders... [05:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:14:49]tlvbuf is 0163FDB0 [05:14:49]SAM_PROTO_ClearQueue [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 09 00 00 [05:14:49]Write to MH i2c: E2 08 00 A8 96 80 09 00 00 00 00 00 00 B0 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 A8 96 00 90 00 B2 [05:14:49]RAPDU: 90 00 [05:14:49]wFMCommunicate OK [05:14:49]SAM_PROTO_ClearQueue done [05:14:49]KKMCreateOFDPacket [05:14:49]OFDProtocolAddRootSTLVToBuf [05:14:49]FM_MakeSignedData [05:14:49]FM_MakeSignedData [05:14:49]SAM_PROTO_SignData [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 0D 01 02 [05:14:49]Write to MH i2c: E2 08 00 A9 96 80 0D 01 02 00 00 00 00 B8 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 A9 96 00 90 00 B3 [05:14:49]RAPDU: 90 00 [05:14:49]wFMCommunicate OK [05:14:49]wFMCommunicate request_size=255 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 34 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 89 02 00 35 04 06 00 98 E8 C3 42 [05:14:49]Write to MH i2c: E2 02 01 AA 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 34 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 89 02 00 35 04 06 00 98 E8 C3 42 00 00 F1 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]OFD Sender: No OFD packet to send [05:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 AA 96 00 90 00 B4 [05:14:49]RAPDU: 90 00 [05:14:49]wFMCommunicate OK [05:14:49]wFMCommunicate request_size=7 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 0D 02 02 02 E0 5E [05:14:49]Write to MH i2c: E2 0A 00 AB 96 80 0D 02 02 02 00 E0 5E 00 00 FD [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 03 00 AB 96 00 90 00 B5 [05:14:49]RAPDU: 90 00 [05:14:49]wFMCommunicate OK [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 0D 03 02 [05:14:49]Write to MH i2c: E2 08 00 AC 96 80 0D 03 02 00 00 00 00 BD [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0B 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0B 00 AC 96 00 1A DE 84 AB 25 9B 5A 22 90 00 21 [05:14:49]RAPDU: 1A DE 84 AB 25 9B 5A 22 90 00 [05:14:49]wFMCommunicate OK [05:14:49]SAM_PROTO_SignData done [05:14:49]FM_MakeSignedData done [05:14:49]CreateOFDProtocolMessage [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 11 00 00 [05:14:49]Write to MH i2c: E2 08 00 AD 96 80 11 00 00 00 00 00 00 BD [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 17 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 17 00 AD 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [05:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:14:49]wFMCommunicate OK [05:14:49]CreateOFDProtocolMessage done [05:14:49]OFDSenderStorePacket 166261 [05:14:49]StoreOFDPacket docnum=166261 [05:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4B A0 04 01 57 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 34 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 89 02 00 35 04 06 00 98 E8 C3 42 E0 5E 1A DE 84 AB 25 9B 5A 22 [05:14:49]CheckFolder [05:14:49]dirname=/storage/ofd_packets [05:14:49]CheckFolder done [05:14:49]ProducePacketName [05:14:49]name=ofd_packets/00166261 [05:14:49]NVStorageSaveData ofd_packets/00166261 [05:14:49]File name is /storage/ofd_packets/00166261 [05:14:49]Write 298 bytes [05:14:49]NVStorageSaveData done [05:14:49]OFDSenderStorePacket done [05:14:49]KKMCreateOFDPacket done [05:14:49]NVStorageSaveData kkm_last_timestamp [05:14:49]File name is /storage/kkm_last_timestamp [05:14:49]Write 4 bytes [05:14:49]NVStorageSaveData done [05:14:49]ExternCall_PrintAddStr [05:14:49]wPrintStart [05:14:49]Write to MH i2c: 01 00 00 AE 96 44 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: 01 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: 01 07 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: 01 07 00 AE 96 00 00 00 00 00 FF 0F 59 [05:14:49]RasterBufferAndPrint [05:14:49]line Счет N : (1)220835 [05:14:49]line ИНН: 02508201610067 [05:14:49]line Контрольно-Кассовый Чек [05:14:49]line ПРОДАЖА [05:14:49]line ТРК (МРК, ГНК) : 41 [05:14:49]line Товар: 2710194210 [05:14:49]line ДТ-К-5 [05:14:49]line 15.750 * 76.20 [05:14:49]line = 1200.15 [05:14:49]line НДС 12% НСП 1% [05:14:49]line > о реализуемом товаре [05:14:49]line ОКРУГЛЕНИЕ: -0.15 [05:14:49]line ИТОГО: 1200.00 [05:14:49]line Внесено: 1200.00 [05:14:49]line СДАЧА: 0.00 [05:14:49]line НСП 1% : 10.62 [05:14:49]line НДС 12% : 127.45 [05:14:49]line Наличными: 1200.00 [05:14:49]line Безнал.: 0.00 [05:14:49]line Место: АЗС № 161 "Партнер Нефть" [05:14:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:14:49]line СНО: Общий режим [05:14:49]line Чек 16 22.10.2024 05:15 [05:14:49]line Смена: 536 ФФД: 1.0 [05:14:49]line ЗНМ: 0300000104 [05:14:49]line РНМ: 0000000000091764 [05:14:49]line Версия ККМ: 001 [05:14:49]line ФМ: 0000000000871759 [05:14:49]line ФД: 166261 [05:14:49]line ФПД: 168125475774558 [05:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166261&fm=168125475774558&tin=02508201610067®Number=0000000000091764&sum=120000 [05:14:50]OFD Sender: Processing packet 166261 [packets to send 48, broken 47] [05:14:50]ProducePacketName [05:14:50]name=ofd_packets/00166261 [05:14:50]OFD Sender: To server: pG, [05:14:50]CommunicateWithHost lk.salyk.kg:30040 [05:14:50]ConnectInit lk.salyk.kg [05:14:50]written 0, free lines is 4095 [05:14:50]Connected sock=7 [05:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4B A0 04 01 57 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 34 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 89 02 00 35 04 06 00 98 E8 C3 42 E0 5E 1A DE 84 AB 25 9B 5A 22 [05:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 66 DB 47 00 B5 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 89 02 00 F4 03 04 00 4A DB 16 67 B6 04 01 00 00 28 C3 36 28 D1 18 AE BE [05:14:50]CommunicateWithHost err = 0 [05:14:50]CheckOFDResponse [05:14:50]1017 (14) - 77093643461234 [05:14:50]1041 (16) - 0000000000871759 [05:14:50]1040 (4) - 166261 [05:14:50]1012 (4) - 21.10.2024 22:52 [05:14:50]1206 (1) - 0 [05:14:50]OFD Sender: Remove packet 166261 [05:14:50]ProducePacketName [05:14:50]name=ofd_packets/00166261 [05:14:50]NVStorageDeleteData [05:14:50]Write to MH i2c: 01 00 00 D9 96 6F [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 07 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: 01 07 00 D9 96 00 00 00 00 00 B6 0C 38 [05:14:50]RasterBufferAndPrint [05:14:50]line [05:14:50]line [05:14:50]line [05:14:50]line [05:14:50]line [05:14:50]written 0, free lines is 3260 [05:14:50]MH_Cut [05:14:50]Write to MH i2c: D1 01 00 E0 96 01 48 [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: D1 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: D1 01 00 [05:14:50]MH_I2C_Read... [05:14:50]Read from MH i2c: D1 01 00 E0 96 00 47 [05:14:50]Write to MH i2c: 01 00 00 E1 96 77 [05:14:50]Write i2c OK [05:14:50]MH_I2C_Read... [05:14:50]OFD Sender: No OFD packet to send [05:14:51]*** Cut start [05:14:51]*** Partial cut [05:14:51]*** CUTSNS_PIN = 1 [05:14:51]*** CUTSNS_PIN = 0 [05:14:51]*** Brake cut motor [05:14:51]Read from MH i2c: 01 [05:14:51]MH_I2C_Read... [05:14:51]*** Stop cut motor [05:14:51]*** Cut end [05:14:51]Read from MH i2c: 01 07 00 [05:14:51]MH_I2C_Read... [05:14:51]Read from MH i2c: 01 07 00 E1 96 00 00 00 00 00 FF 0F 8C [05:14:51]process_action close_receipt done [05:14:51]requested_data is exist [05:14:51]produce_requested_data [05:14:51]requested_item fm.sn is exist - process it [05:14:51]wFMCommunicate request_size=4 [05:14:51]MH_SAM_APDU [05:14:51]CAPDU: 80 11 00 00 [05:14:51]Write to MH i2c: E2 08 00 E2 96 80 11 00 00 00 00 00 00 F2 [05:14:51]Write i2c OK [05:14:51]MH_I2C_Read... [05:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:52]Read from MH i2c: E2 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 17 00 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 17 00 E2 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [05:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:14:52]wFMCommunicate OK [05:14:52]requested_item fd.num is exist - process it [05:14:52]SAM_PROTO_GetFieldsCounters [05:14:52]wFMCommunicate request_size=4 [05:14:52]MH_SAM_APDU [05:14:52]CAPDU: 80 13 00 00 [05:14:52]Write to MH i2c: E2 08 00 E3 96 80 13 00 00 00 00 00 00 F5 [05:14:52]Write i2c OK [05:14:52]MH_I2C_Read... [05:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:52]Read from MH i2c: E2 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 62 00 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 62 00 E3 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [05:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:14:52]wFMCommunicate OK [05:14:52]SAM_PROTO_GetFieldsCounters done [05:14:52]requested_item shift.num is exist - process it [05:14:52]requested_item shift.opened is exist - process it [05:14:52]req_shift_opened [05:14:52]FM_GetShiftState [05:14:52]SAM_PROTO_GetShiftState [05:14:52]wFMCommunicate request_size=4 [05:14:52]MH_SAM_APDU [05:14:52]CAPDU: 80 13 01 00 [05:14:52]Write to MH i2c: E2 08 00 E4 96 80 13 01 00 00 00 00 00 F7 [05:14:52]Write i2c OK [05:14:52]MH_I2C_Read... [05:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:52]Read from MH i2c: E2 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 0E 00 [05:14:52]MH_I2C_Read... [05:14:52]Read from MH i2c: E2 0E 00 E4 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4A [05:14:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:14:52]wFMCommunicate OK [05:14:52]SAM_PROTO_GetShiftState done [05:14:52]FM_GetShiftState done [05:14:52]req_shift_opened done [05:14:52]requested_item shift.open_date is exist - process it [05:14:52]req_shift_open_date [05:14:52]req_shift_open_date done [05:14:52]produce_requested_data done [05:14:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166261,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:14:52]process_action_free close_receipt [05:14:52]json_value_free [05:14:52]json_value_free done [05:14:52]process_json_proto returns [05:14:52]Send response to host [05:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166261,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:14:52]free response buf [05:14:52]execute_script done [05:14:52]execute_script returns [05:14:52]free content buf [05:14:52]Sock 6.Close socket [05:14:52]Sock 6.Thread stoped [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:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24: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:27:57]accept exits with 5 [05:27:57]New connection [05:27:57]New thread 3066920292 created [05:27:57]Thread 3066776932 joined [05:27:57]Waiting for new connection... [05:27:57] Sock 5.Parse request [05:27:57]Sock 5.Check first char [05:27:57]Sock 5.First char is OK [05:27:57]request: POST /json_proto HTTP/1.0 [05:27:57]Method: POST [05:27:57]URL: /json_proto [05:27:57]Method is POST - this is cgi request [05:27:57]url: /json_proto [05:27:57]query_string will be loaded in cgi processing [05:27:57]execute_cgi json_proto POST (null) [05:27:57]execute_cgi path=json_proto method=POST [05:27:57]POST find Content-Length [05:27:57]Host: 172.17.53.195:8080 [05:27:57]Content-Length: 679 [05:27:57]Content-Type: application/json [05:27:57] [05:27:57]POST finish read [05:27:57]Found Content-Length = 679 [05:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:57]execute_script... [05:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:57]POST & json_proto [05:27:57]process_json_proto [05:27:57]json parsed OK: [05:27:57]protocol is kg_v1.0 [05:27:57]action value=close_receipt [05:27:57]process_action close_receipt [05:27:57]cmd_close_receipt [05:27:57]MH_GetDate [05:27:57]Write to MH i2c: F0 00 00 E5 96 6A [05:27:57]Write i2c OK [05:27:57]MH_I2C_Read... [05:27:57]Read from MH i2c: F0 [05:27:57]MH_I2C_Read... [05:27:57]Read from MH i2c: F0 09 00 [05:27:57]MH_I2C_Read... [05:27:57]Read from MH i2c: F0 09 00 E5 96 00 F4 37 17 67 21 48 4A 65 34 [05:27:57]GetLastDocTimeStamp 1729574110 [05:27:57]current date 1729574900 [05:27:57]FM_GetShiftState [05:27:57]SAM_PROTO_GetShiftState [05:27:57]wFMCommunicate request_size=4 [05:27:57]MH_SAM_APDU [05:27:57]CAPDU: 80 13 01 00 [05:27:57]Write to MH i2c: E2 08 00 E6 96 80 13 01 00 00 00 00 00 F9 [05:27:57]Write i2c OK [05:27:57]MH_I2C_Read... [05:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:57]Read from MH i2c: E2 [05:27:57]MH_I2C_Read... [05:27:57]Read from MH i2c: E2 0E 00 [05:27:57]MH_I2C_Read... [05:27:57]Read from MH i2c: E2 0E 00 E6 96 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4C [05:27:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:27:57]wFMCommunicate OK [05:27:57]SAM_PROTO_GetShiftState done [05:27:57]FM_GetShiftState done [05:27:57]opened in 1729557463 [05:27:57]opened+sec_in_day 1729643863 [05:27:57]quantity*price = 120015 [05:27:57]sum+1 = 120016 [05:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 17 22.10.2024 05:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166262 ФПД: 184825353625785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166262&fm=184825353625785&tin=02508201610067®Number=0000000000091764&sum=120000 [05:27:59]StoreToDocumentArchive [05:27:59]shift 536 fd 166262 [05:27:59]save to /storage/0536/doc_00166262 [05:27:59]save last doc name /storage/0536/doc_00166262 to /storage/kkm_last_doc_name [05:27:59]save OK [05:27:59]Clear old archive folders... [05:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:27:59]tlvbuf is 01C369D0 [05:27:59]SAM_PROTO_ClearQueue [05:27:59]wFMCommunicate request_size=4 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 09 00 00 [05:27:59]Write to MH i2c: E2 08 00 F3 96 80 09 00 00 00 00 00 00 FB [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 F3 96 00 90 00 FD [05:27:59]RAPDU: 90 00 [05:27:59]wFMCommunicate OK [05:27:59]SAM_PROTO_ClearQueue done [05:27:59]KKMCreateOFDPacket [05:27:59]OFDProtocolAddRootSTLVToBuf [05:27:59]FM_MakeSignedData [05:27:59]FM_MakeSignedData [05:27:59]SAM_PROTO_SignData [05:27:59]wFMCommunicate request_size=4 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 0D 01 02 [05:27:59]Write to MH i2c: E2 08 00 F4 96 80 0D 01 02 00 00 00 00 03 [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 F4 96 00 90 00 FE [05:27:59]RAPDU: 90 00 [05:27:59]wFMCommunicate OK [05:27:59]wFMCommunicate request_size=255 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F4 37 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 89 02 00 35 04 06 00 A8 19 01 8C [05:27:59]Write to MH i2c: E2 02 01 F5 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F4 37 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 89 02 00 35 04 06 00 A8 19 01 8C 00 00 20 [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 F5 96 00 90 00 FF [05:27:59]RAPDU: 90 00 [05:27:59]wFMCommunicate OK [05:27:59]wFMCommunicate request_size=7 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 0D 02 02 02 60 B9 [05:27:59]Write to MH i2c: E2 0A 00 F6 96 80 0D 02 02 02 00 60 B9 00 00 23 [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 03 00 F6 96 00 90 00 00 [05:27:59]RAPDU: 90 00 [05:27:59]wFMCommunicate OK [05:27:59]wFMCommunicate request_size=4 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 0D 03 02 [05:27:59]Write to MH i2c: E2 08 00 F7 96 80 0D 03 02 00 00 00 00 08 [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 0B 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 0B 00 F7 96 00 63 5B BD 1D D3 2D 52 57 90 00 4A [05:27:59]RAPDU: 63 5B BD 1D D3 2D 52 57 90 00 [05:27:59]wFMCommunicate OK [05:27:59]SAM_PROTO_SignData done [05:27:59]FM_MakeSignedData done [05:27:59]CreateOFDProtocolMessage [05:27:59]wFMCommunicate request_size=4 [05:27:59]MH_SAM_APDU [05:27:59]CAPDU: 80 11 00 00 [05:27:59]Write to MH i2c: E2 08 00 F8 96 80 11 00 00 00 00 00 00 08 [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:59]Read from MH i2c: E2 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 17 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: E2 17 00 F8 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [05:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:27:59]wFMCommunicate OK [05:27:59]CreateOFDProtocolMessage done [05:27:59]OFDSenderStorePacket 166262 [05:27:59]StoreOFDPacket docnum=166262 [05:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 62 F1 04 01 5D 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F4 37 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 89 02 00 35 04 06 00 A8 19 01 8C 60 B9 63 5B BD 1D D3 2D 52 57 [05:27:59]CheckFolder [05:27:59]dirname=/storage/ofd_packets [05:27:59]CheckFolder done [05:27:59]ProducePacketName [05:27:59]name=ofd_packets/00166262 [05:27:59]NVStorageSaveData ofd_packets/00166262 [05:27:59]File name is /storage/ofd_packets/00166262 [05:27:59]Write 298 bytes [05:27:59]NVStorageSaveData done [05:27:59]OFDSenderStorePacket done [05:27:59]KKMCreateOFDPacket done [05:27:59]NVStorageSaveData kkm_last_timestamp [05:27:59]File name is /storage/kkm_last_timestamp [05:27:59]Write 4 bytes [05:27:59]NVStorageSaveData done [05:27:59]ExternCall_PrintAddStr [05:27:59]wPrintStart [05:27:59]Write to MH i2c: 01 00 00 F9 96 8F [05:27:59]Write i2c OK [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: 01 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: 01 07 00 [05:27:59]MH_I2C_Read... [05:27:59]Read from MH i2c: 01 07 00 F9 96 00 00 00 00 00 FF 0F A4 [05:27:59]RasterBufferAndPrint [05:27:59]line Счет N : (1)220836 [05:27:59]line ИНН: 02508201610067 [05:27:59]line Контрольно-Кассовый Чек [05:27:59]line ПРОДАЖА [05:27:59]line ТРК (МРК, ГНК) : 21 [05:27:59]line Товар: 2710194210 [05:27:59]line ДТ-К-5 [05:27:59]line 15.750 * 76.20 [05:27:59]line = 1200.15 [05:27:59]line НДС 12% НСП 1% [05:27:59]line > о реализуемом товаре [05:27:59]line ОКРУГЛЕНИЕ: -0.15 [05:27:59]line ИТОГО: 1200.00 [05:27:59]line Внесено: 1200.00 [05:27:59]line СДАЧА: 0.00 [05:27:59]line НСП 1% : 10.62 [05:27:59]line НДС 12% : 127.45 [05:27:59]line Наличными: 1200.00 [05:27:59]line Безнал.: 0.00 [05:27:59]line Место: АЗС № 161 "Партнер Нефть" [05:27:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:27:59]line СНО: Общий режим [05:27:59]line Чек 17 22.10.2024 05:28 [05:27:59]line Смена: 536 ФФД: 1.0 [05:27:59]line ЗНМ: 0300000104 [05:27:59]line РНМ: 0000000000091764 [05:27:59]line Версия ККМ: 001 [05:27:59]line ФМ: 0000000000871759 [05:27:59]line ФД: 166262 [05:27:59]line ФПД: 184825353625785 [05:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166262&fm=184825353625785&tin=02508201610067®Number=0000000000091764&sum=120000 [05:27:59]OFD Sender: Processing packet 166262 [packets to send 48, broken 47] [05:27:59]ProducePacketName [05:27:59]name=ofd_packets/00166262 [05:27:59]OFD Sender: To server: pG, [05:27:59]CommunicateWithHost lk.salyk.kg:30040 [05:27:59]ConnectInit lk.salyk.kg [05:27:59]written 0, free lines is 4095 [05:28:00]Connected sock=7 [05:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 62 F1 04 01 5D 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F4 37 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 89 02 00 35 04 06 00 A8 19 01 8C 60 B9 63 5B BD 1D D3 2D 52 57 [05:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 15 47 00 E5 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 89 02 00 F4 03 04 00 60 DE 16 67 B6 04 01 00 00 AD CF 4D EA D6 9F 37 F3 [05:28:00]CommunicateWithHost err = 0 [05:28:00]CheckOFDResponse [05:28:00]1017 (14) - 77093643461234 [05:28:00]1041 (16) - 0000000000871759 [05:28:00]1040 (4) - 166262 [05:28:00]1012 (4) - 21.10.2024 23:06 [05:28:00]1206 (1) - 0 [05:28:00]OFD Sender: Remove packet 166262 [05:28:00]ProducePacketName [05:28:00]name=ofd_packets/00166262 [05:28:00]NVStorageDeleteData [05:28:00]Write to MH i2c: 01 00 00 24 97 BB [05:28:00]Write i2c OK [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: 01 [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: 01 07 00 [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: 01 07 00 24 97 00 00 00 00 00 C0 0C 8E [05:28:00]RasterBufferAndPrint [05:28:00]line [05:28:00]line [05:28:00]line [05:28:00]line [05:28:00]line [05:28:00]written 0, free lines is 3271 [05:28:00]MH_Cut [05:28:00]Write to MH i2c: D1 01 00 2B 97 01 94 [05:28:00]Write i2c OK [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: D1 [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: D1 01 00 [05:28:00]MH_I2C_Read... [05:28:00]Read from MH i2c: D1 01 00 2B 97 00 93 [05:28:00]Write to MH i2c: 01 00 00 2C 97 C3 [05:28:00]Write i2c OK [05:28:00]MH_I2C_Read... [05:28:00]OFD Sender: No OFD packet to send [05:28:01]*** Cut start [05:28:01]*** Partial cut [05:28:01]*** CUTSNS_PIN = 1 [05:28:01]*** CUTSNS_PIN = 0 [05:28:01]*** Brake cut motor [05:28:01]Read from MH i2c: 01 [05:28:01]MH_I2C_Read... [05:28:01]*** Stop cut motor [05:28:01]*** Cut end [05:28:01]Read from MH i2c: 01 07 00 [05:28:01]MH_I2C_Read... [05:28:01]Read from MH i2c: 01 07 00 2C 97 00 00 00 00 00 FF 0F D8 [05:28:01]process_action close_receipt done [05:28:01]requested_data is exist [05:28:01]produce_requested_data [05:28:01]requested_item fm.sn is exist - process it [05:28:01]wFMCommunicate request_size=4 [05:28:01]MH_SAM_APDU [05:28:01]CAPDU: 80 11 00 00 [05:28:01]Write to MH i2c: E2 08 00 2D 97 80 11 00 00 00 00 00 00 3E [05:28:01]Write i2c OK [05:28:01]MH_I2C_Read... [05:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:01]Read from MH i2c: E2 [05:28:01]MH_I2C_Read... [05:28:01]Read from MH i2c: E2 17 00 [05:28:01]MH_I2C_Read... [05:28:01]Read from MH i2c: E2 17 00 2D 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [05:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:28:01]wFMCommunicate OK [05:28:01]requested_item fd.num is exist - process it [05:28:01]SAM_PROTO_GetFieldsCounters [05:28:01]wFMCommunicate request_size=4 [05:28:01]MH_SAM_APDU [05:28:01]CAPDU: 80 13 00 00 [05:28:01]Write to MH i2c: E2 08 00 2E 97 80 13 00 00 00 00 00 00 41 [05:28:01]Write i2c OK [05:28:01]MH_I2C_Read... [05:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:02]Read from MH i2c: E2 [05:28:02]MH_I2C_Read... [05:28:02]Read from MH i2c: E2 62 00 [05:28:02]MH_I2C_Read... [05:28:02]Read from MH i2c: E2 62 00 2E 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [05:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:02]wFMCommunicate OK [05:28:02]SAM_PROTO_GetFieldsCounters done [05:28:02]requested_item shift.num is exist - process it [05:28:02]requested_item shift.opened is exist - process it [05:28:02]req_shift_opened [05:28:02]FM_GetShiftState [05:28:02]SAM_PROTO_GetShiftState [05:28:02]wFMCommunicate request_size=4 [05:28:02]MH_SAM_APDU [05:28:02]CAPDU: 80 13 01 00 [05:28:02]Write to MH i2c: E2 08 00 2F 97 80 13 01 00 00 00 00 00 43 [05:28:02]Write i2c OK [05:28:02]MH_I2C_Read... [05:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:02]Read from MH i2c: E2 [05:28:02]MH_I2C_Read... [05:28:02]Read from MH i2c: E2 0E 00 [05:28:02]MH_I2C_Read... [05:28:02]Read from MH i2c: E2 0E 00 2F 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 96 [05:28:02]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:28:02]wFMCommunicate OK [05:28:02]SAM_PROTO_GetShiftState done [05:28:02]FM_GetShiftState done [05:28:02]req_shift_opened done [05:28:02]requested_item shift.open_date is exist - process it [05:28:02]req_shift_open_date [05:28:02]req_shift_open_date done [05:28:02]produce_requested_data done [05:28:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166262,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:28:02]process_action_free close_receipt [05:28:02]json_value_free [05:28:02]json_value_free done [05:28:02]process_json_proto returns [05:28:02]Send response to host [05:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166262,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:28:02]free response buf [05:28:02]execute_script done [05:28:02]execute_script returns [05:28:02]free content buf [05:28:02]Sock 5.Close socket [05:28:02]Sock 5.Thread stoped [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:29:57]accept exits with 6 [05:29:57]New connection [05:29:57]New thread 3066776932 created [05:29:57]Thread 3066920292 joined [05:29:57]Waiting for new connection... [05:29:57] Sock 6.Parse request [05:29:57]Sock 6.Check first char [05:29:57]Sock 6.First char is OK [05:29:57]request: POST /json_proto HTTP/1.0 [05:29:57]Method: POST [05:29:57]URL: /json_proto [05:29:57]Method is POST - this is cgi request [05:29:57]url: /json_proto [05:29:57]query_string will be loaded in cgi processing [05:29:57]execute_cgi json_proto POST (null) [05:29:57]execute_cgi path=json_proto method=POST [05:29:57]POST find Content-Length [05:29:57]Host: 172.17.53.195:8080 [05:29:57]Content-Length: 766 [05:29:57]Content-Type: application/json [05:29:57] [05:29:57]POST finish read [05:29:57]Found Content-Length = 766 [05:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:57]execute_script... [05:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:57]POST & json_proto [05:29:57]process_json_proto [05:29:57]json parsed OK: [05:29:57]protocol is kg_v1.0 [05:29:57]action value=close_receipt [05:29:57]process_action close_receipt [05:29:57]cmd_close_receipt [05:29:57]MH_GetDate [05:29:57]Write to MH i2c: F0 00 00 30 97 B6 [05:29:57]Write i2c OK [05:29:57]MH_I2C_Read... [05:29:57]Read from MH i2c: F0 [05:29:57]MH_I2C_Read... [05:29:57]Read from MH i2c: F0 09 00 [05:29:57]MH_I2C_Read... [05:29:57]Read from MH i2c: F0 09 00 30 97 00 6B 38 17 67 21 48 4A 65 F8 [05:29:57]GetLastDocTimeStamp 1729574900 [05:29:57]current date 1729575019 [05:29:57]FM_GetShiftState [05:29:57]SAM_PROTO_GetShiftState [05:29:57]wFMCommunicate request_size=4 [05:29:57]MH_SAM_APDU [05:29:57]CAPDU: 80 13 01 00 [05:29:57]Write to MH i2c: E2 08 00 31 97 80 13 01 00 00 00 00 00 45 [05:29:57]Write i2c OK [05:29:57]MH_I2C_Read... [05:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:57]Read from MH i2c: E2 [05:29:57]MH_I2C_Read... [05:29:57]Read from MH i2c: E2 0E 00 [05:29:57]MH_I2C_Read... [05:29:57]Read from MH i2c: E2 0E 00 31 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 98 [05:29:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:29:57]wFMCommunicate OK [05:29:57]SAM_PROTO_GetShiftState done [05:29:57]FM_GetShiftState done [05:29:57]opened in 1729557463 [05:29:57]opened+sec_in_day 1729643863 [05:29:57]quantity*price = 50010 [05:29:57]sum+1 = 50012 [05:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 18 22.10.2024 05:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166263 ФПД: 189633935653487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053019&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166263&fm=189633935653487&tin=02508201610067®Number=0000000000091764&sum=50011 [05:29:58]StoreToDocumentArchive [05:29:58]shift 536 fd 166263 [05:29:58]save to /storage/0536/doc_00166263 [05:29:58]save last doc name /storage/0536/doc_00166263 to /storage/kkm_last_doc_name [05:29:58]save OK [05:29:58]Clear old archive folders... [05:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:29:58]tlvbuf is 014B2E60 [05:29:58]SAM_PROTO_ClearQueue [05:29:58]wFMCommunicate request_size=4 [05:29:58]MH_SAM_APDU [05:29:58]CAPDU: 80 09 00 00 [05:29:58]Write to MH i2c: E2 08 00 3E 97 80 09 00 00 00 00 00 00 47 [05:29:58]Write i2c OK [05:29:58]MH_I2C_Read... [05:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:29:58]Read from MH i2c: E2 [05:29:58]MH_I2C_Read... [05:29:58]Read from MH i2c: E2 03 00 [05:29:58]MH_I2C_Read... [05:29:58]Read from MH i2c: E2 03 00 3E 97 00 90 00 49 [05:29:58]RAPDU: 90 00 [05:29:58]wFMCommunicate OK [05:29:58]SAM_PROTO_ClearQueue done [05:29:58]KKMCreateOFDPacket [05:29:58]OFDProtocolAddRootSTLVToBuf [05:29:58]FM_MakeSignedData [05:29:58]FM_MakeSignedData [05:29:58]SAM_PROTO_SignData [05:29:58]wFMCommunicate request_size=4 [05:29:58]MH_SAM_APDU [05:29:58]CAPDU: 80 0D 01 02 [05:29:58]Write to MH i2c: E2 08 00 3F 97 80 0D 01 02 00 00 00 00 4F [05:29:58]Write i2c OK [05:29:58]MH_I2C_Read... [05:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:29:58]Read from MH i2c: E2 [05:29:58]MH_I2C_Read... [05:29:58]Read from MH i2c: E2 03 00 [05:29:58]MH_I2C_Read... [05:29:58]Read from MH i2c: E2 03 00 3F 97 00 90 00 4A [05:29:58]RAPDU: 90 00 [05:29:58]wFMCommunicate OK [05:29:58]wFMCommunicate request_size=255 [05:29:58]MH_SAM_APDU [05:29:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 38 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 89 02 00 35 04 06 00 AC [05:29:58]Write to MH i2c: E2 02 01 40 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 38 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 89 02 00 35 04 06 00 AC 00 00 CE [05:29:58]Write i2c OK [05:29:58]MH_I2C_Read... [05:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:59]Read from MH i2c: E2 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 03 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 03 00 40 97 00 90 00 4B [05:29:59]RAPDU: 90 00 [05:29:59]wFMCommunicate OK [05:29:59]wFMCommunicate request_size=10 [05:29:59]MH_SAM_APDU [05:29:59]CAPDU: 80 0D 02 02 05 78 97 5F 3A 6F [05:29:59]Write to MH i2c: E2 0D 00 41 97 80 0D 02 02 05 00 78 97 5F 3A 6F 00 00 73 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:59]Read from MH i2c: E2 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 03 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 03 00 41 97 00 90 00 4C [05:29:59]RAPDU: 90 00 [05:29:59]wFMCommunicate OK [05:29:59]wFMCommunicate request_size=4 [05:29:59]MH_SAM_APDU [05:29:59]CAPDU: 80 0D 03 02 [05:29:59]Write to MH i2c: E2 08 00 42 97 80 0D 03 02 00 00 00 00 54 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:29:59]Read from MH i2c: E2 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 0B 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 0B 00 42 97 00 63 17 B3 80 D2 75 38 BC 90 00 3D [05:29:59]RAPDU: 63 17 B3 80 D2 75 38 BC 90 00 [05:29:59]wFMCommunicate OK [05:29:59]SAM_PROTO_SignData done [05:29:59]FM_MakeSignedData done [05:29:59]CreateOFDProtocolMessage [05:29:59]wFMCommunicate request_size=4 [05:29:59]MH_SAM_APDU [05:29:59]CAPDU: 80 11 00 00 [05:29:59]Write to MH i2c: E2 08 00 43 97 80 11 00 00 00 00 00 00 54 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:29:59]Read from MH i2c: E2 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 17 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 17 00 43 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [05:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:29:59]wFMCommunicate OK [05:29:59]CreateOFDProtocolMessage done [05:29:59]OFDSenderStorePacket 166263 [05:29:59]StoreOFDPacket docnum=166263 [05:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 13 07 01 18 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 38 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 89 02 00 35 04 06 00 AC 78 97 5F 3A 6F 63 17 B3 80 D2 75 38 BC [05:29:59]CheckFolder [05:29:59]dirname=/storage/ofd_packets [05:29:59]CheckFolder done [05:29:59]ProducePacketName [05:29:59]name=ofd_packets/00166263 [05:29:59]NVStorageSaveData ofd_packets/00166263 [05:29:59]File name is /storage/ofd_packets/00166263 [05:29:59]Write 301 bytes [05:29:59]NVStorageSaveData done [05:29:59]OFDSenderStorePacket done [05:29:59]KKMCreateOFDPacket done [05:29:59]NVStorageSaveData kkm_last_timestamp [05:29:59]File name is /storage/kkm_last_timestamp [05:29:59]Write 4 bytes [05:29:59]NVStorageSaveData done [05:29:59]ExternCall_PrintAddStr [05:29:59]wPrintStart [05:29:59]Write to MH i2c: 01 00 00 44 97 DB [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 07 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 07 00 44 97 00 00 00 00 00 FF 0F F0 [05:29:59]RasterBufferAndPrint [05:29:59]line Счет N : (1)220837 [05:29:59]line ИНН: 02508201610067 [05:29:59]line Контрольно-Кассовый Чек [05:29:59]line ПРОДАЖА [05:29:59]line ТРК (МРК, ГНК) : 44 [05:29:59]line Товар: 2710124500 [05:29:59]line Аи-95-К-5 [05:29:59]line 6.740 * 74.20 [05:29:59]line = 500.11 [05:29:59]line НДС 12% НСП 1% [05:29:59]line > о реализуемом товаре [05:29:59]line ИТОГО: 500.11 [05:29:59]line НСП 1% : 4.43 [05:29:59]line НДС 12% : 53.11 [05:29:59]line Наличными: 0.00 [05:29:59]line Безнал.: 500.11 [05:29:59]line Место: АЗС № 161 "Партнер Нефть" [05:29:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:29:59]line СНО: Общий режим [05:29:59]line Чек 18 22.10.2024 05:30 [05:29:59]line Смена: 536 ФФД: 1.0 [05:29:59]line ЗНМ: 0300000104 [05:29:59]line РНМ: 0000000000091764 [05:29:59]line Версия ККМ: 001 [05:29:59]line Платежная система: Mbank [05:29:59]line ФМ: 0000000000871759 [05:29:59]line ФД: 166263 [05:29:59]line ФПД: 189633935653487 [05:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053019&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166263&fm=189633935653487&tin=02508201610067®Number=0000000000091764&sum=50011 [05:29:59]written 0, free lines is 4095 [05:29:59]OFD Sender: Processing packet 166263 [packets to send 48, broken 47] [05:29:59]ProducePacketName [05:29:59]name=ofd_packets/00166263 [05:29:59]OFD Sender: To server: pG, [05:29:59]CommunicateWithHost lk.salyk.kg:30040 [05:29:59]ConnectInit lk.salyk.kg [05:29:59]Connected sock=7 [05:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 13 07 01 18 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 38 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 89 02 00 35 04 06 00 AC 78 97 5F 3A 6F 63 17 B3 80 D2 75 38 BC [05:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AA 5C 47 00 C4 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 89 02 00 F4 03 04 00 D7 DE 16 67 B6 04 01 00 00 B4 BB 23 2E 47 A6 C0 5F [05:29:59]CommunicateWithHost err = 0 [05:29:59]CheckOFDResponse [05:29:59]1017 (14) - 77093643461234 [05:29:59]1041 (16) - 0000000000871759 [05:29:59]1040 (4) - 166263 [05:29:59]1012 (4) - 21.10.2024 23:08 [05:29:59]1206 (1) - 0 [05:29:59]OFD Sender: Remove packet 166263 [05:29:59]ProducePacketName [05:29:59]name=ofd_packets/00166263 [05:29:59]NVStorageDeleteData [05:29:59]Write to MH i2c: 01 00 00 6D 97 04 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 07 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: 01 07 00 6D 97 00 00 00 00 00 E7 0C FE [05:29:59]RasterBufferAndPrint [05:29:59]line [05:29:59]line [05:29:59]line [05:29:59]line [05:29:59]line [05:29:59]written 0, free lines is 3310 [05:29:59]MH_Cut [05:29:59]Write to MH i2c: D1 01 00 74 97 01 DD [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: D1 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: D1 01 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: D1 01 00 74 97 00 DC [05:29:59]Write to MH i2c: 01 00 00 75 97 0C [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:30:00]OFD Sender: No OFD packet to send [05:30:00]*** Cut start [05:30:00]*** Partial cut [05:30:00]*** CUTSNS_PIN = 1 [05:30:00]*** CUTSNS_PIN = 0 [05:30:00]*** Brake cut motor [05:30:01]Read from MH i2c: 01 [05:30:01]MH_I2C_Read... [05:30:01]*** Stop cut motor [05:30:01]*** Cut end [05:30:01]Read from MH i2c: 01 07 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 07 00 75 97 00 00 00 00 00 FF 0F 21 [05:30:01]process_action close_receipt done [05:30:01]requested_data is exist [05:30:01]produce_requested_data [05:30:01]requested_item fm.sn is exist - process it [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 11 00 00 [05:30:01]Write to MH i2c: E2 08 00 76 97 80 11 00 00 00 00 00 00 87 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 76 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [05:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:30:01]wFMCommunicate OK [05:30:01]requested_item fd.num is exist - process it [05:30:01]SAM_PROTO_GetFieldsCounters [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 13 00 00 [05:30:01]Write to MH i2c: E2 08 00 77 97 80 13 00 00 00 00 00 00 8A [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 62 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 62 00 77 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [05:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:30:01]wFMCommunicate OK [05:30:01]SAM_PROTO_GetFieldsCounters done [05:30:01]requested_item shift.num is exist - process it [05:30:01]requested_item shift.opened is exist - process it [05:30:01]req_shift_opened [05:30:01]FM_GetShiftState [05:30:01]SAM_PROTO_GetShiftState [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 13 01 00 [05:30:01]Write to MH i2c: E2 08 00 78 97 80 13 01 00 00 00 00 00 8C [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0E 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0E 00 78 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DF [05:30:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:30:01]wFMCommunicate OK [05:30:01]SAM_PROTO_GetShiftState done [05:30:01]FM_GetShiftState done [05:30:01]req_shift_opened done [05:30:01]requested_item shift.open_date is exist - process it [05:30:01]req_shift_open_date [05:30:01]req_shift_open_date done [05:30:01]produce_requested_data done [05:30:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166263,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:30:01]process_action_free close_receipt [05:30:01]json_value_free [05:30:01]json_value_free done [05:30:01]process_json_proto returns [05:30:01]Send response to host [05:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166263,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:30:01]free response buf [05:30:01]execute_script done [05:30:01]execute_script returns [05:30:01]free content buf [05:30:01]Sock 6.Close socket [05:30:01]Sock 6.Thread stoped [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:32:59]accept exits with 5 [05:32:59]New connection [05:32:59]New thread 3066920292 created [05:32:59]Thread 3066776932 joined [05:32:59]Waiting for new connection... [05:32:59] Sock 5.Parse request [05:32:59]Sock 5.Check first char [05:32:59]Sock 5.First char is OK [05:32:59]request: POST /json_proto HTTP/1.0 [05:32:59]Method: POST [05:32:59]URL: /json_proto [05:32:59]Method is POST - this is cgi request [05:32:59]url: /json_proto [05:32:59]query_string will be loaded in cgi processing [05:32:59]execute_cgi json_proto POST (null) [05:32:59]execute_cgi path=json_proto method=POST [05:32:59]POST find Content-Length [05:32:59]Host: 172.17.53.195:8080 [05:32:59]Content-Length: 679 [05:32:59]Content-Type: application/json [05:32:59] [05:32:59]POST finish read [05:32:59]Found Content-Length = 679 [05:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:59]execute_script... [05: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 : (1)220838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:59]POST & json_proto [05:32:59]process_json_proto [05:32:59]json parsed OK: [05:32:59]protocol is kg_v1.0 [05:32:59]action value=close_receipt [05:32:59]process_action close_receipt [05:32:59]cmd_close_receipt [05:32:59]MH_GetDate [05:32:59]Write to MH i2c: F0 00 00 79 97 FF [05:32:59]Write i2c OK [05:32:59]MH_I2C_Read... [05:32:59]Read from MH i2c: F0 [05:32:59]MH_I2C_Read... [05:32:59]Read from MH i2c: F0 09 00 [05:32:59]MH_I2C_Read... [05:32:59]Read from MH i2c: F0 09 00 79 97 00 21 39 17 67 21 48 4A 65 F8 [05:32:59]GetLastDocTimeStamp 1729575019 [05:32:59]current date 1729575201 [05:32:59]FM_GetShiftState [05:32:59]SAM_PROTO_GetShiftState [05:32:59]wFMCommunicate request_size=4 [05:32:59]MH_SAM_APDU [05:32:59]CAPDU: 80 13 01 00 [05:32:59]Write to MH i2c: E2 08 00 7A 97 80 13 01 00 00 00 00 00 8E [05:32:59]Write i2c OK [05:32:59]MH_I2C_Read... [05:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:59]Read from MH i2c: E2 [05:32:59]MH_I2C_Read... [05:32:59]Read from MH i2c: E2 0E 00 [05:32:59]MH_I2C_Read... [05:32:59]Read from MH i2c: E2 0E 00 7A 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E1 [05:32:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:32:59]wFMCommunicate OK [05:32:59]SAM_PROTO_GetShiftState done [05:32:59]FM_GetShiftState done [05:32:59]opened in 1729557463 [05:32:59]opened+sec_in_day 1729643863 [05:32:59]quantity*price = 150037 [05:32:59]sum+1 = 150039 [05:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 19 22.10.2024 05:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166264 ФПД: 262048079193425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053321&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166264&fm=262048079193425&tin=02508201610067®Number=0000000000091764&sum=150000 [05:33:00]StoreToDocumentArchive [05:33:00]shift 536 fd 166264 [05:33:00]save to /storage/0536/doc_00166264 [05:33:00]save last doc name /storage/0536/doc_00166264 to /storage/kkm_last_doc_name [05:33:00]save OK [05:33:00]Clear old archive folders... [05:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:33:00]tlvbuf is 01599C50 [05:33:00]SAM_PROTO_ClearQueue [05:33:00]wFMCommunicate request_size=4 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 09 00 00 [05:33:00]Write to MH i2c: E2 08 00 87 97 80 09 00 00 00 00 00 00 90 [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 87 97 00 90 00 92 [05:33:00]RAPDU: 90 00 [05:33:00]wFMCommunicate OK [05:33:00]SAM_PROTO_ClearQueue done [05:33:00]KKMCreateOFDPacket [05:33:00]OFDProtocolAddRootSTLVToBuf [05:33:00]FM_MakeSignedData [05:33:00]FM_MakeSignedData [05:33:00]SAM_PROTO_SignData [05:33:00]wFMCommunicate request_size=4 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 0D 01 02 [05:33:00]Write to MH i2c: E2 08 00 88 97 80 0D 01 02 00 00 00 00 98 [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 88 97 00 90 00 93 [05:33:00]RAPDU: 90 00 [05:33:00]wFMCommunicate OK [05:33:00]wFMCommunicate request_size=255 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 21 39 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 89 02 00 35 04 06 00 EE 54 D2 AC [05:33:00]Write to MH i2c: E2 02 01 89 97 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 21 39 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 89 02 00 35 04 06 00 EE 54 D2 AC 00 00 63 [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 89 97 00 90 00 94 [05:33:00]RAPDU: 90 00 [05:33:00]wFMCommunicate OK [05:33:00]wFMCommunicate request_size=7 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 0D 02 02 02 A5 51 [05:33:00]Write to MH i2c: E2 0A 00 8A 97 80 0D 02 02 02 00 A5 51 00 00 95 [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 03 00 8A 97 00 90 00 95 [05:33:00]RAPDU: 90 00 [05:33:00]wFMCommunicate OK [05:33:00]wFMCommunicate request_size=4 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 0D 03 02 [05:33:00]Write to MH i2c: E2 08 00 8B 97 80 0D 03 02 00 00 00 00 9D [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 0B 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 0B 00 8B 97 00 D4 8A FB 0C 89 AA EF A3 90 00 C8 [05:33:00]RAPDU: D4 8A FB 0C 89 AA EF A3 90 00 [05:33:00]wFMCommunicate OK [05:33:00]SAM_PROTO_SignData done [05:33:00]FM_MakeSignedData done [05:33:00]CreateOFDProtocolMessage [05:33:00]wFMCommunicate request_size=4 [05:33:00]MH_SAM_APDU [05:33:00]CAPDU: 80 11 00 00 [05:33:00]Write to MH i2c: E2 08 00 8C 97 80 11 00 00 00 00 00 00 9D [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:00]Read from MH i2c: E2 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 17 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: E2 17 00 8C 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [05:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:33:00]wFMCommunicate OK [05:33:00]CreateOFDProtocolMessage done [05:33:00]OFDSenderStorePacket 166264 [05:33:00]StoreOFDPacket docnum=166264 [05:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC FE 04 01 A9 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 21 39 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 89 02 00 35 04 06 00 EE 54 D2 AC A5 51 D4 8A FB 0C 89 AA EF A3 [05:33:00]CheckFolder [05:33:00]dirname=/storage/ofd_packets [05:33:00]CheckFolder done [05:33:00]ProducePacketName [05:33:00]name=ofd_packets/00166264 [05:33:00]NVStorageSaveData ofd_packets/00166264 [05:33:00]File name is /storage/ofd_packets/00166264 [05:33:00]Write 298 bytes [05:33:00]NVStorageSaveData done [05:33:00]OFDSenderStorePacket done [05:33:00]KKMCreateOFDPacket done [05:33:00]NVStorageSaveData kkm_last_timestamp [05:33:00]File name is /storage/kkm_last_timestamp [05:33:00]Write 4 bytes [05:33:00]NVStorageSaveData done [05:33:00]ExternCall_PrintAddStr [05:33:00]wPrintStart [05:33:00]Write to MH i2c: 01 00 00 8D 97 24 [05:33:00]Write i2c OK [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: 01 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: 01 07 00 [05:33:00]MH_I2C_Read... [05:33:00]Read from MH i2c: 01 07 00 8D 97 00 00 00 00 00 FF 0F 39 [05:33:00]RasterBufferAndPrint [05:33:00]line Счет N : (1)220838 [05:33:00]line ИНН: 02508201610067 [05:33:00]line Контрольно-Кассовый Чек [05:33:00]line ПРОДАЖА [05:33:00]line ТРК (МРК, ГНК) : 21 [05:33:00]line Товар: 2710194210 [05:33:00]line ДТ-К-5 [05:33:00]line 19.690 * 76.20 [05:33:00]line = 1500.38 [05:33:00]line НДС 12% НСП 1% [05:33:00]line > о реализуемом товаре [05:33:00]line ОКРУГЛЕНИЕ: -0.38 [05:33:00]line ИТОГО: 1500.00 [05:33:00]line Внесено: 1500.00 [05:33:00]line СДАЧА: 0.00 [05:33:00]line НСП 1% : 13.28 [05:33:00]line НДС 12% : 159.33 [05:33:00]line Наличными: 1500.00 [05:33:00]line Безнал.: 0.00 [05:33:00]line Место: АЗС № 161 "Партнер Нефть" [05:33:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:33:00]line СНО: Общий режим [05:33:00]line Чек 19 22.10.2024 05:33 [05:33:00]line Смена: 536 ФФД: 1.0 [05:33:00]line ЗНМ: 0300000104 [05:33:00]line РНМ: 0000000000091764 [05:33:00]line Версия ККМ: 001 [05:33:00]line ФМ: 0000000000871759 [05:33:00]line ФД: 166264 [05:33:00]line ФПД: 262048079193425 [05:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053321&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166264&fm=262048079193425&tin=02508201610067®Number=0000000000091764&sum=150000 [05:33:01]OFD Sender: Processing packet 166264 [packets to send 48, broken 47] [05:33:01]ProducePacketName [05:33:01]name=ofd_packets/00166264 [05:33:01]OFD Sender: To server: pG, [05:33:01]CommunicateWithHost lk.salyk.kg:30040 [05:33:01]ConnectInit lk.salyk.kg [05:33:01]written 0, free lines is 4095 [05:33:01]Connected sock=7 [05:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC FE 04 01 A9 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 21 39 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 89 02 00 35 04 06 00 EE 54 D2 AC A5 51 D4 8A FB 0C 89 AA EF A3 [05:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6B 94 47 00 7E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 89 02 00 F4 03 04 00 8D DF 16 67 B6 04 01 00 00 34 CC D7 8C 73 02 36 07 [05:33:01]CommunicateWithHost err = 0 [05:33:01]CheckOFDResponse [05:33:01]1017 (14) - 77093643461234 [05:33:01]1041 (16) - 0000000000871759 [05:33:01]1040 (4) - 166264 [05:33:01]1012 (4) - 21.10.2024 23:11 [05:33:01]1206 (1) - 0 [05:33:01]OFD Sender: Remove packet 166264 [05:33:01]ProducePacketName [05:33:01]name=ofd_packets/00166264 [05:33:01]NVStorageDeleteData [05:33:01]Write to MH i2c: 01 00 00 B8 97 4F [05:33:01]Write i2c OK [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: 01 [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: 01 07 00 [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: 01 07 00 B8 97 00 00 00 00 00 BB 0C 1D [05:33:01]RasterBufferAndPrint [05:33:01]line [05:33:01]line [05:33:01]line [05:33:01]line [05:33:01]line [05:33:01]written 0, free lines is 3267 [05:33:01]MH_Cut [05:33:01]Write to MH i2c: D1 01 00 BF 97 01 28 [05:33:01]Write i2c OK [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: D1 [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: D1 01 00 [05:33:01]MH_I2C_Read... [05:33:01]Read from MH i2c: D1 01 00 BF 97 00 27 [05:33:01]Write to MH i2c: 01 00 00 C0 97 57 [05:33:01]Write i2c OK [05:33:01]MH_I2C_Read... [05:33:02]OFD Sender: No OFD packet to send [05:33:02]*** Cut start [05:33:02]*** Partial cut [05:33:02]*** CUTSNS_PIN = 1 [05:33:02]*** CUTSNS_PIN = 0 [05:33:02]*** Brake cut motor [05:33:03]Read from MH i2c: 01 [05:33:03]MH_I2C_Read... [05:33:03]*** Stop cut motor [05:33:03]*** Cut end [05:33:03]Read from MH i2c: 01 07 00 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: 01 07 00 C0 97 00 00 00 00 00 FF 0F 6C [05:33:03]process_action close_receipt done [05:33:03]requested_data is exist [05:33:03]produce_requested_data [05:33:03]requested_item fm.sn is exist - process it [05:33:03]wFMCommunicate request_size=4 [05:33:03]MH_SAM_APDU [05:33:03]CAPDU: 80 11 00 00 [05:33:03]Write to MH i2c: E2 08 00 C1 97 80 11 00 00 00 00 00 00 D2 [05:33:03]Write i2c OK [05:33:03]MH_I2C_Read... [05:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:03]Read from MH i2c: E2 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 17 00 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 17 00 C1 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [05:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:33:03]wFMCommunicate OK [05:33:03]requested_item fd.num is exist - process it [05:33:03]SAM_PROTO_GetFieldsCounters [05:33:03]wFMCommunicate request_size=4 [05:33:03]MH_SAM_APDU [05:33:03]CAPDU: 80 13 00 00 [05:33:03]Write to MH i2c: E2 08 00 C2 97 80 13 00 00 00 00 00 00 D5 [05:33:03]Write i2c OK [05:33:03]MH_I2C_Read... [05:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:33:03]Read from MH i2c: E2 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 62 00 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 62 00 C2 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [05:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:33:03]wFMCommunicate OK [05:33:03]SAM_PROTO_GetFieldsCounters done [05:33:03]requested_item shift.num is exist - process it [05:33:03]requested_item shift.opened is exist - process it [05:33:03]req_shift_opened [05:33:03]FM_GetShiftState [05:33:03]SAM_PROTO_GetShiftState [05:33:03]wFMCommunicate request_size=4 [05:33:03]MH_SAM_APDU [05:33:03]CAPDU: 80 13 01 00 [05:33:03]Write to MH i2c: E2 08 00 C3 97 80 13 01 00 00 00 00 00 D7 [05:33:03]Write i2c OK [05:33:03]MH_I2C_Read... [05:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:03]Read from MH i2c: E2 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 0E 00 [05:33:03]MH_I2C_Read... [05:33:03]Read from MH i2c: E2 0E 00 C3 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2A [05:33:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:33:03]wFMCommunicate OK [05:33:03]SAM_PROTO_GetShiftState done [05:33:03]FM_GetShiftState done [05:33:03]req_shift_opened done [05:33:03]requested_item shift.open_date is exist - process it [05:33:03]req_shift_open_date [05:33:03]req_shift_open_date done [05:33:03]produce_requested_data done [05:33:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166264,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:33:03]process_action_free close_receipt [05:33:03]json_value_free [05:33:03]json_value_free done [05:33:03]process_json_proto returns [05:33:03]Send response to host [05:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166264,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:33:03]free response buf [05:33:03]execute_script done [05:33:03]execute_script returns [05:33:03]free content buf [05:33:03]Sock 5.Close socket [05:33:03]Sock 5.Thread stoped [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:19]accept exits with 6 [05:39:19]New connection [05:39:19]New thread 3066776932 created [05:39:19]Thread 3066920292 joined [05:39:19]Waiting for new connection... [05:39:19] Sock 6.Parse request [05:39:19]Sock 6.Check first char [05:39:19]Sock 6.First char is OK [05:39:19]request: POST /json_proto HTTP/1.0 [05:39:19]Method: POST [05:39:19]URL: /json_proto [05:39:19]Method is POST - this is cgi request [05:39:19]url: /json_proto [05:39:19]query_string will be loaded in cgi processing [05:39:19]execute_cgi json_proto POST (null) [05:39:19]execute_cgi path=json_proto method=POST [05:39:19]POST find Content-Length [05:39:19]Host: 172.17.53.195:8080 [05:39:19]Content-Length: 677 [05:39:19]Content-Type: application/json [05:39:19] [05:39:19]POST finish read [05:39:19]Found Content-Length = 677 [05:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:19]execute_script... [05:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:19]POST & json_proto [05:39:19]process_json_proto [05:39:19]json parsed OK: [05:39:19]protocol is kg_v1.0 [05:39:19]action value=close_receipt [05:39:19]process_action close_receipt [05:39:19]cmd_close_receipt [05:39:19]MH_GetDate [05:39:19]Write to MH i2c: F0 00 00 C4 97 4A [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: F0 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: F0 09 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: F0 09 00 C4 97 00 9D 3A 17 67 21 48 4A 65 C0 [05:39:19]GetLastDocTimeStamp 1729575201 [05:39:19]current date 1729575581 [05:39:19]FM_GetShiftState [05:39:19]SAM_PROTO_GetShiftState [05:39:19]wFMCommunicate request_size=4 [05:39:19]MH_SAM_APDU [05:39:19]CAPDU: 80 13 01 00 [05:39:19]Write to MH i2c: E2 08 00 C5 97 80 13 01 00 00 00 00 00 D9 [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:19]Read from MH i2c: E2 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 0E 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 0E 00 C5 97 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2C [05:39:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:39:19]wFMCommunicate OK [05:39:19]SAM_PROTO_GetShiftState done [05:39:19]FM_GetShiftState done [05:39:19]opened in 1729557463 [05:39:19]opened+sec_in_day 1729643863 [05:39:19]quantity*price = 50041 [05:39:19]sum+1 = 50042 [05:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 20 22.10.2024 05:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166265 ФПД: 167853131788038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053941&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166265&fm=167853131788038&tin=02508201610067®Number=0000000000091764&sum=50000 [05:39:20]StoreToDocumentArchive [05:39:20]shift 536 fd 166265 [05:39:20]save to /storage/0536/doc_00166265 [05:39:20]save last doc name /storage/0536/doc_00166265 to /storage/kkm_last_doc_name [05:39:20]save OK [05:39:20]Clear old archive folders... [05:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:39:20]tlvbuf is 01512860 [05:39:20]SAM_PROTO_ClearQueue [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 09 00 00 [05:39:20]Write to MH i2c: E2 08 00 D2 97 80 09 00 00 00 00 00 00 DB [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 D2 97 00 90 00 DD [05:39:20]RAPDU: 90 00 [05:39:20]wFMCommunicate OK [05:39:20]SAM_PROTO_ClearQueue done [05:39:20]KKMCreateOFDPacket [05:39:20]OFDProtocolAddRootSTLVToBuf [05:39:20]FM_MakeSignedData [05:39:20]FM_MakeSignedData [05:39:20]SAM_PROTO_SignData [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 0D 01 02 [05:39:20]Write to MH i2c: E2 08 00 D3 97 80 0D 01 02 00 00 00 00 E3 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 D3 97 00 90 00 DE [05:39:20]RAPDU: 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=255 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9D 3A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 89 02 00 35 04 06 00 98 [05:39:20]Write to MH i2c: E2 02 01 D4 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9D 3A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 89 02 00 35 04 06 00 98 00 00 98 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 D4 97 00 90 00 DF [05:39:20]RAPDU: 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=10 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 0D 02 02 05 A9 5A 4B 6F 06 [05:39:20]Write to MH i2c: E2 0D 00 D5 97 80 0D 02 02 05 00 A9 5A 4B 6F 06 00 00 B3 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 03 00 D5 97 00 90 00 E0 [05:39:20]RAPDU: 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 0D 03 02 [05:39:20]Write to MH i2c: E2 08 00 D6 97 80 0D 03 02 00 00 00 00 E8 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 0B 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 0B 00 D6 97 00 30 F9 2A 41 8E 3C 43 A8 90 00 32 [05:39:20]RAPDU: 30 F9 2A 41 8E 3C 43 A8 90 00 [05:39:20]wFMCommunicate OK [05:39:20]SAM_PROTO_SignData done [05:39:20]FM_MakeSignedData done [05:39:20]CreateOFDProtocolMessage [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 11 00 00 [05:39:20]Write to MH i2c: E2 08 00 D7 97 80 11 00 00 00 00 00 00 E8 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 17 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 17 00 D7 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [05:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:39:20]wFMCommunicate OK [05:39:20]CreateOFDProtocolMessage done [05:39:20]OFDSenderStorePacket 166265 [05:39:20]StoreOFDPacket docnum=166265 [05:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 33 50 07 01 1F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9D 3A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 89 02 00 35 04 06 00 98 A9 5A 4B 6F 06 30 F9 2A 41 8E 3C 43 A8 [05:39:20]CheckFolder [05:39:20]dirname=/storage/ofd_packets [05:39:20]CheckFolder done [05:39:20]ProducePacketName [05:39:20]name=ofd_packets/00166265 [05:39:20]NVStorageSaveData ofd_packets/00166265 [05:39:20]File name is /storage/ofd_packets/00166265 [05:39:20]Write 301 bytes [05:39:20]NVStorageSaveData done [05:39:20]OFDSenderStorePacket done [05:39:20]KKMCreateOFDPacket done [05:39:20]NVStorageSaveData kkm_last_timestamp [05:39:20]File name is /storage/kkm_last_timestamp [05:39:20]Write 4 bytes [05:39:20]NVStorageSaveData done [05:39:20]ExternCall_PrintAddStr [05:39:20]wPrintStart [05:39:20]Write to MH i2c: 01 00 00 D8 97 6F [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: 01 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: 01 07 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: 01 07 00 D8 97 00 00 00 00 00 FF 0F 84 [05:39:20]RasterBufferAndPrint [05:39:20]line Счет N : (1)220839 [05:39:20]line ИНН: 02508201610067 [05:39:20]line Контрольно-Кассовый Чек [05:39:20]line ПРОДАЖА [05:39:20]line ТРК (МРК, ГНК) : 33 [05:39:20]line Товар: 2710124130 [05:39:20]line Аи-92-К-5 [05:39:20]line 7.480 * 66.90 [05:39:20]line = 500.41 [05:39:20]line НДС 12% НСП 1% [05:39:20]line > о реализуемом товаре [05:39:20]line ОКРУГЛЕНИЕ: -0.41 [05:39:20]line ИТОГО: 500.00 [05:39:20]line Внесено: 500.00 [05:39:20]line СДАЧА: 0.00 [05:39:20]line НСП 1% : 4.43 [05:39:20]line НДС 12% : 53.14 [05:39:20]line Наличными: 500.00 [05:39:20]line Безнал.: 0.00 [05:39:20]line Место: АЗС № 161 "Партнер Нефть" [05:39:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:39:20]line СНО: Общий режим [05:39:20]line Чек 20 22.10.2024 05:39 [05:39:20]line Смена: 536 ФФД: 1.0 [05:39:20]line ЗНМ: 0300000104 [05:39:20]line РНМ: 0000000000091764 [05:39:20]line Версия ККМ: 001 [05:39:20]line ФМ: 0000000000871759 [05:39:20]line ФД: 166265 [05:39:20]line ФПД: 167853131788038 [05:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053941&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166265&fm=167853131788038&tin=02508201610067®Number=0000000000091764&sum=50000 [05:39:21]OFD Sender: Processing packet 166265 [packets to send 48, broken 47] [05:39:21]ProducePacketName [05:39:21]name=ofd_packets/00166265 [05:39:21]OFD Sender: To server: pG, [05:39:21]CommunicateWithHost lk.salyk.kg:30040 [05:39:21]ConnectInit lk.salyk.kg [05:39:21]written 0, free lines is 4095 [05:39:21]Connected sock=7 [05:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 33 50 07 01 1F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 9D 3A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 89 02 00 35 04 06 00 98 A9 5A 4B 6F 06 30 F9 2A 41 8E 3C 43 A8 [05:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 78 47 00 DD 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 89 02 00 F4 03 04 00 09 E1 16 67 B6 04 01 00 00 65 A9 3D 2F A5 A2 C2 72 [05:39:21]CommunicateWithHost err = 0 [05:39:21]CheckOFDResponse [05:39:21]1017 (14) - 77093643461234 [05:39:21]1041 (16) - 0000000000871759 [05:39:21]1040 (4) - 166265 [05:39:21]1012 (4) - 21.10.2024 23:17 [05:39:21]1206 (1) - 0 [05:39:21]OFD Sender: Remove packet 166265 [05:39:21]ProducePacketName [05:39:21]name=ofd_packets/00166265 [05:39:21]NVStorageDeleteData [05:39:21]Write to MH i2c: 01 00 00 03 98 9B [05:39:21]Write i2c OK [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: 01 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: 01 07 00 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: 01 07 00 03 98 00 00 00 00 00 C7 0C 75 [05:39:21]RasterBufferAndPrint [05:39:21]line [05:39:21]line [05:39:21]line [05:39:21]line [05:39:21]line [05:39:21]written 0, free lines is 3277 [05:39:21]MH_Cut [05:39:21]Write to MH i2c: D1 01 00 0A 98 01 74 [05:39:21]Write i2c OK [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: D1 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: D1 01 00 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: D1 01 00 0A 98 00 73 [05:39:21]Write to MH i2c: 01 00 00 0B 98 A3 [05:39:21]Write i2c OK [05:39:21]MH_I2C_Read... [05:39:21]OFD Sender: No OFD packet to send [05:39:22]*** Cut start [05:39:22]*** Partial cut [05:39:22]*** CUTSNS_PIN = 1 [05:39:22]*** CUTSNS_PIN = 0 [05:39:22]*** Brake cut motor [05:39:23]Read from MH i2c: 01 [05:39:23]MH_I2C_Read... [05:39:23]*** Stop cut motor [05:39:23]*** Cut end [05:39:23]Read from MH i2c: 01 07 00 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: 01 07 00 0B 98 00 00 00 00 00 FF 0F B8 [05:39:23]process_action close_receipt done [05:39:23]requested_data is exist [05:39:23]produce_requested_data [05:39:23]requested_item fm.sn is exist - process it [05:39:23]wFMCommunicate request_size=4 [05:39:23]MH_SAM_APDU [05:39:23]CAPDU: 80 11 00 00 [05:39:23]Write to MH i2c: E2 08 00 0C 98 80 11 00 00 00 00 00 00 1E [05:39:23]Write i2c OK [05:39:23]MH_I2C_Read... [05:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:23]Read from MH i2c: E2 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 17 00 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 17 00 0C 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [05:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:39:23]wFMCommunicate OK [05:39:23]requested_item fd.num is exist - process it [05:39:23]SAM_PROTO_GetFieldsCounters [05:39:23]wFMCommunicate request_size=4 [05:39:23]MH_SAM_APDU [05:39:23]CAPDU: 80 13 00 00 [05:39:23]Write to MH i2c: E2 08 00 0D 98 80 13 00 00 00 00 00 00 21 [05:39:23]Write i2c OK [05:39:23]MH_I2C_Read... [05:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:39:23]Read from MH i2c: E2 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 62 00 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 62 00 0D 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [05:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:39:23]wFMCommunicate OK [05:39:23]SAM_PROTO_GetFieldsCounters done [05:39:23]requested_item shift.num is exist - process it [05:39:23]requested_item shift.opened is exist - process it [05:39:23]req_shift_opened [05:39:23]FM_GetShiftState [05:39:23]SAM_PROTO_GetShiftState [05:39:23]wFMCommunicate request_size=4 [05:39:23]MH_SAM_APDU [05:39:23]CAPDU: 80 13 01 00 [05:39:23]Write to MH i2c: E2 08 00 0E 98 80 13 01 00 00 00 00 00 23 [05:39:23]Write i2c OK [05:39:23]MH_I2C_Read... [05:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:23]Read from MH i2c: E2 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 0E 00 [05:39:23]MH_I2C_Read... [05:39:23]Read from MH i2c: E2 0E 00 0E 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 76 [05:39:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:39:23]wFMCommunicate OK [05:39:23]SAM_PROTO_GetShiftState done [05:39:23]FM_GetShiftState done [05:39:23]req_shift_opened done [05:39:23]requested_item shift.open_date is exist - process it [05:39:23]req_shift_open_date [05:39:23]req_shift_open_date done [05:39:23]produce_requested_data done [05:39:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166265,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:39:23]process_action_free close_receipt [05:39:23]json_value_free [05:39:23]json_value_free done [05:39:23]process_json_proto returns [05:39:23]Send response to host [05:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166265,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:39:23]free response buf [05:39:23]execute_script done [05:39:23]execute_script returns [05:39:23]free content buf [05:39:23]Sock 6.Close socket [05:39:23]Sock 6.Thread stoped [05:39:26]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:18]recv_with_timeout no data received [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:49]accept exits with 5 [05:49:49]New connection [05:49:49]New thread 3066920292 created [05:49:49]Thread 3066776932 joined [05:49:49]Waiting for new connection... [05:49:49] Sock 5.Parse request [05:49:49]Sock 5.Check first char [05:49:49]Sock 5.First char is OK [05:49:49]request: POST /json_proto HTTP/1.0 [05:49:49]Method: POST [05:49:49]URL: /json_proto [05:49:49]Method is POST - this is cgi request [05:49:49]url: /json_proto [05:49:49]query_string will be loaded in cgi processing [05:49:49]execute_cgi json_proto POST (null) [05:49:49]execute_cgi path=json_proto method=POST [05:49:49]POST find Content-Length [05:49:49]Host: 172.17.53.195:8080 [05:49:49]Content-Length: 679 [05:49:49]Content-Type: application/json [05:49:49] [05:49:49]POST finish read [05:49:49]Found Content-Length = 679 [05:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:49]execute_script... [05:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:49]POST & json_proto [05:49:49]process_json_proto [05:49:49]json parsed OK: [05:49:49]protocol is kg_v1.0 [05:49:49]action value=close_receipt [05:49:49]process_action close_receipt [05:49:49]cmd_close_receipt [05:49:49]MH_GetDate [05:49:49]Write to MH i2c: F0 00 00 0F 98 96 [05:49:49]Write i2c OK [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: F0 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: F0 09 00 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: F0 09 00 0F 98 00 13 3D 17 67 21 48 4A 65 85 [05:49:49]GetLastDocTimeStamp 1729575581 [05:49:49]current date 1729576211 [05:49:49]FM_GetShiftState [05:49:49]SAM_PROTO_GetShiftState [05:49:49]wFMCommunicate request_size=4 [05:49:49]MH_SAM_APDU [05:49:49]CAPDU: 80 13 01 00 [05:49:49]Write to MH i2c: E2 08 00 10 98 80 13 01 00 00 00 00 00 25 [05:49:49]Write i2c OK [05:49:49]MH_I2C_Read... [05:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:49]Read from MH i2c: E2 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: E2 0E 00 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: E2 0E 00 10 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 78 [05:49:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:49:49]wFMCommunicate OK [05:49:49]SAM_PROTO_GetShiftState done [05:49:49]FM_GetShiftState done [05:49:49]opened in 1729557463 [05:49:49]opened+sec_in_day 1729643863 [05:49:49]quantity*price = 200025 [05:49:49]sum+1 = 200026 [05:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 21 22.10.2024 05:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166266 ФПД: 224429991249965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166266&fm=224429991249965&tin=02508201610067®Number=0000000000091764&sum=200000 [05:49:50]StoreToDocumentArchive [05:49:50]shift 536 fd 166266 [05:49:50]save to /storage/0536/doc_00166266 [05:49:50]save last doc name /storage/0536/doc_00166266 to /storage/kkm_last_doc_name [05:49:50]save OK [05:49:50]Clear old archive folders... [05:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:49:50]tlvbuf is 01971560 [05:49:50]SAM_PROTO_ClearQueue [05:49:50]wFMCommunicate request_size=4 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 09 00 00 [05:49:50]Write to MH i2c: E2 08 00 1D 98 80 09 00 00 00 00 00 00 27 [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 1D 98 00 90 00 29 [05:49:50]RAPDU: 90 00 [05:49:50]wFMCommunicate OK [05:49:50]SAM_PROTO_ClearQueue done [05:49:50]KKMCreateOFDPacket [05:49:50]OFDProtocolAddRootSTLVToBuf [05:49:50]FM_MakeSignedData [05:49:50]FM_MakeSignedData [05:49:50]SAM_PROTO_SignData [05:49:50]wFMCommunicate request_size=4 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 0D 01 02 [05:49:50]Write to MH i2c: E2 08 00 1E 98 80 0D 01 02 00 00 00 00 2F [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 1E 98 00 90 00 2A [05:49:50]RAPDU: 90 00 [05:49:50]wFMCommunicate OK [05:49:50]wFMCommunicate request_size=255 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 89 02 00 35 04 06 00 CC 1E 2D E7 [05:49:50]Write to MH i2c: E2 02 01 1F 98 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 89 02 00 35 04 06 00 CC 1E 2D E7 00 00 A9 [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 1F 98 00 90 00 2B [05:49:50]RAPDU: 90 00 [05:49:50]wFMCommunicate OK [05:49:50]wFMCommunicate request_size=7 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 0D 02 02 02 C8 2D [05:49:50]Write to MH i2c: E2 0A 00 20 98 80 0D 02 02 02 00 C8 2D 00 00 2B [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 03 00 20 98 00 90 00 2C [05:49:50]RAPDU: 90 00 [05:49:50]wFMCommunicate OK [05:49:50]wFMCommunicate request_size=4 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 0D 03 02 [05:49:50]Write to MH i2c: E2 08 00 21 98 80 0D 03 02 00 00 00 00 34 [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 0B 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 0B 00 21 98 00 57 DD 8B 84 6A D9 63 F2 90 00 10 [05:49:50]RAPDU: 57 DD 8B 84 6A D9 63 F2 90 00 [05:49:50]wFMCommunicate OK [05:49:50]SAM_PROTO_SignData done [05:49:50]FM_MakeSignedData done [05:49:50]CreateOFDProtocolMessage [05:49:50]wFMCommunicate request_size=4 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 11 00 00 [05:49:50]Write to MH i2c: E2 08 00 22 98 80 11 00 00 00 00 00 00 34 [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 17 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 17 00 22 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [05:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:49:50]wFMCommunicate OK [05:49:50]CreateOFDProtocolMessage done [05:49:50]OFDSenderStorePacket 166266 [05:49:50]StoreOFDPacket docnum=166266 [05:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 55 04 01 55 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 89 02 00 35 04 06 00 CC 1E 2D E7 C8 2D 57 DD 8B 84 6A D9 63 F2 [05:49:50]CheckFolder [05:49:50]dirname=/storage/ofd_packets [05:49:50]CheckFolder done [05:49:50]ProducePacketName [05:49:50]name=ofd_packets/00166266 [05:49:50]NVStorageSaveData ofd_packets/00166266 [05:49:50]File name is /storage/ofd_packets/00166266 [05:49:50]Write 298 bytes [05:49:50]NVStorageSaveData done [05:49:50]OFDSenderStorePacket done [05:49:50]KKMCreateOFDPacket done [05:49:50]NVStorageSaveData kkm_last_timestamp [05:49:50]File name is /storage/kkm_last_timestamp [05:49:50]Write 4 bytes [05:49:50]NVStorageSaveData done [05:49:50]ExternCall_PrintAddStr [05:49:50]wPrintStart [05:49:50]Write to MH i2c: 01 00 00 23 98 BB [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: 01 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: 01 07 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: 01 07 00 23 98 00 00 00 00 00 FF 0F D0 [05:49:50]RasterBufferAndPrint [05:49:50]line Счет N : (1)220840 [05:49:50]line ИНН: 02508201610067 [05:49:50]line Контрольно-Кассовый Чек [05:49:50]line ПРОДАЖА [05:49:50]line ТРК (МРК, ГНК) : 41 [05:49:50]line Товар: 2710194210 [05:49:50]line ДТ-К-5 [05:49:50]line 26.250 * 76.20 [05:49:50]line = 2000.25 [05:49:50]line НДС 12% НСП 1% [05:49:50]line > о реализуемом товаре [05:49:50]line ОКРУГЛЕНИЕ: -0.25 [05:49:50]line ИТОГО: 2000.00 [05:49:50]line Внесено: 2000.00 [05:49:50]line СДАЧА: 0.00 [05:49:50]line НСП 1% : 17.70 [05:49:50]line НДС 12% : 212.42 [05:49:50]line Наличными: 2000.00 [05:49:50]line Безнал.: 0.00 [05:49:50]line Место: АЗС № 161 "Партнер Нефть" [05:49:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:49:50]line СНО: Общий режим [05:49:50]line Чек 21 22.10.2024 05:50 [05:49:50]line Смена: 536 ФФД: 1.0 [05:49:50]line ЗНМ: 0300000104 [05:49:50]line РНМ: 0000000000091764 [05:49:50]line Версия ККМ: 001 [05:49:50]line ФМ: 0000000000871759 [05:49:50]line ФД: 166266 [05:49:50]line ФПД: 224429991249965 [05:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166266&fm=224429991249965&tin=02508201610067®Number=0000000000091764&sum=200000 [05:49:51]OFD Sender: Processing packet 166266 [packets to send 48, broken 47] [05:49:51]ProducePacketName [05:49:51]name=ofd_packets/00166266 [05:49:51]OFD Sender: To server: pG, [05:49:51]CommunicateWithHost lk.salyk.kg:30040 [05:49:51]ConnectInit lk.salyk.kg [05:49:51]written 0, free lines is 4095 [05:49:51]Connected sock=7 [05:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 55 04 01 55 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 13 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 89 02 00 35 04 06 00 CC 1E 2D E7 C8 2D 57 DD 8B 84 6A D9 63 F2 [05:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 26 47 00 A2 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 89 02 00 F4 03 04 00 7F E3 16 67 B6 04 01 00 00 FE 92 BB FA 4E D2 BC DE [05:49:51]CommunicateWithHost err = 0 [05:49:51]CheckOFDResponse [05:49:51]1017 (14) - 77093643461234 [05:49:51]1041 (16) - 0000000000871759 [05:49:51]1040 (4) - 166266 [05:49:51]1012 (4) - 21.10.2024 23:27 [05:49:51]1206 (1) - 0 [05:49:51]OFD Sender: Remove packet 166266 [05:49:51]ProducePacketName [05:49:51]name=ofd_packets/00166266 [05:49:51]NVStorageDeleteData [05:49:51]Write to MH i2c: 01 00 00 4E 98 E6 [05:49:51]Write i2c OK [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: 01 [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: 01 07 00 [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: 01 07 00 4E 98 00 00 00 00 00 CD 0C C6 [05:49:51]RasterBufferAndPrint [05:49:51]line [05:49:51]line [05:49:51]line [05:49:51]line [05:49:51]line [05:49:51]written 0, free lines is 3284 [05:49:51]MH_Cut [05:49:51]Write to MH i2c: D1 01 00 55 98 01 BF [05:49:51]Write i2c OK [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: D1 [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: D1 01 00 [05:49:51]MH_I2C_Read... [05:49:51]Read from MH i2c: D1 01 00 55 98 00 BE [05:49:51]Write to MH i2c: 01 00 00 56 98 EE [05:49:51]Write i2c OK [05:49:51]MH_I2C_Read... [05:49:52]OFD Sender: No OFD packet to send [05:49:52]*** Cut start [05:49:52]*** Partial cut [05:49:52]*** CUTSNS_PIN = 1 [05:49:52]*** CUTSNS_PIN = 0 [05:49:52]*** Brake cut motor [05:49:53]Read from MH i2c: 01 [05:49:53]MH_I2C_Read... [05:49:53]*** Stop cut motor [05:49:53]*** Cut end [05:49:53]Read from MH i2c: 01 07 00 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: 01 07 00 56 98 00 00 00 00 00 FF 0F 03 [05:49:53]process_action close_receipt done [05:49:53]requested_data is exist [05:49:53]produce_requested_data [05:49:53]requested_item fm.sn is exist - process it [05:49:53]wFMCommunicate request_size=4 [05:49:53]MH_SAM_APDU [05:49:53]CAPDU: 80 11 00 00 [05:49:53]Write to MH i2c: E2 08 00 57 98 80 11 00 00 00 00 00 00 69 [05:49:53]Write i2c OK [05:49:53]MH_I2C_Read... [05:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:53]Read from MH i2c: E2 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 17 00 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 17 00 57 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [05:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:49:53]wFMCommunicate OK [05:49:53]requested_item fd.num is exist - process it [05:49:53]SAM_PROTO_GetFieldsCounters [05:49:53]wFMCommunicate request_size=4 [05:49:53]MH_SAM_APDU [05:49:53]CAPDU: 80 13 00 00 [05:49:53]Write to MH i2c: E2 08 00 58 98 80 13 00 00 00 00 00 00 6C [05:49:53]Write i2c OK [05:49:53]MH_I2C_Read... [05:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:53]Read from MH i2c: E2 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 62 00 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 62 00 58 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [05:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:49:53]wFMCommunicate OK [05:49:53]SAM_PROTO_GetFieldsCounters done [05:49:53]requested_item shift.num is exist - process it [05:49:53]requested_item shift.opened is exist - process it [05:49:53]req_shift_opened [05:49:53]FM_GetShiftState [05:49:53]SAM_PROTO_GetShiftState [05:49:53]wFMCommunicate request_size=4 [05:49:53]MH_SAM_APDU [05:49:53]CAPDU: 80 13 01 00 [05:49:53]Write to MH i2c: E2 08 00 59 98 80 13 01 00 00 00 00 00 6E [05:49:53]Write i2c OK [05:49:53]MH_I2C_Read... [05:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:53]Read from MH i2c: E2 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 0E 00 [05:49:53]MH_I2C_Read... [05:49:53]Read from MH i2c: E2 0E 00 59 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C1 [05:49:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:49:53]wFMCommunicate OK [05:49:53]SAM_PROTO_GetShiftState done [05:49:53]FM_GetShiftState done [05:49:53]req_shift_opened done [05:49:53]requested_item shift.open_date is exist - process it [05:49:53]req_shift_open_date [05:49:53]req_shift_open_date done [05:49:53]produce_requested_data done [05:49:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166266,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:49:53]process_action_free close_receipt [05:49:53]json_value_free [05:49:53]json_value_free done [05:49:53]process_json_proto returns [05:49:53]Send response to host [05:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166266,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:49:53]free response buf [05:49:53]execute_script done [05:49:53]execute_script returns [05:49:53]free content buf [05:49:53]Sock 5.Close socket [05:49:53]Sock 5.Thread stoped [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:08]accept exits with 6 [05:50:08]New connection [05:50:08]New thread 3066776932 created [05:50:08]Thread 3066920292 joined [05:50:08]Waiting for new connection... [05:50:08] Sock 6.Parse request [05:50:08]Sock 6.Check first char [05:50:08]Sock 6.First char is OK [05:50:08]request: POST /json_proto HTTP/1.0 [05:50:08]Method: POST [05:50:08]URL: /json_proto [05:50:08]Method is POST - this is cgi request [05:50:08]url: /json_proto [05:50:08]query_string will be loaded in cgi processing [05:50:08]execute_cgi json_proto POST (null) [05:50:08]execute_cgi path=json_proto method=POST [05:50:08]POST find Content-Length [05:50:08]Host: 172.17.53.195:8080 [05:50:08]Content-Length: 679 [05:50:08]Content-Type: application/json [05:50:08] [05:50:08]POST finish read [05:50:08]Found Content-Length = 679 [05:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:08]execute_script... [05:50:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:08]POST & json_proto [05:50:08]process_json_proto [05:50:08]json parsed OK: [05:50:08]protocol is kg_v1.0 [05:50:08]action value=close_receipt [05:50:08]process_action close_receipt [05:50:08]cmd_close_receipt [05:50:08]MH_GetDate [05:50:08]Write to MH i2c: F0 00 00 5A 98 E1 [05:50:08]Write i2c OK [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: F0 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: F0 09 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: F0 09 00 5A 98 00 26 3D 17 67 21 48 4A 65 E3 [05:50:08]GetLastDocTimeStamp 1729576211 [05:50:08]current date 1729576230 [05:50:08]FM_GetShiftState [05:50:08]SAM_PROTO_GetShiftState [05:50:08]wFMCommunicate request_size=4 [05:50:08]MH_SAM_APDU [05:50:08]CAPDU: 80 13 01 00 [05:50:08]Write to MH i2c: E2 08 00 5B 98 80 13 01 00 00 00 00 00 70 [05:50:08]Write i2c OK [05:50:08]MH_I2C_Read... [05:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:08]Read from MH i2c: E2 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 0E 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 0E 00 5B 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C3 [05:50:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:50:08]wFMCommunicate OK [05:50:08]SAM_PROTO_GetShiftState done [05:50:08]FM_GetShiftState done [05:50:08]opened in 1729557463 [05:50:08]opened+sec_in_day 1729643863 [05:50:08]quantity*price = 200025 [05:50:08]sum+1 = 200026 [05:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 22 22.10.2024 05:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166267 ФПД: 157886695207568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166267&fm=157886695207568&tin=02508201610067®Number=0000000000091764&sum=200000 [05:50:09]StoreToDocumentArchive [05:50:09]shift 536 fd 166267 [05:50:09]save to /storage/0536/doc_00166267 [05:50:09]save last doc name /storage/0536/doc_00166267 to /storage/kkm_last_doc_name [05:50:09]save OK [05:50:09]Clear old archive folders... [05:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:50:09]tlvbuf is 01D8A120 [05:50:09]SAM_PROTO_ClearQueue [05:50:09]wFMCommunicate request_size=4 [05:50:09]MH_SAM_APDU [05:50:09]CAPDU: 80 09 00 00 [05:50:09]Write to MH i2c: E2 08 00 68 98 80 09 00 00 00 00 00 00 72 [05:50:09]Write i2c OK [05:50:09]MH_I2C_Read... [05:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:09]Read from MH i2c: E2 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 68 98 00 90 00 74 [05:50:09]RAPDU: 90 00 [05:50:09]wFMCommunicate OK [05:50:09]SAM_PROTO_ClearQueue done [05:50:09]KKMCreateOFDPacket [05:50:09]OFDProtocolAddRootSTLVToBuf [05:50:09]FM_MakeSignedData [05:50:09]FM_MakeSignedData [05:50:09]SAM_PROTO_SignData [05:50:09]wFMCommunicate request_size=4 [05:50:09]MH_SAM_APDU [05:50:09]CAPDU: 80 0D 01 02 [05:50:09]Write to MH i2c: E2 08 00 69 98 80 0D 01 02 00 00 00 00 7A [05:50:09]Write i2c OK [05:50:09]MH_I2C_Read... [05:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:09]Read from MH i2c: E2 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 69 98 00 90 00 75 [05:50:09]RAPDU: 90 00 [05:50:09]wFMCommunicate OK [05:50:09]wFMCommunicate request_size=255 [05:50:09]MH_SAM_APDU [05:50:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 26 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 89 02 00 35 04 06 00 8F 98 DC 61 [05:50:09]Write to MH i2c: E2 02 01 6A 98 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 26 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 89 02 00 35 04 06 00 8F 98 DC 61 00 00 6F [05:50:09]Write i2c OK [05:50:09]MH_I2C_Read... [05:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:09]Read from MH i2c: E2 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 6A 98 00 90 00 76 [05:50:09]RAPDU: 90 00 [05:50:09]wFMCommunicate OK [05:50:09]wFMCommunicate request_size=7 [05:50:09]MH_SAM_APDU [05:50:09]CAPDU: 80 0D 02 02 02 F2 90 [05:50:09]Write to MH i2c: E2 0A 00 6B 98 80 0D 02 02 02 00 F2 90 00 00 03 [05:50:09]Write i2c OK [05:50:09]MH_I2C_Read... [05:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:09]Read from MH i2c: E2 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 [05:50:09]MH_I2C_Read... [05:50:09]Read from MH i2c: E2 03 00 6B 98 00 90 00 77 [05:50:09]RAPDU: 90 00 [05:50:09]wFMCommunicate OK [05:50:09]wFMCommunicate request_size=4 [05:50:09]MH_SAM_APDU [05:50:09]CAPDU: 80 0D 03 02 [05:50:09]Write to MH i2c: E2 08 00 6C 98 80 0D 03 02 00 00 00 00 7F [05:50:09]Write i2c OK [05:50:09]MH_I2C_Read... [05:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:10]Read from MH i2c: E2 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 0B 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 0B 00 6C 98 00 6E 26 0E 8F 81 79 81 2B 90 00 57 [05:50:10]RAPDU: 6E 26 0E 8F 81 79 81 2B 90 00 [05:50:10]wFMCommunicate OK [05:50:10]SAM_PROTO_SignData done [05:50:10]FM_MakeSignedData done [05:50:10]CreateOFDProtocolMessage [05:50:10]wFMCommunicate request_size=4 [05:50:10]MH_SAM_APDU [05:50:10]CAPDU: 80 11 00 00 [05:50:10]Write to MH i2c: E2 08 00 6D 98 80 11 00 00 00 00 00 00 7F [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:10]Read from MH i2c: E2 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 17 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: E2 17 00 6D 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [05:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:50:10]wFMCommunicate OK [05:50:10]CreateOFDProtocolMessage done [05:50:10]OFDSenderStorePacket 166267 [05:50:10]StoreOFDPacket docnum=166267 [05:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 90 04 01 6E FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 26 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 89 02 00 35 04 06 00 8F 98 DC 61 F2 90 6E 26 0E 8F 81 79 81 2B [05:50:10]CheckFolder [05:50:10]dirname=/storage/ofd_packets [05:50:10]CheckFolder done [05:50:10]ProducePacketName [05:50:10]name=ofd_packets/00166267 [05:50:10]NVStorageSaveData ofd_packets/00166267 [05:50:10]File name is /storage/ofd_packets/00166267 [05:50:10]Write 298 bytes [05:50:10]NVStorageSaveData done [05:50:10]OFDSenderStorePacket done [05:50:10]KKMCreateOFDPacket done [05:50:10]NVStorageSaveData kkm_last_timestamp [05:50:10]File name is /storage/kkm_last_timestamp [05:50:10]Write 4 bytes [05:50:10]NVStorageSaveData done [05:50:10]ExternCall_PrintAddStr [05:50:10]wPrintStart [05:50:10]Write to MH i2c: 01 00 00 6E 98 06 [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 07 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 07 00 6E 98 00 00 00 00 00 FF 0F 1B [05:50:10]RasterBufferAndPrint [05:50:10]line Счет N : (1)220842 [05:50:10]line ИНН: 02508201610067 [05:50:10]line Контрольно-Кассовый Чек [05:50:10]line ПРОДАЖА [05:50:10]line ТРК (МРК, ГНК) : 21 [05:50:10]line Товар: 2710194210 [05:50:10]line ДТ-К-5 [05:50:10]line 26.250 * 76.20 [05:50:10]line = 2000.25 [05:50:10]line НДС 12% НСП 1% [05:50:10]line > о реализуемом товаре [05:50:10]line ОКРУГЛЕНИЕ: -0.25 [05:50:10]line ИТОГО: 2000.00 [05:50:10]line Внесено: 2000.00 [05:50:10]line СДАЧА: 0.00 [05:50:10]line НСП 1% : 17.70 [05:50:10]line НДС 12% : 212.42 [05:50:10]line Наличными: 2000.00 [05:50:10]line Безнал.: 0.00 [05:50:10]line Место: АЗС № 161 "Партнер Нефть" [05:50:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:50:10]line СНО: Общий режим [05:50:10]line Чек 22 22.10.2024 05:50 [05:50:10]line Смена: 536 ФФД: 1.0 [05:50:10]line ЗНМ: 0300000104 [05:50:10]line РНМ: 0000000000091764 [05:50:10]line Версия ККМ: 001 [05:50:10]line ФМ: 0000000000871759 [05:50:10]line ФД: 166267 [05:50:10]line ФПД: 157886695207568 [05:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166267&fm=157886695207568&tin=02508201610067®Number=0000000000091764&sum=200000 [05:50:10]written 0, free lines is 4095 [05:50:10]OFD Sender: Processing packet 166267 [packets to send 48, broken 47] [05:50:10]ProducePacketName [05:50:10]name=ofd_packets/00166267 [05:50:10]OFD Sender: To server: pG, [05:50:10]CommunicateWithHost lk.salyk.kg:30040 [05:50:10]ConnectInit lk.salyk.kg [05:50:10]Connected sock=9 [05:50:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 90 04 01 6E FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 26 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 89 02 00 35 04 06 00 8F 98 DC 61 F2 90 6E 26 0E 8F 81 79 81 2B [05:50:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 56 47 00 A3 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 89 02 00 F4 03 04 00 92 E3 16 67 B6 04 01 00 00 7C B5 F0 17 2F C5 32 01 [05:50:10]CommunicateWithHost err = 0 [05:50:10]CheckOFDResponse [05:50:10]1017 (14) - 77093643461234 [05:50:10]1041 (16) - 0000000000871759 [05:50:10]1040 (4) - 166267 [05:50:10]1012 (4) - 21.10.2024 23:28 [05:50:10]1206 (1) - 0 [05:50:10]OFD Sender: Remove packet 166267 [05:50:10]ProducePacketName [05:50:10]name=ofd_packets/00166267 [05:50:10]NVStorageDeleteData [05:50:10]Write to MH i2c: 01 00 00 99 98 31 [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 07 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: 01 07 00 99 98 00 00 00 00 00 CB 0C 0F [05:50:10]RasterBufferAndPrint [05:50:10]line [05:50:10]line [05:50:10]line [05:50:10]line [05:50:10]line [05:50:10]written 0, free lines is 3280 [05:50:10]MH_Cut [05:50:10]Write to MH i2c: D1 01 00 A0 98 01 0A [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: D1 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: D1 01 00 [05:50:10]MH_I2C_Read... [05:50:10]Read from MH i2c: D1 01 00 A0 98 00 09 [05:50:10]Write to MH i2c: 01 00 00 A1 98 39 [05:50:10]Write i2c OK [05:50:10]MH_I2C_Read... [05:50:10]OFD Sender: No OFD packet to send [05:50:11]*** Cut start [05:50:11]*** Partial cut [05:50:11]*** CUTSNS_PIN = 1 [05:50:11]*** CUTSNS_PIN = 0 [05:50:11]*** Brake cut motor [05:50:12]Read from MH i2c: 01 [05:50:12]MH_I2C_Read... [05:50:12]*** Stop cut motor [05:50:12]*** Cut end [05:50:12]Read from MH i2c: 01 07 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: 01 07 00 A1 98 00 00 00 00 00 FF 0F 4E [05:50:12]process_action close_receipt done [05:50:12]requested_data is exist [05:50:12]produce_requested_data [05:50:12]requested_item fm.sn is exist - process it [05:50:12]wFMCommunicate request_size=4 [05:50:12]MH_SAM_APDU [05:50:12]CAPDU: 80 11 00 00 [05:50:12]Write to MH i2c: E2 08 00 A2 98 80 11 00 00 00 00 00 00 B4 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:12]Read from MH i2c: E2 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 17 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 17 00 A2 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [05:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:50:12]wFMCommunicate OK [05:50:12]requested_item fd.num is exist - process it [05:50:12]SAM_PROTO_GetFieldsCounters [05:50:12]wFMCommunicate request_size=4 [05:50:12]MH_SAM_APDU [05:50:12]CAPDU: 80 13 00 00 [05:50:12]Write to MH i2c: E2 08 00 A3 98 80 13 00 00 00 00 00 00 B7 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:12]Read from MH i2c: E2 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 62 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 62 00 A3 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [05:50:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:12]wFMCommunicate OK [05:50:12]SAM_PROTO_GetFieldsCounters done [05:50:12]requested_item shift.num is exist - process it [05:50:12]requested_item shift.opened is exist - process it [05:50:12]req_shift_opened [05:50:12]FM_GetShiftState [05:50:12]SAM_PROTO_GetShiftState [05:50:12]wFMCommunicate request_size=4 [05:50:12]MH_SAM_APDU [05:50:12]CAPDU: 80 13 01 00 [05:50:12]Write to MH i2c: E2 08 00 A4 98 80 13 01 00 00 00 00 00 B9 [05:50:12]Write i2c OK [05:50:12]MH_I2C_Read... [05:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:12]Read from MH i2c: E2 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 0E 00 [05:50:12]MH_I2C_Read... [05:50:12]Read from MH i2c: E2 0E 00 A4 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0C [05:50:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:50:12]wFMCommunicate OK [05:50:12]SAM_PROTO_GetShiftState done [05:50:12]FM_GetShiftState done [05:50:12]req_shift_opened done [05:50:12]requested_item shift.open_date is exist - process it [05:50:12]req_shift_open_date [05:50:12]req_shift_open_date done [05:50:12]produce_requested_data done [05:50:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166267,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:50:12]process_action_free close_receipt [05:50:12]json_value_free [05:50:12]json_value_free done [05:50:12]process_json_proto returns [05:50:12]Send response to host [05:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166267,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:50:12]free response buf [05:50:12]execute_script done [05:50:12]execute_script returns [05:50:12]free content buf [05:50:12]Sock 6.Close socket [05:50:12]Sock 6.Thread stoped [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:46]accept exits with 5 [05:51:46]New connection [05:51:46]New thread 3066920292 created [05:51:46]Thread 3066776932 joined [05:51:46]Waiting for new connection... [05:51:46] Sock 5.Parse request [05:51:46]Sock 5.Check first char [05:51:46]Sock 5.First char is OK [05:51:46]request: POST /json_proto HTTP/1.0 [05:51:46]Method: POST [05:51:46]URL: /json_proto [05:51:46]Method is POST - this is cgi request [05:51:46]url: /json_proto [05:51:46]query_string will be loaded in cgi processing [05:51:46]execute_cgi json_proto POST (null) [05:51:46]execute_cgi path=json_proto method=POST [05:51:46]POST find Content-Length [05:51:46]Host: 172.17.53.195:8080 [05:51:46]Content-Length: 682 [05:51:46]Content-Type: application/json [05:51:46] [05:51:46]POST finish read [05:51:46]Found Content-Length = 682 [05:51:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:51:46]execute_script... [05:51:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.870, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:51:46]POST & json_proto [05:51:46]process_json_proto [05:51:46]json parsed OK: [05:51:46]protocol is kg_v1.0 [05:51:46]action value=close_receipt [05:51:46]process_action close_receipt [05:51:46]cmd_close_receipt [05:51:46]MH_GetDate [05:51:46]Write to MH i2c: F0 00 00 A5 98 2C [05:51:46]Write i2c OK [05:51:46]MH_I2C_Read... [05:51:46]Read from MH i2c: F0 [05:51:46]MH_I2C_Read... [05:51:46]Read from MH i2c: F0 09 00 [05:51:46]MH_I2C_Read... [05:51:46]Read from MH i2c: F0 09 00 A5 98 00 89 3D 17 67 21 48 4A 65 91 [05:51:46]GetLastDocTimeStamp 1729576230 [05:51:46]current date 1729576329 [05:51:46]FM_GetShiftState [05:51:46]SAM_PROTO_GetShiftState [05:51:46]wFMCommunicate request_size=4 [05:51:46]MH_SAM_APDU [05:51:46]CAPDU: 80 13 01 00 [05:51:46]Write to MH i2c: E2 08 00 A6 98 80 13 01 00 00 00 00 00 BB [05:51:46]Write i2c OK [05:51:46]MH_I2C_Read... [05:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:51:46]Read from MH i2c: E2 [05:51:46]MH_I2C_Read... [05:51:46]Read from MH i2c: E2 0E 00 [05:51:46]MH_I2C_Read... [05:51:46]Read from MH i2c: E2 0E 00 A6 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0E [05:51:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:51:46]wFMCommunicate OK [05:51:46]SAM_PROTO_GetShiftState done [05:51:46]FM_GetShiftState done [05:51:46]opened in 1729557463 [05:51:46]opened+sec_in_day 1729643863 [05:51:46]quantity*price = 140015 [05:51:46]sum+1 = 140016 [05:51:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 23 22.10.2024 05:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166268 ФПД: 275743307872997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166268&fm=275743307872997&tin=02508201610067®Number=0000000000091764&sum=140000 [05:51:48]StoreToDocumentArchive [05:51:48]shift 536 fd 166268 [05:51:48]save to /storage/0536/doc_00166268 [05:51:48]save last doc name /storage/0536/doc_00166268 to /storage/kkm_last_doc_name [05:51:48]save OK [05:51:48]Clear old archive folders... [05:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:51:48]tlvbuf is 016E4E70 [05:51:48]SAM_PROTO_ClearQueue [05:51:48]wFMCommunicate request_size=4 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 09 00 00 [05:51:48]Write to MH i2c: E2 08 00 B3 98 80 09 00 00 00 00 00 00 BD [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 B3 98 00 90 00 BF [05:51:48]RAPDU: 90 00 [05:51:48]wFMCommunicate OK [05:51:48]SAM_PROTO_ClearQueue done [05:51:48]KKMCreateOFDPacket [05:51:48]OFDProtocolAddRootSTLVToBuf [05:51:48]FM_MakeSignedData [05:51:48]FM_MakeSignedData [05:51:48]SAM_PROTO_SignData [05:51:48]wFMCommunicate request_size=4 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 0D 01 02 [05:51:48]Write to MH i2c: E2 08 00 B4 98 80 0D 01 02 00 00 00 00 C5 [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 B4 98 00 90 00 C0 [05:51:48]RAPDU: 90 00 [05:51:48]wFMCommunicate OK [05:51:48]wFMCommunicate request_size=255 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 17 00 00 00 F4 03 04 00 89 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 89 02 00 35 04 06 00 FA [05:51:48]Write to MH i2c: E2 02 01 B5 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 17 00 00 00 F4 03 04 00 89 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 89 02 00 35 04 06 00 FA 00 00 AC [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 B5 98 00 90 00 C1 [05:51:48]RAPDU: 90 00 [05:51:48]wFMCommunicate OK [05:51:48]wFMCommunicate request_size=10 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 0D 02 02 05 C9 7D EA 3A E5 [05:51:48]Write to MH i2c: E2 0D 00 B6 98 80 0D 02 02 05 00 C9 7D EA 3A E5 00 00 21 [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 03 00 B6 98 00 90 00 C2 [05:51:48]RAPDU: 90 00 [05:51:48]wFMCommunicate OK [05:51:48]wFMCommunicate request_size=4 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 0D 03 02 [05:51:48]Write to MH i2c: E2 08 00 B7 98 80 0D 03 02 00 00 00 00 CA [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 0B 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 0B 00 B7 98 00 64 C9 4A 24 D1 C7 49 C2 90 00 09 [05:51:48]RAPDU: 64 C9 4A 24 D1 C7 49 C2 90 00 [05:51:48]wFMCommunicate OK [05:51:48]SAM_PROTO_SignData done [05:51:48]FM_MakeSignedData done [05:51:48]CreateOFDProtocolMessage [05:51:48]wFMCommunicate request_size=4 [05:51:48]MH_SAM_APDU [05:51:48]CAPDU: 80 11 00 00 [05:51:48]Write to MH i2c: E2 08 00 B8 98 80 11 00 00 00 00 00 00 CA [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:51:48]Read from MH i2c: E2 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 17 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: E2 17 00 B8 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [05:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:51:48]wFMCommunicate OK [05:51:48]CreateOFDProtocolMessage done [05:51:48]OFDSenderStorePacket 166268 [05:51:48]StoreOFDPacket docnum=166268 [05:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 A0 07 01 EE C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 17 00 00 00 F4 03 04 00 89 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 89 02 00 35 04 06 00 FA C9 7D EA 3A E5 64 C9 4A 24 D1 C7 49 C2 [05:51:48]CheckFolder [05:51:48]dirname=/storage/ofd_packets [05:51:48]CheckFolder done [05:51:48]ProducePacketName [05:51:48]name=ofd_packets/00166268 [05:51:48]NVStorageSaveData ofd_packets/00166268 [05:51:48]File name is /storage/ofd_packets/00166268 [05:51:48]Write 301 bytes [05:51:48]NVStorageSaveData done [05:51:48]OFDSenderStorePacket done [05:51:48]KKMCreateOFDPacket done [05:51:48]NVStorageSaveData kkm_last_timestamp [05:51:48]File name is /storage/kkm_last_timestamp [05:51:48]Write 4 bytes [05:51:48]NVStorageSaveData done [05:51:48]ExternCall_PrintAddStr [05:51:48]wPrintStart [05:51:48]Write to MH i2c: 01 00 00 B9 98 51 [05:51:48]Write i2c OK [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: 01 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: 01 07 00 [05:51:48]MH_I2C_Read... [05:51:48]Read from MH i2c: 01 07 00 B9 98 00 00 00 00 00 FF 0F 66 [05:51:48]RasterBufferAndPrint [05:51:48]line Счет N : (1)220843 [05:51:48]line ИНН: 02508201610067 [05:51:48]line Контрольно-Кассовый Чек [05:51:48]line ПРОДАЖА [05:51:48]line ТРК (МРК, ГНК) : 14 [05:51:48]line Товар: 2710124500 [05:51:48]line Аи-95-К-5 [05:51:48]line 18.870 * 74.20 [05:51:48]line = 1400.15 [05:51:48]line НДС 12% НСП 1% [05:51:48]line > о реализуемом товаре [05:51:48]line ОКРУГЛЕНИЕ: -0.15 [05:51:48]line ИТОГО: 1400.00 [05:51:48]line Внесено: 1400.00 [05:51:48]line СДАЧА: 0.00 [05:51:48]line НСП 1% : 12.39 [05:51:48]line НДС 12% : 148.69 [05:51:48]line Наличными: 1400.00 [05:51:48]line Безнал.: 0.00 [05:51:48]line Место: АЗС № 161 "Партнер Нефть" [05:51:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:51:48]line СНО: Общий режим [05:51:48]line Чек 23 22.10.2024 05:52 [05:51:48]line Смена: 536 ФФД: 1.0 [05:51:48]line ЗНМ: 0300000104 [05:51:48]line РНМ: 0000000000091764 [05:51:48]line Версия ККМ: 001 [05:51:48]line ФМ: 0000000000871759 [05:51:48]line ФД: 166268 [05:51:48]line ФПД: 275743307872997 [05:51:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166268&fm=275743307872997&tin=02508201610067®Number=0000000000091764&sum=140000 [05:51:48]OFD Sender: Processing packet 166268 [packets to send 48, broken 47] [05:51:48]ProducePacketName [05:51:48]name=ofd_packets/00166268 [05:51:48]OFD Sender: To server: pG, [05:51:48]CommunicateWithHost lk.salyk.kg:30040 [05:51:48]ConnectInit lk.salyk.kg [05:51:48]written 0, free lines is 4095 [05:51:49]Connected sock=7 [05:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 A0 07 01 EE C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 15 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 17 00 00 00 F4 03 04 00 89 3D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 89 02 00 35 04 06 00 FA C9 7D EA 3A E5 64 C9 4A 24 D1 C7 49 C2 [05:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 77 47 00 7F 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 89 02 00 F4 03 04 00 F5 E3 16 67 B6 04 01 00 00 AF 62 10 7D E7 C2 3B 07 [05:51:49]CommunicateWithHost err = 0 [05:51:49]CheckOFDResponse [05:51:49]1017 (14) - 77093643461234 [05:51:49]1041 (16) - 0000000000871759 [05:51:49]1040 (4) - 166268 [05:51:49]1012 (4) - 21.10.2024 23:29 [05:51:49]1206 (1) - 0 [05:51:49]OFD Sender: Remove packet 166268 [05:51:49]ProducePacketName [05:51:49]name=ofd_packets/00166268 [05:51:49]NVStorageDeleteData [05:51:49]Write to MH i2c: 01 00 00 E4 98 7C [05:51:49]Write i2c OK [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: 01 [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: 01 07 00 [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: 01 07 00 E4 98 00 00 00 00 00 C6 0C 55 [05:51:49]RasterBufferAndPrint [05:51:49]line [05:51:49]line [05:51:49]line [05:51:49]line [05:51:49]line [05:51:49]written 0, free lines is 3279 [05:51:49]MH_Cut [05:51:49]Write to MH i2c: D1 01 00 EB 98 01 55 [05:51:49]Write i2c OK [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: D1 [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: D1 01 00 [05:51:49]MH_I2C_Read... [05:51:49]Read from MH i2c: D1 01 00 EB 98 00 54 [05:51:49]Write to MH i2c: 01 00 00 EC 98 84 [05:51:49]Write i2c OK [05:51:49]MH_I2C_Read... [05:51:49]OFD Sender: No OFD packet to send [05:51:50]*** Cut start [05:51:50]*** Partial cut [05:51:50]*** CUTSNS_PIN = 1 [05:51:50]*** CUTSNS_PIN = 0 [05:51:50]*** Brake cut motor [05:51:50]Read from MH i2c: 01 [05:51:50]MH_I2C_Read... [05:51:50]*** Stop cut motor [05:51:50]*** Cut end [05:51:50]Read from MH i2c: 01 07 00 [05:51:50]MH_I2C_Read... [05:51:50]Read from MH i2c: 01 07 00 EC 98 00 00 00 00 00 FF 0F 99 [05:51:50]process_action close_receipt done [05:51:50]requested_data is exist [05:51:50]produce_requested_data [05:51:50]requested_item fm.sn is exist - process it [05:51:50]wFMCommunicate request_size=4 [05:51:50]MH_SAM_APDU [05:51:50]CAPDU: 80 11 00 00 [05:51:50]Write to MH i2c: E2 08 00 ED 98 80 11 00 00 00 00 00 00 FF [05:51:50]Write i2c OK [05:51:50]MH_I2C_Read... [05:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:51:50]Read from MH i2c: E2 [05:51:50]MH_I2C_Read... [05:51:50]Read from MH i2c: E2 17 00 [05:51:50]MH_I2C_Read... [05:51:50]Read from MH i2c: E2 17 00 ED 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [05:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:51:50]wFMCommunicate OK [05:51:50]requested_item fd.num is exist - process it [05:51:50]SAM_PROTO_GetFieldsCounters [05:51:50]wFMCommunicate request_size=4 [05:51:50]MH_SAM_APDU [05:51:50]CAPDU: 80 13 00 00 [05:51:50]Write to MH i2c: E2 08 00 EE 98 80 13 00 00 00 00 00 00 02 [05:51:50]Write i2c OK [05:51:50]MH_I2C_Read... [05:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:51:51]Read from MH i2c: E2 [05:51:51]MH_I2C_Read... [05:51:51]Read from MH i2c: E2 62 00 [05:51:51]MH_I2C_Read... [05:51:51]Read from MH i2c: E2 62 00 EE 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [05:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:51:51]wFMCommunicate OK [05:51:51]SAM_PROTO_GetFieldsCounters done [05:51:51]requested_item shift.num is exist - process it [05:51:51]requested_item shift.opened is exist - process it [05:51:51]req_shift_opened [05:51:51]FM_GetShiftState [05:51:51]SAM_PROTO_GetShiftState [05:51:51]wFMCommunicate request_size=4 [05:51:51]MH_SAM_APDU [05:51:51]CAPDU: 80 13 01 00 [05:51:51]Write to MH i2c: E2 08 00 EF 98 80 13 01 00 00 00 00 00 04 [05:51:51]Write i2c OK [05:51:51]MH_I2C_Read... [05:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:51:51]Read from MH i2c: E2 [05:51:51]MH_I2C_Read... [05:51:51]Read from MH i2c: E2 0E 00 [05:51:51]MH_I2C_Read... [05:51:51]Read from MH i2c: E2 0E 00 EF 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 57 [05:51:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [05:51:51]wFMCommunicate OK [05:51:51]SAM_PROTO_GetShiftState done [05:51:51]FM_GetShiftState done [05:51:51]req_shift_opened done [05:51:51]requested_item shift.open_date is exist - process it [05:51:51]req_shift_open_date [05:51:51]req_shift_open_date done [05:51:51]produce_requested_data done [05:51:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166268,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [05:51:51]process_action_free close_receipt [05:51:51]json_value_free [05:51:51]json_value_free done [05:51:51]process_json_proto returns [05:51:51]Send response to host [05:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166268,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [05:51:51]free response buf [05:51:51]execute_script done [05:51:51]execute_script returns [05:51:51]free content buf [05:51:51]Sock 5.Close socket [05:51:51]Sock 5.Thread stoped [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:57]recv_with_timeout no data received [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:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:23]recv_with_timeout no data received [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:42]recv_with_timeout no data received [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:00]recv_with_timeout no data received [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:13]recv_with_timeout no data received [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:29]recv_with_timeout no data received [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:48]recv_with_timeout no data received [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:33:59]recv_with_timeout no data received [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:17]recv_with_timeout no data received [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:34]recv_with_timeout no data received [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:29]recv_with_timeout no data received [06:35:32]OFD Sender: No OFD packet to send [06:35:33]accept exits with 6 [06:35:33]New connection [06:35:33]New thread 3066776932 created [06:35:33]Thread 3066920292 joined [06:35:33]Waiting for new connection... [06:35:33] Sock 6.Parse request [06:35:33]Sock 6.Check first char [06:35:33]Sock 6.First char is OK [06:35:33]request: POST /json_proto HTTP/1.0 [06:35:33]Method: POST [06:35:33]URL: /json_proto [06:35:33]Method is POST - this is cgi request [06:35:33]url: /json_proto [06:35:33]query_string will be loaded in cgi processing [06:35:33]execute_cgi json_proto POST (null) [06:35:33]execute_cgi path=json_proto method=POST [06:35:33]POST find Content-Length [06:35:33]Host: 172.17.53.195:8080 [06:35:33]Content-Length: 679 [06:35:33]Content-Type: application/json [06:35:33] [06:35:33]POST finish read [06:35:33]Found Content-Length = 679 [06:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:33]execute_script... [06:35:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:33]POST & json_proto [06:35:33]process_json_proto [06:35:33]json parsed OK: [06:35:33]protocol is kg_v1.0 [06:35:33]action value=close_receipt [06:35:33]process_action close_receipt [06:35:33]cmd_close_receipt [06:35:33]MH_GetDate [06:35:33]Write to MH i2c: F0 00 00 F0 98 77 [06:35:33]Write i2c OK [06:35:33]MH_I2C_Read... [06:35:33]Read from MH i2c: F0 [06:35:33]MH_I2C_Read... [06:35:33]Read from MH i2c: F0 09 00 [06:35:33]MH_I2C_Read... [06:35:33]Read from MH i2c: F0 09 00 F0 98 00 CC 47 17 67 21 48 4A 65 29 [06:35:33]GetLastDocTimeStamp 1729576329 [06:35:33]current date 1729578956 [06:35:33]FM_GetShiftState [06:35:33]SAM_PROTO_GetShiftState [06:35:33]wFMCommunicate request_size=4 [06:35:33]MH_SAM_APDU [06:35:33]CAPDU: 80 13 01 00 [06:35:33]Write to MH i2c: E2 08 00 F1 98 80 13 01 00 00 00 00 00 06 [06:35:33]Write i2c OK [06:35:33]MH_I2C_Read... [06:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:33]Read from MH i2c: E2 [06:35:33]MH_I2C_Read... [06:35:33]Read from MH i2c: E2 0E 00 [06:35:33]MH_I2C_Read... [06:35:33]Read from MH i2c: E2 0E 00 F1 98 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 59 [06:35:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:35:33]wFMCommunicate OK [06:35:33]SAM_PROTO_GetShiftState done [06:35:33]FM_GetShiftState done [06:35:33]opened in 1729557463 [06:35:33]opened+sec_in_day 1729643863 [06:35:33]quantity*price = 100050 [06:35:33]sum+1 = 100052 [06:35:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 24 22.10.2024 06:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166269 ФПД: 74822988887336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166269&fm=74822988887336&tin=02508201610067®Number=0000000000091764&sum=100000 [06:35:35]StoreToDocumentArchive [06:35:35]shift 536 fd 166269 [06:35:35]save to /storage/0536/doc_00166269 [06:35:35]save last doc name /storage/0536/doc_00166269 to /storage/kkm_last_doc_name [06:35:35]save OK [06:35:35]Clear old archive folders... [06:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:35:35]tlvbuf is 015999D0 [06:35:35]SAM_PROTO_ClearQueue [06:35:35]wFMCommunicate request_size=4 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 09 00 00 [06:35:35]Write to MH i2c: E2 08 00 FE 98 80 09 00 00 00 00 00 00 08 [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 FE 98 00 90 00 0A [06:35:35]RAPDU: 90 00 [06:35:35]wFMCommunicate OK [06:35:35]SAM_PROTO_ClearQueue done [06:35:35]KKMCreateOFDPacket [06:35:35]OFDProtocolAddRootSTLVToBuf [06:35:35]FM_MakeSignedData [06:35:35]FM_MakeSignedData [06:35:35]SAM_PROTO_SignData [06:35:35]wFMCommunicate request_size=4 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 0D 01 02 [06:35:35]Write to MH i2c: E2 08 00 FF 98 80 0D 01 02 00 00 00 00 10 [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 FF 98 00 90 00 0B [06:35:35]RAPDU: 90 00 [06:35:35]wFMCommunicate OK [06:35:35]wFMCommunicate request_size=255 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CC 47 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 35 04 06 00 44 0D 15 AC [06:35:35]Write to MH i2c: E2 02 01 00 99 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CC 47 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 35 04 06 00 44 0D 15 AC 00 00 7A [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 00 99 00 90 00 0D [06:35:35]RAPDU: 90 00 [06:35:35]wFMCommunicate OK [06:35:35]wFMCommunicate request_size=7 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 0D 02 02 02 75 28 [06:35:35]Write to MH i2c: E2 0A 00 01 99 80 0D 02 02 02 00 75 28 00 00 B5 [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 03 00 01 99 00 90 00 0E [06:35:35]RAPDU: 90 00 [06:35:35]wFMCommunicate OK [06:35:35]wFMCommunicate request_size=4 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 0D 03 02 [06:35:35]Write to MH i2c: E2 08 00 02 99 80 0D 03 02 00 00 00 00 16 [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 0B 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 0B 00 02 99 00 C1 59 18 DA 01 F9 71 98 90 00 26 [06:35:35]RAPDU: C1 59 18 DA 01 F9 71 98 90 00 [06:35:35]wFMCommunicate OK [06:35:35]SAM_PROTO_SignData done [06:35:35]FM_MakeSignedData done [06:35:35]CreateOFDProtocolMessage [06:35:35]wFMCommunicate request_size=4 [06:35:35]MH_SAM_APDU [06:35:35]CAPDU: 80 11 00 00 [06:35:35]Write to MH i2c: E2 08 00 03 99 80 11 00 00 00 00 00 00 16 [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:35]Read from MH i2c: E2 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 17 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: E2 17 00 03 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [06:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:35:35]wFMCommunicate OK [06:35:35]CreateOFDProtocolMessage done [06:35:35]OFDSenderStorePacket 166269 [06:35:35]StoreOFDPacket docnum=166269 [06:35:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 16 08 04 01 96 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CC 47 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 35 04 06 00 44 0D 15 AC 75 28 C1 59 18 DA 01 F9 71 98 [06:35:35]CheckFolder [06:35:35]dirname=/storage/ofd_packets [06:35:35]CheckFolder done [06:35:35]ProducePacketName [06:35:35]name=ofd_packets/00166269 [06:35:35]NVStorageSaveData ofd_packets/00166269 [06:35:35]File name is /storage/ofd_packets/00166269 [06:35:35]Write 298 bytes [06:35:35]NVStorageSaveData done [06:35:35]OFDSenderStorePacket done [06:35:35]KKMCreateOFDPacket done [06:35:35]NVStorageSaveData kkm_last_timestamp [06:35:35]File name is /storage/kkm_last_timestamp [06:35:35]Write 4 bytes [06:35:35]NVStorageSaveData done [06:35:35]ExternCall_PrintAddStr [06:35:35]wPrintStart [06:35:35]Write to MH i2c: 01 00 00 04 99 9D [06:35:35]Write i2c OK [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: 01 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: 01 07 00 [06:35:35]MH_I2C_Read... [06:35:35]Read from MH i2c: 01 07 00 04 99 00 00 00 00 00 FF 0F B2 [06:35:35]RasterBufferAndPrint [06:35:35]line Счет N : (1)220844 [06:35:35]line ИНН: 02508201610067 [06:35:35]line Контрольно-Кассовый Чек [06:35:35]line ПРОДАЖА [06:35:35]line ТРК (МРК, ГНК) : 21 [06:35:35]line Товар: 2710194210 [06:35:35]line ДТ-К-5 [06:35:35]line 13.130 * 76.20 [06:35:35]line = 1000.51 [06:35:35]line НДС 12% НСП 1% [06:35:35]line > о реализуемом товаре [06:35:35]line ОКРУГЛЕНИЕ: -0.51 [06:35:35]line ИТОГО: 1000.00 [06:35:35]line Внесено: 1000.00 [06:35:35]line СДАЧА: 0.00 [06:35:35]line НСП 1% : 8.85 [06:35:35]line НДС 12% : 106.25 [06:35:35]line Наличными: 1000.00 [06:35:35]line Безнал.: 0.00 [06:35:35]line Место: АЗС № 161 "Партнер Нефть" [06:35:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:35:35]line СНО: Общий режим [06:35:35]line Чек 24 22.10.2024 06:35 [06:35:35]line Смена: 536 ФФД: 1.0 [06:35:35]line ЗНМ: 0300000104 [06:35:35]line РНМ: 0000000000091764 [06:35:35]line Версия ККМ: 001 [06:35:35]line ФМ: 0000000000871759 [06:35:35]line ФД: 166269 [06:35:35]line ФПД: 74822988887336 [06:35:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166269&fm=74822988887336&tin=02508201610067®Number=0000000000091764&sum=100000 [06:35:35]OFD Sender: Processing packet 166269 [packets to send 48, broken 47] [06:35:35]ProducePacketName [06:35:35]name=ofd_packets/00166269 [06:35:35]OFD Sender: To server: pG, [06:35:35]CommunicateWithHost lk.salyk.kg:30040 [06:35:35]ConnectInit lk.salyk.kg [06:35:35]written 0, free lines is 4095 [06:35:36]Write to MH i2c: 01 00 00 2F 99 C8 [06:35:36]Write i2c OK [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: 01 [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: 01 07 00 [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: 01 07 00 2F 99 00 00 00 00 00 AE 0C 89 [06:35:36]RasterBufferAndPrint [06:35:36]line [06:35:36]line [06:35:36]line [06:35:36]line [06:35:36]line [06:35:36]written 0, free lines is 3252 [06:35:36]MH_Cut [06:35:36]Write to MH i2c: D1 01 00 36 99 01 A1 [06:35:36]Write i2c OK [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: D1 [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: D1 01 00 [06:35:36]MH_I2C_Read... [06:35:36]Read from MH i2c: D1 01 00 36 99 00 A0 [06:35:36]Write to MH i2c: 01 00 00 37 99 D0 [06:35:36]Write i2c OK [06:35:36]MH_I2C_Read... [06:35:37]*** Cut start [06:35:37]*** Partial cut [06:35:37]*** CUTSNS_PIN = 1 [06:35:37]*** CUTSNS_PIN = 0 [06:35:37]*** Brake cut motor [06:35:37]Read from MH i2c: 01 [06:35:37]MH_I2C_Read... [06:35:37]*** Stop cut motor [06:35:37]*** Cut end [06:35:37]Read from MH i2c: 01 07 00 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: 01 07 00 37 99 00 00 00 00 00 FF 0F E5 [06:35:37]process_action close_receipt done [06:35:37]requested_data is exist [06:35:37]produce_requested_data [06:35:37]requested_item fm.sn is exist - process it [06:35:37]wFMCommunicate request_size=4 [06:35:37]MH_SAM_APDU [06:35:37]CAPDU: 80 11 00 00 [06:35:37]Write to MH i2c: E2 08 00 38 99 80 11 00 00 00 00 00 00 4B [06:35:37]Write i2c OK [06:35:37]MH_I2C_Read... [06:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:37]Read from MH i2c: E2 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: E2 17 00 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: E2 17 00 38 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [06:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:35:37]wFMCommunicate OK [06:35:37]requested_item fd.num is exist - process it [06:35:37]SAM_PROTO_GetFieldsCounters [06:35:37]wFMCommunicate request_size=4 [06:35:37]MH_SAM_APDU [06:35:37]CAPDU: 80 13 00 00 [06:35:37]Write to MH i2c: E2 08 00 39 99 80 13 00 00 00 00 00 00 4E [06:35:37]Write i2c OK [06:35:37]MH_I2C_Read... [06:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:38]Read from MH i2c: E2 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 62 00 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 62 00 39 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [06:35:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:35:38]wFMCommunicate OK [06:35:38]SAM_PROTO_GetFieldsCounters done [06:35:38]requested_item shift.num is exist - process it [06:35:38]requested_item shift.opened is exist - process it [06:35:38]req_shift_opened [06:35:38]FM_GetShiftState [06:35:38]SAM_PROTO_GetShiftState [06:35:38]wFMCommunicate request_size=4 [06:35:38]MH_SAM_APDU [06:35:38]CAPDU: 80 13 01 00 [06:35:38]Write to MH i2c: E2 08 00 3A 99 80 13 01 00 00 00 00 00 50 [06:35:38]Write i2c OK [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 [06:35:38]MH_I2C_Read... [06:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:38]Read from MH i2c: E2 0E 00 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 0E 00 3A 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A3 [06:35:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:35:38]wFMCommunicate OK [06:35:38]SAM_PROTO_GetShiftState done [06:35:38]FM_GetShiftState done [06:35:38]req_shift_opened done [06:35:38]requested_item shift.open_date is exist - process it [06:35:38]req_shift_open_date [06:35:38]req_shift_open_date done [06:35:38]produce_requested_data done [06:35:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166269,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [06:35:38]process_action_free close_receipt [06:35:38]json_value_free [06:35:38]json_value_free done [06:35:38]process_json_proto returns [06:35:38]Send response to host [06:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166269,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [06:35:38]free response buf [06:35:38]execute_script done [06:35:38]execute_script returns [06:35:38]free content buf [06:35:38]Sock 6.Close socket [06:35:38]Sock 6.Thread stoped [06:35:45]recv_with_timeout no data received [06:35:50]Connected sock=9 [06:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 16 08 04 01 96 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CC 47 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 35 04 06 00 44 0D 15 AC 75 28 C1 59 18 DA 01 F9 71 98 [06:35:55]recv_with_timeout no data received [06:35:55]CommunicateWithHost answer receiving error [06:35:55]CommunicateWithHost err = -3 [06:35:55]OFD Sender: Server communicate error [06:36:00]OFD Sender: Processing packet 166269 [packets to send 48, broken 47] [06:36:00]ProducePacketName [06:36:00]name=ofd_packets/00166269 [06:36:00]OFD Sender: To server: pG, [06:36:00]CommunicateWithHost lk.salyk.kg:30040 [06:36:00]ConnectInit lk.salyk.kg [06:36:03]recv_with_timeout no data received [06:36:05]ConnectInit Can't take IP for lk.salyk.kg [06:36:05]CommunicateWithHost connect error [06:36:05]CommunicateWithHost err = -1 [06:36:05]OFD Sender: Server communicate error [06:36:10]OFD Sender: Processing packet 166269 [packets to send 48, broken 47] [06:36:10]ProducePacketName [06:36:10]name=ofd_packets/00166269 [06:36:10]OFD Sender: To server: pG, [06:36:10]CommunicateWithHost lk.salyk.kg:30040 [06:36:10]ConnectInit lk.salyk.kg [06:36:14]Connected sock=7 [06:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 16 08 04 01 96 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CC 47 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 35 04 06 00 44 0D 15 AC 75 28 C1 59 18 DA 01 F9 71 98 [06:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 90 47 00 ED A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 89 02 00 F4 03 04 00 5E EE 16 67 B6 04 01 00 00 16 CA BD 2B 56 66 12 8B [06:36:14]CommunicateWithHost err = 0 [06:36:14]CheckOFDResponse [06:36:14]1017 (14) - 77093643461234 [06:36:14]1041 (16) - 0000000000871759 [06:36:14]1040 (4) - 166269 [06:36:14]1012 (4) - 22.10.2024 00:14 [06:36:14]1206 (1) - 0 [06:36:14]OFD Sender: Remove packet 166269 [06:36:14]ProducePacketName [06:36:14]name=ofd_packets/00166269 [06:36:14]NVStorageDeleteData [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:26]accept exits with 5 [06:38:26]New connection [06:38:26]New thread 3066920292 created [06:38:26]Thread 3066776932 joined [06:38:26]Waiting for new connection... [06:38:26] Sock 5.Parse request [06:38:26]Sock 5.Check first char [06:38:26]Sock 5.First char is OK [06:38:26]request: POST /json_proto HTTP/1.0 [06:38:26]Method: POST [06:38:26]URL: /json_proto [06:38:26]Method is POST - this is cgi request [06:38:26]url: /json_proto [06:38:26]query_string will be loaded in cgi processing [06:38:26]execute_cgi json_proto POST (null) [06:38:26]execute_cgi path=json_proto method=POST [06:38:26]POST find Content-Length [06:38:26]Host: 172.17.53.195:8080 [06:38:26]Content-Length: 682 [06:38:26]Content-Type: application/json [06:38:26] [06:38:26]POST finish read [06:38:26]Found Content-Length = 682 [06:38:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:26]execute_script... [06:38:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:26]POST & json_proto [06:38:26]process_json_proto [06:38:26]json parsed OK: [06:38:26]protocol is kg_v1.0 [06:38:26]action value=close_receipt [06:38:26]process_action close_receipt [06:38:26]cmd_close_receipt [06:38:26]MH_GetDate [06:38:26]Write to MH i2c: F0 00 00 3B 99 C3 [06:38:26]Write i2c OK [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: F0 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: F0 09 00 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: F0 09 00 3B 99 00 79 48 17 67 21 48 4A 65 23 [06:38:26]GetLastDocTimeStamp 1729578956 [06:38:26]current date 1729579129 [06:38:26]FM_GetShiftState [06:38:26]SAM_PROTO_GetShiftState [06:38:26]wFMCommunicate request_size=4 [06:38:26]MH_SAM_APDU [06:38:26]CAPDU: 80 13 01 00 [06:38:26]Write to MH i2c: E2 08 00 3C 99 80 13 01 00 00 00 00 00 52 [06:38:26]Write i2c OK [06:38:26]MH_I2C_Read... [06:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:26]Read from MH i2c: E2 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: E2 0E 00 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: E2 0E 00 3C 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A5 [06:38:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:38:26]wFMCommunicate OK [06:38:26]SAM_PROTO_GetShiftState done [06:38:26]FM_GetShiftState done [06:38:26]opened in 1729557463 [06:38:26]opened+sec_in_day 1729643863 [06:38:26]quantity*price = 200043 [06:38:26]sum+1 = 200044 [06:38:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 25 22.10.2024 06:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166270 ФПД: 76833557105008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166270&fm=76833557105008&tin=02508201610067®Number=0000000000091764&sum=200000 [06:38:28]StoreToDocumentArchive [06:38:28]shift 536 fd 166270 [06:38:28]save to /storage/0536/doc_00166270 [06:38:28]save last doc name /storage/0536/doc_00166270 to /storage/kkm_last_doc_name [06:38:28]save OK [06:38:28]Clear old archive folders... [06:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:28]tlvbuf is 01B4DE30 [06:38:28]SAM_PROTO_ClearQueue [06:38:28]wFMCommunicate request_size=4 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 09 00 00 [06:38:28]Write to MH i2c: E2 08 00 49 99 80 09 00 00 00 00 00 00 54 [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 49 99 00 90 00 56 [06:38:28]RAPDU: 90 00 [06:38:28]wFMCommunicate OK [06:38:28]SAM_PROTO_ClearQueue done [06:38:28]KKMCreateOFDPacket [06:38:28]OFDProtocolAddRootSTLVToBuf [06:38:28]FM_MakeSignedData [06:38:28]FM_MakeSignedData [06:38:28]SAM_PROTO_SignData [06:38:28]wFMCommunicate request_size=4 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 0D 01 02 [06:38:28]Write to MH i2c: E2 08 00 4A 99 80 0D 01 02 00 00 00 00 5C [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 4A 99 00 90 00 57 [06:38:28]RAPDU: 90 00 [06:38:28]wFMCommunicate OK [06:38:28]wFMCommunicate request_size=255 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 79 48 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 89 02 00 35 04 06 00 45 [06:38:28]Write to MH i2c: E2 02 01 4B 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 79 48 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 89 02 00 35 04 06 00 45 00 00 5A [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 4B 99 00 90 00 58 [06:38:28]RAPDU: 90 00 [06:38:28]wFMCommunicate OK [06:38:28]wFMCommunicate request_size=10 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 0D 02 02 05 E1 34 E0 C9 70 [06:38:28]Write to MH i2c: E2 0D 00 4C 99 80 0D 02 02 05 00 E1 34 E0 C9 70 00 00 97 [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 03 00 4C 99 00 90 00 59 [06:38:28]RAPDU: 90 00 [06:38:28]wFMCommunicate OK [06:38:28]wFMCommunicate request_size=4 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 0D 03 02 [06:38:28]Write to MH i2c: E2 08 00 4D 99 80 0D 03 02 00 00 00 00 61 [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 0B 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 0B 00 4D 99 00 A7 6F 83 C7 B3 DB 42 9E 90 00 30 [06:38:28]RAPDU: A7 6F 83 C7 B3 DB 42 9E 90 00 [06:38:28]wFMCommunicate OK [06:38:28]SAM_PROTO_SignData done [06:38:28]FM_MakeSignedData done [06:38:28]CreateOFDProtocolMessage [06:38:28]wFMCommunicate request_size=4 [06:38:28]MH_SAM_APDU [06:38:28]CAPDU: 80 11 00 00 [06:38:28]Write to MH i2c: E2 08 00 4E 99 80 11 00 00 00 00 00 00 61 [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:28]Read from MH i2c: E2 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 17 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: E2 17 00 4E 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [06:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:38:28]wFMCommunicate OK [06:38:28]CreateOFDProtocolMessage done [06:38:28]OFDSenderStorePacket 166270 [06:38:28]StoreOFDPacket docnum=166270 [06:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 6E 07 01 D0 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 79 48 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 89 02 00 35 04 06 00 45 E1 34 E0 C9 70 A7 6F 83 C7 B3 DB 42 9E [06:38:28]CheckFolder [06:38:28]dirname=/storage/ofd_packets [06:38:28]CheckFolder done [06:38:28]ProducePacketName [06:38:28]name=ofd_packets/00166270 [06:38:28]NVStorageSaveData ofd_packets/00166270 [06:38:28]File name is /storage/ofd_packets/00166270 [06:38:28]Write 301 bytes [06:38:28]NVStorageSaveData done [06:38:28]OFDSenderStorePacket done [06:38:28]KKMCreateOFDPacket done [06:38:28]NVStorageSaveData kkm_last_timestamp [06:38:28]File name is /storage/kkm_last_timestamp [06:38:28]Write 4 bytes [06:38:28]NVStorageSaveData done [06:38:28]ExternCall_PrintAddStr [06:38:28]wPrintStart [06:38:28]Write to MH i2c: 01 00 00 4F 99 E8 [06:38:28]Write i2c OK [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: 01 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: 01 07 00 [06:38:28]MH_I2C_Read... [06:38:28]Read from MH i2c: 01 07 00 4F 99 00 00 00 00 00 FF 0F FD [06:38:28]RasterBufferAndPrint [06:38:28]line Счет N : (1)220845 [06:38:28]line ИНН: 02508201610067 [06:38:28]line Контрольно-Кассовый Чек [06:38:28]line ПРОДАЖА [06:38:28]line ТРК (МРК, ГНК) : 44 [06:38:28]line Товар: 2710124500 [06:38:28]line Аи-95-К-5 [06:38:28]line 26.960 * 74.20 [06:38:28]line = 2000.43 [06:38:28]line НДС 12% НСП 1% [06:38:28]line > о реализуемом товаре [06:38:28]line ОКРУГЛЕНИЕ: -0.43 [06:38:28]line ИТОГО: 2000.00 [06:38:28]line Внесено: 2000.00 [06:38:28]line СДАЧА: 0.00 [06:38:28]line НСП 1% : 17.70 [06:38:28]line НДС 12% : 212.43 [06:38:28]line Наличными: 2000.00 [06:38:28]line Безнал.: 0.00 [06:38:28]line Место: АЗС № 161 "Партнер Нефть" [06:38:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:38:28]line СНО: Общий режим [06:38:28]line Чек 25 22.10.2024 06:38 [06:38:28]line Смена: 536 ФФД: 1.0 [06:38:28]line ЗНМ: 0300000104 [06:38:28]line РНМ: 0000000000091764 [06:38:28]line Версия ККМ: 001 [06:38:28]line ФМ: 0000000000871759 [06:38:28]line ФД: 166270 [06:38:28]line ФПД: 76833557105008 [06:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166270&fm=76833557105008&tin=02508201610067®Number=0000000000091764&sum=200000 [06:38:28]OFD Sender: Processing packet 166270 [packets to send 48, broken 47] [06:38:28]ProducePacketName [06:38:28]name=ofd_packets/00166270 [06:38:28]OFD Sender: To server: pG, [06:38:28]CommunicateWithHost lk.salyk.kg:30040 [06:38:28]ConnectInit lk.salyk.kg [06:38:28]written 0, free lines is 4095 [06:38:29]Connected sock=7 [06:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 6E 07 01 D0 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 79 48 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 89 02 00 35 04 06 00 45 E1 34 E0 C9 70 A7 6F 83 C7 B3 DB 42 9E [06:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B5 7F 47 00 FC F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 89 02 00 F4 03 04 00 E5 EE 16 67 B6 04 01 00 00 F0 0B 3D 8E A4 85 50 E2 [06:38:29]CommunicateWithHost err = 0 [06:38:29]CheckOFDResponse [06:38:29]1017 (14) - 77093643461234 [06:38:29]1041 (16) - 0000000000871759 [06:38:29]1040 (4) - 166270 [06:38:29]1012 (4) - 22.10.2024 00:16 [06:38:29]1206 (1) - 0 [06:38:29]OFD Sender: Remove packet 166270 [06:38:29]ProducePacketName [06:38:29]name=ofd_packets/00166270 [06:38:29]NVStorageDeleteData [06:38:29]Write to MH i2c: 01 00 00 7A 99 13 [06:38:29]Write i2c OK [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: 01 [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: 01 07 00 [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: 01 07 00 7A 99 00 00 00 00 00 BA 0C E0 [06:38:29]RasterBufferAndPrint [06:38:29]line [06:38:29]line [06:38:29]line [06:38:29]line [06:38:29]line [06:38:29]written 0, free lines is 3266 [06:38:29]MH_Cut [06:38:29]Write to MH i2c: D1 01 00 81 99 01 EC [06:38:29]Write i2c OK [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: D1 [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: D1 01 00 [06:38:29]MH_I2C_Read... [06:38:29]Read from MH i2c: D1 01 00 81 99 00 EB [06:38:29]Write to MH i2c: 01 00 00 82 99 1B [06:38:29]Write i2c OK [06:38:29]MH_I2C_Read... [06:38:29]OFD Sender: No OFD packet to send [06:38:30]*** Cut start [06:38:30]*** Partial cut [06:38:30]*** CUTSNS_PIN = 1 [06:38:30]*** CUTSNS_PIN = 0 [06:38:30]*** Brake cut motor [06:38:30]Read from MH i2c: 01 [06:38:30]MH_I2C_Read... [06:38:30]*** Stop cut motor [06:38:30]*** Cut end [06:38:30]Read from MH i2c: 01 07 00 [06:38:30]MH_I2C_Read... [06:38:30]Read from MH i2c: 01 07 00 82 99 00 00 00 00 00 FF 0F 30 [06:38:30]process_action close_receipt done [06:38:30]requested_data is exist [06:38:30]produce_requested_data [06:38:30]requested_item fm.sn is exist - process it [06:38:30]wFMCommunicate request_size=4 [06:38:30]MH_SAM_APDU [06:38:30]CAPDU: 80 11 00 00 [06:38:30]Write to MH i2c: E2 08 00 83 99 80 11 00 00 00 00 00 00 96 [06:38:30]Write i2c OK [06:38:30]MH_I2C_Read... [06:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:30]Read from MH i2c: E2 [06:38:30]MH_I2C_Read... [06:38:30]Read from MH i2c: E2 17 00 [06:38:30]MH_I2C_Read... [06:38:30]Read from MH i2c: E2 17 00 83 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [06:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:38:30]wFMCommunicate OK [06:38:30]requested_item fd.num is exist - process it [06:38:30]SAM_PROTO_GetFieldsCounters [06:38:30]wFMCommunicate request_size=4 [06:38:30]MH_SAM_APDU [06:38:30]CAPDU: 80 13 00 00 [06:38:30]Write to MH i2c: E2 08 00 84 99 80 13 00 00 00 00 00 00 99 [06:38:30]Write i2c OK [06:38:30]MH_I2C_Read... [06:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:31]Read from MH i2c: E2 [06:38:31]MH_I2C_Read... [06:38:31]Read from MH i2c: E2 62 00 [06:38:31]MH_I2C_Read... [06:38:31]Read from MH i2c: E2 62 00 84 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [06:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:31]wFMCommunicate OK [06:38:31]SAM_PROTO_GetFieldsCounters done [06:38:31]requested_item shift.num is exist - process it [06:38:31]requested_item shift.opened is exist - process it [06:38:31]req_shift_opened [06:38:31]FM_GetShiftState [06:38:31]SAM_PROTO_GetShiftState [06:38:31]wFMCommunicate request_size=4 [06:38:31]MH_SAM_APDU [06:38:31]CAPDU: 80 13 01 00 [06:38:31]Write to MH i2c: E2 08 00 85 99 80 13 01 00 00 00 00 00 9B [06:38:31]Write i2c OK [06:38:31]MH_I2C_Read... [06:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:31]Read from MH i2c: E2 [06:38:31]MH_I2C_Read... [06:38:31]Read from MH i2c: E2 0E 00 [06:38:31]MH_I2C_Read... [06:38:31]Read from MH i2c: E2 0E 00 85 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EE [06:38:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:38:31]wFMCommunicate OK [06:38:31]SAM_PROTO_GetShiftState done [06:38:31]FM_GetShiftState done [06:38:31]req_shift_opened done [06:38:31]requested_item shift.open_date is exist - process it [06:38:31]req_shift_open_date [06:38:31]req_shift_open_date done [06:38:31]produce_requested_data done [06:38:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166270,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [06:38:31]process_action_free close_receipt [06:38:31]json_value_free [06:38:31]json_value_free done [06:38:31]process_json_proto returns [06:38:31]Send response to host [06:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166270,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [06:38:31]free response buf [06:38:31]execute_script done [06:38:31]execute_script returns [06:38:31]free content buf [06:38:31]Sock 5.Close socket [06:38:31]Sock 5.Thread stoped [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43: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:12]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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]recv_with_timeout no data received [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:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [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:32]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:07]accept exits with 6 [06:56:07]New connection [06:56:07]New thread 3066776932 created [06:56:07]Thread 3066920292 joined [06:56:07]Waiting for new connection... [06:56:07] Sock 6.Parse request [06:56:07]Sock 6.Check first char [06:56:07]Sock 6.First char is OK [06:56:07]request: POST /json_proto HTTP/1.0 [06:56:07]Method: POST [06:56:07]URL: /json_proto [06:56:07]Method is POST - this is cgi request [06:56:07]url: /json_proto [06:56:07]query_string will be loaded in cgi processing [06:56:07]execute_cgi json_proto POST (null) [06:56:07]execute_cgi path=json_proto method=POST [06:56:07]POST find Content-Length [06:56:07]Host: 172.17.53.195:8080 [06:56:07]Content-Length: 677 [06:56:07]Content-Type: application/json [06:56:07] [06:56:07]POST finish read [06:56:07]Found Content-Length = 677 [06:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:07]execute_script... [06:56: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)220846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:07]POST & json_proto [06:56:07]process_json_proto [06:56:07]json parsed OK: [06:56:07]protocol is kg_v1.0 [06:56:07]action value=close_receipt [06:56:07]process_action close_receipt [06:56:07]cmd_close_receipt [06:56:07]MH_GetDate [06:56:07]Write to MH i2c: F0 00 00 86 99 0E [06:56:07]Write i2c OK [06:56:07]MH_I2C_Read... [06:56:07]Read from MH i2c: F0 [06:56:07]MH_I2C_Read... [06:56:07]Read from MH i2c: F0 09 00 [06:56:07]MH_I2C_Read... [06:56:07]Read from MH i2c: F0 09 00 86 99 00 9D 4C 17 67 21 48 4A 65 96 [06:56:07]GetLastDocTimeStamp 1729579129 [06:56:07]current date 1729580189 [06:56:07]FM_GetShiftState [06:56:07]SAM_PROTO_GetShiftState [06:56:07]wFMCommunicate request_size=4 [06:56:07]MH_SAM_APDU [06:56:07]CAPDU: 80 13 01 00 [06:56:07]Write to MH i2c: E2 08 00 87 99 80 13 01 00 00 00 00 00 9D [06:56:07]Write i2c OK [06:56:07]MH_I2C_Read... [06:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:07]Read from MH i2c: E2 [06:56:07]MH_I2C_Read... [06:56:07]Read from MH i2c: E2 0E 00 [06:56:07]MH_I2C_Read... [06:56:07]Read from MH i2c: E2 0E 00 87 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F0 [06:56:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:56:07]wFMCommunicate OK [06:56:07]SAM_PROTO_GetShiftState done [06:56:07]FM_GetShiftState done [06:56:07]opened in 1729557463 [06:56:07]opened+sec_in_day 1729643863 [06:56:07]quantity*price = 50041 [06:56:07]sum+1 = 50042 [06:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 26 22.10.2024 06:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166271 ФПД: 18936473432231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166271&fm=18936473432231&tin=02508201610067®Number=0000000000091764&sum=50000 [06:56:08]StoreToDocumentArchive [06:56:08]shift 536 fd 166271 [06:56:08]save to /storage/0536/doc_00166271 [06:56:08]save last doc name /storage/0536/doc_00166271 to /storage/kkm_last_doc_name [06:56:08]save OK [06:56:08]Clear old archive folders... [06:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:56:08]tlvbuf is 0186B580 [06:56:08]SAM_PROTO_ClearQueue [06:56:08]wFMCommunicate request_size=4 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 09 00 00 [06:56:08]Write to MH i2c: E2 08 00 94 99 80 09 00 00 00 00 00 00 9F [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 94 99 00 90 00 A1 [06:56:08]RAPDU: 90 00 [06:56:08]wFMCommunicate OK [06:56:08]SAM_PROTO_ClearQueue done [06:56:08]KKMCreateOFDPacket [06:56:08]OFDProtocolAddRootSTLVToBuf [06:56:08]FM_MakeSignedData [06:56:08]FM_MakeSignedData [06:56:08]SAM_PROTO_SignData [06:56:08]wFMCommunicate request_size=4 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 0D 01 02 [06:56:08]Write to MH i2c: E2 08 00 95 99 80 0D 01 02 00 00 00 00 A7 [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 95 99 00 90 00 A2 [06:56:08]RAPDU: 90 00 [06:56:08]wFMCommunicate OK [06:56:08]wFMCommunicate request_size=255 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9D 4C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 89 02 00 35 04 06 00 11 [06:56:08]Write to MH i2c: E2 02 01 96 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9D 4C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 89 02 00 35 04 06 00 11 00 00 F3 [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 96 99 00 90 00 A3 [06:56:08]RAPDU: 90 00 [06:56:08]wFMCommunicate OK [06:56:08]wFMCommunicate request_size=10 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 0D 02 02 05 38 FD C5 B0 A7 [06:56:08]Write to MH i2c: E2 0D 00 97 99 80 0D 02 02 05 00 38 FD C5 B0 A7 00 00 05 [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 03 00 97 99 00 90 00 A4 [06:56:08]RAPDU: 90 00 [06:56:08]wFMCommunicate OK [06:56:08]wFMCommunicate request_size=4 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 0D 03 02 [06:56:08]Write to MH i2c: E2 08 00 98 99 80 0D 03 02 00 00 00 00 AC [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 0B 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 0B 00 98 99 00 D3 57 33 B2 B5 B7 F0 C4 90 00 DC [06:56:08]RAPDU: D3 57 33 B2 B5 B7 F0 C4 90 00 [06:56:08]wFMCommunicate OK [06:56:08]SAM_PROTO_SignData done [06:56:08]FM_MakeSignedData done [06:56:08]CreateOFDProtocolMessage [06:56:08]wFMCommunicate request_size=4 [06:56:08]MH_SAM_APDU [06:56:08]CAPDU: 80 11 00 00 [06:56:08]Write to MH i2c: E2 08 00 99 99 80 11 00 00 00 00 00 00 AC [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:08]Read from MH i2c: E2 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 17 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: E2 17 00 99 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [06:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:56:08]wFMCommunicate OK [06:56:08]CreateOFDProtocolMessage done [06:56:08]OFDSenderStorePacket 166271 [06:56:08]StoreOFDPacket docnum=166271 [06:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 80 07 01 68 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9D 4C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 89 02 00 35 04 06 00 11 38 FD C5 B0 A7 D3 57 33 B2 B5 B7 F0 C4 [06:56:08]CheckFolder [06:56:08]dirname=/storage/ofd_packets [06:56:08]CheckFolder done [06:56:08]ProducePacketName [06:56:08]name=ofd_packets/00166271 [06:56:08]NVStorageSaveData ofd_packets/00166271 [06:56:08]File name is /storage/ofd_packets/00166271 [06:56:08]Write 301 bytes [06:56:08]NVStorageSaveData done [06:56:08]OFDSenderStorePacket done [06:56:08]KKMCreateOFDPacket done [06:56:08]NVStorageSaveData kkm_last_timestamp [06:56:08]File name is /storage/kkm_last_timestamp [06:56:08]Write 4 bytes [06:56:08]NVStorageSaveData done [06:56:08]ExternCall_PrintAddStr [06:56:08]wPrintStart [06:56:08]Write to MH i2c: 01 00 00 9A 99 33 [06:56:08]Write i2c OK [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: 01 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: 01 07 00 [06:56:08]MH_I2C_Read... [06:56:08]Read from MH i2c: 01 07 00 9A 99 00 00 00 00 00 FF 0F 48 [06:56:08]RasterBufferAndPrint [06:56:08]line Счет N : (1)220846 [06:56:08]line ИНН: 02508201610067 [06:56:08]line Контрольно-Кассовый Чек [06:56:08]line ПРОДАЖА [06:56:08]line ТРК (МРК, ГНК) : 23 [06:56:08]line Товар: 2710124130 [06:56:08]line Аи-92-К-5 [06:56:08]line 7.480 * 66.90 [06:56:08]line = 500.41 [06:56:08]line НДС 12% НСП 1% [06:56:08]line > о реализуемом товаре [06:56:08]line ОКРУГЛЕНИЕ: -0.41 [06:56:08]line ИТОГО: 500.00 [06:56:08]line Внесено: 500.00 [06:56:08]line СДАЧА: 0.00 [06:56:08]line НСП 1% : 4.43 [06:56:08]line НДС 12% : 53.14 [06:56:08]line Наличными: 500.00 [06:56:08]line Безнал.: 0.00 [06:56:08]line Место: АЗС № 161 "Партнер Нефть" [06:56:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:56:08]line СНО: Общий режим [06:56:08]line Чек 26 22.10.2024 06:56 [06:56:08]line Смена: 536 ФФД: 1.0 [06:56:08]line ЗНМ: 0300000104 [06:56:08]line РНМ: 0000000000091764 [06:56:08]line Версия ККМ: 001 [06:56:08]line ФМ: 0000000000871759 [06:56:08]line ФД: 166271 [06:56:08]line ФПД: 18936473432231 [06:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065629&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166271&fm=18936473432231&tin=02508201610067®Number=0000000000091764&sum=50000 [06:56:09]OFD Sender: Processing packet 166271 [packets to send 48, broken 47] [06:56:09]ProducePacketName [06:56:09]name=ofd_packets/00166271 [06:56:09]OFD Sender: To server: pG, [06:56:09]CommunicateWithHost lk.salyk.kg:30040 [06:56:09]ConnectInit lk.salyk.kg [06:56:09]written 0, free lines is 4095 [06:56:09]Write to MH i2c: 01 00 00 C5 99 5E [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: 01 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: 01 07 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: 01 07 00 C5 99 00 00 00 00 00 A9 0C 1A [06:56:09]RasterBufferAndPrint [06:56:09]line [06:56:09]line [06:56:09]line [06:56:09]line [06:56:09]line [06:56:09]written 0, free lines is 3247 [06:56:09]MH_Cut [06:56:09]Write to MH i2c: D1 01 00 CC 99 01 37 [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: D1 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: D1 01 00 [06:56:09]MH_I2C_Read... [06:56:09]Read from MH i2c: D1 01 00 CC 99 00 36 [06:56:09]Write to MH i2c: 01 00 00 CD 99 66 [06:56:09]Write i2c OK [06:56:09]MH_I2C_Read... [06:56:10]*** Cut start [06:56:10]*** Partial cut [06:56:10]*** CUTSNS_PIN = 1 [06:56:10]*** CUTSNS_PIN = 0 [06:56:10]*** Brake cut motor [06:56:11]Read from MH i2c: 01 [06:56:11]MH_I2C_Read... [06:56:11]*** Stop cut motor [06:56:11]*** Cut end [06:56:11]Read from MH i2c: 01 07 00 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: 01 07 00 CD 99 00 00 00 00 00 FF 0F 7B [06:56:11]process_action close_receipt done [06:56:11]requested_data is exist [06:56:11]produce_requested_data [06:56:11]requested_item fm.sn is exist - process it [06:56:11]wFMCommunicate request_size=4 [06:56:11]MH_SAM_APDU [06:56:11]CAPDU: 80 11 00 00 [06:56:11]Write to MH i2c: E2 08 00 CE 99 80 11 00 00 00 00 00 00 E1 [06:56:11]Write i2c OK [06:56:11]MH_I2C_Read... [06:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:11]Read from MH i2c: E2 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 17 00 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 17 00 CE 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [06:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:56:11]wFMCommunicate OK [06:56:11]requested_item fd.num is exist - process it [06:56:11]SAM_PROTO_GetFieldsCounters [06:56:11]wFMCommunicate request_size=4 [06:56:11]MH_SAM_APDU [06:56:11]CAPDU: 80 13 00 00 [06:56:11]Write to MH i2c: E2 08 00 CF 99 80 13 00 00 00 00 00 00 E4 [06:56:11]Write i2c OK [06:56:11]MH_I2C_Read... [06:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:11]Read from MH i2c: E2 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 62 00 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 62 00 CF 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [06:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:11]wFMCommunicate OK [06:56:11]SAM_PROTO_GetFieldsCounters done [06:56:11]requested_item shift.num is exist - process it [06:56:11]requested_item shift.opened is exist - process it [06:56:11]req_shift_opened [06:56:11]FM_GetShiftState [06:56:11]SAM_PROTO_GetShiftState [06:56:11]wFMCommunicate request_size=4 [06:56:11]MH_SAM_APDU [06:56:11]CAPDU: 80 13 01 00 [06:56:11]Write to MH i2c: E2 08 00 D0 99 80 13 01 00 00 00 00 00 E6 [06:56:11]Write i2c OK [06:56:11]MH_I2C_Read... [06:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:11]Read from MH i2c: E2 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 0E 00 [06:56:11]MH_I2C_Read... [06:56:11]Read from MH i2c: E2 0E 00 D0 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 39 [06:56:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [06:56:11]wFMCommunicate OK [06:56:11]SAM_PROTO_GetShiftState done [06:56:11]FM_GetShiftState done [06:56:11]req_shift_opened done [06:56:11]requested_item shift.open_date is exist - process it [06:56:11]req_shift_open_date [06:56:11]req_shift_open_date done [06:56:11]produce_requested_data done [06:56:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166271,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [06:56:11]process_action_free close_receipt [06:56:11]json_value_free [06:56:11]json_value_free done [06:56:11]process_json_proto returns [06:56:11]Send response to host [06:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166271,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [06:56:11]free response buf [06:56:11]execute_script done [06:56:11]execute_script returns [06:56:11]free content buf [06:56:11]Sock 6.Close socket [06:56:11]Sock 6.Thread stoped [06:56:12]recv_with_timeout no data received [06:56:14]ConnectInit Can't take IP for lk.salyk.kg [06:56:14]CommunicateWithHost connect error [06:56:14]CommunicateWithHost err = -1 [06:56:14]OFD Sender: Server communicate error [06:56:19]OFD Sender: Processing packet 166271 [packets to send 48, broken 47] [06:56:19]ProducePacketName [06:56:19]name=ofd_packets/00166271 [06:56:19]OFD Sender: To server: pG, [06:56:19]CommunicateWithHost lk.salyk.kg:30040 [06:56:19]ConnectInit lk.salyk.kg [06:56:21]Connected sock=6 [06:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 80 07 01 68 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9D 4C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 89 02 00 35 04 06 00 11 38 FD C5 B0 A7 D3 57 33 B2 B5 B7 F0 C4 [06:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F A3 47 00 43 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 89 02 00 F4 03 04 00 16 F3 16 67 B6 04 01 00 00 27 C8 A1 C2 F6 EC 06 C5 [06:56:21]CommunicateWithHost err = 0 [06:56:21]CheckOFDResponse [06:56:21]1017 (14) - 77093643461234 [06:56:21]1041 (16) - 0000000000871759 [06:56:21]1040 (4) - 166271 [06:56:21]1012 (4) - 22.10.2024 00:34 [06:56:21]1206 (1) - 0 [06:56:21]OFD Sender: Remove packet 166271 [06:56:21]ProducePacketName [06:56:21]name=ofd_packets/00166271 [06:56:21]NVStorageDeleteData [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:16]recv_with_timeout no data received [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:35]recv_with_timeout no data received [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:52]recv_with_timeout no data received [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:09]recv_with_timeout no data received [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:30]accept exits with 7 [07:15:30]New connection [07:15:30]New thread 3066920292 created [07:15:30]Thread 3066776932 joined [07:15:30]Waiting for new connection... [07:15:30] Sock 7.Parse request [07:15:30]Sock 7.Check first char [07:15:30]Sock 7.First char is OK [07:15:30]request: POST /json_proto HTTP/1.0 [07:15:30]Method: POST [07:15:30]URL: /json_proto [07:15:30]Method is POST - this is cgi request [07:15:30]url: /json_proto [07:15:30]query_string will be loaded in cgi processing [07:15:30]execute_cgi json_proto POST (null) [07:15:30]execute_cgi path=json_proto method=POST [07:15:30]POST find Content-Length [07:15:30]Host: 172.17.53.195:8080 [07:15:30]Content-Length: 677 [07:15:30]Content-Type: application/json [07:15:30] [07:15:30]POST finish read [07:15:30]Found Content-Length = 677 [07:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:30]execute_script... [07:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:30]POST & json_proto [07:15:30]process_json_proto [07:15:30]json parsed OK: [07:15:30]protocol is kg_v1.0 [07:15:30]action value=close_receipt [07:15:30]process_action close_receipt [07:15:30]cmd_close_receipt [07:15:30]MH_GetDate [07:15:30]Write to MH i2c: F0 00 00 D1 99 59 [07:15:30]Write i2c OK [07:15:30]MH_I2C_Read... [07:15:30]Read from MH i2c: F0 [07:15:30]MH_I2C_Read... [07:15:30]Read from MH i2c: F0 09 00 [07:15:30]MH_I2C_Read... [07:15:30]Read from MH i2c: F0 09 00 D1 99 00 29 51 17 67 21 48 4A 65 72 [07:15:30]GetLastDocTimeStamp 1729580189 [07:15:30]current date 1729581353 [07:15:30]FM_GetShiftState [07:15:30]SAM_PROTO_GetShiftState [07:15:30]wFMCommunicate request_size=4 [07:15:30]MH_SAM_APDU [07:15:30]CAPDU: 80 13 01 00 [07:15:30]Write to MH i2c: E2 08 00 D2 99 80 13 01 00 00 00 00 00 E8 [07:15:30]Write i2c OK [07:15:30]MH_I2C_Read... [07:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:30]Read from MH i2c: E2 [07:15:30]MH_I2C_Read... [07:15:30]Read from MH i2c: E2 0E 00 [07:15:30]MH_I2C_Read... [07:15:30]Read from MH i2c: E2 0E 00 D2 99 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3B [07:15:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:15:30]wFMCommunicate OK [07:15:30]SAM_PROTO_GetShiftState done [07:15:30]FM_GetShiftState done [07:15:30]opened in 1729557463 [07:15:30]opened+sec_in_day 1729643863 [07:15:30]quantity*price = 30038 [07:15:30]sum+1 = 30039 [07:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 27 22.10.2024 07:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166272 ФПД: 192074675403216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166272&fm=192074675403216&tin=02508201610067®Number=0000000000091764&sum=30000 [07:15:31]StoreToDocumentArchive [07:15:31]shift 536 fd 166272 [07:15:31]save to /storage/0536/doc_00166272 [07:15:31]save last doc name /storage/0536/doc_00166272 to /storage/kkm_last_doc_name [07:15:31]save OK [07:15:31]Clear old archive folders... [07:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:15:31]tlvbuf is 01599840 [07:15:31]SAM_PROTO_ClearQueue [07:15:31]wFMCommunicate request_size=4 [07:15:31]MH_SAM_APDU [07:15:31]CAPDU: 80 09 00 00 [07:15:31]Write to MH i2c: E2 08 00 DF 99 80 09 00 00 00 00 00 00 EA [07:15:31]Write i2c OK [07:15:31]MH_I2C_Read... [07:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:31]Read from MH i2c: E2 [07:15:31]MH_I2C_Read... [07:15:31]Read from MH i2c: E2 03 00 [07:15:31]MH_I2C_Read... [07:15:31]Read from MH i2c: E2 03 00 DF 99 00 90 00 EC [07:15:31]RAPDU: 90 00 [07:15:31]wFMCommunicate OK [07:15:31]SAM_PROTO_ClearQueue done [07:15:31]KKMCreateOFDPacket [07:15:31]OFDProtocolAddRootSTLVToBuf [07:15:31]FM_MakeSignedData [07:15:31]FM_MakeSignedData [07:15:31]SAM_PROTO_SignData [07:15:31]wFMCommunicate request_size=4 [07:15:31]MH_SAM_APDU [07:15:31]CAPDU: 80 0D 01 02 [07:15:31]Write to MH i2c: E2 08 00 E0 99 80 0D 01 02 00 00 00 00 F2 [07:15:31]Write i2c OK [07:15:31]MH_I2C_Read... [07:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:32]Read from MH i2c: E2 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 E0 99 00 90 00 ED [07:15:32]RAPDU: 90 00 [07:15:32]wFMCommunicate OK [07:15:32]wFMCommunicate request_size=255 [07:15:32]MH_SAM_APDU [07:15:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 51 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 89 02 00 35 04 06 00 AE [07:15:32]Write to MH i2c: E2 02 01 E1 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 51 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 89 02 00 35 04 06 00 AE 00 00 62 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:32]Read from MH i2c: E2 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 E1 99 00 90 00 EE [07:15:32]RAPDU: 90 00 [07:15:32]wFMCommunicate OK [07:15:32]wFMCommunicate request_size=10 [07:15:32]MH_SAM_APDU [07:15:32]CAPDU: 80 0D 02 02 05 B0 DE CC 39 D0 [07:15:32]Write to MH i2c: E2 0D 00 E2 99 80 0D 02 02 05 00 B0 DE CC 39 D0 00 00 62 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:32]Read from MH i2c: E2 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 03 00 E2 99 00 90 00 EF [07:15:32]RAPDU: 90 00 [07:15:32]wFMCommunicate OK [07:15:32]wFMCommunicate request_size=4 [07:15:32]MH_SAM_APDU [07:15:32]CAPDU: 80 0D 03 02 [07:15:32]Write to MH i2c: E2 08 00 E3 99 80 0D 03 02 00 00 00 00 F7 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:32]Read from MH i2c: E2 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 0B 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 0B 00 E3 99 00 88 1D 2E 2E E5 93 1C E4 90 00 71 [07:15:32]RAPDU: 88 1D 2E 2E E5 93 1C E4 90 00 [07:15:32]wFMCommunicate OK [07:15:32]SAM_PROTO_SignData done [07:15:32]FM_MakeSignedData done [07:15:32]CreateOFDProtocolMessage [07:15:32]wFMCommunicate request_size=4 [07:15:32]MH_SAM_APDU [07:15:32]CAPDU: 80 11 00 00 [07:15:32]Write to MH i2c: E2 08 00 E4 99 80 11 00 00 00 00 00 00 F7 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:32]Read from MH i2c: E2 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 17 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: E2 17 00 E4 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [07:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:15:32]wFMCommunicate OK [07:15:32]CreateOFDProtocolMessage done [07:15:32]OFDSenderStorePacket 166272 [07:15:32]StoreOFDPacket docnum=166272 [07:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 B0 07 01 95 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 51 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 89 02 00 35 04 06 00 AE B0 DE CC 39 D0 88 1D 2E 2E E5 93 1C E4 [07:15:32]CheckFolder [07:15:32]dirname=/storage/ofd_packets [07:15:32]CheckFolder done [07:15:32]ProducePacketName [07:15:32]name=ofd_packets/00166272 [07:15:32]NVStorageSaveData ofd_packets/00166272 [07:15:32]File name is /storage/ofd_packets/00166272 [07:15:32]Write 301 bytes [07:15:32]NVStorageSaveData done [07:15:32]OFDSenderStorePacket done [07:15:32]KKMCreateOFDPacket done [07:15:32]NVStorageSaveData kkm_last_timestamp [07:15:32]File name is /storage/kkm_last_timestamp [07:15:32]Write 4 bytes [07:15:32]NVStorageSaveData done [07:15:32]ExternCall_PrintAddStr [07:15:32]wPrintStart [07:15:32]Write to MH i2c: 01 00 00 E5 99 7E [07:15:32]OFD Sender: Processing packet 166272 [packets to send 48, broken 47] [07:15:32]ProducePacketName [07:15:32]name=ofd_packets/00166272 [07:15:32]OFD Sender: To server: pG, [07:15:32]CommunicateWithHost lk.salyk.kg:30040 [07:15:32]ConnectInit lk.salyk.kg [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 07 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 07 00 E5 99 00 00 00 00 00 FF 0F 93 [07:15:32]RasterBufferAndPrint [07:15:32]line Счет N : (1)220847 [07:15:32]line ИНН: 02508201610067 [07:15:32]line Контрольно-Кассовый Чек [07:15:32]line ПРОДАЖА [07:15:32]line ТРК (МРК, ГНК) : 13 [07:15:32]line Товар: 2710124130 [07:15:32]line Аи-92-К-5 [07:15:32]line 4.490 * 66.90 [07:15:32]line = 300.38 [07:15:32]line НДС 12% НСП 1% [07:15:32]line > о реализуемом товаре [07:15:32]line ОКРУГЛЕНИЕ: -0.38 [07:15:32]line ИТОГО: 300.00 [07:15:32]line Внесено: 300.00 [07:15:32]line СДАЧА: 0.00 [07:15:32]line НСП 1% : 2.66 [07:15:32]line НДС 12% : 31.90 [07:15:32]line Наличными: 300.00 [07:15:32]line Безнал.: 0.00 [07:15:32]line Место: АЗС № 161 "Партнер Нефть" [07:15:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:15:32]line СНО: Общий режим [07:15:32]line Чек 27 22.10.2024 07:15 [07:15:32]line Смена: 536 ФФД: 1.0 [07:15:32]line ЗНМ: 0300000104 [07:15:32]line РНМ: 0000000000091764 [07:15:32]line Версия ККМ: 001 [07:15:32]line ФМ: 0000000000871759 [07:15:32]line ФД: 166272 [07:15:32]line ФПД: 192074675403216 [07:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166272&fm=192074675403216&tin=02508201610067®Number=0000000000091764&sum=30000 [07:15:32]written 0, free lines is 4095 [07:15:32]Connected sock=6 [07:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 B0 07 01 95 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 29 51 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 89 02 00 35 04 06 00 AE B0 DE CC 39 D0 88 1D 2E 2E E5 93 1C E4 [07:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD D5 47 00 8E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 89 02 00 F4 03 04 00 95 F7 16 67 B6 04 01 00 00 5B 27 36 96 51 0F EC 4C [07:15:32]CommunicateWithHost err = 0 [07:15:32]CheckOFDResponse [07:15:32]1017 (14) - 77093643461234 [07:15:32]1041 (16) - 0000000000871759 [07:15:32]1040 (4) - 166272 [07:15:32]1012 (4) - 22.10.2024 00:53 [07:15:32]1206 (1) - 0 [07:15:32]OFD Sender: Remove packet 166272 [07:15:32]ProducePacketName [07:15:32]name=ofd_packets/00166272 [07:15:32]NVStorageDeleteData [07:15:32]Write to MH i2c: 01 00 00 10 9A AA [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 07 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: 01 07 00 10 9A 00 00 00 00 00 C2 0C 7F [07:15:32]RasterBufferAndPrint [07:15:32]line [07:15:32]line [07:15:32]line [07:15:32]line [07:15:32]line [07:15:32]written 0, free lines is 3275 [07:15:32]MH_Cut [07:15:32]Write to MH i2c: D1 01 00 17 9A 01 83 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: D1 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: D1 01 00 [07:15:32]MH_I2C_Read... [07:15:32]Read from MH i2c: D1 01 00 17 9A 00 82 [07:15:32]Write to MH i2c: 01 00 00 18 9A B2 [07:15:32]Write i2c OK [07:15:32]MH_I2C_Read... [07:15:33]OFD Sender: No OFD packet to send [07:15:33]*** Cut start [07:15:33]*** Partial cut [07:15:33]*** CUTSNS_PIN = 1 [07:15:33]*** CUTSNS_PIN = 0 [07:15:34]*** Brake cut motor [07:15:34]Read from MH i2c: 01 [07:15:34]MH_I2C_Read... [07:15:34]*** Stop cut motor [07:15:34]*** Cut end [07:15:34]Read from MH i2c: 01 07 00 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: 01 07 00 18 9A 00 00 00 00 00 FF 0F C7 [07:15:34]process_action close_receipt done [07:15:34]requested_data is exist [07:15:34]produce_requested_data [07:15:34]requested_item fm.sn is exist - process it [07:15:34]wFMCommunicate request_size=4 [07:15:34]MH_SAM_APDU [07:15:34]CAPDU: 80 11 00 00 [07:15:34]Write to MH i2c: E2 08 00 19 9A 80 11 00 00 00 00 00 00 2D [07:15:34]Write i2c OK [07:15:34]MH_I2C_Read... [07:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:34]Read from MH i2c: E2 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 17 00 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 17 00 19 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [07:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:15:34]wFMCommunicate OK [07:15:34]requested_item fd.num is exist - process it [07:15:34]SAM_PROTO_GetFieldsCounters [07:15:34]wFMCommunicate request_size=4 [07:15:34]MH_SAM_APDU [07:15:34]CAPDU: 80 13 00 00 [07:15:34]Write to MH i2c: E2 08 00 1A 9A 80 13 00 00 00 00 00 00 30 [07:15:34]Write i2c OK [07:15:34]MH_I2C_Read... [07:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:34]Read from MH i2c: E2 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 62 00 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 62 00 1A 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [07:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:15:34]wFMCommunicate OK [07:15:34]SAM_PROTO_GetFieldsCounters done [07:15:34]requested_item shift.num is exist - process it [07:15:34]requested_item shift.opened is exist - process it [07:15:34]req_shift_opened [07:15:34]FM_GetShiftState [07:15:34]SAM_PROTO_GetShiftState [07:15:34]wFMCommunicate request_size=4 [07:15:34]MH_SAM_APDU [07:15:34]CAPDU: 80 13 01 00 [07:15:34]Write to MH i2c: E2 08 00 1B 9A 80 13 01 00 00 00 00 00 32 [07:15:34]Write i2c OK [07:15:34]MH_I2C_Read... [07:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:34]Read from MH i2c: E2 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 0E 00 [07:15:34]MH_I2C_Read... [07:15:34]Read from MH i2c: E2 0E 00 1B 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 85 [07:15:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:15:34]wFMCommunicate OK [07:15:34]SAM_PROTO_GetShiftState done [07:15:34]FM_GetShiftState done [07:15:34]req_shift_opened done [07:15:34]requested_item shift.open_date is exist - process it [07:15:34]req_shift_open_date [07:15:34]req_shift_open_date done [07:15:34]produce_requested_data done [07:15:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166272,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:15:34]process_action_free close_receipt [07:15:34]json_value_free [07:15:34]json_value_free done [07:15:34]process_json_proto returns [07:15:34]Send response to host [07:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166272,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:15:34]free response buf [07:15:34]execute_script done [07:15:34]execute_script returns [07:15:34]free content buf [07:15:34]Sock 7.Close socket [07:15:34]Sock 7.Thread stoped [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]recv_with_timeout no data received [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:20]recv_with_timeout no data received [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:47]recv_with_timeout no data received [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:55]accept exits with 5 [07:32:55]New connection [07:32:55]New thread 3066776932 created [07:32:55]Thread 3066920292 joined [07:32:55]Waiting for new connection... [07:32:55] Sock 5.Parse request [07:32:55]Sock 5.Check first char [07:32:55]Sock 5.First char is OK [07:32:55]request: POST /json_proto HTTP/1.0 [07:32:55]Method: POST [07:32:55]URL: /json_proto [07:32:55]Method is POST - this is cgi request [07:32:55]url: /json_proto [07:32:55]query_string will be loaded in cgi processing [07:32:55]execute_cgi json_proto POST (null) [07:32:55]execute_cgi path=json_proto method=POST [07:32:55]POST find Content-Length [07:32:55]Host: 172.17.53.195:8080 [07:32:55]Content-Length: 679 [07:32:55]Content-Type: application/json [07:32:55] [07:32:55]POST finish read [07:32:55]Found Content-Length = 679 [07:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:55]execute_script... [07:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:55]POST & json_proto [07:32:55]process_json_proto [07:32:55]json parsed OK: [07:32:55]protocol is kg_v1.0 [07:32:55]action value=close_receipt [07:32:55]process_action close_receipt [07:32:55]cmd_close_receipt [07:32:55]MH_GetDate [07:32:55]Write to MH i2c: F0 00 00 1C 9A A5 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 09 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: F0 09 00 1C 9A 00 3E 55 17 67 21 48 4A 65 D7 [07:32:55]GetLastDocTimeStamp 1729581353 [07:32:55]current date 1729582398 [07:32:55]FM_GetShiftState [07:32:55]SAM_PROTO_GetShiftState [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 13 01 00 [07:32:55]Write to MH i2c: E2 08 00 1D 9A 80 13 01 00 00 00 00 00 34 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0E 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0E 00 1D 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 87 [07:32:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:32:55]wFMCommunicate OK [07:32:55]SAM_PROTO_GetShiftState done [07:32:55]FM_GetShiftState done [07:32:55]opened in 1729557463 [07:32:55]opened+sec_in_day 1729643863 [07:32:55]quantity*price = 150037 [07:32:55]sum+1 = 150039 [07:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 28 22.10.2024 07:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166273 ФПД: 65720760150336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166273&fm=65720760150336&tin=02508201610067®Number=0000000000091764&sum=150000 [07:32:56]StoreToDocumentArchive [07:32:56]shift 536 fd 166273 [07:32:56]save to /storage/0536/doc_00166273 [07:32:56]save last doc name /storage/0536/doc_00166273 to /storage/kkm_last_doc_name [07:32:56]save OK [07:32:56]Clear old archive folders... [07:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:32:56]tlvbuf is 01599910 [07:32:56]SAM_PROTO_ClearQueue [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 09 00 00 [07:32:56]Write to MH i2c: E2 08 00 2A 9A 80 09 00 00 00 00 00 00 36 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 2A 9A 00 90 00 38 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_ClearQueue done [07:32:56]KKMCreateOFDPacket [07:32:56]OFDProtocolAddRootSTLVToBuf [07:32:56]FM_MakeSignedData [07:32:56]FM_MakeSignedData [07:32:56]SAM_PROTO_SignData [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 01 02 [07:32:56]Write to MH i2c: E2 08 00 2B 9A 80 0D 01 02 00 00 00 00 3E [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 2B 9A 00 90 00 39 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=255 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3E 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 89 02 00 35 04 06 00 3B C5 CE 90 [07:32:56]Write to MH i2c: E2 02 01 2C 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3E 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 89 02 00 35 04 06 00 3B C5 CE 90 00 00 F2 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 2C 9A 00 90 00 3A [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=7 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 02 02 02 29 40 [07:32:56]Write to MH i2c: E2 0A 00 2D 9A 80 0D 02 02 02 00 29 40 00 00 AE [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 2D 9A 00 90 00 3B [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 03 02 [07:32:56]Write to MH i2c: E2 08 00 2E 9A 80 0D 03 02 00 00 00 00 43 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:57]Read from MH i2c: E2 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 0B 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 0B 00 2E 9A 00 B4 2E 1F 4D 71 7E 28 BD 90 00 66 [07:32:57]RAPDU: B4 2E 1F 4D 71 7E 28 BD 90 00 [07:32:57]wFMCommunicate OK [07:32:57]SAM_PROTO_SignData done [07:32:57]FM_MakeSignedData done [07:32:57]CreateOFDProtocolMessage [07:32:57]wFMCommunicate request_size=4 [07:32:57]MH_SAM_APDU [07:32:57]CAPDU: 80 11 00 00 [07:32:57]Write to MH i2c: E2 08 00 2F 9A 80 11 00 00 00 00 00 00 43 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:57]Read from MH i2c: E2 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 17 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: E2 17 00 2F 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [07:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:32:57]wFMCommunicate OK [07:32:57]CreateOFDProtocolMessage done [07:32:57]OFDSenderStorePacket 166273 [07:32:57]StoreOFDPacket docnum=166273 [07:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 24 04 01 65 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3E 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 89 02 00 35 04 06 00 3B C5 CE 90 29 40 B4 2E 1F 4D 71 7E 28 BD [07:32:57]CheckFolder [07:32:57]dirname=/storage/ofd_packets [07:32:57]CheckFolder done [07:32:57]ProducePacketName [07:32:57]name=ofd_packets/00166273 [07:32:57]NVStorageSaveData ofd_packets/00166273 [07:32:57]File name is /storage/ofd_packets/00166273 [07:32:57]Write 298 bytes [07:32:57]NVStorageSaveData done [07:32:57]OFDSenderStorePacket done [07:32:57]KKMCreateOFDPacket done [07:32:57]NVStorageSaveData kkm_last_timestamp [07:32:57]File name is /storage/kkm_last_timestamp [07:32:57]Write 4 bytes [07:32:57]NVStorageSaveData done [07:32:57]ExternCall_PrintAddStr [07:32:57]wPrintStart [07:32:57]Write to MH i2c: 01 00 00 30 9A CA [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 30 9A 00 00 00 00 00 FF 0F DF [07:32:57]RasterBufferAndPrint [07:32:57]line Счет N : (1)220848 [07:32:57]line ИНН: 02508201610067 [07:32:57]line Контрольно-Кассовый Чек [07:32:57]line ПРОДАЖА [07:32:57]line ТРК (МРК, ГНК) : 21 [07:32:57]line Товар: 2710194210 [07:32:57]line ДТ-К-5 [07:32:57]line 19.690 * 76.20 [07:32:57]line = 1500.38 [07:32:57]line НДС 12% НСП 1% [07:32:57]line > о реализуемом товаре [07:32:57]line ОКРУГЛЕНИЕ: -0.38 [07:32:57]line ИТОГО: 1500.00 [07:32:57]line Внесено: 1500.00 [07:32:57]line СДАЧА: 0.00 [07:32:57]line НСП 1% : 13.28 [07:32:57]line НДС 12% : 159.33 [07:32:57]line Наличными: 1500.00 [07:32:57]line Безнал.: 0.00 [07:32:57]line Место: АЗС № 161 "Партнер Нефть" [07:32:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:32:57]line СНО: Общий режим [07:32:57]line Чек 28 22.10.2024 07:33 [07:32:57]line Смена: 536 ФФД: 1.0 [07:32:57]line ЗНМ: 0300000104 [07:32:57]line РНМ: 0000000000091764 [07:32:57]line Версия ККМ: 001 [07:32:57]line ФМ: 0000000000871759 [07:32:57]line ФД: 166273 [07:32:57]line ФПД: 65720760150336 [07:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073318&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166273&fm=65720760150336&tin=02508201610067®Number=0000000000091764&sum=150000 [07:32:57]OFD Sender: Processing packet 166273 [packets to send 48, broken 47] [07:32:57]ProducePacketName [07:32:57]name=ofd_packets/00166273 [07:32:57]OFD Sender: To server: pG, [07:32:57]CommunicateWithHost lk.salyk.kg:30040 [07:32:57]ConnectInit lk.salyk.kg [07:32:57]written 0, free lines is 4095 [07:32:57]Connected sock=6 [07:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 24 04 01 65 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3E 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 89 02 00 35 04 06 00 3B C5 CE 90 29 40 B4 2E 1F 4D 71 7E 28 BD [07:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 AB 47 00 E2 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 89 02 00 F4 03 04 00 A9 FB 16 67 B6 04 01 00 00 44 A9 04 F6 82 7C FD 4A [07:32:57]CommunicateWithHost err = 0 [07:32:57]CheckOFDResponse [07:32:57]1017 (14) - 77093643461234 [07:32:57]1041 (16) - 0000000000871759 [07:32:57]1040 (4) - 166273 [07:32:57]1012 (4) - 22.10.2024 01:11 [07:32:57]1206 (1) - 0 [07:32:57]OFD Sender: Remove packet 166273 [07:32:57]ProducePacketName [07:32:57]name=ofd_packets/00166273 [07:32:57]NVStorageDeleteData [07:32:57]Write to MH i2c: 01 00 00 5B 9A F5 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 5B 9A 00 00 00 00 00 DC 0C E4 [07:32:57]RasterBufferAndPrint [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]written 0, free lines is 3298 [07:32:57]MH_Cut [07:32:57]Write to MH i2c: D1 01 00 62 9A 01 CE [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 01 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 01 00 62 9A 00 CD [07:32:57]Write to MH i2c: 01 00 00 63 9A FD [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:58]OFD Sender: No OFD packet to send [07:32:58]*** Cut start [07:32:58]*** Partial cut [07:32:58]*** CUTSNS_PIN = 1 [07:32:58]*** CUTSNS_PIN = 0 [07:32:58]*** Brake cut motor [07:32:59]Read from MH i2c: 01 [07:32:59]MH_I2C_Read... [07:32:59]*** Stop cut motor [07:32:59]*** Cut end [07:32:59]Read from MH i2c: 01 07 00 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: 01 07 00 63 9A 00 00 00 00 00 FF 0F 12 [07:32:59]process_action close_receipt done [07:32:59]requested_data is exist [07:32:59]produce_requested_data [07:32:59]requested_item fm.sn is exist - process it [07:32:59]wFMCommunicate request_size=4 [07:32:59]MH_SAM_APDU [07:32:59]CAPDU: 80 11 00 00 [07:32:59]Write to MH i2c: E2 08 00 64 9A 80 11 00 00 00 00 00 00 78 [07:32:59]Write i2c OK [07:32:59]MH_I2C_Read... [07:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:59]Read from MH i2c: E2 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 17 00 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 17 00 64 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [07:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:32:59]wFMCommunicate OK [07:32:59]requested_item fd.num is exist - process it [07:32:59]SAM_PROTO_GetFieldsCounters [07:32:59]wFMCommunicate request_size=4 [07:32:59]MH_SAM_APDU [07:32:59]CAPDU: 80 13 00 00 [07:32:59]Write to MH i2c: E2 08 00 65 9A 80 13 00 00 00 00 00 00 7B [07:32:59]Write i2c OK [07:32:59]MH_I2C_Read... [07:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:59]Read from MH i2c: E2 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 62 00 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 62 00 65 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [07:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:59]wFMCommunicate OK [07:32:59]SAM_PROTO_GetFieldsCounters done [07:32:59]requested_item shift.num is exist - process it [07:32:59]requested_item shift.opened is exist - process it [07:32:59]req_shift_opened [07:32:59]FM_GetShiftState [07:32:59]SAM_PROTO_GetShiftState [07:32:59]wFMCommunicate request_size=4 [07:32:59]MH_SAM_APDU [07:32:59]CAPDU: 80 13 01 00 [07:32:59]Write to MH i2c: E2 08 00 66 9A 80 13 01 00 00 00 00 00 7D [07:32:59]Write i2c OK [07:32:59]MH_I2C_Read... [07:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:59]Read from MH i2c: E2 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 0E 00 [07:32:59]MH_I2C_Read... [07:32:59]Read from MH i2c: E2 0E 00 66 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D0 [07:32:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:32:59]wFMCommunicate OK [07:32:59]SAM_PROTO_GetShiftState done [07:32:59]FM_GetShiftState done [07:32:59]req_shift_opened done [07:32:59]requested_item shift.open_date is exist - process it [07:32:59]req_shift_open_date [07:32:59]req_shift_open_date done [07:32:59]produce_requested_data done [07:32:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166273,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:32:59]process_action_free close_receipt [07:32:59]json_value_free [07:32:59]json_value_free done [07:32:59]process_json_proto returns [07:32:59]Send response to host [07:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166273,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:32:59]free response buf [07:32:59]execute_script done [07:32:59]execute_script returns [07:32:59]free content buf [07:32:59]Sock 5.Close socket [07:32:59]Sock 5.Thread stoped [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:45]recv_with_timeout no data received [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]recv_with_timeout no data received [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:38]recv_with_timeout no data received [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:05]recv_with_timeout no data received [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:14]accept exits with 7 [07:35:14]New connection [07:35:14]New thread 3066920292 created [07:35:14]Thread 3066776932 joined [07:35:14]Waiting for new connection... [07:35:14] Sock 7.Parse request [07:35:14]Sock 7.Check first char [07:35:14]Sock 7.First char is OK [07:35:14]request: POST /json_proto HTTP/1.0 [07:35:14]Method: POST [07:35:14]URL: /json_proto [07:35:14]Method is POST - this is cgi request [07:35:14]url: /json_proto [07:35:14]query_string will be loaded in cgi processing [07:35:14]execute_cgi json_proto POST (null) [07:35:14]execute_cgi path=json_proto method=POST [07:35:14]POST find Content-Length [07:35:14]Host: 172.17.53.195:8080 [07:35:14]Content-Length: 682 [07:35:14]Content-Type: application/json [07:35:14] [07:35:14]POST finish read [07:35:14]Found Content-Length = 682 [07:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:14]execute_script... [07:35:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:14]POST & json_proto [07:35:14]process_json_proto [07:35:14]json parsed OK: [07:35:14]protocol is kg_v1.0 [07:35:14]action value=close_receipt [07:35:14]process_action close_receipt [07:35:14]cmd_close_receipt [07:35:14]MH_GetDate [07:35:14]Write to MH i2c: F0 00 00 67 9A F0 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 09 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 09 00 67 9A 00 C9 55 17 67 21 48 4A 65 AD [07:35:14]GetLastDocTimeStamp 1729582398 [07:35:14]current date 1729582537 [07:35:14]FM_GetShiftState [07:35:14]SAM_PROTO_GetShiftState [07:35:14]wFMCommunicate request_size=4 [07:35:14]MH_SAM_APDU [07:35:14]CAPDU: 80 13 01 00 [07:35:14]Write to MH i2c: E2 08 00 68 9A 80 13 01 00 00 00 00 00 7F [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 68 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D2 [07:35:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:35:14]wFMCommunicate OK [07:35:14]SAM_PROTO_GetShiftState done [07:35:14]FM_GetShiftState done [07:35:14]opened in 1729557463 [07:35:14]opened+sec_in_day 1729643863 [07:35:14]quantity*price = 100015 [07:35:14]sum+1 = 100017 [07:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 29 22.10.2024 07:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166274 ФПД: 223959765544444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073537&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166274&fm=223959765544444&tin=02508201610067®Number=0000000000091764&sum=100000 [07:35:15]StoreToDocumentArchive [07:35:15]shift 536 fd 166274 [07:35:15]save to /storage/0536/doc_00166274 [07:35:15]save last doc name /storage/0536/doc_00166274 to /storage/kkm_last_doc_name [07:35:15]save OK [07:35:15]Clear old archive folders... [07:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:15]tlvbuf is 01B4DD40 [07:35:15]SAM_PROTO_ClearQueue [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 09 00 00 [07:35:15]Write to MH i2c: E2 08 00 75 9A 80 09 00 00 00 00 00 00 81 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 75 9A 00 90 00 83 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]SAM_PROTO_ClearQueue done [07:35:15]KKMCreateOFDPacket [07:35:15]OFDProtocolAddRootSTLVToBuf [07:35:15]FM_MakeSignedData [07:35:15]FM_MakeSignedData [07:35:15]SAM_PROTO_SignData [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 01 02 [07:35:15]Write to MH i2c: E2 08 00 76 9A 80 0D 01 02 00 00 00 00 89 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 76 9A 00 90 00 84 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]wFMCommunicate request_size=255 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C9 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 89 02 00 35 04 06 00 CB [07:35:15]Write to MH i2c: E2 02 01 77 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C9 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 89 02 00 35 04 06 00 CB 00 00 C4 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 77 9A 00 90 00 85 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=10 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 02 02 05 B0 B2 44 ED FC [07:35:16]Write to MH i2c: E2 0D 00 78 9A 80 0D 02 02 05 00 B0 B2 44 ED FC 00 00 25 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 78 9A 00 90 00 86 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 03 02 [07:35:16]Write to MH i2c: E2 08 00 79 9A 80 0D 03 02 00 00 00 00 8E [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0B 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0B 00 79 9A 00 F0 28 4A FC F7 79 F1 81 90 00 CF [07:35:16]RAPDU: F0 28 4A FC F7 79 F1 81 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_SignData done [07:35:16]FM_MakeSignedData done [07:35:16]CreateOFDProtocolMessage [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 11 00 00 [07:35:16]Write to MH i2c: E2 08 00 7A 9A 80 11 00 00 00 00 00 00 8E [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 7A 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [07:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:35:16]wFMCommunicate OK [07:35:16]CreateOFDProtocolMessage done [07:35:16]OFDSenderStorePacket 166274 [07:35:16]StoreOFDPacket docnum=166274 [07:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 F7 07 01 43 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C9 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 89 02 00 35 04 06 00 CB B0 B2 44 ED FC F0 28 4A FC F7 79 F1 81 [07:35:16]CheckFolder [07:35:16]dirname=/storage/ofd_packets [07:35:16]CheckFolder done [07:35:16]ProducePacketName [07:35:16]name=ofd_packets/00166274 [07:35:16]NVStorageSaveData ofd_packets/00166274 [07:35:16]File name is /storage/ofd_packets/00166274 [07:35:16]Write 301 bytes [07:35:16]NVStorageSaveData done [07:35:16]OFDSenderStorePacket done [07:35:16]KKMCreateOFDPacket done [07:35:16]NVStorageSaveData kkm_last_timestamp [07:35:16]File name is /storage/kkm_last_timestamp [07:35:16]Write 4 bytes [07:35:16]NVStorageSaveData done [07:35:16]ExternCall_PrintAddStr [07:35:16]wPrintStart [07:35:16]Write to MH i2c: 01 00 00 7B 9A 15 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 7B 9A 00 00 00 00 00 FF 0F 2A [07:35:16]RasterBufferAndPrint [07:35:16]line Счет N : (1)220849 [07:35:16]line ИНН: 02508201610067 [07:35:16]line Контрольно-Кассовый Чек [07:35:16]line ПРОДАЖА [07:35:16]line ТРК (МРК, ГНК) : 13 [07:35:16]line Товар: 2710124130 [07:35:16]line Аи-92-К-5 [07:35:16]line 14.950 * 66.90 [07:35:16]line = 1000.16 [07:35:16]line НДС 12% НСП 1% [07:35:16]line > о реализуемом товаре [07:35:16]line ОКРУГЛЕНИЕ: -0.16 [07:35:16]line ИТОГО: 1000.00 [07:35:16]line Внесено: 1000.00 [07:35:16]line СДАЧА: 0.00 [07:35:16]line НСП 1% : 8.85 [07:35:16]line НДС 12% : 106.21 [07:35:16]line Наличными: 1000.00 [07:35:16]line Безнал.: 0.00 [07:35:16]line Место: АЗС № 161 "Партнер Нефть" [07:35:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:35:16]line СНО: Общий режим [07:35:16]line Чек 29 22.10.2024 07:35 [07:35:16]line Смена: 536 ФФД: 1.0 [07:35:16]line ЗНМ: 0300000104 [07:35:16]line РНМ: 0000000000091764 [07:35:16]line Версия ККМ: 001 [07:35:16]line ФМ: 0000000000871759 [07:35:16]line ФД: 166274 [07:35:16]line ФПД: 223959765544444 [07:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073537&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166274&fm=223959765544444&tin=02508201610067®Number=0000000000091764&sum=100000 [07:35:16]OFD Sender: Processing packet 166274 [packets to send 48, broken 47] [07:35:16]ProducePacketName [07:35:16]name=ofd_packets/00166274 [07:35:16]OFD Sender: To server: pG, [07:35:16]CommunicateWithHost lk.salyk.kg:30040 [07:35:16]ConnectInit lk.salyk.kg [07:35:16]written 0, free lines is 4095 [07:35:17]Write to MH i2c: 01 00 00 A6 9A 40 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 A6 9A 00 00 00 00 00 B6 0C 09 [07:35:17]RasterBufferAndPrint [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]written 0, free lines is 3262 [07:35:17]MH_Cut [07:35:17]Write to MH i2c: D1 01 00 AD 9A 01 19 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 AD 9A 00 18 [07:35:17]Write to MH i2c: 01 00 00 AE 9A 48 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]*** Cut start [07:35:17]*** Partial cut [07:35:17]*** CUTSNS_PIN = 1 [07:35:17]*** CUTSNS_PIN = 0 [07:35:18]*** Brake cut motor [07:35:18]Read from MH i2c: 01 [07:35:18]MH_I2C_Read... [07:35:18]*** Stop cut motor [07:35:18]*** Cut end [07:35:18]Read from MH i2c: 01 07 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: 01 07 00 AE 9A 00 00 00 00 00 FF 0F 5D [07:35:18]process_action close_receipt done [07:35:18]requested_data is exist [07:35:18]produce_requested_data [07:35:18]requested_item fm.sn is exist - process it [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 11 00 00 [07:35:18]Write to MH i2c: E2 08 00 AF 9A 80 11 00 00 00 00 00 00 C3 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 17 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 17 00 AF 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [07:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:35:18]wFMCommunicate OK [07:35:18]requested_item fd.num is exist - process it [07:35:18]SAM_PROTO_GetFieldsCounters [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 13 00 00 [07:35:18]Write to MH i2c: E2 08 00 B0 9A 80 13 00 00 00 00 00 00 C6 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 62 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 62 00 B0 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [07:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:18]wFMCommunicate OK [07:35:18]SAM_PROTO_GetFieldsCounters done [07:35:18]requested_item shift.num is exist - process it [07:35:18]requested_item shift.opened is exist - process it [07:35:18]req_shift_opened [07:35:18]FM_GetShiftState [07:35:18]SAM_PROTO_GetShiftState [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 13 01 00 [07:35:18]Write to MH i2c: E2 08 00 B1 9A 80 13 01 00 00 00 00 00 C8 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 B1 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1B [07:35:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:35:18]wFMCommunicate OK [07:35:18]SAM_PROTO_GetShiftState done [07:35:18]FM_GetShiftState done [07:35:18]req_shift_opened done [07:35:18]requested_item shift.open_date is exist - process it [07:35:18]req_shift_open_date [07:35:18]req_shift_open_date done [07:35:18]produce_requested_data done [07:35:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166274,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:35:18]process_action_free close_receipt [07:35:18]json_value_free [07:35:18]json_value_free done [07:35:18]process_json_proto returns [07:35:18]Send response to host [07:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166274,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:35:18]free response buf [07:35:18]execute_script done [07:35:18]execute_script returns [07:35:18]free content buf [07:35:18]Sock 7.Close socket [07:35:18]Sock 7.Thread stoped [07:35:21]ConnectInit Can't take IP for lk.salyk.kg [07:35:21]CommunicateWithHost connect error [07:35:21]CommunicateWithHost err = -1 [07:35:21]OFD Sender: Server communicate error [07:35:24]recv_with_timeout no data received [07:35:26]OFD Sender: Processing packet 166274 [packets to send 48, broken 47] [07:35:26]ProducePacketName [07:35:26]name=ofd_packets/00166274 [07:35:26]OFD Sender: To server: pG, [07:35:26]CommunicateWithHost lk.salyk.kg:30040 [07:35:26]ConnectInit lk.salyk.kg [07:35:31]ConnectInit Can't take IP for lk.salyk.kg [07:35:31]CommunicateWithHost connect error [07:35:31]CommunicateWithHost err = -1 [07:35:31]OFD Sender: Server communicate error [07:35:36]OFD Sender: Processing packet 166274 [packets to send 48, broken 47] [07:35:36]ProducePacketName [07:35:36]name=ofd_packets/00166274 [07:35:36]OFD Sender: To server: pG, [07:35:36]CommunicateWithHost lk.salyk.kg:30040 [07:35:36]ConnectInit lk.salyk.kg [07:35:41]ConnectInit Can't take IP for lk.salyk.kg [07:35:41]CommunicateWithHost connect error [07:35:41]CommunicateWithHost err = -1 [07:35:41]OFD Sender: Server communicate error [07:35:46]OFD Sender: Processing packet 166274 [packets to send 48, broken 47] [07:35:46]ProducePacketName [07:35:46]name=ofd_packets/00166274 [07:35:46]OFD Sender: To server: pG, [07:35:46]CommunicateWithHost lk.salyk.kg:30040 [07:35:46]ConnectInit lk.salyk.kg [07:35:51]ConnectInit Can't take IP for lk.salyk.kg [07:35:51]CommunicateWithHost connect error [07:35:51]CommunicateWithHost err = -1 [07:35:51]OFD Sender: Server communicate error [07:35:56]OFD Sender: Processing packet 166274 [packets to send 48, broken 47] [07:35:56]ProducePacketName [07:35:56]name=ofd_packets/00166274 [07:35:56]OFD Sender: To server: pG, [07:35:56]CommunicateWithHost lk.salyk.kg:30040 [07:35:56]ConnectInit lk.salyk.kg [07:35:56]Connected sock=5 [07:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 F7 07 01 43 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C9 55 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 89 02 00 35 04 06 00 CB B0 B2 44 ED FC F0 28 4A FC F7 79 F1 81 [07:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD FB 47 00 A2 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 89 02 00 F4 03 04 00 5D FC 16 67 B6 04 01 00 00 9B 90 CF 45 2C C1 18 34 [07:35:57]CommunicateWithHost err = 0 [07:35:57]CheckOFDResponse [07:35:57]1017 (14) - 77093643461234 [07:35:57]1041 (16) - 0000000000871759 [07:35:57]1040 (4) - 166274 [07:35:57]1012 (4) - 22.10.2024 01:14 [07:35:57]1206 (1) - 0 [07:35:57]OFD Sender: Remove packet 166274 [07:35:57]ProducePacketName [07:35:57]name=ofd_packets/00166274 [07:35:57]NVStorageDeleteData [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:36]accept exits with 6 [07:36:36]New connection [07:36:36]New thread 3066776932 created [07:36:36]Thread 3066920292 joined [07:36:36]Waiting for new connection... [07:36:36] Sock 6.Parse request [07:36:36]Sock 6.Check first char [07:36:36]Sock 6.First char is OK [07:36:36]request: POST /json_proto HTTP/1.0 [07:36:36]Method: POST [07:36:36]URL: /json_proto [07:36:36]Method is POST - this is cgi request [07:36:36]url: /json_proto [07:36:36]query_string will be loaded in cgi processing [07:36:36]execute_cgi json_proto POST (null) [07:36:36]execute_cgi path=json_proto method=POST [07:36:36]POST find Content-Length [07:36:36]Host: 172.17.53.195:8080 [07:36:36]Content-Length: 682 [07:36:36]Content-Type: application/json [07:36:36] [07:36:36]POST finish read [07:36:36]Found Content-Length = 682 [07:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:36]execute_script... [07:36:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:36]POST & json_proto [07:36:36]process_json_proto [07:36:36]json parsed OK: [07:36:36]protocol is kg_v1.0 [07:36:36]action value=close_receipt [07:36:36]process_action close_receipt [07:36:36]cmd_close_receipt [07:36:36]MH_GetDate [07:36:36]Write to MH i2c: F0 00 00 B2 9A 3B [07:36:36]Write i2c OK [07:36:36]MH_I2C_Read... [07:36:36]Read from MH i2c: F0 [07:36:36]MH_I2C_Read... [07:36:36]Read from MH i2c: F0 09 00 [07:36:36]MH_I2C_Read... [07:36:36]Read from MH i2c: F0 09 00 B2 9A 00 1B 56 17 67 21 48 4A 65 4B [07:36:36]GetLastDocTimeStamp 1729582537 [07:36:36]current date 1729582619 [07:36:36]FM_GetShiftState [07:36:36]SAM_PROTO_GetShiftState [07:36:36]wFMCommunicate request_size=4 [07:36:36]MH_SAM_APDU [07:36:36]CAPDU: 80 13 01 00 [07:36:36]Write to MH i2c: E2 08 00 B3 9A 80 13 01 00 00 00 00 00 CA [07:36:36]Write i2c OK [07:36:36]MH_I2C_Read... [07:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:36]Read from MH i2c: E2 [07:36:36]MH_I2C_Read... [07:36:36]Read from MH i2c: E2 0E 00 [07:36:36]MH_I2C_Read... [07:36:36]Read from MH i2c: E2 0E 00 B3 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1D [07:36:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:36:36]wFMCommunicate OK [07:36:36]SAM_PROTO_GetShiftState done [07:36:36]FM_GetShiftState done [07:36:36]opened in 1729557463 [07:36:36]opened+sec_in_day 1729643863 [07:36:36]quantity*price = 100021 [07:36:36]sum+1 = 100023 [07:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 30 22.10.2024 07:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166275 ФПД: 141342223721167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166275&fm=141342223721167&tin=02508201610067®Number=0000000000091764&sum=100000 [07:36:38]StoreToDocumentArchive [07:36:38]shift 536 fd 166275 [07:36:38]save to /storage/0536/doc_00166275 [07:36:38]save last doc name /storage/0536/doc_00166275 to /storage/kkm_last_doc_name [07:36:38]save OK [07:36:38]Clear old archive folders... [07:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:38]tlvbuf is 015FC880 [07:36:38]SAM_PROTO_ClearQueue [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 09 00 00 [07:36:38]Write to MH i2c: E2 08 00 C0 9A 80 09 00 00 00 00 00 00 CC [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 C0 9A 00 90 00 CE [07:36:38]RAPDU: 90 00 [07:36:38]wFMCommunicate OK [07:36:38]SAM_PROTO_ClearQueue done [07:36:38]KKMCreateOFDPacket [07:36:38]OFDProtocolAddRootSTLVToBuf [07:36:38]FM_MakeSignedData [07:36:38]FM_MakeSignedData [07:36:38]SAM_PROTO_SignData [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 0D 01 02 [07:36:38]Write to MH i2c: E2 08 00 C1 9A 80 0D 01 02 00 00 00 00 D4 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 C1 9A 00 90 00 CF [07:36:38]RAPDU: 90 00 [07:36:38]wFMCommunicate OK [07:36:38]wFMCommunicate request_size=255 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1B 56 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 89 02 00 35 04 06 00 80 [07:36:38]Write to MH i2c: E2 02 01 C2 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1B 56 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 89 02 00 35 04 06 00 80 00 00 3C [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 C2 9A 00 90 00 D0 [07:36:38]RAPDU: 90 00 [07:36:38]wFMCommunicate OK [07:36:38]wFMCommunicate request_size=10 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 0D 02 02 05 8C CD 09 62 CF [07:36:38]Write to MH i2c: E2 0D 00 C3 9A 80 0D 02 02 05 00 8C CD 09 62 CF 00 00 74 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 03 00 C3 9A 00 90 00 D1 [07:36:38]RAPDU: 90 00 [07:36:38]wFMCommunicate OK [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 0D 03 02 [07:36:38]Write to MH i2c: E2 08 00 C4 9A 80 0D 03 02 00 00 00 00 D9 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 0B 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 0B 00 C4 9A 00 85 DB 7B F7 37 42 83 59 90 00 01 [07:36:38]RAPDU: 85 DB 7B F7 37 42 83 59 90 00 [07:36:38]wFMCommunicate OK [07:36:38]SAM_PROTO_SignData done [07:36:38]FM_MakeSignedData done [07:36:38]CreateOFDProtocolMessage [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 11 00 00 [07:36:38]Write to MH i2c: E2 08 00 C5 9A 80 11 00 00 00 00 00 00 D9 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 17 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 17 00 C5 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [07:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:36:38]wFMCommunicate OK [07:36:38]CreateOFDProtocolMessage done [07:36:38]OFDSenderStorePacket 166275 [07:36:38]StoreOFDPacket docnum=166275 [07:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 45 07 01 94 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1B 56 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 89 02 00 35 04 06 00 80 8C CD 09 62 CF 85 DB 7B F7 37 42 83 59 [07:36:38]CheckFolder [07:36:38]dirname=/storage/ofd_packets [07:36:38]CheckFolder done [07:36:38]ProducePacketName [07:36:38]name=ofd_packets/00166275 [07:36:38]NVStorageSaveData ofd_packets/00166275 [07:36:38]File name is /storage/ofd_packets/00166275 [07:36:38]Write 301 bytes [07:36:38]NVStorageSaveData done [07:36:38]OFDSenderStorePacket done [07:36:38]KKMCreateOFDPacket done [07:36:38]NVStorageSaveData kkm_last_timestamp [07:36:38]File name is /storage/kkm_last_timestamp [07:36:38]Write 4 bytes [07:36:38]NVStorageSaveData done [07:36:38]ExternCall_PrintAddStr [07:36:38]wPrintStart [07:36:38]Write to MH i2c: 01 00 00 C6 9A 60 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: 01 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: 01 07 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: 01 07 00 C6 9A 00 00 00 00 00 FF 0F 75 [07:36:38]RasterBufferAndPrint [07:36:38]line Счет N : (1)220850 [07:36:38]line ИНН: 02508201610067 [07:36:38]line Контрольно-Кассовый Чек [07:36:38]line ПРОДАЖА [07:36:38]line ТРК (МРК, ГНК) : 34 [07:36:38]line Товар: 2710124500 [07:36:38]line Аи-95-К-5 [07:36:38]line 13.480 * 74.20 [07:36:38]line = 1000.22 [07:36:38]line НДС 12% НСП 1% [07:36:38]line > о реализуемом товаре [07:36:38]line ОКРУГЛЕНИЕ: -0.22 [07:36:38]line ИТОГО: 1000.00 [07:36:38]line Внесено: 1000.00 [07:36:38]line СДАЧА: 0.00 [07:36:38]line НСП 1% : 8.85 [07:36:38]line НДС 12% : 106.22 [07:36:38]line Наличными: 1000.00 [07:36:38]line Безнал.: 0.00 [07:36:38]line Место: АЗС № 161 "Партнер Нефть" [07:36:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:36:38]line СНО: Общий режим [07:36:38]line Чек 30 22.10.2024 07:36 [07:36:38]line Смена: 536 ФФД: 1.0 [07:36:38]line ЗНМ: 0300000104 [07:36:38]line РНМ: 0000000000091764 [07:36:38]line Версия ККМ: 001 [07:36:38]line ФМ: 0000000000871759 [07:36:38]line ФД: 166275 [07:36:38]line ФПД: 141342223721167 [07:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166275&fm=141342223721167&tin=02508201610067®Number=0000000000091764&sum=100000 [07:36:38]OFD Sender: Processing packet 166275 [packets to send 48, broken 47] [07:36:38]ProducePacketName [07:36:38]name=ofd_packets/00166275 [07:36:38]OFD Sender: To server: pG, [07:36:38]CommunicateWithHost lk.salyk.kg:30040 [07:36:38]ConnectInit lk.salyk.kg [07:36:38]written 0, free lines is 4095 [07:36:39]Connected sock=7 [07:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 45 07 01 94 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1B 56 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 89 02 00 35 04 06 00 80 8C CD 09 62 CF 85 DB 7B F7 37 42 83 59 [07:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 1A 47 00 B1 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 31 37 35 39 10 04 04 00 83 89 02 00 F4 03 04 00 87 FC 16 67 B6 04 01 00 00 99 44 56 8A 86 B4 D8 FE [07:36:39]CommunicateWithHost err = 0 [07:36:39]CheckOFDResponse [07:36:39]1017 (14) - 77093643461234 [07:36:39]1041 (16) - 0000000000871759 [07:36:39]1040 (4) - 166275 [07:36:39]1012 (4) - 22.10.2024 01:14 [07:36:39]1206 (1) - 0 [07:36:39]OFD Sender: Remove packet 166275 [07:36:39]ProducePacketName [07:36:39]name=ofd_packets/00166275 [07:36:39]NVStorageDeleteData [07:36:39]Write to MH i2c: 01 00 00 F1 9A 8B [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 07 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: 01 07 00 F1 9A 00 00 00 00 00 C0 0C 5E [07:36:39]RasterBufferAndPrint [07:36:39]line [07:36:39]line [07:36:39]line [07:36:39]line [07:36:39]line [07:36:39]written 0, free lines is 3271 [07:36:39]MH_Cut [07:36:39]Write to MH i2c: D1 01 00 F8 9A 01 64 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: D1 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: D1 01 00 [07:36:39]MH_I2C_Read... [07:36:39]Read from MH i2c: D1 01 00 F8 9A 00 63 [07:36:39]Write to MH i2c: 01 00 00 F9 9A 93 [07:36:39]Write i2c OK [07:36:39]MH_I2C_Read... [07:36:39]OFD Sender: No OFD packet to send [07:36:40]*** Cut start [07:36:40]*** Partial cut [07:36:40]*** CUTSNS_PIN = 1 [07:36:40]*** CUTSNS_PIN = 0 [07:36:40]*** Brake cut motor [07:36:40]Read from MH i2c: 01 [07:36:40]MH_I2C_Read... [07:36:40]*** Stop cut motor [07:36:40]*** Cut end [07:36:40]Read from MH i2c: 01 07 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: 01 07 00 F9 9A 00 00 00 00 00 FF 0F A8 [07:36:40]process_action close_receipt done [07:36:40]requested_data is exist [07:36:40]produce_requested_data [07:36:40]requested_item fm.sn is exist - process it [07:36:40]wFMCommunicate request_size=4 [07:36:40]MH_SAM_APDU [07:36:40]CAPDU: 80 11 00 00 [07:36:40]Write to MH i2c: E2 08 00 FA 9A 80 11 00 00 00 00 00 00 0E [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:40]Read from MH i2c: E2 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: E2 17 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: E2 17 00 FA 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [07:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:36:40]wFMCommunicate OK [07:36:40]requested_item fd.num is exist - process it [07:36:40]SAM_PROTO_GetFieldsCounters [07:36:40]wFMCommunicate request_size=4 [07:36:40]MH_SAM_APDU [07:36:40]CAPDU: 80 13 00 00 [07:36:40]Write to MH i2c: E2 08 00 FB 9A 80 13 00 00 00 00 00 00 11 [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 62 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 62 00 FB 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [07:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_GetFieldsCounters done [07:36:41]requested_item shift.num is exist - process it [07:36:41]requested_item shift.opened is exist - process it [07:36:41]req_shift_opened [07:36:41]FM_GetShiftState [07:36:41]SAM_PROTO_GetShiftState [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 13 01 00 [07:36:41]Write to MH i2c: E2 08 00 FC 9A 80 13 01 00 00 00 00 00 13 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0E 00 FC 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 66 [07:36:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_GetShiftState done [07:36:41]FM_GetShiftState done [07:36:41]req_shift_opened done [07:36:41]requested_item shift.open_date is exist - process it [07:36:41]req_shift_open_date [07:36:41]req_shift_open_date done [07:36:41]produce_requested_data done [07:36:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166275,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:36:41]process_action_free close_receipt [07:36:41]json_value_free [07:36:41]json_value_free done [07:36:41]process_json_proto returns [07:36:41]Send response to host [07:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166275,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:36:41]free response buf [07:36:41]execute_script done [07:36:41]execute_script returns [07:36:41]free content buf [07:36:41]Sock 6.Close socket [07:36:41]Sock 6.Thread stoped [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:32]accept exits with 5 [07:42:32]New connection [07:42:32]New thread 3066920292 created [07:42:32]Thread 3066776932 joined [07:42:32]Waiting for new connection... [07:42:32] Sock 5.Parse request [07:42:32]Sock 5.Check first char [07:42:32]Sock 5.First char is OK [07:42:32]request: POST /json_proto HTTP/1.0 [07:42:32]Method: POST [07:42:32]URL: /json_proto [07:42:32]Method is POST - this is cgi request [07:42:32]url: /json_proto [07:42:32]query_string will be loaded in cgi processing [07:42:32]execute_cgi json_proto POST (null) [07:42:32]execute_cgi path=json_proto method=POST [07:42:32]POST find Content-Length [07:42:32]Host: 172.17.53.195:8080 [07:42:32]Content-Length: 769 [07:42:32]Content-Type: application/json [07:42:32] [07:42:32]POST finish read [07:42:32]Found Content-Length = 769 [07:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:32]execute_script... [07:42:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:32]POST & json_proto [07:42:32]process_json_proto [07:42:32]json parsed OK: [07:42:32]protocol is kg_v1.0 [07:42:32]action value=close_receipt [07:42:32]process_action close_receipt [07:42:32]cmd_close_receipt [07:42:32]MH_GetDate [07:42:32]Write to MH i2c: F0 00 00 FD 9A 86 [07:42:32]Write i2c OK [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 09 00 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: F0 09 00 FD 9A 00 7E 57 17 67 21 48 4A 65 FA [07:42:32]GetLastDocTimeStamp 1729582619 [07:42:32]current date 1729582974 [07:42:32]FM_GetShiftState [07:42:32]SAM_PROTO_GetShiftState [07:42:32]wFMCommunicate request_size=4 [07:42:32]MH_SAM_APDU [07:42:32]CAPDU: 80 13 01 00 [07:42:32]Write to MH i2c: E2 08 00 FE 9A 80 13 01 00 00 00 00 00 15 [07:42:32]Write i2c OK [07:42:32]MH_I2C_Read... [07:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:32]Read from MH i2c: E2 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: E2 0E 00 [07:42:32]MH_I2C_Read... [07:42:32]Read from MH i2c: E2 0E 00 FE 9A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 68 [07:42:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:42:32]wFMCommunicate OK [07:42:32]SAM_PROTO_GetShiftState done [07:42:32]FM_GetShiftState done [07:42:32]opened in 1729557463 [07:42:32]opened+sec_in_day 1729643863 [07:42:32]quantity*price = 100021 [07:42:32]sum+1 = 100023 [07:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 31 22.10.2024 07:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166276 ФПД: 97962328441701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074255&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166276&fm=97962328441701&tin=02508201610067®Number=0000000000091764&sum=100022 [07:42:33]StoreToDocumentArchive [07:42:33]shift 536 fd 166276 [07:42:33]save to /storage/0536/doc_00166276 [07:42:33]save last doc name /storage/0536/doc_00166276 to /storage/kkm_last_doc_name [07:42:33]save OK [07:42:33]Clear old archive folders... [07:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:33]tlvbuf is 01445630 [07:42:33]SAM_PROTO_ClearQueue [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 09 00 00 [07:42:33]Write to MH i2c: E2 08 00 0B 9B 80 09 00 00 00 00 00 00 18 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 0B 9B 00 90 00 1A [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]SAM_PROTO_ClearQueue done [07:42:33]KKMCreateOFDPacket [07:42:33]OFDProtocolAddRootSTLVToBuf [07:42:33]FM_MakeSignedData [07:42:33]FM_MakeSignedData [07:42:33]SAM_PROTO_SignData [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 01 02 [07:42:33]Write to MH i2c: E2 08 00 0C 9B 80 0D 01 02 00 00 00 00 20 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 0C 9B 00 90 00 1B [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]wFMCommunicate request_size=255 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7F 57 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 89 02 00 35 04 06 00 59 [07:42:33]Write to MH i2c: E2 02 01 0D 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7F 57 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 89 02 00 35 04 06 00 59 00 00 F4 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 0D 9B 00 90 00 1C [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]wFMCommunicate request_size=10 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 02 02 05 18 A1 C9 C3 65 [07:42:33]Write to MH i2c: E2 0D 00 0E 9B 80 0D 02 02 05 00 18 A1 C9 C3 65 00 00 D7 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 03 00 0E 9B 00 90 00 1D [07:42:33]RAPDU: 90 00 [07:42:33]wFMCommunicate OK [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 0D 03 02 [07:42:33]Write to MH i2c: E2 08 00 0F 9B 80 0D 03 02 00 00 00 00 25 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 0B 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 0B 00 0F 9B 00 32 31 C9 DD F9 E7 0F 2C 90 00 4A [07:42:33]RAPDU: 32 31 C9 DD F9 E7 0F 2C 90 00 [07:42:33]wFMCommunicate OK [07:42:33]SAM_PROTO_SignData done [07:42:33]FM_MakeSignedData done [07:42:33]CreateOFDProtocolMessage [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 11 00 00 [07:42:33]Write to MH i2c: E2 08 00 10 9B 80 11 00 00 00 00 00 00 25 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 17 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 17 00 10 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [07:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:42:33]wFMCommunicate OK [07:42:33]CreateOFDProtocolMessage done [07:42:33]OFDSenderStorePacket 166276 [07:42:33]StoreOFDPacket docnum=166276 [07:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE 73 07 01 7A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7F 57 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 89 02 00 35 04 06 00 59 18 A1 C9 C3 65 32 31 C9 DD F9 E7 0F 2C [07:42:33]CheckFolder [07:42:33]dirname=/storage/ofd_packets [07:42:33]CheckFolder done [07:42:33]ProducePacketName [07:42:33]name=ofd_packets/00166276 [07:42:33]NVStorageSaveData ofd_packets/00166276 [07:42:33]File name is /storage/ofd_packets/00166276 [07:42:33]Write 301 bytes [07:42:33]NVStorageSaveData done [07:42:33]OFDSenderStorePacket done [07:42:33]KKMCreateOFDPacket done [07:42:33]NVStorageSaveData kkm_last_timestamp [07:42:33]File name is /storage/kkm_last_timestamp [07:42:33]Write 4 bytes [07:42:33]NVStorageSaveData done [07:42:33]ExternCall_PrintAddStr [07:42:33]wPrintStart [07:42:33]Write to MH i2c: 01 00 00 11 9B AC [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: 01 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: 01 07 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: 01 07 00 11 9B 00 00 00 00 00 FF 0F C1 [07:42:33]RasterBufferAndPrint [07:42:33]line Счет N : (1)220851 [07:42:33]line ИНН: 02508201610067 [07:42:33]line Контрольно-Кассовый Чек [07:42:33]line ПРОДАЖА [07:42:33]line ТРК (МРК, ГНК) : 14 [07:42:33]line Товар: 2710124500 [07:42:33]line Аи-95-К-5 [07:42:33]line 13.480 * 74.20 [07:42:33]line = 1000.22 [07:42:33]line НДС 12% НСП 1% [07:42:33]line > о реализуемом товаре [07:42:33]line ИТОГО: 1000.22 [07:42:33]line НСП 1% : 8.85 [07:42:33]line НДС 12% : 106.22 [07:42:33]line Наличными: 0.00 [07:42:33]line Безнал.: 1000.22 [07:42:33]line Место: АЗС № 161 "Партнер Нефть" [07:42:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:42:33]line СНО: Общий режим [07:42:33]line Чек 31 22.10.2024 07:42 [07:42:33]line Смена: 536 ФФД: 1.0 [07:42:33]line ЗНМ: 0300000104 [07:42:33]line РНМ: 0000000000091764 [07:42:33]line Версия ККМ: 001 [07:42:33]line Платежная система: Mbank [07:42:33]line ФМ: 0000000000871759 [07:42:33]line ФД: 166276 [07:42:33]line ФПД: 97962328441701 [07:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074255&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166276&fm=97962328441701&tin=02508201610067®Number=0000000000091764&sum=100022 [07:42:34]OFD Sender: Processing packet 166276 [packets to send 48, broken 47] [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00166276 [07:42:34]OFD Sender: To server: pG, [07:42:34]CommunicateWithHost lk.salyk.kg:30040 [07:42:34]ConnectInit lk.salyk.kg [07:42:34]written 0, free lines is 4095 [07:42:34]Connected sock=7 [07:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE 73 07 01 7A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7F 57 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 89 02 00 35 04 06 00 59 18 A1 C9 C3 65 32 31 C9 DD F9 E7 0F 2C [07:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F5 84 47 00 F1 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 31 37 35 39 10 04 04 00 84 89 02 00 F4 03 04 00 EA FD 16 67 B6 04 01 00 00 46 E2 15 C3 25 31 3F 2A [07:42:34]CommunicateWithHost err = 0 [07:42:34]CheckOFDResponse [07:42:34]1017 (14) - 77093643461234 [07:42:34]1041 (16) - 0000000000871759 [07:42:34]1040 (4) - 166276 [07:42:34]1012 (4) - 22.10.2024 01:20 [07:42:34]1206 (1) - 0 [07:42:34]OFD Sender: Remove packet 166276 [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00166276 [07:42:34]NVStorageDeleteData [07:42:34]Write to MH i2c: 01 00 00 3A 9B D5 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 3A 9B 00 00 00 00 00 DE 0C C6 [07:42:34]RasterBufferAndPrint [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]line [07:42:34]written 0, free lines is 3300 [07:42:34]MH_Cut [07:42:34]Write to MH i2c: D1 01 00 41 9B 01 AE [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 01 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: D1 01 00 41 9B 00 AD [07:42:34]Write to MH i2c: 01 00 00 42 9B DD [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:35]OFD Sender: No OFD packet to send [07:42:35]*** Cut start [07:42:35]*** Partial cut [07:42:35]*** CUTSNS_PIN = 1 [07:42:35]*** CUTSNS_PIN = 0 [07:42:35]*** Brake cut motor [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]*** Stop cut motor [07:42:36]*** Cut end [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 42 9B 00 00 00 00 00 FF 0F F2 [07:42:36]process_action close_receipt done [07:42:36]requested_data is exist [07:42:36]produce_requested_data [07:42:36]requested_item fm.sn is exist - process it [07:42:36]wFMCommunicate request_size=4 [07:42:36]MH_SAM_APDU [07:42:36]CAPDU: 80 11 00 00 [07:42:36]Write to MH i2c: E2 08 00 43 9B 80 11 00 00 00 00 00 00 58 [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:36]Read from MH i2c: E2 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 17 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 17 00 43 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [07:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:42:36]wFMCommunicate OK [07:42:36]requested_item fd.num is exist - process it [07:42:36]SAM_PROTO_GetFieldsCounters [07:42:36]wFMCommunicate request_size=4 [07:42:36]MH_SAM_APDU [07:42:36]CAPDU: 80 13 00 00 [07:42:36]Write to MH i2c: E2 08 00 44 9B 80 13 00 00 00 00 00 00 5B [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:36]Read from MH i2c: E2 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 62 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 62 00 44 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [07:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:36]wFMCommunicate OK [07:42:36]SAM_PROTO_GetFieldsCounters done [07:42:36]requested_item shift.num is exist - process it [07:42:36]requested_item shift.opened is exist - process it [07:42:36]req_shift_opened [07:42:36]FM_GetShiftState [07:42:36]SAM_PROTO_GetShiftState [07:42:36]wFMCommunicate request_size=4 [07:42:36]MH_SAM_APDU [07:42:36]CAPDU: 80 13 01 00 [07:42:36]Write to MH i2c: E2 08 00 45 9B 80 13 01 00 00 00 00 00 5D [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:36]Read from MH i2c: E2 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 0E 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: E2 0E 00 45 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B0 [07:42:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:42:36]wFMCommunicate OK [07:42:36]SAM_PROTO_GetShiftState done [07:42:36]FM_GetShiftState done [07:42:36]req_shift_opened done [07:42:36]requested_item shift.open_date is exist - process it [07:42:36]req_shift_open_date [07:42:36]req_shift_open_date done [07:42:36]produce_requested_data done [07:42:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166276,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:42:36]process_action_free close_receipt [07:42:36]json_value_free [07:42:36]json_value_free done [07:42:36]process_json_proto returns [07:42:36]Send response to host [07:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166276,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:42:36]free response buf [07:42:36]execute_script done [07:42:36]execute_script returns [07:42:36]free content buf [07:42:36]Sock 5.Close socket [07:42:36]Sock 5.Thread stoped [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:39]accept exits with 6 [07:48:39]New connection [07:48:39]New thread 3066776932 created [07:48:39]Thread 3066920292 joined [07:48:39]Waiting for new connection... [07:48:39] Sock 6.Parse request [07:48:39]Sock 6.Check first char [07:48:39]Sock 6.First char is OK [07:48:39]request: POST /json_proto HTTP/1.0 [07:48:39]Method: POST [07:48:39]URL: /json_proto [07:48:39]Method is POST - this is cgi request [07:48:39]url: /json_proto [07:48:39]query_string will be loaded in cgi processing [07:48:39]execute_cgi json_proto POST (null) [07:48:39]execute_cgi path=json_proto method=POST [07:48:39]POST find Content-Length [07:48:39]Host: 172.17.53.195:8080 [07:48:39]Content-Length: 766 [07:48:39]Content-Type: application/json [07:48:39] [07:48:39]POST finish read [07:48:39]Found Content-Length = 766 [07:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:39]execute_script... [07:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:39]POST & json_proto [07:48:39]process_json_proto [07:48:39]json parsed OK: [07:48:39]protocol is kg_v1.0 [07:48:39]action value=close_receipt [07:48:39]process_action close_receipt [07:48:39]cmd_close_receipt [07:48:39]MH_GetDate [07:48:39]Write to MH i2c: F0 00 00 46 9B D0 [07:48:39]Write i2c OK [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: F0 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: F0 09 00 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: F0 09 00 46 9B 00 EE 58 17 67 21 48 4A 65 B5 [07:48:39]GetLastDocTimeStamp 1729582975 [07:48:39]current date 1729583342 [07:48:39]FM_GetShiftState [07:48:39]SAM_PROTO_GetShiftState [07:48:39]wFMCommunicate request_size=4 [07:48:39]MH_SAM_APDU [07:48:39]CAPDU: 80 13 01 00 [07:48:39]Write to MH i2c: E2 08 00 47 9B 80 13 01 00 00 00 00 00 5F [07:48:39]Write i2c OK [07:48:39]MH_I2C_Read... [07:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:39]Read from MH i2c: E2 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: E2 0E 00 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: E2 0E 00 47 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B2 [07:48:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:48:39]wFMCommunicate OK [07:48:39]SAM_PROTO_GetShiftState done [07:48:39]FM_GetShiftState done [07:48:39]opened in 1729557463 [07:48:39]opened+sec_in_day 1729643863 [07:48:39]quantity*price = 40006 [07:48:39]sum+1 = 40007 [07:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 32 22.10.2024 07:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166277 ФПД: 233849858381817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166277&fm=233849858381817&tin=02508201610067®Number=0000000000091764&sum=40006 [07:48:40]StoreToDocumentArchive [07:48:40]shift 536 fd 166277 [07:48:40]save to /storage/0536/doc_00166277 [07:48:40]save last doc name /storage/0536/doc_00166277 to /storage/kkm_last_doc_name [07:48:40]save OK [07:48:40]Clear old archive folders... [07:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:40]tlvbuf is 0157E5D0 [07:48:40]SAM_PROTO_ClearQueue [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 09 00 00 [07:48:40]Write to MH i2c: E2 08 00 54 9B 80 09 00 00 00 00 00 00 61 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 54 9B 00 90 00 63 [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]SAM_PROTO_ClearQueue done [07:48:40]KKMCreateOFDPacket [07:48:40]OFDProtocolAddRootSTLVToBuf [07:48:40]FM_MakeSignedData [07:48:40]FM_MakeSignedData [07:48:40]SAM_PROTO_SignData [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 0D 01 02 [07:48:40]Write to MH i2c: E2 08 00 55 9B 80 0D 01 02 00 00 00 00 69 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 55 9B 00 90 00 64 [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]wFMCommunicate request_size=255 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EE 58 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 89 02 00 35 04 06 00 D4 [07:48:40]Write to MH i2c: E2 02 01 56 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EE 58 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 89 02 00 35 04 06 00 D4 00 00 BC [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:41]Read from MH i2c: E2 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 03 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 03 00 56 9B 00 90 00 65 [07:48:41]RAPDU: 90 00 [07:48:41]wFMCommunicate OK [07:48:41]wFMCommunicate request_size=10 [07:48:41]MH_SAM_APDU [07:48:41]CAPDU: 80 0D 02 02 05 AF 69 BD 57 F9 [07:48:41]Write to MH i2c: E2 0D 00 57 9B 80 0D 02 02 05 00 AF 69 BD 57 F9 00 00 9B [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:41]Read from MH i2c: E2 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 03 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 03 00 57 9B 00 90 00 66 [07:48:41]RAPDU: 90 00 [07:48:41]wFMCommunicate OK [07:48:41]wFMCommunicate request_size=4 [07:48:41]MH_SAM_APDU [07:48:41]CAPDU: 80 0D 03 02 [07:48:41]Write to MH i2c: E2 08 00 58 9B 80 0D 03 02 00 00 00 00 6E [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:41]Read from MH i2c: E2 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 0B 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 0B 00 58 9B 00 4F 40 3A A4 3D B4 79 1F 90 00 65 [07:48:41]RAPDU: 4F 40 3A A4 3D B4 79 1F 90 00 [07:48:41]wFMCommunicate OK [07:48:41]SAM_PROTO_SignData done [07:48:41]FM_MakeSignedData done [07:48:41]CreateOFDProtocolMessage [07:48:41]wFMCommunicate request_size=4 [07:48:41]MH_SAM_APDU [07:48:41]CAPDU: 80 11 00 00 [07:48:41]Write to MH i2c: E2 08 00 59 9B 80 11 00 00 00 00 00 00 6E [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:41]Read from MH i2c: E2 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 17 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 17 00 59 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [07:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:48:41]wFMCommunicate OK [07:48:41]CreateOFDProtocolMessage done [07:48:41]OFDSenderStorePacket 166277 [07:48:41]StoreOFDPacket docnum=166277 [07:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 8E 07 01 B8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EE 58 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 89 02 00 35 04 06 00 D4 AF 69 BD 57 F9 4F 40 3A A4 3D B4 79 1F [07:48:41]CheckFolder [07:48:41]dirname=/storage/ofd_packets [07:48:41]CheckFolder done [07:48:41]ProducePacketName [07:48:41]name=ofd_packets/00166277 [07:48:41]NVStorageSaveData ofd_packets/00166277 [07:48:41]File name is /storage/ofd_packets/00166277 [07:48:41]Write 301 bytes [07:48:41]NVStorageSaveData done [07:48:41]OFDSenderStorePacket done [07:48:41]KKMCreateOFDPacket done [07:48:41]NVStorageSaveData kkm_last_timestamp [07:48:41]File name is /storage/kkm_last_timestamp [07:48:41]Write 4 bytes [07:48:41]NVStorageSaveData done [07:48:41]ExternCall_PrintAddStr [07:48:41]wPrintStart [07:48:41]Write to MH i2c: 01 00 00 5A 9B F5 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 5A 9B 00 00 00 00 00 FF 0F 0A [07:48:41]RasterBufferAndPrint [07:48:41]line Счет N : (1)220852 [07:48:41]line ИНН: 02508201610067 [07:48:41]line Контрольно-Кассовый Чек [07:48:41]line ПРОДАЖА [07:48:41]line ТРК (МРК, ГНК) : 33 [07:48:41]line Товар: 2710124130 [07:48:41]line Аи-92-К-5 [07:48:41]line 5.980 * 66.90 [07:48:41]line = 400.06 [07:48:41]line НДС 12% НСП 1% [07:48:41]line > о реализуемом товаре [07:48:41]line ИТОГО: 400.06 [07:48:41]line НСП 1% : 3.54 [07:48:41]line НДС 12% : 42.48 [07:48:41]line Наличными: 0.00 [07:48:41]line Безнал.: 400.06 [07:48:41]line Место: АЗС № 161 "Партнер Нефть" [07:48:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:48:41]line СНО: Общий режим [07:48:41]line Чек 32 22.10.2024 07:49 [07:48:41]line Смена: 536 ФФД: 1.0 [07:48:41]line ЗНМ: 0300000104 [07:48:41]line РНМ: 0000000000091764 [07:48:41]line Версия ККМ: 001 [07:48:41]line Платежная система: Mbank [07:48:41]line ФМ: 0000000000871759 [07:48:41]line ФД: 166277 [07:48:41]line ФПД: 233849858381817 [07:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166277&fm=233849858381817&tin=02508201610067®Number=0000000000091764&sum=40006 [07:48:41]written 0, free lines is 4095 [07:48:41]OFD Sender: Processing packet 166277 [packets to send 48, broken 47] [07:48:41]ProducePacketName [07:48:41]name=ofd_packets/00166277 [07:48:41]OFD Sender: To server: pG, [07:48:41]CommunicateWithHost lk.salyk.kg:30040 [07:48:41]ConnectInit lk.salyk.kg [07:48:41]Connected sock=7 [07:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 8E 07 01 B8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 EE 58 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 89 02 00 35 04 06 00 D4 AF 69 BD 57 F9 4F 40 3A A4 3D B4 79 1F [07:48:41]Write to MH i2c: 01 00 00 83 9B 1E [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 83 9B 00 00 00 00 00 F1 0C 22 [07:48:41]RasterBufferAndPrint [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]written 0, free lines is 3323 [07:48:41]MH_Cut [07:48:41]Write to MH i2c: D1 01 00 8A 9B 01 F7 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 01 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 01 00 8A 9B 00 F6 [07:48:41]Write to MH i2c: 01 00 00 8B 9B 26 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F 3C 47 00 53 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 89 02 00 F4 03 04 00 5A FF 16 67 B6 04 01 00 00 06 81 35 F4 6D 5E 47 B8 [07:48:42]CommunicateWithHost err = 0 [07:48:42]CheckOFDResponse [07:48:42]1017 (14) - 77093643461234 [07:48:42]1041 (16) - 0000000000871759 [07:48:42]1040 (4) - 166277 [07:48:42]1012 (4) - 22.10.2024 01:26 [07:48:42]1206 (1) - 0 [07:48:42]OFD Sender: Remove packet 166277 [07:48:42]ProducePacketName [07:48:42]name=ofd_packets/00166277 [07:48:42]NVStorageDeleteData [07:48:42]OFD Sender: No OFD packet to send [07:48:42]*** Cut start [07:48:42]*** Partial cut [07:48:42]*** CUTSNS_PIN = 1 [07:48:42]*** CUTSNS_PIN = 0 [07:48:42]*** Brake cut motor [07:48:43]Read from MH i2c: 01 [07:48:43]MH_I2C_Read... [07:48:43]*** Stop cut motor [07:48:43]*** Cut end [07:48:43]Read from MH i2c: 01 07 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: 01 07 00 8B 9B 00 00 00 00 00 FF 0F 3B [07:48:43]process_action close_receipt done [07:48:43]requested_data is exist [07:48:43]produce_requested_data [07:48:43]requested_item fm.sn is exist - process it [07:48:43]wFMCommunicate request_size=4 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 11 00 00 [07:48:43]Write to MH i2c: E2 08 00 8C 9B 80 11 00 00 00 00 00 00 A1 [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 17 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 17 00 8C 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [07:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:48:43]wFMCommunicate OK [07:48:43]requested_item fd.num is exist - process it [07:48:43]SAM_PROTO_GetFieldsCounters [07:48:43]wFMCommunicate request_size=4 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 13 00 00 [07:48:43]Write to MH i2c: E2 08 00 8D 9B 80 13 00 00 00 00 00 00 A4 [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 62 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 62 00 8D 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [07:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:43]wFMCommunicate OK [07:48:43]SAM_PROTO_GetFieldsCounters done [07:48:43]requested_item shift.num is exist - process it [07:48:43]requested_item shift.opened is exist - process it [07:48:43]req_shift_opened [07:48:43]FM_GetShiftState [07:48:43]SAM_PROTO_GetShiftState [07:48:43]wFMCommunicate request_size=4 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 13 01 00 [07:48:43]Write to MH i2c: E2 08 00 8E 9B 80 13 01 00 00 00 00 00 A6 [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0E 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0E 00 8E 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F9 [07:48:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:48:43]wFMCommunicate OK [07:48:43]SAM_PROTO_GetShiftState done [07:48:43]FM_GetShiftState done [07:48:43]req_shift_opened done [07:48:43]requested_item shift.open_date is exist - process it [07:48:43]req_shift_open_date [07:48:43]req_shift_open_date done [07:48:43]produce_requested_data done [07:48:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166277,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:48:43]process_action_free close_receipt [07:48:43]json_value_free [07:48:43]json_value_free done [07:48:43]process_json_proto returns [07:48:43]Send response to host [07:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166277,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:48:43]free response buf [07:48:43]execute_script done [07:48:43]execute_script returns [07:48:43]free content buf [07:48:43]Sock 6.Close socket [07:48:43]Sock 6.Thread stoped [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:16]accept exits with 5 [07:50:16]New connection [07:50:16]New thread 3066920292 created [07:50:16]Thread 3066776932 joined [07:50:16]Waiting for new connection... [07:50:16] Sock 5.Parse request [07:50:16]Sock 5.Check first char [07:50:16]Sock 5.First char is OK [07:50:16]request: POST /json_proto HTTP/1.0 [07:50:16]Method: POST [07:50:16]URL: /json_proto [07:50:16]Method is POST - this is cgi request [07:50:16]url: /json_proto [07:50:16]query_string will be loaded in cgi processing [07:50:16]execute_cgi json_proto POST (null) [07:50:16]execute_cgi path=json_proto method=POST [07:50:16]POST find Content-Length [07:50:16]Host: 172.17.53.195:8080 [07:50:16]Content-Length: 682 [07:50:16]Content-Type: application/json [07:50:16] [07:50:16]POST finish read [07:50:16]Found Content-Length = 682 [07:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:16]execute_script... [07:50:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:16]POST & json_proto [07:50:16]process_json_proto [07:50:16]json parsed OK: [07:50:16]protocol is kg_v1.0 [07:50:16]action value=close_receipt [07:50:16]process_action close_receipt [07:50:16]cmd_close_receipt [07:50:16]MH_GetDate [07:50:16]Write to MH i2c: F0 00 00 8F 9B 19 [07:50:16]Write i2c OK [07:50:16]MH_I2C_Read... [07:50:16]Read from MH i2c: F0 [07:50:16]MH_I2C_Read... [07:50:16]Read from MH i2c: F0 09 00 [07:50:16]MH_I2C_Read... [07:50:16]Read from MH i2c: F0 09 00 8F 9B 00 4F 59 17 67 21 48 4A 65 60 [07:50:16]GetLastDocTimeStamp 1729583342 [07:50:16]current date 1729583439 [07:50:16]FM_GetShiftState [07:50:16]SAM_PROTO_GetShiftState [07:50:16]wFMCommunicate request_size=4 [07:50:16]MH_SAM_APDU [07:50:16]CAPDU: 80 13 01 00 [07:50:16]Write to MH i2c: E2 08 00 90 9B 80 13 01 00 00 00 00 00 A8 [07:50:16]Write i2c OK [07:50:16]MH_I2C_Read... [07:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:16]Read from MH i2c: E2 [07:50:16]MH_I2C_Read... [07:50:16]Read from MH i2c: E2 0E 00 [07:50:16]MH_I2C_Read... [07:50:16]Read from MH i2c: E2 0E 00 90 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [07:50:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:50:16]wFMCommunicate OK [07:50:16]SAM_PROTO_GetShiftState done [07:50:16]FM_GetShiftState done [07:50:16]opened in 1729557463 [07:50:16]opened+sec_in_day 1729643863 [07:50:16]quantity*price = 100021 [07:50:16]sum+1 = 100023 [07:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 33 22.10.2024 07:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166278 ФПД: 14412078583367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075039&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166278&fm=14412078583367&tin=02508201610067®Number=0000000000091764&sum=100000 [07:50:17]StoreToDocumentArchive [07:50:17]shift 536 fd 166278 [07:50:17]save to /storage/0536/doc_00166278 [07:50:17]save last doc name /storage/0536/doc_00166278 to /storage/kkm_last_doc_name [07:50:17]save OK [07:50:17]Clear old archive folders... [07:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:17]tlvbuf is 01971090 [07:50:17]SAM_PROTO_ClearQueue [07:50:17]wFMCommunicate request_size=4 [07:50:17]MH_SAM_APDU [07:50:17]CAPDU: 80 09 00 00 [07:50:17]Write to MH i2c: E2 08 00 9D 9B 80 09 00 00 00 00 00 00 AA [07:50:17]Write i2c OK [07:50:17]MH_I2C_Read... [07:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:17]Read from MH i2c: E2 [07:50:17]MH_I2C_Read... [07:50:17]Read from MH i2c: E2 03 00 [07:50:17]MH_I2C_Read... [07:50:17]Read from MH i2c: E2 03 00 9D 9B 00 90 00 AC [07:50:17]RAPDU: 90 00 [07:50:17]wFMCommunicate OK [07:50:17]SAM_PROTO_ClearQueue done [07:50:17]KKMCreateOFDPacket [07:50:17]OFDProtocolAddRootSTLVToBuf [07:50:17]FM_MakeSignedData [07:50:17]FM_MakeSignedData [07:50:17]SAM_PROTO_SignData [07:50:17]wFMCommunicate request_size=4 [07:50:17]MH_SAM_APDU [07:50:17]CAPDU: 80 0D 01 02 [07:50:17]Write to MH i2c: E2 08 00 9E 9B 80 0D 01 02 00 00 00 00 B2 [07:50:17]Write i2c OK [07:50:17]MH_I2C_Read... [07:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:17]Read from MH i2c: E2 [07:50:17]MH_I2C_Read... [07:50:17]Read from MH i2c: E2 03 00 [07:50:17]MH_I2C_Read... [07:50:17]Read from MH i2c: E2 03 00 9E 9B 00 90 00 AD [07:50:17]RAPDU: 90 00 [07:50:17]wFMCommunicate OK [07:50:17]wFMCommunicate request_size=255 [07:50:17]MH_SAM_APDU [07:50:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4F 59 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 89 02 00 35 04 06 00 0D [07:50:17]Write to MH i2c: E2 02 01 9F 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4F 59 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 89 02 00 35 04 06 00 0D 00 00 E4 [07:50:17]Write i2c OK [07:50:17]MH_I2C_Read... [07:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:18]Read from MH i2c: E2 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 03 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 03 00 9F 9B 00 90 00 AE [07:50:18]RAPDU: 90 00 [07:50:18]wFMCommunicate OK [07:50:18]wFMCommunicate request_size=10 [07:50:18]MH_SAM_APDU [07:50:18]CAPDU: 80 0D 02 02 05 1B 92 D3 0E 47 [07:50:18]Write to MH i2c: E2 0D 00 A0 9B 80 0D 02 02 05 00 1B 92 D3 0E 47 00 00 94 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:18]Read from MH i2c: E2 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 03 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 03 00 A0 9B 00 90 00 AF [07:50:18]RAPDU: 90 00 [07:50:18]wFMCommunicate OK [07:50:18]wFMCommunicate request_size=4 [07:50:18]MH_SAM_APDU [07:50:18]CAPDU: 80 0D 03 02 [07:50:18]Write to MH i2c: E2 08 00 A1 9B 80 0D 03 02 00 00 00 00 B7 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:18]Read from MH i2c: E2 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 0B 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 0B 00 A1 9B 00 F2 E1 9A 65 E0 51 FD F8 90 00 B0 [07:50:18]RAPDU: F2 E1 9A 65 E0 51 FD F8 90 00 [07:50:18]wFMCommunicate OK [07:50:18]SAM_PROTO_SignData done [07:50:18]FM_MakeSignedData done [07:50:18]CreateOFDProtocolMessage [07:50:18]wFMCommunicate request_size=4 [07:50:18]MH_SAM_APDU [07:50:18]CAPDU: 80 11 00 00 [07:50:18]Write to MH i2c: E2 08 00 A2 9B 80 11 00 00 00 00 00 00 B7 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:18]Read from MH i2c: E2 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 17 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: E2 17 00 A2 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [07:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:50:18]wFMCommunicate OK [07:50:18]CreateOFDProtocolMessage done [07:50:18]OFDSenderStorePacket 166278 [07:50:18]StoreOFDPacket docnum=166278 [07:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 DA 07 01 CF B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4F 59 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 89 02 00 35 04 06 00 0D 1B 92 D3 0E 47 F2 E1 9A 65 E0 51 FD F8 [07:50:18]CheckFolder [07:50:18]dirname=/storage/ofd_packets [07:50:18]CheckFolder done [07:50:18]ProducePacketName [07:50:18]name=ofd_packets/00166278 [07:50:18]NVStorageSaveData ofd_packets/00166278 [07:50:18]File name is /storage/ofd_packets/00166278 [07:50:18]Write 301 bytes [07:50:18]NVStorageSaveData done [07:50:18]OFDSenderStorePacket done [07:50:18]KKMCreateOFDPacket done [07:50:18]NVStorageSaveData kkm_last_timestamp [07:50:18]File name is /storage/kkm_last_timestamp [07:50:18]Write 4 bytes [07:50:18]NVStorageSaveData done [07:50:18]ExternCall_PrintAddStr [07:50:18]wPrintStart [07:50:18]Write to MH i2c: 01 00 00 A3 9B 3E [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 07 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 07 00 A3 9B 00 00 00 00 00 FF 0F 53 [07:50:18]RasterBufferAndPrint [07:50:18]line Счет N : (1)220853 [07:50:18]line ИНН: 02508201610067 [07:50:18]line Контрольно-Кассовый Чек [07:50:18]line ПРОДАЖА [07:50:18]line ТРК (МРК, ГНК) : 14 [07:50:18]line Товар: 2710124500 [07:50:18]line Аи-95-К-5 [07:50:18]line 13.480 * 74.20 [07:50:18]line = 1000.22 [07:50:18]line НДС 12% НСП 1% [07:50:18]line > о реализуемом товаре [07:50:18]line ОКРУГЛЕНИЕ: -0.22 [07:50:18]line ИТОГО: 1000.00 [07:50:18]line Внесено: 1000.00 [07:50:18]line СДАЧА: 0.00 [07:50:18]line НСП 1% : 8.85 [07:50:18]line НДС 12% : 106.22 [07:50:18]line Наличными: 1000.00 [07:50:18]line Безнал.: 0.00 [07:50:18]line Место: АЗС № 161 "Партнер Нефть" [07:50:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:50:18]line СНО: Общий режим [07:50:18]line Чек 33 22.10.2024 07:50 [07:50:18]line Смена: 536 ФФД: 1.0 [07:50:18]line ЗНМ: 0300000104 [07:50:18]line РНМ: 0000000000091764 [07:50:18]line Версия ККМ: 001 [07:50:18]line ФМ: 0000000000871759 [07:50:18]line ФД: 166278 [07:50:18]line ФПД: 14412078583367 [07:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075039&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166278&fm=14412078583367&tin=02508201610067®Number=0000000000091764&sum=100000 [07:50:18]written 0, free lines is 4095 [07:50:18]OFD Sender: Processing packet 166278 [packets to send 48, broken 47] [07:50:18]ProducePacketName [07:50:18]name=ofd_packets/00166278 [07:50:18]OFD Sender: To server: pG, [07:50:18]CommunicateWithHost lk.salyk.kg:30040 [07:50:18]ConnectInit lk.salyk.kg [07:50:18]Connected sock=9 [07:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 DA 07 01 CF B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4F 59 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 89 02 00 35 04 06 00 0D 1B 92 D3 0E 47 F2 E1 9A 65 E0 51 FD F8 [07:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 F1 47 00 EA 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 89 02 00 F4 03 04 00 BB FF 16 67 B6 04 01 00 00 4A EA 35 26 34 E3 72 83 [07:50:18]CommunicateWithHost err = 0 [07:50:18]CheckOFDResponse [07:50:18]1017 (14) - 77093643461234 [07:50:18]1041 (16) - 0000000000871759 [07:50:18]1040 (4) - 166278 [07:50:18]1012 (4) - 22.10.2024 01:28 [07:50:18]1206 (1) - 0 [07:50:18]OFD Sender: Remove packet 166278 [07:50:18]ProducePacketName [07:50:18]name=ofd_packets/00166278 [07:50:18]NVStorageDeleteData [07:50:18]Write to MH i2c: 01 00 00 CE 9B 69 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 07 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: 01 07 00 CE 9B 00 00 00 00 00 C1 0C 3D [07:50:18]RasterBufferAndPrint [07:50:18]line [07:50:18]line [07:50:18]line [07:50:18]line [07:50:18]line [07:50:18]written 0, free lines is 3271 [07:50:18]MH_Cut [07:50:18]Write to MH i2c: D1 01 00 D5 9B 01 42 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: D1 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: D1 01 00 [07:50:18]MH_I2C_Read... [07:50:18]Read from MH i2c: D1 01 00 D5 9B 00 41 [07:50:18]Write to MH i2c: 01 00 00 D6 9B 71 [07:50:18]Write i2c OK [07:50:18]MH_I2C_Read... [07:50:19]OFD Sender: No OFD packet to send [07:50:19]*** Cut start [07:50:19]*** Partial cut [07:50:19]*** CUTSNS_PIN = 1 [07:50:19]*** CUTSNS_PIN = 0 [07:50:19]*** Brake cut motor [07:50:20]Read from MH i2c: 01 [07:50:20]MH_I2C_Read... [07:50:20]*** Stop cut motor [07:50:20]*** Cut end [07:50:20]Read from MH i2c: 01 07 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: 01 07 00 D6 9B 00 00 00 00 00 FF 0F 86 [07:50:20]process_action close_receipt done [07:50:20]requested_data is exist [07:50:20]produce_requested_data [07:50:20]requested_item fm.sn is exist - process it [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 11 00 00 [07:50:20]Write to MH i2c: E2 08 00 D7 9B 80 11 00 00 00 00 00 00 EC [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 17 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 17 00 D7 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [07:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:50:20]wFMCommunicate OK [07:50:20]requested_item fd.num is exist - process it [07:50:20]SAM_PROTO_GetFieldsCounters [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 13 00 00 [07:50:20]Write to MH i2c: E2 08 00 D8 9B 80 13 00 00 00 00 00 00 EF [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 62 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 62 00 D8 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [07:50:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:20]wFMCommunicate OK [07:50:20]SAM_PROTO_GetFieldsCounters done [07:50:20]requested_item shift.num is exist - process it [07:50:20]requested_item shift.opened is exist - process it [07:50:20]req_shift_opened [07:50:20]FM_GetShiftState [07:50:20]SAM_PROTO_GetShiftState [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 13 01 00 [07:50:20]Write to MH i2c: E2 08 00 D9 9B 80 13 01 00 00 00 00 00 F1 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 0E 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 0E 00 D9 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 44 [07:50:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:50:20]wFMCommunicate OK [07:50:20]SAM_PROTO_GetShiftState done [07:50:20]FM_GetShiftState done [07:50:20]req_shift_opened done [07:50:20]requested_item shift.open_date is exist - process it [07:50:20]req_shift_open_date [07:50:20]req_shift_open_date done [07:50:20]produce_requested_data done [07:50:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166278,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:50:20]process_action_free close_receipt [07:50:20]json_value_free [07:50:20]json_value_free done [07:50:20]process_json_proto returns [07:50:20]Send response to host [07:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166278,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:50:20]free response buf [07:50:20]execute_script done [07:50:20]execute_script returns [07:50:20]free content buf [07:50:20]Sock 5.Close socket [07:50:20]Sock 5.Thread stoped [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:08]accept exits with 6 [07:54:08]New connection [07:54:08]New thread 3066776932 created [07:54:08]Thread 3066920292 joined [07:54:08]Waiting for new connection... [07:54:08] Sock 6.Parse request [07:54:08]Sock 6.Check first char [07:54:08]Sock 6.First char is OK [07:54:08]request: POST /json_proto HTTP/1.0 [07:54:08]Method: POST [07:54:08]URL: /json_proto [07:54:08]Method is POST - this is cgi request [07:54:08]url: /json_proto [07:54:08]query_string will be loaded in cgi processing [07:54:08]execute_cgi json_proto POST (null) [07:54:08]execute_cgi path=json_proto method=POST [07:54:08]POST find Content-Length [07:54:08]Host: 172.17.53.195:8080 [07:54:08]Content-Length: 763 [07:54:08]Content-Type: application/json [07:54:08] [07:54:08]POST finish read [07:54:08]Found Content-Length = 763 [07:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.320, "sum" : 405.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 405.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:08]execute_script... [07:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.320, "sum" : 405.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 405.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:08]POST & json_proto [07:54:08]process_json_proto [07:54:08]json parsed OK: [07:54:08]protocol is kg_v1.0 [07:54:08]action value=close_receipt [07:54:08]process_action close_receipt [07:54:08]cmd_close_receipt [07:54:08]MH_GetDate [07:54:08]Write to MH i2c: F0 00 00 DA 9B 64 [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 09 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 09 00 DA 9B 00 37 5A 17 67 21 48 4A 65 94 [07:54:08]GetLastDocTimeStamp 1729583439 [07:54:08]current date 1729583671 [07:54:08]FM_GetShiftState [07:54:08]SAM_PROTO_GetShiftState [07:54:08]wFMCommunicate request_size=4 [07:54:08]MH_SAM_APDU [07:54:08]CAPDU: 80 13 01 00 [07:54:08]Write to MH i2c: E2 08 00 DB 9B 80 13 01 00 00 00 00 00 F3 [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:08]Read from MH i2c: E2 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 0E 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 0E 00 DB 9B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [07:54:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:54:08]wFMCommunicate OK [07:54:08]SAM_PROTO_GetShiftState done [07:54:08]FM_GetShiftState done [07:54:08]opened in 1729557463 [07:54:08]opened+sec_in_day 1729643863 [07:54:08]quantity*price = 40538 [07:54:08]sum+1 = 40539 [07:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.38 НСП 1% : 3.59 НДС 12% : 43.05 Наличными: 0.00 Безнал.: 405.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 34 22.10.2024 07:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166279 ФПД: 86902488665397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075431&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166279&fm=86902488665397&tin=02508201610067®Number=0000000000091764&sum=40538 [07:54:09]StoreToDocumentArchive [07:54:09]shift 536 fd 166279 [07:54:09]save to /storage/0536/doc_00166279 [07:54:09]save last doc name /storage/0536/doc_00166279 to /storage/kkm_last_doc_name [07:54:09]save OK [07:54:09]Clear old archive folders... [07:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:09]tlvbuf is 01445710 [07:54:09]SAM_PROTO_ClearQueue [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 09 00 00 [07:54:09]Write to MH i2c: E2 08 00 E8 9B 80 09 00 00 00 00 00 00 F5 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 E8 9B 00 90 00 F7 [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]SAM_PROTO_ClearQueue done [07:54:09]KKMCreateOFDPacket [07:54:09]OFDProtocolAddRootSTLVToBuf [07:54:09]FM_MakeSignedData [07:54:09]FM_MakeSignedData [07:54:09]SAM_PROTO_SignData [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 01 02 [07:54:09]Write to MH i2c: E2 08 00 E9 9B 80 0D 01 02 00 00 00 00 FD [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 E9 9B 00 90 00 F8 [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=255 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 37 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 89 02 00 35 04 06 00 4F 09 8F F7 [07:54:09]Write to MH i2c: E2 02 01 EA 9B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 37 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 89 02 00 35 04 06 00 4F 09 8F F7 00 00 8A [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 EA 9B 00 90 00 F9 [07:54:10]RAPDU: 90 00 [07:54:10]wFMCommunicate OK [07:54:10]wFMCommunicate request_size=7 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 0D 02 02 02 8D 35 [07:54:10]Write to MH i2c: E2 0A 00 EB 9B 80 0D 02 02 02 00 8D 35 00 00 C6 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 EB 9B 00 90 00 FA [07:54:10]RAPDU: 90 00 [07:54:10]wFMCommunicate OK [07:54:10]wFMCommunicate request_size=4 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 0D 03 02 [07:54:10]Write to MH i2c: E2 08 00 EC 9B 80 0D 03 02 00 00 00 00 02 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 0B 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 0B 00 EC 9B 00 68 B1 2E 98 E8 0F 9F A7 90 00 1F [07:54:10]RAPDU: 68 B1 2E 98 E8 0F 9F A7 90 00 [07:54:10]wFMCommunicate OK [07:54:10]SAM_PROTO_SignData done [07:54:10]FM_MakeSignedData done [07:54:10]CreateOFDProtocolMessage [07:54:10]wFMCommunicate request_size=4 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 11 00 00 [07:54:10]Write to MH i2c: E2 08 00 ED 9B 80 11 00 00 00 00 00 00 02 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 17 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 17 00 ED 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [07:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:54:10]wFMCommunicate OK [07:54:10]CreateOFDProtocolMessage done [07:54:10]OFDSenderStorePacket 166279 [07:54:10]StoreOFDPacket docnum=166279 [07:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D5 D6 04 01 68 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 37 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 89 02 00 35 04 06 00 4F 09 8F F7 8D 35 68 B1 2E 98 E8 0F 9F A7 [07:54:10]CheckFolder [07:54:10]dirname=/storage/ofd_packets [07:54:10]CheckFolder done [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00166279 [07:54:10]NVStorageSaveData ofd_packets/00166279 [07:54:10]File name is /storage/ofd_packets/00166279 [07:54:10]Write 298 bytes [07:54:10]NVStorageSaveData done [07:54:10]OFDSenderStorePacket done [07:54:10]KKMCreateOFDPacket done [07:54:10]NVStorageSaveData kkm_last_timestamp [07:54:10]File name is /storage/kkm_last_timestamp [07:54:10]Write 4 bytes [07:54:10]NVStorageSaveData done [07:54:10]ExternCall_PrintAddStr [07:54:10]wPrintStart [07:54:10]Write to MH i2c: 01 00 00 EE 9B 89 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 EE 9B 00 00 00 00 00 FF 0F 9E [07:54:10]RasterBufferAndPrint [07:54:10]line Счет N : (1)220854 [07:54:10]line ИНН: 02508201610067 [07:54:10]line Контрольно-Кассовый Чек [07:54:10]line ПРОДАЖА [07:54:10]line ТРК (МРК, ГНК) : 11 [07:54:10]line Товар: 2710194210 [07:54:10]line ДТ-К-5 [07:54:10]line 5.320 * 76.20 [07:54:10]line = 405.38 [07:54:10]line НДС 12% НСП 1% [07:54:10]line > о реализуемом товаре [07:54:10]line ИТОГО: 405.38 [07:54:10]line НСП 1% : 3.59 [07:54:10]line НДС 12% : 43.05 [07:54:10]line Наличными: 0.00 [07:54:10]line Безнал.: 405.38 [07:54:10]line Место: АЗС № 161 "Партнер Нефть" [07:54:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:54:10]line СНО: Общий режим [07:54:10]line Чек 34 22.10.2024 07:54 [07:54:10]line Смена: 536 ФФД: 1.0 [07:54:10]line ЗНМ: 0300000104 [07:54:10]line РНМ: 0000000000091764 [07:54:10]line Версия ККМ: 001 [07:54:10]line Платежная система: Mbank [07:54:10]line ФМ: 0000000000871759 [07:54:10]line ФД: 166279 [07:54:10]line ФПД: 86902488665397 [07:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075431&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166279&fm=86902488665397&tin=02508201610067®Number=0000000000091764&sum=40538 [07:54:10]OFD Sender: Processing packet 166279 [packets to send 48, broken 47] [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00166279 [07:54:10]OFD Sender: To server: pG, [07:54:10]CommunicateWithHost lk.salyk.kg:30040 [07:54:10]ConnectInit lk.salyk.kg [07:54:10]written 0, free lines is 4095 [07:54:10]Connected sock=9 [07:54:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D5 D6 04 01 68 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5A 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 37 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 89 02 00 35 04 06 00 4F 09 8F F7 8D 35 68 B1 2E 98 E8 0F 9F A7 [07:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C2 34 47 00 EB AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 89 02 00 F4 03 04 00 A3 00 17 67 B6 04 01 00 00 F0 AE 0B 69 6C FD 4C 38 [07:54:10]CommunicateWithHost err = 0 [07:54:10]CheckOFDResponse [07:54:10]1017 (14) - 77093643461234 [07:54:10]1041 (16) - 0000000000871759 [07:54:10]1040 (4) - 166279 [07:54:10]1012 (4) - 22.10.2024 01:32 [07:54:10]1206 (1) - 0 [07:54:10]OFD Sender: Remove packet 166279 [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00166279 [07:54:10]NVStorageDeleteData [07:54:11]Write to MH i2c: 01 00 00 17 9C B3 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 17 9C 00 00 00 00 00 E3 0C A9 [07:54:11]RasterBufferAndPrint [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]written 0, free lines is 3305 [07:54:11]MH_Cut [07:54:11]Write to MH i2c: D1 01 00 1E 9C 01 8C [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 01 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 01 00 1E 9C 00 8B [07:54:11]Write to MH i2c: 01 00 00 1F 9C BB [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]OFD Sender: No OFD packet to send [07:54:11]*** Cut start [07:54:11]*** Partial cut [07:54:11]*** CUTSNS_PIN = 1 [07:54:12]*** CUTSNS_PIN = 0 [07:54:12]*** Brake cut motor [07:54:12]Read from MH i2c: 01 [07:54:12]MH_I2C_Read... [07:54:12]*** Stop cut motor [07:54:12]*** Cut end [07:54:12]Read from MH i2c: 01 07 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: 01 07 00 1F 9C 00 00 00 00 00 FF 0F D0 [07:54:12]process_action close_receipt done [07:54:12]requested_data is exist [07:54:12]produce_requested_data [07:54:12]requested_item fm.sn is exist - process it [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 11 00 00 [07:54:12]Write to MH i2c: E2 08 00 20 9C 80 11 00 00 00 00 00 00 36 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 17 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 17 00 20 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [07:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:54:12]wFMCommunicate OK [07:54:12]requested_item fd.num is exist - process it [07:54:12]SAM_PROTO_GetFieldsCounters [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 00 00 [07:54:12]Write to MH i2c: E2 08 00 21 9C 80 13 00 00 00 00 00 00 39 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 62 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 62 00 21 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [07:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetFieldsCounters done [07:54:12]requested_item shift.num is exist - process it [07:54:12]requested_item shift.opened is exist - process it [07:54:12]req_shift_opened [07:54:12]FM_GetShiftState [07:54:12]SAM_PROTO_GetShiftState [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 01 00 [07:54:12]Write to MH i2c: E2 08 00 22 9C 80 13 01 00 00 00 00 00 3B [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 22 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8E [07:54:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetShiftState done [07:54:12]FM_GetShiftState done [07:54:12]req_shift_opened done [07:54:12]requested_item shift.open_date is exist - process it [07:54:12]req_shift_open_date [07:54:12]req_shift_open_date done [07:54:12]produce_requested_data done [07:54:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166279,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:54:12]process_action_free close_receipt [07:54:12]json_value_free [07:54:12]json_value_free done [07:54:12]process_json_proto returns [07:54:12]Send response to host [07:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166279,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:54:12]free response buf [07:54:12]execute_script done [07:54:12]execute_script returns [07:54:12]free content buf [07:54:12]Sock 6.Close socket [07:54:12]Sock 6.Thread stoped [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:23]recv_with_timeout no data received [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:48]accept exits with 5 [07:54:48]New connection [07:54:48]New thread 3066920292 created [07:54:48]Thread 3066776932 joined [07:54:48]Waiting for new connection... [07:54:48] Sock 5.Parse request [07:54:48]Sock 5.Check first char [07:54:48]Sock 5.First char is OK [07:54:48]request: POST /json_proto HTTP/1.0 [07:54:48]Method: POST [07:54:48]URL: /json_proto [07:54:48]Method is POST - this is cgi request [07:54:48]url: /json_proto [07:54:48]query_string will be loaded in cgi processing [07:54:48]execute_cgi json_proto POST (null) [07:54:48]execute_cgi path=json_proto method=POST [07:54:48]POST find Content-Length [07:54:48]Host: 172.17.53.195:8080 [07:54:48]Content-Length: 682 [07:54:48]Content-Type: application/json [07:54:48] [07:54:48]POST finish read [07:54:48]Found Content-Length = 682 [07:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:48]execute_script... [07:54:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:48]POST & json_proto [07:54:48]process_json_proto [07:54:48]json parsed OK: [07:54:48]protocol is kg_v1.0 [07:54:48]action value=close_receipt [07:54:48]process_action close_receipt [07:54:48]cmd_close_receipt [07:54:48]MH_GetDate [07:54:48]Write to MH i2c: F0 00 00 23 9C AE [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: F0 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: F0 09 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: F0 09 00 23 9C 00 5F 5A 17 67 21 48 4A 65 06 [07:54:48]GetLastDocTimeStamp 1729583671 [07:54:48]current date 1729583711 [07:54:48]FM_GetShiftState [07:54:48]SAM_PROTO_GetShiftState [07:54:48]wFMCommunicate request_size=4 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 13 01 00 [07:54:48]Write to MH i2c: E2 08 00 24 9C 80 13 01 00 00 00 00 00 3D [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:48]Read from MH i2c: E2 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 0E 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 0E 00 24 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 90 [07:54:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:54:48]wFMCommunicate OK [07:54:48]SAM_PROTO_GetShiftState done [07:54:48]FM_GetShiftState done [07:54:48]opened in 1729557463 [07:54:48]opened+sec_in_day 1729643863 [07:54:48]quantity*price = 100015 [07:54:48]sum+1 = 100017 [07:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 35 22.10.2024 07:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166280 ФПД: 77150335501302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075511&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166280&fm=77150335501302&tin=02508201610067®Number=0000000000091764&sum=100000 [07:54:49]StoreToDocumentArchive [07:54:49]shift 536 fd 166280 [07:54:49]save to /storage/0536/doc_00166280 [07:54:49]save last doc name /storage/0536/doc_00166280 to /storage/kkm_last_doc_name [07:54:49]save OK [07:54:49]Clear old archive folders... [07:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:49]tlvbuf is 014FEC70 [07:54:49]SAM_PROTO_ClearQueue [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 09 00 00 [07:54:49]Write to MH i2c: E2 08 00 31 9C 80 09 00 00 00 00 00 00 3F [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 31 9C 00 90 00 41 [07:54:49]RAPDU: 90 00 [07:54:49]wFMCommunicate OK [07:54:49]SAM_PROTO_ClearQueue done [07:54:49]KKMCreateOFDPacket [07:54:49]OFDProtocolAddRootSTLVToBuf [07:54:49]FM_MakeSignedData [07:54:49]FM_MakeSignedData [07:54:49]SAM_PROTO_SignData [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 0D 01 02 [07:54:49]Write to MH i2c: E2 08 00 32 9C 80 0D 01 02 00 00 00 00 47 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 03 00 32 9C 00 90 00 42 [07:54:49]RAPDU: 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=255 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 89 02 00 35 04 06 00 46 [07:54:49]Write to MH i2c: E2 02 01 33 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 89 02 00 35 04 06 00 46 00 00 A4 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 03 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 03 00 33 9C 00 90 00 43 [07:54:50]RAPDU: 90 00 [07:54:50]wFMCommunicate OK [07:54:50]wFMCommunicate request_size=10 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 0D 02 02 05 2A F6 57 83 F6 [07:54:50]Write to MH i2c: E2 0D 00 34 9C 80 0D 02 02 05 00 2A F6 57 83 F6 00 00 44 [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 03 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 03 00 34 9C 00 90 00 44 [07:54:50]RAPDU: 90 00 [07:54:50]wFMCommunicate OK [07:54:50]wFMCommunicate request_size=4 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 0D 03 02 [07:54:50]Write to MH i2c: E2 08 00 35 9C 80 0D 03 02 00 00 00 00 4C [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 0B 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 0B 00 35 9C 00 2A CB A4 DB 59 14 D4 54 90 00 56 [07:54:50]RAPDU: 2A CB A4 DB 59 14 D4 54 90 00 [07:54:50]wFMCommunicate OK [07:54:50]SAM_PROTO_SignData done [07:54:50]FM_MakeSignedData done [07:54:50]CreateOFDProtocolMessage [07:54:50]wFMCommunicate request_size=4 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 11 00 00 [07:54:50]Write to MH i2c: E2 08 00 36 9C 80 11 00 00 00 00 00 00 4C [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 17 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 17 00 36 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [07:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:54:50]wFMCommunicate OK [07:54:50]CreateOFDProtocolMessage done [07:54:50]OFDSenderStorePacket 166280 [07:54:50]StoreOFDPacket docnum=166280 [07:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 43 07 01 77 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 89 02 00 35 04 06 00 46 2A F6 57 83 F6 2A CB A4 DB 59 14 D4 54 [07:54:50]CheckFolder [07:54:50]dirname=/storage/ofd_packets [07:54:50]CheckFolder done [07:54:50]ProducePacketName [07:54:50]name=ofd_packets/00166280 [07:54:50]NVStorageSaveData ofd_packets/00166280 [07:54:50]File name is /storage/ofd_packets/00166280 [07:54:50]Write 301 bytes [07:54:50]NVStorageSaveData done [07:54:50]OFDSenderStorePacket done [07:54:50]KKMCreateOFDPacket done [07:54:50]NVStorageSaveData kkm_last_timestamp [07:54:50]File name is /storage/kkm_last_timestamp [07:54:50]Write 4 bytes [07:54:50]NVStorageSaveData done [07:54:50]ExternCall_PrintAddStr [07:54:50]wPrintStart [07:54:50]Write to MH i2c: 01 00 00 37 9C D3 [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 07 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 07 00 37 9C 00 00 00 00 00 FF 0F E8 [07:54:50]RasterBufferAndPrint [07:54:50]line Счет N : (1)220855 [07:54:50]line ИНН: 02508201610067 [07:54:50]line Контрольно-Кассовый Чек [07:54:50]line ПРОДАЖА [07:54:50]line ТРК (МРК, ГНК) : 33 [07:54:50]line Товар: 2710124130 [07:54:50]line Аи-92-К-5 [07:54:50]line 14.950 * 66.90 [07:54:50]line = 1000.16 [07:54:50]line НДС 12% НСП 1% [07:54:50]line > о реализуемом товаре [07:54:50]line ОКРУГЛЕНИЕ: -0.16 [07:54:50]line ИТОГО: 1000.00 [07:54:50]line Внесено: 1000.00 [07:54:50]line СДАЧА: 0.00 [07:54:50]line НСП 1% : 8.85 [07:54:50]line НДС 12% : 106.21 [07:54:50]line Наличными: 1000.00 [07:54:50]line Безнал.: 0.00 [07:54:50]line Место: АЗС № 161 "Партнер Нефть" [07:54:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:54:50]line СНО: Общий режим [07:54:50]line Чек 35 22.10.2024 07:55 [07:54:50]line Смена: 536 ФФД: 1.0 [07:54:50]line ЗНМ: 0300000104 [07:54:50]line РНМ: 0000000000091764 [07:54:50]line Версия ККМ: 001 [07:54:50]line ФМ: 0000000000871759 [07:54:50]line ФД: 166280 [07:54:50]line ФПД: 77150335501302 [07:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075511&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166280&fm=77150335501302&tin=02508201610067®Number=0000000000091764&sum=100000 [07:54:50]OFD Sender: Processing packet 166280 [packets to send 48, broken 47] [07:54:50]ProducePacketName [07:54:50]name=ofd_packets/00166280 [07:54:50]OFD Sender: To server: pG, [07:54:50]CommunicateWithHost lk.salyk.kg:30040 [07:54:50]ConnectInit lk.salyk.kg [07:54:50]recv_with_timeout no data received [07:54:50]written 0, free lines is 4095 [07:54:50]Write to MH i2c: 01 00 00 62 9C FE [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 07 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: 01 07 00 62 9C 00 00 00 00 00 B2 0C C3 [07:54:50]RasterBufferAndPrint [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]line [07:54:50]written 0, free lines is 3256 [07:54:51]MH_Cut [07:54:51]Write to MH i2c: D1 01 00 69 9C 01 D7 [07:54:51]Write i2c OK [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: D1 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: D1 01 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: D1 01 00 69 9C 00 D6 [07:54:51]Write to MH i2c: 01 00 00 6A 9C 06 [07:54:51]Write i2c OK [07:54:51]MH_I2C_Read... [07:54:51]*** Cut start [07:54:51]*** Partial cut [07:54:51]*** CUTSNS_PIN = 1 [07:54:51]*** CUTSNS_PIN = 0 [07:54:52]*** Brake cut motor [07:54:52]Read from MH i2c: 01 [07:54:52]MH_I2C_Read... [07:54:52]*** Stop cut motor [07:54:52]*** Cut end [07:54:52]Read from MH i2c: 01 07 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: 01 07 00 6A 9C 00 00 00 00 00 FF 0F 1B [07:54:52]process_action close_receipt done [07:54:52]requested_data is exist [07:54:52]produce_requested_data [07:54:52]requested_item fm.sn is exist - process it [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 11 00 00 [07:54:52]Write to MH i2c: E2 08 00 6B 9C 80 11 00 00 00 00 00 00 81 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 17 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 17 00 6B 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [07:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:54:52]wFMCommunicate OK [07:54:52]requested_item fd.num is exist - process it [07:54:52]SAM_PROTO_GetFieldsCounters [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 13 00 00 [07:54:52]Write to MH i2c: E2 08 00 6C 9C 80 13 00 00 00 00 00 00 84 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 62 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 62 00 6C 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [07:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetFieldsCounters done [07:54:52]requested_item shift.num is exist - process it [07:54:52]requested_item shift.opened is exist - process it [07:54:52]req_shift_opened [07:54:52]FM_GetShiftState [07:54:52]SAM_PROTO_GetShiftState [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 13 01 00 [07:54:52]Write to MH i2c: E2 08 00 6D 9C 80 13 01 00 00 00 00 00 86 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 6D 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D9 [07:54:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetShiftState done [07:54:52]FM_GetShiftState done [07:54:52]req_shift_opened done [07:54:52]requested_item shift.open_date is exist - process it [07:54:52]req_shift_open_date [07:54:52]req_shift_open_date done [07:54:52]produce_requested_data done [07:54:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166280,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:54:52]process_action_free close_receipt [07:54:52]json_value_free [07:54:52]json_value_free done [07:54:52]process_json_proto returns [07:54:52]Send response to host [07:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166280,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:54:52]free response buf [07:54:52]execute_script done [07:54:52]execute_script returns [07:54:52]free content buf [07:54:52]Sock 5.Close socket [07:54:52]Sock 5.Thread stoped [07:54:55]ConnectInit Can't take IP for lk.salyk.kg [07:54:55]CommunicateWithHost connect error [07:54:55]CommunicateWithHost err = -1 [07:54:55]OFD Sender: Server communicate error [07:55:00]OFD Sender: Processing packet 166280 [packets to send 48, broken 47] [07:55:00]ProducePacketName [07:55:00]name=ofd_packets/00166280 [07:55:00]OFD Sender: To server: pG, [07:55:00]CommunicateWithHost lk.salyk.kg:30040 [07:55:00]ConnectInit lk.salyk.kg [07:55:05]ConnectInit Can't take IP for lk.salyk.kg [07:55:05]CommunicateWithHost connect error [07:55:05]CommunicateWithHost err = -1 [07:55:05]OFD Sender: Server communicate error [07:55:10]OFD Sender: Processing packet 166280 [packets to send 48, broken 47] [07:55:10]ProducePacketName [07:55:10]name=ofd_packets/00166280 [07:55:10]OFD Sender: To server: pG, [07:55:10]CommunicateWithHost lk.salyk.kg:30040 [07:55:10]ConnectInit lk.salyk.kg [07:55:15]ConnectInit Can't take IP for lk.salyk.kg [07:55:15]CommunicateWithHost connect error [07:55:15]CommunicateWithHost err = -1 [07:55:15]OFD Sender: Server communicate error [07:55:20]OFD Sender: Processing packet 166280 [packets to send 48, broken 47] [07:55:20]ProducePacketName [07:55:20]name=ofd_packets/00166280 [07:55:20]OFD Sender: To server: pG, [07:55:20]CommunicateWithHost lk.salyk.kg:30040 [07:55:20]ConnectInit lk.salyk.kg [07:55:20]Connected sock=6 [07:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C8 43 07 01 77 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5F 5A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 89 02 00 35 04 06 00 46 2A F6 57 83 F6 2A CB A4 DB 59 14 D4 54 [07:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC 6A 47 00 6D 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 89 02 00 F4 03 04 00 E9 00 17 67 B6 04 01 00 00 1C 43 A6 6E 28 59 13 E4 [07:55:20]CommunicateWithHost err = 0 [07:55:20]CheckOFDResponse [07:55:20]1017 (14) - 77093643461234 [07:55:20]1041 (16) - 0000000000871759 [07:55:20]1040 (4) - 166280 [07:55:20]1012 (4) - 22.10.2024 01:33 [07:55:20]1206 (1) - 0 [07:55:20]OFD Sender: Remove packet 166280 [07:55:20]ProducePacketName [07:55:20]name=ofd_packets/00166280 [07:55:20]NVStorageDeleteData [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:43]accept exits with 7 [07:58:43]New connection [07:58:43]New thread 3066776932 created [07:58:43]Thread 3066920292 joined [07:58:43]Waiting for new connection... [07:58:43] Sock 7.Parse request [07:58:43]Sock 7.Check first char [07:58:43]Sock 7.First char is OK [07:58:43]request: POST /json_proto HTTP/1.0 [07:58:43]Method: POST [07:58:43]URL: /json_proto [07:58:43]Method is POST - this is cgi request [07:58:43]url: /json_proto [07:58:43]query_string will be loaded in cgi processing [07:58:43]execute_cgi json_proto POST (null) [07:58:43]execute_cgi path=json_proto method=POST [07:58:43]POST find Content-Length [07:58:43]Host: 172.17.53.195:8080 [07:58:43]Content-Length: 763 [07:58:43]Content-Type: application/json [07:58:43] [07:58:43]POST finish read [07:58:43]Found Content-Length = 763 [07:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:43]execute_script... [07:58:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:43]POST & json_proto [07:58:43]process_json_proto [07:58:43]json parsed OK: [07:58:43]protocol is kg_v1.0 [07:58:43]action value=close_receipt [07:58:43]process_action close_receipt [07:58:43]cmd_close_receipt [07:58:43]MH_GetDate [07:58:43]Write to MH i2c: F0 00 00 6E 9C F9 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 09 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 09 00 6E 9C 00 4A 5B 17 67 21 48 4A 65 3D [07:58:43]GetLastDocTimeStamp 1729583711 [07:58:43]current date 1729583946 [07:58:43]FM_GetShiftState [07:58:43]SAM_PROTO_GetShiftState [07:58:43]wFMCommunicate request_size=4 [07:58:43]MH_SAM_APDU [07:58:43]CAPDU: 80 13 01 00 [07:58:43]Write to MH i2c: E2 08 00 6F 9C 80 13 01 00 00 00 00 00 88 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:43]Read from MH i2c: E2 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 0E 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 0E 00 6F 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DB [07:58:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:58:43]wFMCommunicate OK [07:58:43]SAM_PROTO_GetShiftState done [07:58:43]FM_GetShiftState done [07:58:43]opened in 1729557463 [07:58:43]opened+sec_in_day 1729643863 [07:58:43]quantity*price = 50063 [07:58:43]sum+1 = 50064 [07:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 36 22.10.2024 07:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166281 ФПД: 123184298440988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166281&fm=123184298440988&tin=02508201610067®Number=0000000000091764&sum=50063 [07:58:44]StoreToDocumentArchive [07:58:44]shift 536 fd 166281 [07:58:44]save to /storage/0536/doc_00166281 [07:58:44]save last doc name /storage/0536/doc_00166281 to /storage/kkm_last_doc_name [07:58:44]save OK [07:58:44]Clear old archive folders... [07:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:58:44]tlvbuf is 015FCD70 [07:58:44]SAM_PROTO_ClearQueue [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 09 00 00 [07:58:44]Write to MH i2c: E2 08 00 7C 9C 80 09 00 00 00 00 00 00 8A [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 03 00 7C 9C 00 90 00 8C [07:58:44]RAPDU: 90 00 [07:58:44]wFMCommunicate OK [07:58:44]SAM_PROTO_ClearQueue done [07:58:44]KKMCreateOFDPacket [07:58:44]OFDProtocolAddRootSTLVToBuf [07:58:44]FM_MakeSignedData [07:58:44]FM_MakeSignedData [07:58:44]SAM_PROTO_SignData [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 0D 01 02 [07:58:44]Write to MH i2c: E2 08 00 7D 9C 80 0D 01 02 00 00 00 00 92 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 7D 9C 00 90 00 8D [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=255 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4A 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 89 02 00 35 04 06 00 70 09 14 59 [07:58:45]Write to MH i2c: E2 02 01 7E 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4A 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 89 02 00 35 04 06 00 70 09 14 59 00 00 7F [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 7E 9C 00 90 00 8E [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=7 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 02 02 02 B9 1C [07:58:45]Write to MH i2c: E2 0A 00 7F 9C 80 0D 02 02 02 00 B9 1C 00 00 6E [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 7F 9C 00 90 00 8F [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 03 02 [07:58:45]Write to MH i2c: E2 08 00 80 9C 80 0D 03 02 00 00 00 00 97 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 0B 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 0B 00 80 9C 00 B3 FC 1F A4 E2 11 16 B8 90 00 CB [07:58:45]RAPDU: B3 FC 1F A4 E2 11 16 B8 90 00 [07:58:45]wFMCommunicate OK [07:58:45]SAM_PROTO_SignData done [07:58:45]FM_MakeSignedData done [07:58:45]CreateOFDProtocolMessage [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 11 00 00 [07:58:45]Write to MH i2c: E2 08 00 81 9C 80 11 00 00 00 00 00 00 97 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 17 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 17 00 81 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [07:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:58:45]wFMCommunicate OK [07:58:45]CreateOFDProtocolMessage done [07:58:45]OFDSenderStorePacket 166281 [07:58:45]StoreOFDPacket docnum=166281 [07:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DF 13 04 01 E2 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4A 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 89 02 00 35 04 06 00 70 09 14 59 B9 1C B3 FC 1F A4 E2 11 16 B8 [07:58:45]CheckFolder [07:58:45]dirname=/storage/ofd_packets [07:58:45]CheckFolder done [07:58:45]ProducePacketName [07:58:45]name=ofd_packets/00166281 [07:58:45]NVStorageSaveData ofd_packets/00166281 [07:58:45]File name is /storage/ofd_packets/00166281 [07:58:45]Write 298 bytes [07:58:45]NVStorageSaveData done [07:58:45]OFDSenderStorePacket done [07:58:45]KKMCreateOFDPacket done [07:58:45]NVStorageSaveData kkm_last_timestamp [07:58:45]File name is /storage/kkm_last_timestamp [07:58:45]Write 4 bytes [07:58:45]NVStorageSaveData done [07:58:45]ExternCall_PrintAddStr [07:58:45]wPrintStart [07:58:45]Write to MH i2c: 01 00 00 82 9C 1E [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 82 9C 00 00 00 00 00 FF 0F 33 [07:58:45]RasterBufferAndPrint [07:58:45]line Счет N : (1)220856 [07:58:45]line ИНН: 02508201610067 [07:58:45]line Контрольно-Кассовый Чек [07:58:45]line ПРОДАЖА [07:58:45]line ТРК (МРК, ГНК) : 11 [07:58:45]line Товар: 2710194210 [07:58:45]line ДТ-К-5 [07:58:45]line 6.570 * 76.20 [07:58:45]line = 500.63 [07:58:45]line НДС 12% НСП 1% [07:58:45]line > о реализуемом товаре [07:58:45]line ИТОГО: 500.63 [07:58:45]line НСП 1% : 4.43 [07:58:45]line НДС 12% : 53.16 [07:58:45]line Наличными: 0.00 [07:58:45]line Безнал.: 500.63 [07:58:45]line Место: АЗС № 161 "Партнер Нефть" [07:58:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:58:45]line СНО: Общий режим [07:58:45]line Чек 36 22.10.2024 07:59 [07:58:45]line Смена: 536 ФФД: 1.0 [07:58:45]line ЗНМ: 0300000104 [07:58:45]line РНМ: 0000000000091764 [07:58:45]line Версия ККМ: 001 [07:58:45]line Платежная система: Mbank [07:58:45]line ФМ: 0000000000871759 [07:58:45]line ФД: 166281 [07:58:45]line ФПД: 123184298440988 [07:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075906&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166281&fm=123184298440988&tin=02508201610067®Number=0000000000091764&sum=50063 [07:58:45]OFD Sender: Processing packet 166281 [packets to send 48, broken 47] [07:58:45]ProducePacketName [07:58:45]name=ofd_packets/00166281 [07:58:45]OFD Sender: To server: pG, [07:58:45]CommunicateWithHost lk.salyk.kg:30040 [07:58:45]ConnectInit lk.salyk.kg [07:58:45]written 0, free lines is 4095 [07:58:45]Connected sock=6 [07:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DF 13 04 01 E2 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4A 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 89 02 00 35 04 06 00 70 09 14 59 B9 1C B3 FC 1F A4 E2 11 16 B8 [07:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 96 47 00 92 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 89 02 00 F4 03 04 00 B6 01 17 67 B6 04 01 00 00 76 A1 6E 22 C1 2C 3F C9 [07:58:46]CommunicateWithHost err = 0 [07:58:46]CheckOFDResponse [07:58:46]1017 (14) - 77093643461234 [07:58:46]1041 (16) - 0000000000871759 [07:58:46]1040 (4) - 166281 [07:58:46]1012 (4) - 22.10.2024 01:36 [07:58:46]1206 (1) - 0 [07:58:46]OFD Sender: Remove packet 166281 [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00166281 [07:58:46]NVStorageDeleteData [07:58:46]Write to MH i2c: 01 00 00 AB 9C 47 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 AB 9C 00 00 00 00 00 DE 0C 38 [07:58:46]RasterBufferAndPrint [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]written 0, free lines is 3303 [07:58:46]MH_Cut [07:58:46]Write to MH i2c: D1 01 00 B2 9C 01 20 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 01 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 01 00 B2 9C 00 1F [07:58:46]Write to MH i2c: 01 00 00 B3 9C 4F [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]OFD Sender: No OFD packet to send [07:58:47]*** Cut start [07:58:47]*** Partial cut [07:58:47]*** CUTSNS_PIN = 1 [07:58:47]*** CUTSNS_PIN = 0 [07:58:47]*** Brake cut motor [07:58:47]Read from MH i2c: 01 [07:58:47]MH_I2C_Read... [07:58:47]*** Stop cut motor [07:58:47]*** Cut end [07:58:47]Read from MH i2c: 01 07 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 B3 9C 00 00 00 00 00 FF 0F 64 [07:58:47]process_action close_receipt done [07:58:47]requested_data is exist [07:58:47]produce_requested_data [07:58:47]requested_item fm.sn is exist - process it [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 11 00 00 [07:58:47]Write to MH i2c: E2 08 00 B4 9C 80 11 00 00 00 00 00 00 CA [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 17 00 B4 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [07:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:58:47]wFMCommunicate OK [07:58:47]requested_item fd.num is exist - process it [07:58:47]SAM_PROTO_GetFieldsCounters [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 13 00 00 [07:58:47]Write to MH i2c: E2 08 00 B5 9C 80 13 00 00 00 00 00 00 CD [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 62 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 62 00 B5 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [07:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:47]wFMCommunicate OK [07:58:47]SAM_PROTO_GetFieldsCounters done [07:58:47]requested_item shift.num is exist - process it [07:58:47]requested_item shift.opened is exist - process it [07:58:47]req_shift_opened [07:58:47]FM_GetShiftState [07:58:47]SAM_PROTO_GetShiftState [07:58:47]wFMCommunicate request_size=4 [07:58:47]MH_SAM_APDU [07:58:47]CAPDU: 80 13 01 00 [07:58:47]Write to MH i2c: E2 08 00 B6 9C 80 13 01 00 00 00 00 00 CF [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:47]Read from MH i2c: E2 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 0E 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: E2 0E 00 B6 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 22 [07:58:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:58:47]wFMCommunicate OK [07:58:47]SAM_PROTO_GetShiftState done [07:58:47]FM_GetShiftState done [07:58:47]req_shift_opened done [07:58:47]requested_item shift.open_date is exist - process it [07:58:47]req_shift_open_date [07:58:47]req_shift_open_date done [07:58:47]produce_requested_data done [07:58:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166281,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:58:47]process_action_free close_receipt [07:58:47]json_value_free [07:58:47]json_value_free done [07:58:47]process_json_proto returns [07:58:47]Send response to host [07:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166281,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:58:47]free response buf [07:58:47]execute_script done [07:58:47]execute_script returns [07:58:47]free content buf [07:58:47]Sock 7.Close socket [07:58:47]Sock 7.Thread stoped [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]accept exits with 5 [07:59:11]New connection [07:59:11]New thread 3066920292 created [07:59:11]Thread 3066776932 joined [07:59:11]Waiting for new connection... [07:59:11] Sock 5.Parse request [07:59:11]Sock 5.Check first char [07:59:11]Sock 5.First char is OK [07:59:11]request: POST /json_proto HTTP/1.0 [07:59:11]Method: POST [07:59:11]URL: /json_proto [07:59:11]Method is POST - this is cgi request [07:59:11]url: /json_proto [07:59:11]query_string will be loaded in cgi processing [07:59:11]execute_cgi json_proto POST (null) [07:59:11]execute_cgi path=json_proto method=POST [07:59:11]POST find Content-Length [07:59:11]Host: 172.17.53.195:8080 [07:59:11]Content-Length: 674 [07:59:11]Content-Type: application/json [07:59:11] [07:59:11]POST finish read [07:59:11]Found Content-Length = 674 [07:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.930, "sum" : 299.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:11]execute_script... [07:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.930, "sum" : 299.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:11]POST & json_proto [07:59:11]process_json_proto [07:59:11]json parsed OK: [07:59:11]protocol is kg_v1.0 [07:59:11]action value=close_receipt [07:59:11]process_action close_receipt [07:59:11]cmd_close_receipt [07:59:11]MH_GetDate [07:59:11]Write to MH i2c: F0 00 00 B7 9C 42 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: F0 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: F0 09 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: F0 09 00 B7 9C 00 66 5B 17 67 21 48 4A 65 A2 [07:59:11]GetLastDocTimeStamp 1729583946 [07:59:11]current date 1729583974 [07:59:11]FM_GetShiftState [07:59:11]SAM_PROTO_GetShiftState [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 13 01 00 [07:59:11]Write to MH i2c: E2 08 00 B8 9C 80 13 01 00 00 00 00 00 D1 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]OFD Sender: No OFD packet to send [07:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 0E 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 0E 00 B8 9C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 24 [07:59:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:59:11]wFMCommunicate OK [07:59:11]SAM_PROTO_GetShiftState done [07:59:11]FM_GetShiftState done [07:59:11]opened in 1729557463 [07:59:11]opened+sec_in_day 1729643863 [07:59:11]quantity*price = 29946 [07:59:11]sum+1 = 29948 [07:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.80 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 37 22.10.2024 07:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166282 ФПД: 274771482042008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166282&fm=274771482042008&tin=02508201610067®Number=0000000000091764&sum=29900 [07:59:12]StoreToDocumentArchive [07:59:12]shift 536 fd 166282 [07:59:12]save to /storage/0536/doc_00166282 [07:59:12]save last doc name /storage/0536/doc_00166282 to /storage/kkm_last_doc_name [07:59:12]save OK [07:59:12]Clear old archive folders... [07:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:12]tlvbuf is 01799F60 [07:59:12]SAM_PROTO_ClearQueue [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 09 00 00 [07:59:12]Write to MH i2c: E2 08 00 C5 9C 80 09 00 00 00 00 00 00 D3 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 C5 9C 00 90 00 D5 [07:59:12]RAPDU: 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_ClearQueue done [07:59:12]KKMCreateOFDPacket [07:59:12]OFDProtocolAddRootSTLVToBuf [07:59:12]FM_MakeSignedData [07:59:12]FM_MakeSignedData [07:59:12]SAM_PROTO_SignData [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 0D 01 02 [07:59:12]Write to MH i2c: E2 08 00 C6 9C 80 0D 01 02 00 00 00 00 DB [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 C6 9C 00 90 00 D6 [07:59:12]RAPDU: 90 00 [07:59:12]wFMCommunicate OK [07:59:12]wFMCommunicate request_size=255 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 89 02 00 35 04 06 00 F9 E7 38 94 [07:59:12]Write to MH i2c: E2 02 01 C7 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 89 02 00 35 04 06 00 F9 E7 38 94 00 00 39 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 C7 9C 00 90 00 D7 [07:59:13]RAPDU: 90 00 [07:59:13]wFMCommunicate OK [07:59:13]wFMCommunicate request_size=7 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 0D 02 02 02 DE 98 [07:59:13]Write to MH i2c: E2 0A 00 C8 9C 80 0D 02 02 02 00 DE 98 00 00 58 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 C8 9C 00 90 00 D8 [07:59:13]RAPDU: 90 00 [07:59:13]wFMCommunicate OK [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 0D 03 02 [07:59:13]Write to MH i2c: E2 08 00 C9 9C 80 0D 03 02 00 00 00 00 E0 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 0B 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 0B 00 C9 9C 00 19 02 BA 49 F3 8E CA 8E 90 00 D8 [07:59:13]RAPDU: 19 02 BA 49 F3 8E CA 8E 90 00 [07:59:13]wFMCommunicate OK [07:59:13]SAM_PROTO_SignData done [07:59:13]FM_MakeSignedData done [07:59:13]CreateOFDProtocolMessage [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 11 00 00 [07:59:13]Write to MH i2c: E2 08 00 CA 9C 80 11 00 00 00 00 00 00 E0 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 17 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 17 00 CA 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [07:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:59:13]wFMCommunicate OK [07:59:13]CreateOFDProtocolMessage done [07:59:13]OFDSenderStorePacket 166282 [07:59:13]StoreOFDPacket docnum=166282 [07:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E A7 04 01 51 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 89 02 00 35 04 06 00 F9 E7 38 94 DE 98 19 02 BA 49 F3 8E CA 8E [07:59:13]CheckFolder [07:59:13]dirname=/storage/ofd_packets [07:59:13]CheckFolder done [07:59:13]ProducePacketName [07:59:13]name=ofd_packets/00166282 [07:59:13]NVStorageSaveData ofd_packets/00166282 [07:59:13]File name is /storage/ofd_packets/00166282 [07:59:13]Write 298 bytes [07:59:13]NVStorageSaveData done [07:59:13]OFDSenderStorePacket done [07:59:13]KKMCreateOFDPacket done [07:59:13]NVStorageSaveData kkm_last_timestamp [07:59:13]File name is /storage/kkm_last_timestamp [07:59:13]Write 4 bytes [07:59:13]NVStorageSaveData done [07:59:13]ExternCall_PrintAddStr [07:59:13]wPrintStart [07:59:13]Write to MH i2c: 01 00 00 CB 9C 67 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: 01 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: 01 07 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: 01 07 00 CB 9C 00 00 00 00 00 FF 0F 7C [07:59:13]RasterBufferAndPrint [07:59:13]line Счет N : (1)220857 [07:59:13]line ИНН: 02508201610067 [07:59:13]line Контрольно-Кассовый Чек [07:59:13]line ПРОДАЖА [07:59:13]line ТРК (МРК, ГНК) : 11 [07:59:13]line Товар: 2710194210 [07:59:13]line ДТ-К-5 [07:59:13]line 3.930 * 76.20 [07:59:13]line = 299.47 [07:59:13]line НДС 12% НСП 1% [07:59:13]line > о реализуемом товаре [07:59:13]line ОКРУГЛЕНИЕ: -0.47 [07:59:13]line ИТОГО: 299.00 [07:59:13]line Внесено: 300.00 [07:59:13]line СДАЧА: 1.00 [07:59:13]line НСП 1% : 2.65 [07:59:13]line НДС 12% : 31.80 [07:59:13]line Наличными: 299.00 [07:59:13]line Безнал.: 0.00 [07:59:13]line Место: АЗС № 161 "Партнер Нефть" [07:59:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:59:13]line СНО: Общий режим [07:59:13]line Чек 37 22.10.2024 07:59 [07:59:13]line Смена: 536 ФФД: 1.0 [07:59:13]line ЗНМ: 0300000104 [07:59:13]line РНМ: 0000000000091764 [07:59:13]line Версия ККМ: 001 [07:59:13]line ФМ: 0000000000871759 [07:59:13]line ФД: 166282 [07:59:13]line ФПД: 274771482042008 [07:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166282&fm=274771482042008&tin=02508201610067®Number=0000000000091764&sum=29900 [07:59:13]OFD Sender: Processing packet 166282 [packets to send 48, broken 47] [07:59:13]ProducePacketName [07:59:13]name=ofd_packets/00166282 [07:59:13]OFD Sender: To server: pG, [07:59:13]CommunicateWithHost lk.salyk.kg:30040 [07:59:13]ConnectInit lk.salyk.kg [07:59:13]written 0, free lines is 4095 [07:59:13]Connected sock=7 [07: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 31 37 35 39 0C 01 00 00 6E A7 04 01 51 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 89 02 00 35 04 06 00 F9 E7 38 94 DE 98 19 02 BA 49 F3 8E CA 8E [07:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2D 35 47 00 19 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 89 02 00 F4 03 04 00 D2 01 17 67 B6 04 01 00 00 18 29 BE A3 24 E9 0B 2F [07:59:14]CommunicateWithHost err = 0 [07:59:14]CheckOFDResponse [07:59:14]1017 (14) - 77093643461234 [07:59:14]1041 (16) - 0000000000871759 [07:59:14]1040 (4) - 166282 [07:59:14]1012 (4) - 22.10.2024 01:37 [07:59:14]1206 (1) - 0 [07:59:14]OFD Sender: Remove packet 166282 [07:59:14]ProducePacketName [07:59:14]name=ofd_packets/00166282 [07:59:14]NVStorageDeleteData [07:59:14]Write to MH i2c: 01 00 00 F6 9C 92 [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 F6 9C 00 00 00 00 00 C0 0C 65 [07:59:14]RasterBufferAndPrint [07:59:14]line [07:59:14]line [07:59:14]line [07:59:14]line [07:59:14]line [07:59:14]written 0, free lines is 3273 [07:59:14]MH_Cut [07:59:14]Write to MH i2c: D1 01 00 FD 9C 01 6B [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: D1 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: D1 01 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: D1 01 00 FD 9C 00 6A [07:59:14]Write to MH i2c: 01 00 00 FE 9C 9A [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]OFD Sender: No OFD packet to send [07:59:14]*** Cut start [07:59:14]*** Partial cut [07:59:14]*** CUTSNS_PIN = 1 [07:59:15]*** CUTSNS_PIN = 0 [07:59:15]*** Brake cut motor [07:59:15]Read from MH i2c: 01 [07:59:15]MH_I2C_Read... [07:59:15]*** Stop cut motor [07:59:15]*** Cut end [07:59:15]Read from MH i2c: 01 07 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 FE 9C 00 00 00 00 00 FF 0F AF [07:59:15]process_action close_receipt done [07:59:15]requested_data is exist [07:59:15]produce_requested_data [07:59:15]requested_item fm.sn is exist - process it [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 11 00 00 [07:59:15]Write to MH i2c: E2 08 00 FF 9C 80 11 00 00 00 00 00 00 15 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 17 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 17 00 FF 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [07:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:59:15]wFMCommunicate OK [07:59:15]requested_item fd.num is exist - process it [07:59:15]SAM_PROTO_GetFieldsCounters [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 00 00 [07:59:15]Write to MH i2c: E2 08 00 00 9D 80 13 00 00 00 00 00 00 19 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 62 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 62 00 00 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [07:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetFieldsCounters done [07:59:15]requested_item shift.num is exist - process it [07:59:15]requested_item shift.opened is exist - process it [07:59:15]req_shift_opened [07:59:15]FM_GetShiftState [07:59:15]SAM_PROTO_GetShiftState [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 01 00 [07:59:15]Write to MH i2c: E2 08 00 01 9D 80 13 01 00 00 00 00 00 1B [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 01 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6E [07:59:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [07:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetShiftState done [07:59:15]FM_GetShiftState done [07:59:15]req_shift_opened done [07:59:15]requested_item shift.open_date is exist - process it [07:59:15]req_shift_open_date [07:59:15]req_shift_open_date done [07:59:15]produce_requested_data done [07:59:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166282,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [07:59:15]process_action_free close_receipt [07:59:15]json_value_free [07:59:15]json_value_free done [07:59:15]process_json_proto returns [07:59:15]Send response to host [07:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166282,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [07:59:15]free response buf [07:59:15]execute_script done [07:59:15]execute_script returns [07:59:15]free content buf [07:59:15]Sock 5.Close socket [07:59:15]Sock 5.Thread stoped [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:37]accept exits with 6 [08:00:37]New connection [08:00:37]New thread 3066776932 created [08:00:37]Thread 3066920292 joined [08:00:37]Waiting for new connection... [08:00:37] Sock 6.Parse request [08:00:37]Sock 6.Check first char [08:00:37]Sock 6.First char is OK [08:00:37]request: POST /json_proto HTTP/1.0 [08:00:37]Method: POST [08:00:37]URL: /json_proto [08:00:37]Method is POST - this is cgi request [08:00:37]url: /json_proto [08:00:37]query_string will be loaded in cgi processing [08:00:37]execute_cgi json_proto POST (null) [08:00:37]execute_cgi path=json_proto method=POST [08:00:37]POST find Content-Length [08:00:37]Host: 172.17.53.195:8080 [08:00:37]Content-Length: 766 [08:00:37]Content-Type: application/json [08:00:37] [08:00:37]POST finish read [08:00:37]Found Content-Length = 766 [08:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]execute_script... [08:00:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]POST & json_proto [08:00:37]process_json_proto [08:00:37]json parsed OK: [08:00:37]protocol is kg_v1.0 [08:00:37]action value=close_receipt [08:00:37]process_action close_receipt [08:00:37]cmd_close_receipt [08:00:37]MH_GetDate [08:00:37]Write to MH i2c: F0 00 00 02 9D 8E [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 09 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 09 00 02 9D 00 BC 5B 17 67 21 48 4A 65 44 [08:00:37]GetLastDocTimeStamp 1729583974 [08:00:37]current date 1729584060 [08:00:37]FM_GetShiftState [08:00:37]SAM_PROTO_GetShiftState [08:00:37]wFMCommunicate request_size=4 [08:00:37]MH_SAM_APDU [08:00:37]CAPDU: 80 13 01 00 [08:00:37]Write to MH i2c: E2 08 00 03 9D 80 13 01 00 00 00 00 00 1D [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 03 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 70 [08:00:37]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:00:37]wFMCommunicate OK [08:00:37]SAM_PROTO_GetShiftState done [08:00:37]FM_GetShiftState done [08:00:37]opened in 1729557463 [08:00:37]opened+sec_in_day 1729643863 [08:00:37]quantity*price = 50041 [08:00:37]sum+1 = 50042 [08:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 38 22.10.2024 08:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166283 ФПД: 179867107644139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080100&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166283&fm=179867107644139&tin=02508201610067®Number=0000000000091764&sum=50041 [08:00:38]StoreToDocumentArchive [08:00:38]shift 536 fd 166283 [08:00:38]save to /storage/0536/doc_00166283 [08:00:38]save last doc name /storage/0536/doc_00166283 to /storage/kkm_last_doc_name [08:00:38]save OK [08:00:38]Clear old archive folders... [08:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:38]tlvbuf is 015227A0 [08:00:38]SAM_PROTO_ClearQueue [08:00:38]wFMCommunicate request_size=4 [08:00:38]MH_SAM_APDU [08:00:38]CAPDU: 80 09 00 00 [08:00:38]Write to MH i2c: E2 08 00 10 9D 80 09 00 00 00 00 00 00 1F [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:38]Read from MH i2c: E2 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 10 9D 00 90 00 21 [08:00:38]RAPDU: 90 00 [08:00:38]wFMCommunicate OK [08:00:38]SAM_PROTO_ClearQueue done [08:00:38]KKMCreateOFDPacket [08:00:38]OFDProtocolAddRootSTLVToBuf [08:00:38]FM_MakeSignedData [08:00:38]FM_MakeSignedData [08:00:38]SAM_PROTO_SignData [08:00:38]wFMCommunicate request_size=4 [08:00:38]MH_SAM_APDU [08:00:38]CAPDU: 80 0D 01 02 [08:00:38]Write to MH i2c: E2 08 00 11 9D 80 0D 01 02 00 00 00 00 27 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:38]Read from MH i2c: E2 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 11 9D 00 90 00 22 [08:00:38]RAPDU: 90 00 [08:00:38]wFMCommunicate OK [08:00:38]wFMCommunicate request_size=255 [08:00:38]MH_SAM_APDU [08:00:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BC 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 89 02 00 35 04 06 00 A3 [08:00:38]Write to MH i2c: E2 02 01 12 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BC 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 89 02 00 35 04 06 00 A3 00 00 9D [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 12 9D 00 90 00 23 [08:00:39]RAPDU: 90 00 [08:00:39]wFMCommunicate OK [08:00:39]wFMCommunicate request_size=10 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 0D 02 02 05 96 93 0E D2 EB [08:00:39]Write to MH i2c: E2 0D 00 13 9D 80 0D 02 02 05 00 96 93 0E D2 EB 00 00 28 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 13 9D 00 90 00 24 [08:00:39]RAPDU: 90 00 [08:00:39]wFMCommunicate OK [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 0D 03 02 [08:00:39]Write to MH i2c: E2 08 00 14 9D 80 0D 03 02 00 00 00 00 2C [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0B 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0B 00 14 9D 00 8A 1E 27 0D 67 6B E8 5B 90 00 1E [08:00:39]RAPDU: 8A 1E 27 0D 67 6B E8 5B 90 00 [08:00:39]wFMCommunicate OK [08:00:39]SAM_PROTO_SignData done [08:00:39]FM_MakeSignedData done [08:00:39]CreateOFDProtocolMessage [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 11 00 00 [08:00:39]Write to MH i2c: E2 08 00 15 9D 80 11 00 00 00 00 00 00 2C [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 15 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [08:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:00:39]wFMCommunicate OK [08:00:39]CreateOFDProtocolMessage done [08:00:39]OFDSenderStorePacket 166283 [08:00:39]StoreOFDPacket docnum=166283 [08:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 9C 07 01 A9 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BC 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 89 02 00 35 04 06 00 A3 96 93 0E D2 EB 8A 1E 27 0D 67 6B E8 5B [08:00:39]CheckFolder [08:00:39]dirname=/storage/ofd_packets [08:00:39]CheckFolder done [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00166283 [08:00:39]NVStorageSaveData ofd_packets/00166283 [08:00:39]File name is /storage/ofd_packets/00166283 [08:00:39]Write 301 bytes [08:00:39]NVStorageSaveData done [08:00:39]OFDSenderStorePacket done [08:00:39]KKMCreateOFDPacket done [08:00:39]NVStorageSaveData kkm_last_timestamp [08:00:39]File name is /storage/kkm_last_timestamp [08:00:39]Write 4 bytes [08:00:39]NVStorageSaveData done [08:00:39]ExternCall_PrintAddStr [08:00:39]wPrintStart [08:00:39]Write to MH i2c: 01 00 00 16 9D B3 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 16 9D 00 00 00 00 00 FF 0F C8 [08:00:39]RasterBufferAndPrint [08:00:39]line Счет N : (1)220858 [08:00:39]line ИНН: 02508201610067 [08:00:39]line Контрольно-Кассовый Чек [08:00:39]line ПРОДАЖА [08:00:39]line ТРК (МРК, ГНК) : 23 [08:00:39]line Товар: 2710124130 [08:00:39]line Аи-92-К-5 [08:00:39]line 7.480 * 66.90 [08:00:39]line = 500.41 [08:00:39]line НДС 12% НСП 1% [08:00:39]line > о реализуемом товаре [08:00:39]line ИТОГО: 500.41 [08:00:39]line НСП 1% : 4.43 [08:00:39]line НДС 12% : 53.14 [08:00:39]line Наличными: 0.00 [08:00:39]line Безнал.: 500.41 [08:00:39]line Место: АЗС № 161 "Партнер Нефть" [08:00:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:00:39]line СНО: Общий режим [08:00:39]line Чек 38 22.10.2024 08:01 [08:00:39]line Смена: 536 ФФД: 1.0 [08:00:39]line ЗНМ: 0300000104 [08:00:39]line РНМ: 0000000000091764 [08:00:39]line Версия ККМ: 001 [08:00:39]line Платежная система: Mbank [08:00:39]line ФМ: 0000000000871759 [08:00:39]line ФД: 166283 [08:00:39]line ФПД: 179867107644139 [08:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080100&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166283&fm=179867107644139&tin=02508201610067®Number=0000000000091764&sum=50041 [08:00:39]written 0, free lines is 4095 [08:00:39]OFD Sender: Processing packet 166283 [packets to send 48, broken 47] [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00166283 [08:00:39]OFD Sender: To server: pG, [08:00:39]CommunicateWithHost lk.salyk.kg:30040 [08:00:39]ConnectInit lk.salyk.kg [08:00:39]Connected sock=7 [08:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5F 9C 07 01 A9 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BC 5B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 89 02 00 35 04 06 00 A3 96 93 0E D2 EB 8A 1E 27 0D 67 6B E8 5B [08:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C AA 47 00 5D B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 89 02 00 F4 03 04 00 27 02 17 67 B6 04 01 00 00 3A 0A A1 E7 D8 77 66 DA [08:00:39]CommunicateWithHost err = 0 [08:00:39]CheckOFDResponse [08:00:39]1017 (14) - 77093643461234 [08:00:39]1041 (16) - 0000000000871759 [08:00:39]1040 (4) - 166283 [08:00:39]1012 (4) - 22.10.2024 01:38 [08:00:39]1206 (1) - 0 [08:00:39]OFD Sender: Remove packet 166283 [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00166283 [08:00:39]NVStorageDeleteData [08:00:39]Write to MH i2c: 01 00 00 3F 9D DC [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 3F 9D 00 00 00 00 00 D9 0C C8 [08:00:39]RasterBufferAndPrint [08:00:39]line [08:00:39]line [08:00:39]line [08:00:39]line [08:00:39]line [08:00:39]written 0, free lines is 3296 [08:00:39]MH_Cut [08:00:39]Write to MH i2c: D1 01 00 46 9D 01 B5 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: D1 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: D1 01 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: D1 01 00 46 9D 00 B4 [08:00:39]Write to MH i2c: 01 00 00 47 9D E4 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:40]OFD Sender: No OFD packet to send [08:00:40]*** Cut start [08:00:40]*** Partial cut [08:00:40]*** CUTSNS_PIN = 1 [08:00:40]*** CUTSNS_PIN = 0 [08:00:40]*** Brake cut motor [08:00:41]Read from MH i2c: 01 [08:00:41]MH_I2C_Read... [08:00:41]*** Stop cut motor [08:00:41]*** Cut end [08:00:41]Read from MH i2c: 01 07 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 47 9D 00 00 00 00 00 FF 0F F9 [08:00:41]process_action close_receipt done [08:00:41]requested_data is exist [08:00:41]produce_requested_data [08:00:41]requested_item fm.sn is exist - process it [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 11 00 00 [08:00:41]Write to MH i2c: E2 08 00 48 9D 80 11 00 00 00 00 00 00 5F [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 48 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [08:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:00:41]wFMCommunicate OK [08:00:41]requested_item fd.num is exist - process it [08:00:41]SAM_PROTO_GetFieldsCounters [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 00 00 [08:00:41]Write to MH i2c: E2 08 00 49 9D 80 13 00 00 00 00 00 00 62 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 62 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 62 00 49 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [08:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetFieldsCounters done [08:00:41]requested_item shift.num is exist - process it [08:00:41]requested_item shift.opened is exist - process it [08:00:41]req_shift_opened [08:00:41]FM_GetShiftState [08:00:41]SAM_PROTO_GetShiftState [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 01 00 [08:00:41]Write to MH i2c: E2 08 00 4A 9D 80 13 01 00 00 00 00 00 64 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 4A 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B7 [08:00:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetShiftState done [08:00:41]FM_GetShiftState done [08:00:41]req_shift_opened done [08:00:41]requested_item shift.open_date is exist - process it [08:00:41]req_shift_open_date [08:00:41]req_shift_open_date done [08:00:41]produce_requested_data done [08:00:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166283,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:00:41]process_action_free close_receipt [08:00:41]json_value_free [08:00:41]json_value_free done [08:00:41]process_json_proto returns [08:00:41]Send response to host [08:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166283,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:00:41]free response buf [08:00:41]execute_script done [08:00:41]execute_script returns [08:00:41]free content buf [08:00:41]Sock 6.Close socket [08:00:41]Sock 6.Thread stoped [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:05]recv_with_timeout no data received [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:18]accept exits with 5 [08:04:18]New connection [08:04:18]New thread 3066920292 created [08:04:18]Thread 3066776932 joined [08:04:18]Waiting for new connection... [08:04:18] Sock 5.Parse request [08:04:18]Sock 5.Check first char [08:04:18]Sock 5.First char is OK [08:04:18]request: POST /json_proto HTTP/1.0 [08:04:18]Method: POST [08:04:18]URL: /json_proto [08:04:18]Method is POST - this is cgi request [08:04:18]url: /json_proto [08:04:18]query_string will be loaded in cgi processing [08:04:18]execute_cgi json_proto POST (null) [08:04:18]execute_cgi path=json_proto method=POST [08:04:18]POST find Content-Length [08:04:18]Host: 172.17.53.195:8080 [08:04:18]Content-Length: 679 [08:04:18]Content-Type: application/json [08:04:18] [08:04:18]POST finish read [08:04:18]Found Content-Length = 679 [08:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:18]execute_script... [08:04: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)220859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:18]POST & json_proto [08:04:18]process_json_proto [08:04:18]json parsed OK: [08:04:18]protocol is kg_v1.0 [08:04:18]action value=close_receipt [08:04:18]process_action close_receipt [08:04:18]cmd_close_receipt [08:04:18]MH_GetDate [08:04:18]Write to MH i2c: F0 00 00 4B 9D D7 [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: F0 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: F0 09 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: F0 09 00 4B 9D 00 99 5C 17 67 21 48 4A 65 6B [08:04:18]GetLastDocTimeStamp 1729584060 [08:04:18]current date 1729584281 [08:04:18]FM_GetShiftState [08:04:18]SAM_PROTO_GetShiftState [08:04:18]wFMCommunicate request_size=4 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 13 01 00 [08:04:18]Write to MH i2c: E2 08 00 4C 9D 80 13 01 00 00 00 00 00 66 [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 0E 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 0E 00 4C 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B9 [08:04:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:04:18]wFMCommunicate OK [08:04:18]SAM_PROTO_GetShiftState done [08:04:18]FM_GetShiftState done [08:04:18]opened in 1729557463 [08:04:18]opened+sec_in_day 1729643863 [08:04:18]quantity*price = 99948 [08:04:18]sum+1 = 99950 [08:04:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 39 22.10.2024 08:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166284 ФПД: 208904447568427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166284&fm=208904447568427&tin=02508201610067®Number=0000000000091764&sum=99900 [08:04:19]StoreToDocumentArchive [08:04:19]shift 536 fd 166284 [08:04:19]save to /storage/0536/doc_00166284 [08:04:19]save last doc name /storage/0536/doc_00166284 to /storage/kkm_last_doc_name [08:04:19]save OK [08:04:19]Clear old archive folders... [08:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:19]tlvbuf is 0165D3B0 [08:04:19]SAM_PROTO_ClearQueue [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 09 00 00 [08:04:19]Write to MH i2c: E2 08 00 59 9D 80 09 00 00 00 00 00 00 68 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 03 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 03 00 59 9D 00 90 00 6A [08:04:19]RAPDU: 90 00 [08:04:19]wFMCommunicate OK [08:04:19]SAM_PROTO_ClearQueue done [08:04:19]KKMCreateOFDPacket [08:04:19]OFDProtocolAddRootSTLVToBuf [08:04:19]FM_MakeSignedData [08:04:19]FM_MakeSignedData [08:04:19]SAM_PROTO_SignData [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 0D 01 02 [08:04:19]Write to MH i2c: E2 08 00 5A 9D 80 0D 01 02 00 00 00 00 70 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 03 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 03 00 5A 9D 00 90 00 6B [08:04:19]RAPDU: 90 00 [08:04:19]wFMCommunicate OK [08:04:19]wFMCommunicate request_size=255 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 99 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 89 02 00 35 04 06 00 BD [08:04:19]Write to MH i2c: E2 02 01 5B 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 99 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 89 02 00 35 04 06 00 BD 00 00 6B [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:20]Read from MH i2c: E2 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 03 00 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 03 00 5B 9D 00 90 00 6C [08:04:20]RAPDU: 90 00 [08:04:20]wFMCommunicate OK [08:04:20]wFMCommunicate request_size=10 [08:04:20]MH_SAM_APDU [08:04:20]CAPDU: 80 0D 02 02 05 FF 5B 63 AA 2B [08:04:20]Write to MH i2c: E2 0D 00 5C 9D 80 0D 02 02 05 00 FF 5B 63 AA 2B 00 00 0F [08:04:20]Write i2c OK [08:04:20]MH_I2C_Read... [08:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:20]Read from MH i2c: E2 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 03 00 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 03 00 5C 9D 00 90 00 6D [08:04:20]RAPDU: 90 00 [08:04:20]wFMCommunicate OK [08:04:20]wFMCommunicate request_size=4 [08:04:20]MH_SAM_APDU [08:04:20]CAPDU: 80 0D 03 02 [08:04:20]Write to MH i2c: E2 08 00 5D 9D 80 0D 03 02 00 00 00 00 75 [08:04:20]Write i2c OK [08:04:20]MH_I2C_Read... [08:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:20]Read from MH i2c: E2 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 0B 00 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 0B 00 5D 9D 00 19 2B 69 9C 8E C7 A2 0D 90 00 C3 [08:04:20]RAPDU: 19 2B 69 9C 8E C7 A2 0D 90 00 [08:04:20]wFMCommunicate OK [08:04:20]SAM_PROTO_SignData done [08:04:20]FM_MakeSignedData done [08:04:20]CreateOFDProtocolMessage [08:04:20]wFMCommunicate request_size=4 [08:04:20]MH_SAM_APDU [08:04:20]CAPDU: 80 11 00 00 [08:04:20]Write to MH i2c: E2 08 00 5E 9D 80 11 00 00 00 00 00 00 75 [08:04:20]Write i2c OK [08:04:20]MH_I2C_Read... [08:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:20]Read from MH i2c: E2 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 17 00 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: E2 17 00 5E 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [08:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:20]wFMCommunicate OK [08:04:20]CreateOFDProtocolMessage done [08:04:20]OFDSenderStorePacket 166284 [08:04:20]StoreOFDPacket docnum=166284 [08:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 32 07 01 82 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 99 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 89 02 00 35 04 06 00 BD FF 5B 63 AA 2B 19 2B 69 9C 8E C7 A2 0D [08:04:20]CheckFolder [08:04:20]dirname=/storage/ofd_packets [08:04:20]CheckFolder done [08:04:20]ProducePacketName [08:04:20]name=ofd_packets/00166284 [08:04:20]NVStorageSaveData ofd_packets/00166284 [08:04:20]File name is /storage/ofd_packets/00166284 [08:04:20]Write 301 bytes [08:04:20]NVStorageSaveData done [08:04:20]OFDSenderStorePacket done [08:04:20]KKMCreateOFDPacket done [08:04:20]NVStorageSaveData kkm_last_timestamp [08:04:20]File name is /storage/kkm_last_timestamp [08:04:20]Write 4 bytes [08:04:20]NVStorageSaveData done [08:04:20]ExternCall_PrintAddStr [08:04:20]wPrintStart [08:04:20]Write to MH i2c: 01 00 00 5F 9D FC [08:04:20]Write i2c OK [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: 01 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: 01 07 00 [08:04:20]MH_I2C_Read... [08:04:20]Read from MH i2c: 01 07 00 5F 9D 00 00 00 00 00 FF 0F 11 [08:04:20]RasterBufferAndPrint [08:04:20]line Счет N : (1)220859 [08:04:20]line ИНН: 02508201610067 [08:04:20]line Контрольно-Кассовый Чек [08:04:20]line ПРОДАЖА [08:04:20]line ТРК (МРК, ГНК) : 13 [08:04:20]line Товар: 2710124130 [08:04:20]line Аи-92-К-5 [08:04:20]line 14.940 * 66.90 [08:04:20]line = 999.49 [08:04:20]line НДС 12% НСП 1% [08:04:20]line > о реализуемом товаре [08:04:20]line ОКРУГЛЕНИЕ: -0.49 [08:04:20]line ИТОГО: 999.00 [08:04:20]line Внесено: 1000.00 [08:04:20]line СДАЧА: 1.00 [08:04:20]line НСП 1% : 8.84 [08:04:20]line НДС 12% : 106.14 [08:04:20]line Наличными: 999.00 [08:04:20]line Безнал.: 0.00 [08:04:20]line Место: АЗС № 161 "Партнер Нефть" [08:04:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:04:20]line СНО: Общий режим [08:04:20]line Чек 39 22.10.2024 08:04 [08:04:20]line Смена: 536 ФФД: 1.0 [08:04:20]line ЗНМ: 0300000104 [08:04:20]line РНМ: 0000000000091764 [08:04:20]line Версия ККМ: 001 [08:04:20]line ФМ: 0000000000871759 [08:04:20]line ФД: 166284 [08:04:20]line ФПД: 208904447568427 [08:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080441&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166284&fm=208904447568427&tin=02508201610067®Number=0000000000091764&sum=99900 [08:04:20]OFD Sender: Processing packet 166284 [packets to send 48, broken 47] [08:04:20]ProducePacketName [08:04:20]name=ofd_packets/00166284 [08:04:20]OFD Sender: To server: pG, [08:04:20]CommunicateWithHost lk.salyk.kg:30040 [08:04:20]ConnectInit lk.salyk.kg [08:04:20]written 0, free lines is 4095 [08:04:21]Write to MH i2c: 01 00 00 8A 9D 27 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 8A 9D 00 00 00 00 00 B2 0C EC [08:04:21]RasterBufferAndPrint [08:04:21]line [08:04:21]line [08:04:21]line [08:04:21]line [08:04:21]line [08:04:21]written 0, free lines is 3256 [08:04:21]MH_Cut [08:04:21]Write to MH i2c: D1 01 00 91 9D 01 00 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: D1 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: D1 01 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: D1 01 00 91 9D 00 FF [08:04:21]Write to MH i2c: 01 00 00 92 9D 2F [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** Cut start [08:04:22]*** Partial cut [08:04:22]*** CUTSNS_PIN = 1 [08:04:22]*** CUTSNS_PIN = 0 [08:04:22]*** Brake cut motor [08:04:22]Read from MH i2c: 01 [08:04:22]MH_I2C_Read... [08:04:22]*** Stop cut motor [08:04:22]*** Cut end [08:04:22]Read from MH i2c: 01 07 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 07 00 92 9D 00 00 00 00 00 FF 0F 44 [08:04:22]process_action close_receipt done [08:04:22]requested_data is exist [08:04:22]produce_requested_data [08:04:22]requested_item fm.sn is exist - process it [08:04:22]wFMCommunicate request_size=4 [08:04:22]MH_SAM_APDU [08:04:22]CAPDU: 80 11 00 00 [08:04:22]Write to MH i2c: E2 08 00 93 9D 80 11 00 00 00 00 00 00 AA [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:22]Read from MH i2c: E2 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 17 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 17 00 93 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [08:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:22]wFMCommunicate OK [08:04:22]requested_item fd.num is exist - process it [08:04:22]SAM_PROTO_GetFieldsCounters [08:04:22]wFMCommunicate request_size=4 [08:04:22]MH_SAM_APDU [08:04:22]CAPDU: 80 13 00 00 [08:04:22]Write to MH i2c: E2 08 00 94 9D 80 13 00 00 00 00 00 00 AD [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:22]Read from MH i2c: E2 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 62 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 62 00 94 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:22]wFMCommunicate OK [08:04:22]SAM_PROTO_GetFieldsCounters done [08:04:22]requested_item shift.num is exist - process it [08:04:22]requested_item shift.opened is exist - process it [08:04:22]req_shift_opened [08:04:22]FM_GetShiftState [08:04:22]SAM_PROTO_GetShiftState [08:04:22]wFMCommunicate request_size=4 [08:04:22]MH_SAM_APDU [08:04:22]CAPDU: 80 13 01 00 [08:04:22]Write to MH i2c: E2 08 00 95 9D 80 13 01 00 00 00 00 00 AF [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:22]Read from MH i2c: E2 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 0E 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: E2 0E 00 95 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 02 [08:04:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:04:22]wFMCommunicate OK [08:04:22]SAM_PROTO_GetShiftState done [08:04:22]FM_GetShiftState done [08:04:22]req_shift_opened done [08:04:22]requested_item shift.open_date is exist - process it [08:04:22]req_shift_open_date [08:04:22]req_shift_open_date done [08:04:22]produce_requested_data done [08:04:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166284,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:04:22]process_action_free close_receipt [08:04:22]json_value_free [08:04:22]json_value_free done [08:04:22]process_json_proto returns [08:04:22]Send response to host [08:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166284,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:04:22]free response buf [08:04:22]execute_script done [08:04:22]execute_script returns [08:04:22]free content buf [08:04:22]Sock 5.Close socket [08:04:22]Sock 5.Thread stoped [08:04:25]ConnectInit Can't take IP for lk.salyk.kg [08:04:25]CommunicateWithHost connect error [08:04:25]CommunicateWithHost err = -1 [08:04:25]OFD Sender: Server communicate error [08:04:30]OFD Sender: Processing packet 166284 [packets to send 48, broken 47] [08:04:30]ProducePacketName [08:04:30]name=ofd_packets/00166284 [08:04:30]OFD Sender: To server: pG, [08:04:30]CommunicateWithHost lk.salyk.kg:30040 [08:04:30]ConnectInit lk.salyk.kg [08:04:35]ConnectInit Can't take IP for lk.salyk.kg [08:04:35]CommunicateWithHost connect error [08:04:35]CommunicateWithHost err = -1 [08:04:35]OFD Sender: Server communicate error [08:04:40]OFD Sender: Processing packet 166284 [packets to send 48, broken 47] [08:04:40]ProducePacketName [08:04:40]name=ofd_packets/00166284 [08:04:40]OFD Sender: To server: pG, [08:04:40]CommunicateWithHost lk.salyk.kg:30040 [08:04:40]ConnectInit lk.salyk.kg [08:04:45]ConnectInit Can't take IP for lk.salyk.kg [08:04:45]CommunicateWithHost connect error [08:04:45]CommunicateWithHost err = -1 [08:04:45]OFD Sender: Server communicate error [08:04:50]OFD Sender: Processing packet 166284 [packets to send 48, broken 47] [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00166284 [08:04:50]OFD Sender: To server: pG, [08:04:50]CommunicateWithHost lk.salyk.kg:30040 [08:04:50]ConnectInit lk.salyk.kg [08:04:50]accept exits with 7 [08:04:50]New connection [08:04:50]New thread 3066776932 created [08:04:50]Thread 3066920292 joined [08:04:50]Waiting for new connection... [08:04:50] Sock 7.Parse request [08:04:50]Sock 7.Check first char [08:04:50]Sock 7.First char is OK [08:04:50]request: POST /json_proto HTTP/1.0 [08:04:50]Method: POST [08:04:50]URL: /json_proto [08:04:50]Method is POST - this is cgi request [08:04:50]url: /json_proto [08:04:50]query_string will be loaded in cgi processing [08:04:50]execute_cgi json_proto POST (null) [08:04:50]execute_cgi path=json_proto method=POST [08:04:50]POST find Content-Length [08:04:50]Host: 172.17.53.195:8080 [08:04:50]Content-Length: 677 [08:04:50]Content-Type: application/json [08:04:50] [08:04:50]POST finish read [08:04:50]Found Content-Length = 677 [08:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:50]execute_script... [08:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:50]POST & json_proto [08:04:50]process_json_proto [08:04:50]json parsed OK: [08:04:50]protocol is kg_v1.0 [08:04:50]action value=close_receipt [08:04:50]process_action close_receipt [08:04:50]cmd_close_receipt [08:04:50]MH_GetDate [08:04:50]Write to MH i2c: F0 00 00 96 9D 22 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: F0 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: F0 09 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: F0 09 00 96 9D 00 B9 5C 17 67 21 48 4A 65 D6 [08:04:50]GetLastDocTimeStamp 1729584281 [08:04:50]current date 1729584313 [08:04:50]FM_GetShiftState [08:04:50]SAM_PROTO_GetShiftState [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 13 01 00 [08:04:50]Write to MH i2c: E2 08 00 97 9D 80 13 01 00 00 00 00 00 B1 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:51]Read from MH i2c: E2 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: E2 0E 00 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: E2 0E 00 97 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 04 [08:04:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:04:51]wFMCommunicate OK [08:04:51]SAM_PROTO_GetShiftState done [08:04:51]FM_GetShiftState done [08:04:51]opened in 1729557463 [08:04:51]opened+sec_in_day 1729643863 [08:04:51]quantity*price = 50041 [08:04:51]sum+1 = 50042 [08:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 40 22.10.2024 08:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166285 ФПД: 210509028828532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080513&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166285&fm=210509028828532&tin=02508201610067®Number=0000000000091764&sum=50000 [08:04:52]StoreToDocumentArchive [08:04:52]shift 536 fd 166285 [08:04:52]save to /storage/0536/doc_00166285 [08:04:52]save last doc name /storage/0536/doc_00166285 to /storage/kkm_last_doc_name [08:04:52]save OK [08:04:52]Clear old archive folders... [08:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:52]tlvbuf is B6DA0440 [08:04:52]SAM_PROTO_ClearQueue [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 09 00 00 [08:04:52]Write to MH i2c: E2 08 00 A4 9D 80 09 00 00 00 00 00 00 B3 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 A4 9D 00 90 00 B5 [08:04:52]RAPDU: 90 00 [08:04:52]wFMCommunicate OK [08:04:52]SAM_PROTO_ClearQueue done [08:04:52]KKMCreateOFDPacket [08:04:52]OFDProtocolAddRootSTLVToBuf [08:04:52]FM_MakeSignedData [08:04:52]FM_MakeSignedData [08:04:52]SAM_PROTO_SignData [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 0D 01 02 [08:04:52]Write to MH i2c: E2 08 00 A5 9D 80 0D 01 02 00 00 00 00 BB [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 A5 9D 00 90 00 B6 [08:04:52]RAPDU: 90 00 [08:04:52]wFMCommunicate OK [08:04:52]wFMCommunicate request_size=255 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B9 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 89 02 00 35 04 06 00 BF [08:04:52]Write to MH i2c: E2 02 01 A6 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B9 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 89 02 00 35 04 06 00 BF 00 00 FD [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 A6 9D 00 90 00 B7 [08:04:52]RAPDU: 90 00 [08:04:52]wFMCommunicate OK [08:04:52]wFMCommunicate request_size=10 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 0D 02 02 05 74 F3 E2 A5 74 [08:04:52]Write to MH i2c: E2 0D 00 A7 9D 80 0D 02 02 05 00 74 F3 E2 A5 74 00 00 2A [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 03 00 A7 9D 00 90 00 B8 [08:04:52]RAPDU: 90 00 [08:04:52]wFMCommunicate OK [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 0D 03 02 [08:04:52]Write to MH i2c: E2 08 00 A8 9D 80 0D 03 02 00 00 00 00 C0 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 0B 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 0B 00 A8 9D 00 8E 98 AE 2C 5B FC 8A E3 90 00 85 [08:04:52]RAPDU: 8E 98 AE 2C 5B FC 8A E3 90 00 [08:04:52]wFMCommunicate OK [08:04:52]SAM_PROTO_SignData done [08:04:52]FM_MakeSignedData done [08:04:52]CreateOFDProtocolMessage [08:04:52]wFMCommunicate request_size=4 [08:04:52]MH_SAM_APDU [08:04:52]CAPDU: 80 11 00 00 [08:04:52]Write to MH i2c: E2 08 00 A9 9D 80 11 00 00 00 00 00 00 C0 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:52]Read from MH i2c: E2 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 17 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: E2 17 00 A9 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [08:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:52]wFMCommunicate OK [08:04:52]CreateOFDProtocolMessage done [08:04:52]OFDSenderStorePacket 166285 [08:04:52]StoreOFDPacket docnum=166285 [08:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF EF 07 01 EF 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B9 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 89 02 00 35 04 06 00 BF 74 F3 E2 A5 74 8E 98 AE 2C 5B FC 8A E3 [08:04:52]CheckFolder [08:04:52]dirname=/storage/ofd_packets [08:04:52]CheckFolder done [08:04:52]ProducePacketName [08:04:52]name=ofd_packets/00166285 [08:04:52]NVStorageSaveData ofd_packets/00166285 [08:04:52]File name is /storage/ofd_packets/00166285 [08:04:52]Write 301 bytes [08:04:52]NVStorageSaveData done [08:04:52]OFDSenderStorePacket done [08:04:52]KKMCreateOFDPacket done [08:04:52]NVStorageSaveData kkm_last_timestamp [08:04:52]File name is /storage/kkm_last_timestamp [08:04:52]Write 4 bytes [08:04:52]NVStorageSaveData done [08:04:52]ExternCall_PrintAddStr [08:04:52]wPrintStart [08:04:52]Write to MH i2c: 01 00 00 AA 9D 47 [08:04:52]Write i2c OK [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: 01 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: 01 07 00 [08:04:52]MH_I2C_Read... [08:04:52]Read from MH i2c: 01 07 00 AA 9D 00 00 00 00 00 FF 0F 5C [08:04:52]RasterBufferAndPrint [08:04:52]line Счет N : (1)220860 [08:04:52]line ИНН: 02508201610067 [08:04:52]line Контрольно-Кассовый Чек [08:04:52]line ПРОДАЖА [08:04:52]line ТРК (МРК, ГНК) : 23 [08:04:52]line Товар: 2710124130 [08:04:52]line Аи-92-К-5 [08:04:52]line 7.480 * 66.90 [08:04:52]line = 500.41 [08:04:52]line НДС 12% НСП 1% [08:04:52]line > о реализуемом товаре [08:04:52]line ОКРУГЛЕНИЕ: -0.41 [08:04:52]line ИТОГО: 500.00 [08:04:52]line Внесено: 500.00 [08:04:52]line СДАЧА: 0.00 [08:04:52]line НСП 1% : 4.43 [08:04:52]line НДС 12% : 53.14 [08:04:52]line Наличными: 500.00 [08:04:52]line Безнал.: 0.00 [08:04:52]line Место: АЗС № 161 "Партнер Нефть" [08:04:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:04:52]line СНО: Общий режим [08:04:52]line Чек 40 22.10.2024 08:05 [08:04:52]line Смена: 536 ФФД: 1.0 [08:04:52]line ЗНМ: 0300000104 [08:04:52]line РНМ: 0000000000091764 [08:04:52]line Версия ККМ: 001 [08:04:52]line ФМ: 0000000000871759 [08:04:52]line ФД: 166285 [08:04:52]line ФПД: 210509028828532 [08:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080513&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166285&fm=210509028828532&tin=02508201610067®Number=0000000000091764&sum=50000 [08:04:52]written 0, free lines is 4095 [08:04:53]Write to MH i2c: 01 00 00 D5 9D 72 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: 01 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: 01 07 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: 01 07 00 D5 9D 00 00 00 00 00 B0 0C 35 [08:04:53]RasterBufferAndPrint [08:04:53]line [08:04:53]line [08:04:53]line [08:04:53]line [08:04:53]line [08:04:53]written 0, free lines is 3262 [08:04:53]MH_Cut [08:04:53]Write to MH i2c: D1 01 00 DC 9D 01 4B [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: D1 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: D1 01 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: D1 01 00 DC 9D 00 4A [08:04:53]Write to MH i2c: 01 00 00 DD 9D 7A [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:54]*** Cut start [08:04:54]*** Partial cut [08:04:54]*** CUTSNS_PIN = 1 [08:04:54]*** CUTSNS_PIN = 0 [08:04:54]*** Brake cut motor [08:04:54]Connected sock=6 [08:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 32 07 01 82 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 99 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 89 02 00 35 04 06 00 BD FF 5B 63 AA 2B 19 2B 69 9C 8E C7 A2 0D [08:04:54]Read from MH i2c: 01 [08:04:54]MH_I2C_Read... [08:04:54]*** Stop cut motor [08:04:54]*** Cut end [08:04:54]Read from MH i2c: 01 07 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 07 00 DD 9D 00 00 00 00 00 FF 0F 8F [08:04:54]process_action close_receipt done [08:04:54]requested_data is exist [08:04:54]produce_requested_data [08:04:54]requested_item fm.sn is exist - process it [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 11 00 00 [08:04:54]Write to MH i2c: E2 08 00 DE 9D 80 11 00 00 00 00 00 00 F5 [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 17 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 17 00 DE 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [08:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:04:54]wFMCommunicate OK [08:04:54]requested_item fd.num is exist - process it [08:04:54]SAM_PROTO_GetFieldsCounters [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 13 00 00 [08:04:54]Write to MH i2c: E2 08 00 DF 9D 80 13 00 00 00 00 00 00 F8 [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 99 47 00 49 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 89 02 00 F4 03 04 00 27 03 17 67 B6 04 01 00 00 36 14 91 47 88 03 30 E2 [08:04:54]CommunicateWithHost err = 0 [08:04:54]CheckOFDResponse [08:04:54]1017 (14) - 77093643461234 [08:04:54]1041 (16) - 0000000000871759 [08:04:54]1040 (4) - 166284 [08:04:54]1012 (4) - 22.10.2024 01:43 [08:04:54]1206 (1) - 0 [08:04:54]OFD Sender: Remove packet 166284 [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00166284 [08:04:54]NVStorageDeleteData [08:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 62 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 62 00 DF 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [08:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:54]wFMCommunicate OK [08:04:54]SAM_PROTO_GetFieldsCounters done [08:04:54]requested_item shift.num is exist - process it [08:04:54]requested_item shift.opened is exist - process it [08:04:54]req_shift_opened [08:04:54]FM_GetShiftState [08:04:54]SAM_PROTO_GetShiftState [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 13 01 00 [08:04:54]Write to MH i2c: E2 08 00 E0 9D 80 13 01 00 00 00 00 00 FA [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:55]Read from MH i2c: E2 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: E2 0E 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: E2 0E 00 E0 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4D [08:04:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:04:55]wFMCommunicate OK [08:04:55]SAM_PROTO_GetShiftState done [08:04:55]FM_GetShiftState done [08:04:55]req_shift_opened done [08:04:55]requested_item shift.open_date is exist - process it [08:04:55]req_shift_open_date [08:04:55]req_shift_open_date done [08:04:55]produce_requested_data done [08:04:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166285,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:04:55]process_action_free close_receipt [08:04:55]json_value_free [08:04:55]json_value_free done [08:04:55]process_json_proto returns [08:04:55]Send response to host [08:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166285,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:04:55]free response buf [08:04:55]execute_script done [08:04:55]execute_script returns [08:04:55]free content buf [08:04:55]Sock 7.Close socket [08:04:55]Sock 7.Thread stoped [08:04:55]OFD Sender: Processing packet 166285 [packets to send 48, broken 47] [08:04:55]ProducePacketName [08:04:55]name=ofd_packets/00166285 [08:04:55]OFD Sender: To server: pG, [08:04:55]CommunicateWithHost lk.salyk.kg:30040 [08:04:55]ConnectInit lk.salyk.kg [08:04:55]Connected sock=5 [08:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF EF 07 01 EF 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B9 5C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 89 02 00 35 04 06 00 BF 74 F3 E2 A5 74 8E 98 AE 2C 5B FC 8A E3 [08:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 AE 47 00 4C AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 89 02 00 F4 03 04 00 28 03 17 67 B6 04 01 00 00 AC 09 52 B8 5B 89 BC 36 [08:04:55]CommunicateWithHost err = 0 [08:04:55]CheckOFDResponse [08:04:55]1017 (14) - 77093643461234 [08:04:55]1041 (16) - 0000000000871759 [08:04:55]1040 (4) - 166285 [08:04:55]1012 (4) - 22.10.2024 01:43 [08:04:55]1206 (1) - 0 [08:04:55]OFD Sender: Remove packet 166285 [08:04:55]ProducePacketName [08:04:55]name=ofd_packets/00166285 [08:04:55]NVStorageDeleteData [08:04:56]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:28]recv_with_timeout no data received [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:50]recv_with_timeout no data received [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:19]recv_with_timeout no data received [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:40]recv_with_timeout no data received [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:30]recv_with_timeout no data received [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:50]recv_with_timeout no data received [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:06]recv_with_timeout no data received [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:26]accept exits with 10 [08:25:26]New connection [08:25:26]New thread 3066920292 created [08:25:26]Thread 3066776932 joined [08:25:26]Waiting for new connection... [08:25:26] Sock 10.Parse request [08:25:26]Sock 10.Check first char [08:25:26]Sock 10.First char is OK [08:25:26]request: POST /json_proto HTTP/1.0 [08:25:26]Method: POST [08:25:26]URL: /json_proto [08:25:26]Method is POST - this is cgi request [08:25:26]url: /json_proto [08:25:26]query_string will be loaded in cgi processing [08:25:26]execute_cgi json_proto POST (null) [08:25:26]execute_cgi path=json_proto method=POST [08:25:26]POST find Content-Length [08:25:26]Host: 172.17.53.195:8080 [08:25:26]Content-Length: 677 [08:25:26]Content-Type: application/json [08:25:26] [08:25:26]POST finish read [08:25:26]Found Content-Length = 677 [08:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:26]execute_script... [08:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:26]POST & json_proto [08:25:26]process_json_proto [08:25:26]json parsed OK: [08:25:26]protocol is kg_v1.0 [08:25:26]action value=close_receipt [08:25:26]process_action close_receipt [08:25:26]cmd_close_receipt [08:25:26]MH_GetDate [08:25:26]Write to MH i2c: F0 00 00 E1 9D 6D [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: F0 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: F0 09 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: F0 09 00 E1 9D 00 8D 61 17 67 21 48 4A 65 FA [08:25:26]GetLastDocTimeStamp 1729584313 [08:25:26]current date 1729585549 [08:25:26]FM_GetShiftState [08:25:26]SAM_PROTO_GetShiftState [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 13 01 00 [08:25:26]Write to MH i2c: E2 08 00 E2 9D 80 13 01 00 00 00 00 00 FC [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:27]Read from MH i2c: E2 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 0E 00 [08:25:27]MH_I2C_Read... [08:25:27]Read from MH i2c: E2 0E 00 E2 9D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4F [08:25:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:25:27]wFMCommunicate OK [08:25:27]SAM_PROTO_GetShiftState done [08:25:27]FM_GetShiftState done [08:25:27]opened in 1729557463 [08:25:27]opened+sec_in_day 1729643863 [08:25:27]quantity*price = 50041 [08:25:27]sum+1 = 50042 [08:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 41 22.10.2024 08:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166286 ФПД: 158280895408558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166286&fm=158280895408558&tin=02508201610067®Number=0000000000091764&sum=50000 [08:25:28]StoreToDocumentArchive [08:25:28]shift 536 fd 166286 [08:25:28]save to /storage/0536/doc_00166286 [08:25:28]save last doc name /storage/0536/doc_00166286 to /storage/kkm_last_doc_name [08:25:28]save OK [08:25:28]Clear old archive folders... [08:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:28]tlvbuf is 01DB75B0 [08:25:28]SAM_PROTO_ClearQueue [08:25:28]wFMCommunicate request_size=4 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 09 00 00 [08:25:28]Write to MH i2c: E2 08 00 EF 9D 80 09 00 00 00 00 00 00 FE [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 EF 9D 00 90 00 00 [08:25:28]RAPDU: 90 00 [08:25:28]wFMCommunicate OK [08:25:28]SAM_PROTO_ClearQueue done [08:25:28]KKMCreateOFDPacket [08:25:28]OFDProtocolAddRootSTLVToBuf [08:25:28]FM_MakeSignedData [08:25:28]FM_MakeSignedData [08:25:28]SAM_PROTO_SignData [08:25:28]wFMCommunicate request_size=4 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 0D 01 02 [08:25:28]Write to MH i2c: E2 08 00 F0 9D 80 0D 01 02 00 00 00 00 06 [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 F0 9D 00 90 00 01 [08:25:28]RAPDU: 90 00 [08:25:28]wFMCommunicate OK [08:25:28]wFMCommunicate request_size=255 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8D 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 89 02 00 35 04 06 00 8F [08:25:28]Write to MH i2c: E2 02 01 F1 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8D 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 89 02 00 35 04 06 00 8F 00 00 F3 [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 F1 9D 00 90 00 02 [08:25:28]RAPDU: 90 00 [08:25:28]wFMCommunicate OK [08:25:28]wFMCommunicate request_size=10 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 0D 02 02 05 F4 A4 8B A9 AE [08:25:28]Write to MH i2c: E2 0D 00 F2 9D 80 0D 02 02 05 00 F4 A4 8B A9 AE 00 00 8D [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 03 00 F2 9D 00 90 00 03 [08:25:28]RAPDU: 90 00 [08:25:28]wFMCommunicate OK [08:25:28]wFMCommunicate request_size=4 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 0D 03 02 [08:25:28]Write to MH i2c: E2 08 00 F3 9D 80 0D 03 02 00 00 00 00 0B [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 0B 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 0B 00 F3 9D 00 CE A7 92 68 D7 6C 93 2D 90 00 7E [08:25:28]RAPDU: CE A7 92 68 D7 6C 93 2D 90 00 [08:25:28]wFMCommunicate OK [08:25:28]SAM_PROTO_SignData done [08:25:28]FM_MakeSignedData done [08:25:28]CreateOFDProtocolMessage [08:25:28]wFMCommunicate request_size=4 [08:25:28]MH_SAM_APDU [08:25:28]CAPDU: 80 11 00 00 [08:25:28]Write to MH i2c: E2 08 00 F4 9D 80 11 00 00 00 00 00 00 0B [08:25:28]Write i2c OK [08:25:28]MH_I2C_Read... [08:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:28]Read from MH i2c: E2 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 17 00 [08:25:28]MH_I2C_Read... [08:25:28]Read from MH i2c: E2 17 00 F4 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [08:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:25:28]wFMCommunicate OK [08:25:28]CreateOFDProtocolMessage done [08:25:28]OFDSenderStorePacket 166286 [08:25:28]StoreOFDPacket docnum=166286 [08:25:32]1041 (16) - 0000000000871759 [08:25:32]1040 (4) - 166286 [08:25:32]1012 (4) - 22.10.2024 02:03 [08:25:32]1206 (1) - 0 [08:25:32]OFD Sender: Remove packet 166286 [08:25:32]ProducePacketName [08:25:32]name=ofd_packets/00166286 [08:25:32]NVStorageDeleteData [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:46]recv_with_timeout no data received [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:05]recv_with_timeout no data received [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:16]accept exits with 5 [08:26:16]New connection [08:26:16]New thread 3066776932 created [08:26:16]Thread 3066920292 joined [08:26:16]Waiting for new connection... [08:26:16] Sock 5.Parse request [08:26:16]Sock 5.Check first char [08:26:16]Sock 5.First char is OK [08:26:16]request: POST /json_proto HTTP/1.0 [08:26:16]Method: POST [08:26:16]URL: /json_proto [08:26:16]Method is POST - this is cgi request [08:26:16]url: /json_proto [08:26:16]query_string will be loaded in cgi processing [08:26:16]execute_cgi json_proto POST (null) [08:26:16]execute_cgi path=json_proto method=POST [08:26:16]POST find Content-Length [08:26:16]Host: 172.17.53.195:8080 [08:26:16]Content-Length: 677 [08:26:16]Content-Type: application/json [08:26:16] [08:26:16]POST finish read [08:26:16]Found Content-Length = 677 [08:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:16]execute_script... [08:26:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:16]POST & json_proto [08:26:16]process_json_proto [08:26:16]json parsed OK: [08:26:16]protocol is kg_v1.0 [08:26:16]action value=close_receipt [08:26:16]process_action close_receipt [08:26:16]cmd_close_receipt [08:26:16]MH_GetDate [08:26:16]Write to MH i2c: F0 00 00 2C 9E B9 [08:26:16]Write i2c OK [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 09 00 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 09 00 2C 9E 00 BF 61 17 67 21 48 4A 65 78 [08:26:16]GetLastDocTimeStamp 1729585549 [08:26:16]current date 1729585599 [08:26:16]FM_GetShiftState [08:26:16]SAM_PROTO_GetShiftState [08:26:16]wFMCommunicate request_size=4 [08:26:16]MH_SAM_APDU [08:26:16]CAPDU: 80 13 01 00 [08:26:16]Write to MH i2c: E2 08 00 2D 9E 80 13 01 00 00 00 00 00 48 [08:26:16]Write i2c OK [08:26:16]MH_I2C_Read... [08:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:16]Read from MH i2c: E2 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: E2 0E 00 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: E2 0E 00 2D 9E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9B [08:26:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:26:16]wFMCommunicate OK [08:26:16]SAM_PROTO_GetShiftState done [08:26:16]FM_GetShiftState done [08:26:16]opened in 1729557463 [08:26:16]opened+sec_in_day 1729643863 [08:26:16]quantity*price = 40068 [08:26:16]sum+1 = 40069 [08:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 42 22.10.2024 08:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166287 ФПД: 39972934546807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166287&fm=39972934546807&tin=02508201610067®Number=0000000000091764&sum=40000 [08:26:17]StoreToDocumentArchive [08:26:17]shift 536 fd 166287 [08:26:17]save to /storage/0536/doc_00166287 [08:26:17]save last doc name /storage/0536/doc_00166287 to /storage/kkm_last_doc_name [08:26:17]save OK [08:26:17]Clear old archive folders... [08:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:17]tlvbuf is 014FEDD0 [08:26:17]SAM_PROTO_ClearQueue [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 09 00 00 [08:26:17]Write to MH i2c: E2 08 00 3A 9E 80 09 00 00 00 00 00 00 4A [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 3A 9E 00 90 00 4C [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]SAM_PROTO_ClearQueue done [08:26:17]KKMCreateOFDPacket [08:26:17]OFDProtocolAddRootSTLVToBuf [08:26:17]FM_MakeSignedData [08:26:17]FM_MakeSignedData [08:26:17]SAM_PROTO_SignData [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 01 02 [08:26:17]Write to MH i2c: E2 08 00 3B 9E 80 0D 01 02 00 00 00 00 52 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 3B 9E 00 90 00 4D [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=255 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 BF 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 89 02 00 35 04 06 00 24 [08:26:17]Write to MH i2c: E2 02 01 3C 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 BF 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 89 02 00 35 04 06 00 24 00 00 B7 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 3C 9E 00 90 00 4E [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=10 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 02 02 05 5A EC 90 75 77 [08:26:17]Write to MH i2c: E2 0D 00 3D 9E 80 0D 02 02 05 00 5A EC 90 75 77 00 00 21 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 3D 9E 00 90 00 4F [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 03 02 [08:26:17]Write to MH i2c: E2 08 00 3E 9E 80 0D 03 02 00 00 00 00 57 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 0B 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 0B 00 3E 9E 00 62 DD F6 A2 84 E9 81 64 90 00 81 [08:26:17]RAPDU: 62 DD F6 A2 84 E9 81 64 90 00 [08:26:17]wFMCommunicate OK [08:26:17]SAM_PROTO_SignData done [08:26:17]FM_MakeSignedData done [08:26:17]CreateOFDProtocolMessage [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 11 00 00 [08:26:17]Write to MH i2c: E2 08 00 3F 9E 80 11 00 00 00 00 00 00 57 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 17 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 17 00 3F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [08:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:26:17]wFMCommunicate OK [08:26:17]CreateOFDProtocolMessage done [08:26:17]OFDSenderStorePacket 166287 [08:26:17]StoreOFDPacket docnum=166287 [08:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B8 F9 07 01 A7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 BF 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 89 02 00 35 04 06 00 24 5A EC 90 75 77 62 DD F6 A2 84 E9 81 64 [08:26:17]CheckFolder [08:26:17]dirname=/storage/ofd_packets [08:26:17]CheckFolder done [08:26:17]ProducePacketName [08:26:17]name=ofd_packets/00166287 [08:26:17]NVStorageSaveData ofd_packets/00166287 [08:26:17]File name is /storage/ofd_packets/00166287 [08:26:17]Write 301 bytes [08:26:17]NVStorageSaveData done [08:26:17]OFDSenderStorePacket done [08:26:17]KKMCreateOFDPacket done [08:26:17]NVStorageSaveData kkm_last_timestamp [08:26:17]File name is /storage/kkm_last_timestamp [08:26:17]Write 4 bytes [08:26:17]NVStorageSaveData done [08:26:17]ExternCall_PrintAddStr [08:26:17]wPrintStart [08:26:17]Write to MH i2c: 01 00 00 40 9E DE [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 07 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 07 00 40 9E 00 00 00 00 00 FF 0F F3 [08:26:17]RasterBufferAndPrint [08:26:17]line Счет N : (1)220862 [08:26:17]line ИНН: 02508201610067 [08:26:17]line Контрольно-Кассовый Чек [08:26:17]line ПРОДАЖА [08:26:17]line ТРК (МРК, ГНК) : 24 [08:26:17]line Товар: 2710124500 [08:26:17]line Аи-95-К-5 [08:26:17]line 5.400 * 74.20 [08:26:17]line = 400.68 [08:26:17]line НДС 12% НСП 1% [08:26:17]line > о реализуемом товаре [08:26:17]line ОКРУГЛЕНИЕ: -0.68 [08:26:17]line ИТОГО: 400.00 [08:26:17]line Внесено: 400.00 [08:26:17]line СДАЧА: 0.00 [08:26:17]line НСП 1% : 3.55 [08:26:17]line НДС 12% : 42.55 [08:26:17]line Наличными: 400.00 [08:26:17]line Безнал.: 0.00 [08:26:17]line Место: АЗС № 161 "Партнер Нефть" [08:26:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:26:17]line СНО: Общий режим [08:26:17]line Чек 42 22.10.2024 08:26 [08:26:17]line Смена: 536 ФФД: 1.0 [08:26:17]line ЗНМ: 0300000104 [08:26:17]line РНМ: 0000000000091764 [08:26:17]line Версия ККМ: 001 [08:26:17]line ФМ: 0000000000871759 [08:26:17]line ФД: 166287 [08:26:17]line ФПД: 39972934546807 [08:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166287&fm=39972934546807&tin=02508201610067®Number=0000000000091764&sum=40000 [08:26:18]OFD Sender: Processing packet 166287 [packets to send 48, broken 47] [08:26:18]ProducePacketName [08:26:18]name=ofd_packets/00166287 [08:26:18]OFD Sender: To server: pG, [08:26:18]CommunicateWithHost lk.salyk.kg:30040 [08:26:18]ConnectInit lk.salyk.kg [08:26:18]written 0, free lines is 4095 [08:26:18]Write to MH i2c: 01 00 00 6B 9E 09 [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 07 00 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 07 00 6B 9E 00 00 00 00 00 B2 0C CE [08:26:18]RasterBufferAndPrint [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]written 0, free lines is 3256 [08:26:18]MH_Cut [08:26:18]Write to MH i2c: D1 01 00 72 9E 01 E2 [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 01 00 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 01 00 72 9E 00 E1 [08:26:18]Write to MH i2c: 01 00 00 73 9E 11 [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:19]*** Cut start [08:26:19]*** Partial cut [08:26:19]*** CUTSNS_PIN = 1 [08:26:19]*** CUTSNS_PIN = 0 [08:26:19]*** Brake cut motor [08:26:20]Read from MH i2c: 01 [08:26:20]MH_I2C_Read... [08:26:20]*** Stop cut motor [08:26:20]*** Cut end [08:26:20]Read from MH i2c: 01 07 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: 01 07 00 73 9E 00 00 00 00 00 FF 0F 26 [08:26:20]process_action close_receipt done [08:26:20]requested_data is exist [08:26:20]produce_requested_data [08:26:20]requested_item fm.sn is exist - process it [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 11 00 00 [08:26:20]Write to MH i2c: E2 08 00 74 9E 80 11 00 00 00 00 00 00 8C [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 17 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 17 00 74 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [08:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:26:20]wFMCommunicate OK [08:26:20]requested_item fd.num is exist - process it [08:26:20]SAM_PROTO_GetFieldsCounters [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 13 00 00 [08:26:20]Write to MH i2c: E2 08 00 75 9E 80 13 00 00 00 00 00 00 8F [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 62 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 62 00 75 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [08:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:20]wFMCommunicate OK [08:26:20]SAM_PROTO_GetFieldsCounters done [08:26:20]requested_item shift.num is exist - process it [08:26:20]requested_item shift.opened is exist - process it [08:26:20]req_shift_opened [08:26:20]FM_GetShiftState [08:26:20]SAM_PROTO_GetShiftState [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 13 01 00 [08:26:20]Write to MH i2c: E2 08 00 76 9E 80 13 01 00 00 00 00 00 91 [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 0E 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 0E 00 76 9E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E4 [08:26:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:26:20]wFMCommunicate OK [08:26:20]SAM_PROTO_GetShiftState done [08:26:20]FM_GetShiftState done [08:26:20]req_shift_opened done [08:26:20]requested_item shift.open_date is exist - process it [08:26:20]req_shift_open_date [08:26:20]req_shift_open_date done [08:26:20]produce_requested_data done [08:26:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166287,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:26:20]process_action_free close_receipt [08:26:20]json_value_free [08:26:20]json_value_free done [08:26:20]process_json_proto returns [08:26:20]Send response to host [08:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166287,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:26:20]free response buf [08:26:20]execute_script done [08:26:20]execute_script returns [08:26:20]free content buf [08:26:20]Sock 5.Close socket [08:26:20]Sock 5.Thread stoped [08:26:23]ConnectInit Can't take IP for lk.salyk.kg [08:26:23]CommunicateWithHost connect error [08:26:23]CommunicateWithHost err = -1 [08:26:23]OFD Sender: Server communicate error [08:26:28]OFD Sender: Processing packet 166287 [packets to send 48, broken 47] [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00166287 [08:26:28]OFD Sender: To server: pG, [08:26:28]CommunicateWithHost lk.salyk.kg:30040 [08:26:28]ConnectInit lk.salyk.kg [08:26:33]ConnectInit Can't take IP for lk.salyk.kg [08:26:33]CommunicateWithHost connect error [08:26:33]CommunicateWithHost err = -1 [08:26:33]OFD Sender: Server communicate error [08:26:38]OFD Sender: Processing packet 166287 [packets to send 48, broken 47] [08:26:38]ProducePacketName [08:26:38]name=ofd_packets/00166287 [08:26:38]OFD Sender: To server: pG, [08:26:38]CommunicateWithHost lk.salyk.kg:30040 [08:26:38]ConnectInit lk.salyk.kg [08:26:38]Connected sock=5 [08:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B8 F9 07 01 A7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 BF 61 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 89 02 00 35 04 06 00 24 5A EC 90 75 77 62 DD F6 A2 84 E9 81 64 [08:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE 04 47 00 0E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 89 02 00 F4 03 04 00 3E 08 17 67 B6 04 01 00 00 52 16 99 15 15 79 18 53 [08:26:38]CommunicateWithHost err = 0 [08:26:38]CheckOFDResponse [08:26:38]1017 (14) - 77093643461234 [08:26:38]1041 (16) - 0000000000871759 [08:26:38]1040 (4) - 166287 [08:26:38]1012 (4) - 22.10.2024 02:04 [08:26:38]1206 (1) - 0 [08:26:38]OFD Sender: Remove packet 166287 [08:26:38]ProducePacketName [08:26:38]name=ofd_packets/00166287 [08:26:38]NVStorageDeleteData [08:26:38]OFD Sender: No OFD packet to send [08:26:43]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:39]OFD Sender: No OFD packet to send [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:53]accept exits with 7 [08:31:53]New connection [08:31:53]New thread 3066920292 created [08:31:53]Thread 3066776932 joined [08:31:53]Waiting for new connection... [08:31:53] Sock 7.Parse request [08:31:53]Sock 7.Check first char [08:31:53]Sock 7.First char is OK [08:31:53]request: POST /json_proto HTTP/1.0 [08:31:53]Method: POST [08:31:53]URL: /json_proto [08:31:53]Method is POST - this is cgi request [08:31:53]url: /json_proto [08:31:53]query_string will be loaded in cgi processing [08:31:53]execute_cgi json_proto POST (null) [08:31:53]execute_cgi path=json_proto method=POST [08:31:53]POST find Content-Length [08:31:53]Host: 172.17.53.195:8080 [08:31:53]Content-Length: 766 [08:31:53]Content-Type: application/json [08:31:53] [08:31:53]POST finish read [08:31:53]Found Content-Length = 766 [08:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:53]execute_script... [08: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 : (1)220863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:53]POST & json_proto [08:31:53]process_json_proto [08:31:53]json parsed OK: [08:31:53]protocol is kg_v1.0 [08:31:53]action value=close_receipt [08:31:53]process_action close_receipt [08:31:53]cmd_close_receipt [08:31:53]MH_GetDate [08:31:53]Write to MH i2c: F0 00 00 77 9E 04 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: F0 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: F0 09 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: F0 09 00 77 9E 00 10 63 17 67 21 48 4A 65 16 [08:31:53]GetLastDocTimeStamp 1729585599 [08:31:53]current date 1729585936 [08:31:53]FM_GetShiftState [08:31:53]SAM_PROTO_GetShiftState [08:31:53]wFMCommunicate request_size=4 [08:31:53]MH_SAM_APDU [08:31:53]CAPDU: 80 13 01 00 [08:31:53]Write to MH i2c: E2 08 00 78 9E 80 13 01 00 00 00 00 00 93 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:53]Read from MH i2c: E2 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 0E 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 0E 00 78 9E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E6 [08:31:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:31:53]wFMCommunicate OK [08:31:53]SAM_PROTO_GetShiftState done [08:31:53]FM_GetShiftState done [08:31:53]opened in 1729557463 [08:31:53]opened+sec_in_day 1729643863 [08:31:53]quantity*price = 200025 [08:31:53]sum+1 = 200026 [08:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 43 22.10.2024 08:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166288 ФПД: 61867606158873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166288&fm=61867606158873&tin=02508201610067®Number=0000000000091764&sum=200025 [08:31:55]StoreToDocumentArchive [08:31:55]shift 536 fd 166288 [08:31:55]save to /storage/0536/doc_00166288 [08:31:55]save last doc name /storage/0536/doc_00166288 to /storage/kkm_last_doc_name [08:31:55]save OK [08:31:55]Clear old archive folders... [08:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:31:55]tlvbuf is 0157E770 [08:31:55]SAM_PROTO_ClearQueue [08:31:55]wFMCommunicate request_size=4 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 09 00 00 [08:31:55]Write to MH i2c: E2 08 00 85 9E 80 09 00 00 00 00 00 00 95 [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 85 9E 00 90 00 97 [08:31:55]RAPDU: 90 00 [08:31:55]wFMCommunicate OK [08:31:55]SAM_PROTO_ClearQueue done [08:31:55]KKMCreateOFDPacket [08:31:55]OFDProtocolAddRootSTLVToBuf [08:31:55]FM_MakeSignedData [08:31:55]FM_MakeSignedData [08:31:55]SAM_PROTO_SignData [08:31:55]wFMCommunicate request_size=4 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 0D 01 02 [08:31:55]Write to MH i2c: E2 08 00 86 9E 80 0D 01 02 00 00 00 00 9D [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 86 9E 00 90 00 98 [08:31:55]RAPDU: 90 00 [08:31:55]wFMCommunicate OK [08:31:55]wFMCommunicate request_size=255 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 10 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 89 02 00 35 04 06 00 38 44 AC B0 [08:31:55]Write to MH i2c: E2 02 01 87 9E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 10 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 89 02 00 35 04 06 00 38 44 AC B0 00 00 72 [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 87 9E 00 90 00 99 [08:31:55]RAPDU: 90 00 [08:31:55]wFMCommunicate OK [08:31:55]wFMCommunicate request_size=7 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 0D 02 02 02 2E 19 [08:31:55]Write to MH i2c: E2 0A 00 88 9E 80 0D 02 02 02 00 2E 19 00 00 EB [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 03 00 88 9E 00 90 00 9A [08:31:55]RAPDU: 90 00 [08:31:55]wFMCommunicate OK [08:31:55]wFMCommunicate request_size=4 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 0D 03 02 [08:31:55]Write to MH i2c: E2 08 00 89 9E 80 0D 03 02 00 00 00 00 A2 [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 0B 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 0B 00 89 9E 00 E0 C1 D8 8C 63 AD C0 38 90 00 B0 [08:31:55]RAPDU: E0 C1 D8 8C 63 AD C0 38 90 00 [08:31:55]wFMCommunicate OK [08:31:55]SAM_PROTO_SignData done [08:31:55]FM_MakeSignedData done [08:31:55]CreateOFDProtocolMessage [08:31:55]wFMCommunicate request_size=4 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 11 00 00 [08:31:55]Write to MH i2c: E2 08 00 8A 9E 80 11 00 00 00 00 00 00 A2 [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 17 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 17 00 8A 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [08:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:31:55]wFMCommunicate OK [08:31:55]CreateOFDProtocolMessage done [08:31:55]OFDSenderStorePacket 166288 [08:31:55]StoreOFDPacket docnum=166288 [08:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4D E2 04 01 3A 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 10 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 89 02 00 35 04 06 00 38 44 AC B0 2E 19 E0 C1 D8 8C 63 AD C0 38 [08:31:55]CheckFolder [08:31:55]dirname=/storage/ofd_packets [08:31:55]CheckFolder done [08:31:55]ProducePacketName [08:31:55]name=ofd_packets/00166288 [08:31:55]NVStorageSaveData ofd_packets/00166288 [08:31:55]File name is /storage/ofd_packets/00166288 [08:31:55]Write 298 bytes [08:31:55]NVStorageSaveData done [08:31:55]OFDSenderStorePacket done [08:31:55]KKMCreateOFDPacket done [08:31:55]NVStorageSaveData kkm_last_timestamp [08:31:55]File name is /storage/kkm_last_timestamp [08:31:55]Write 4 bytes [08:31:55]NVStorageSaveData done [08:31:55]ExternCall_PrintAddStr [08:31:55]wPrintStart [08:31:55]Write to MH i2c: 01 00 00 8B 9E 29 [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: 01 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: 01 07 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: 01 07 00 8B 9E 00 00 00 00 00 FF 0F 3E [08:31:55]RasterBufferAndPrint [08:31:55]line Счет N : (1)220863 [08:31:55]line ИНН: 02508201610067 [08:31:55]line Контрольно-Кассовый Чек [08:31:55]line ПРОДАЖА [08:31:55]line ТРК (МРК, ГНК) : 11 [08:31:55]line Товар: 2710194210 [08:31:55]line ДТ-К-5 [08:31:55]line 26.250 * 76.20 [08:31:55]line = 2000.25 [08:31:55]line НДС 12% НСП 1% [08:31:55]line > о реализуемом товаре [08:31:55]line ИТОГО: 2000.25 [08:31:55]line НСП 1% : 17.70 [08:31:55]line НДС 12% : 212.42 [08:31:55]line Наличными: 0.00 [08:31:55]line Безнал.: 2000.25 [08:31:55]line Место: АЗС № 161 "Партнер Нефть" [08:31:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:31:55]line СНО: Общий режим [08:31:55]line Чек 43 22.10.2024 08:32 [08:31:55]line Смена: 536 ФФД: 1.0 [08:31:55]line ЗНМ: 0300000104 [08:31:55]line РНМ: 0000000000091764 [08:31:55]line Версия ККМ: 001 [08:31:55]line Платежная система: Mbank [08:31:55]line ФМ: 0000000000871759 [08:31:55]line ФД: 166288 [08:31:55]line ФПД: 61867606158873 [08:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166288&fm=61867606158873&tin=02508201610067®Number=0000000000091764&sum=200025 [08:31:55]OFD Sender: Processing packet 166288 [packets to send 48, broken 47] [08:31:55]ProducePacketName [08:31:55]name=ofd_packets/00166288 [08:31:55]OFD Sender: To server: pG, [08:31:55]CommunicateWithHost lk.salyk.kg:30040 [08:31:55]ConnectInit lk.salyk.kg [08:31:55]written 0, free lines is 4095 [08:31:56]Connected sock=6 [08:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4D E2 04 01 3A 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 10 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 89 02 00 35 04 06 00 38 44 AC B0 2E 19 E0 C1 D8 8C 63 AD C0 38 [08:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2B D1 47 00 A0 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 89 02 00 F4 03 04 00 7C 09 17 67 B6 04 01 00 00 E2 5B 97 2F 89 A6 0B 43 [08:31:56]CommunicateWithHost err = 0 [08:31:56]CheckOFDResponse [08:31:56]1017 (14) - 77093643461234 [08:31:56]1041 (16) - 0000000000871759 [08:31:56]1040 (4) - 166288 [08:31:56]1012 (4) - 22.10.2024 02:10 [08:31:56]1206 (1) - 0 [08:31:56]OFD Sender: Remove packet 166288 [08:31:56]ProducePacketName [08:31:56]name=ofd_packets/00166288 [08:31:56]NVStorageDeleteData [08:31:56]Write to MH i2c: 01 00 00 B4 9E 52 [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: 01 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: 01 07 00 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: 01 07 00 B4 9E 00 00 00 00 00 EE 0C 53 [08:31:56]RasterBufferAndPrint [08:31:56]line [08:31:56]line [08:31:56]line [08:31:56]line [08:31:56]line [08:31:56]written 0, free lines is 3316 [08:31:56]MH_Cut [08:31:56]Write to MH i2c: D1 01 00 BB 9E 01 2B [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: D1 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: D1 01 00 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: D1 01 00 BB 9E 00 2A [08:31:56]Write to MH i2c: 01 00 00 BC 9E 5A [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]OFD Sender: No OFD packet to send [08:31:57]*** Cut start [08:31:57]*** Partial cut [08:31:57]*** CUTSNS_PIN = 1 [08:31:57]*** CUTSNS_PIN = 0 [08:31:57]*** Brake cut motor [08:31:57]Read from MH i2c: 01 [08:31:57]MH_I2C_Read... [08:31:57]*** Stop cut motor [08:31:57]*** Cut end [08:31:57]Read from MH i2c: 01 07 00 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: 01 07 00 BC 9E 00 00 00 00 00 FF 0F 6F [08:31:57]process_action close_receipt done [08:31:57]requested_data is exist [08:31:57]produce_requested_data [08:31:57]requested_item fm.sn is exist - process it [08:31:57]wFMCommunicate request_size=4 [08:31:57]MH_SAM_APDU [08:31:57]CAPDU: 80 11 00 00 [08:31:57]Write to MH i2c: E2 08 00 BD 9E 80 11 00 00 00 00 00 00 D5 [08:31:57]Write i2c OK [08:31:57]MH_I2C_Read... [08:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:57]Read from MH i2c: E2 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: E2 17 00 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: E2 17 00 BD 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [08:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:31:57]wFMCommunicate OK [08:31:57]requested_item fd.num is exist - process it [08:31:57]SAM_PROTO_GetFieldsCounters [08:31:57]wFMCommunicate request_size=4 [08:31:57]MH_SAM_APDU [08:31:57]CAPDU: 80 13 00 00 [08:31:57]Write to MH i2c: E2 08 00 BE 9E 80 13 00 00 00 00 00 00 D8 [08:31:57]Write i2c OK [08:31:57]MH_I2C_Read... [08:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:58]Read from MH i2c: E2 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 62 00 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 62 00 BE 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:58]wFMCommunicate OK [08:31:58]SAM_PROTO_GetFieldsCounters done [08:31:58]requested_item shift.num is exist - process it [08:31:58]requested_item shift.opened is exist - process it [08:31:58]req_shift_opened [08:31:58]FM_GetShiftState [08:31:58]SAM_PROTO_GetShiftState [08:31:58]wFMCommunicate request_size=4 [08:31:58]MH_SAM_APDU [08:31:58]CAPDU: 80 13 01 00 [08:31:58]Write to MH i2c: E2 08 00 BF 9E 80 13 01 00 00 00 00 00 DA [08:31:58]Write i2c OK [08:31:58]MH_I2C_Read... [08:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:58]Read from MH i2c: E2 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 0E 00 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 0E 00 BF 9E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2D [08:31:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:31:58]wFMCommunicate OK [08:31:58]SAM_PROTO_GetShiftState done [08:31:58]FM_GetShiftState done [08:31:58]req_shift_opened done [08:31:58]requested_item shift.open_date is exist - process it [08:31:58]req_shift_open_date [08:31:58]req_shift_open_date done [08:31:58]produce_requested_data done [08:31:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166288,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:31:58]process_action_free close_receipt [08:31:58]json_value_free [08:31:58]json_value_free done [08:31:58]process_json_proto returns [08:31:58]Send response to host [08:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166288,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:31:58]free response buf [08:31:58]execute_script done [08:31:58]execute_script returns [08:31:58]free content buf [08:31:58]Sock 7.Close socket [08:31:58]Sock 7.Thread stoped [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:20]accept exits with 5 [08:32:20]New connection [08:32:20]New thread 3066776932 created [08:32:20]Thread 3066920292 joined [08:32:20]Waiting for new connection... [08:32:20] Sock 5.Parse request [08:32:20]Sock 5.Check first char [08:32:20]Sock 5.First char is OK [08:32:20]request: POST /json_proto HTTP/1.0 [08:32:20]Method: POST [08:32:20]URL: /json_proto [08:32:20]Method is POST - this is cgi request [08:32:20]url: /json_proto [08:32:20]query_string will be loaded in cgi processing [08:32:20]execute_cgi json_proto POST (null) [08:32:20]execute_cgi path=json_proto method=POST [08:32:20]POST find Content-Length [08:32:20]Host: 172.17.53.195:8080 [08:32:20]Content-Length: 677 [08:32:20]Content-Type: application/json [08:32:20] [08:32:20]POST finish read [08:32:20]Found Content-Length = 677 [08:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:20]execute_script... [08:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:20]POST & json_proto [08:32:20]process_json_proto [08:32:20]json parsed OK: [08:32:20]protocol is kg_v1.0 [08:32:20]action value=close_receipt [08:32:20]process_action close_receipt [08:32:20]cmd_close_receipt [08:32:20]MH_GetDate [08:32:20]Write to MH i2c: F0 00 00 C0 9E 4D [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: F0 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: F0 09 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: F0 09 00 C0 9E 00 2B 63 17 67 21 48 4A 65 7A [08:32:20]GetLastDocTimeStamp 1729585936 [08:32:20]current date 1729585963 [08:32:20]FM_GetShiftState [08:32:20]SAM_PROTO_GetShiftState [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 13 01 00 [08:32:20]Write to MH i2c: E2 08 00 C1 9E 80 13 01 00 00 00 00 00 DC [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0E 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0E 00 C1 9E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2F [08:32:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_GetShiftState done [08:32:20]FM_GetShiftState done [08:32:20]opened in 1729557463 [08:32:20]opened+sec_in_day 1729643863 [08:32:20]quantity*price = 30038 [08:32:20]sum+1 = 30039 [08:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 44 22.10.2024 08:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166289 ФПД: 178549036505130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166289&fm=178549036505130&tin=02508201610067®Number=0000000000091764&sum=30000 [08:32:21]StoreToDocumentArchive [08:32:21]shift 536 fd 166289 [08:32:21]save to /storage/0536/doc_00166289 [08:32:21]save last doc name /storage/0536/doc_00166289 to /storage/kkm_last_doc_name [08:32:21]save OK [08:32:21]Clear old archive folders... [08:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:21]tlvbuf is 015998E0 [08:32:21]SAM_PROTO_ClearQueue [08:32:21]wFMCommunicate request_size=4 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 09 00 00 [08:32:21]Write to MH i2c: E2 08 00 CE 9E 80 09 00 00 00 00 00 00 DE [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 CE 9E 00 90 00 E0 [08:32:21]RAPDU: 90 00 [08:32:21]wFMCommunicate OK [08:32:21]SAM_PROTO_ClearQueue done [08:32:21]KKMCreateOFDPacket [08:32:21]OFDProtocolAddRootSTLVToBuf [08:32:21]FM_MakeSignedData [08:32:21]FM_MakeSignedData [08:32:21]SAM_PROTO_SignData [08:32:21]wFMCommunicate request_size=4 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 0D 01 02 [08:32:21]Write to MH i2c: E2 08 00 CF 9E 80 0D 01 02 00 00 00 00 E6 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 CF 9E 00 90 00 E1 [08:32:21]RAPDU: 90 00 [08:32:21]wFMCommunicate OK [08:32:21]wFMCommunicate request_size=255 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2B 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 89 02 00 35 04 06 00 A2 [08:32:21]Write to MH i2c: E2 02 01 D0 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2B 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 89 02 00 35 04 06 00 A2 00 00 80 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 D0 9E 00 90 00 E2 [08:32:21]RAPDU: 90 00 [08:32:21]wFMCommunicate OK [08:32:21]wFMCommunicate request_size=10 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 0D 02 02 05 63 AF E5 58 2A [08:32:21]Write to MH i2c: E2 0D 00 D1 9E 80 0D 02 02 05 00 63 AF E5 58 2A 00 00 6C [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 03 00 D1 9E 00 90 00 E3 [08:32:21]RAPDU: 90 00 [08:32:21]wFMCommunicate OK [08:32:21]wFMCommunicate request_size=4 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 0D 03 02 [08:32:21]Write to MH i2c: E2 08 00 D2 9E 80 0D 03 02 00 00 00 00 EB [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:21]OFD Sender: No OFD packet to send [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 0B 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 0B 00 D2 9E 00 4F 48 FA 51 37 D7 1B 94 90 00 8B [08:32:21]RAPDU: 4F 48 FA 51 37 D7 1B 94 90 00 [08:32:21]wFMCommunicate OK [08:32:21]SAM_PROTO_SignData done [08:32:21]FM_MakeSignedData done [08:32:21]CreateOFDProtocolMessage [08:32:21]wFMCommunicate request_size=4 [08:32:21]MH_SAM_APDU [08:32:21]CAPDU: 80 11 00 00 [08:32:21]Write to MH i2c: E2 08 00 D3 9E 80 11 00 00 00 00 00 00 EB [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:21]Read from MH i2c: E2 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 17 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: E2 17 00 D3 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [08:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:21]wFMCommunicate OK [08:32:21]CreateOFDProtocolMessage done [08:32:21]OFDSenderStorePacket 166289 [08:32:21]StoreOFDPacket docnum=166289 [08:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 82 07 01 C4 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2B 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 89 02 00 35 04 06 00 A2 63 AF E5 58 2A 4F 48 FA 51 37 D7 1B 94 [08:32:21]CheckFolder [08:32:21]dirname=/storage/ofd_packets [08:32:21]CheckFolder done [08:32:21]ProducePacketName [08:32:21]name=ofd_packets/00166289 [08:32:21]NVStorageSaveData ofd_packets/00166289 [08:32:21]File name is /storage/ofd_packets/00166289 [08:32:21]Write 301 bytes [08:32:21]NVStorageSaveData done [08:32:21]OFDSenderStorePacket done [08:32:21]KKMCreateOFDPacket done [08:32:21]NVStorageSaveData kkm_last_timestamp [08:32:21]File name is /storage/kkm_last_timestamp [08:32:21]Write 4 bytes [08:32:21]NVStorageSaveData done [08:32:21]ExternCall_PrintAddStr [08:32:21]wPrintStart [08:32:21]Write to MH i2c: 01 00 00 D4 9E 72 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 D4 9E 00 00 00 00 00 FF 0F 87 [08:32:21]RasterBufferAndPrint [08:32:21]line Счет N : (1)220864 [08:32:21]line ИНН: 02508201610067 [08:32:21]line Контрольно-Кассовый Чек [08:32:21]line ПРОДАЖА [08:32:21]line ТРК (МРК, ГНК) : 43 [08:32:21]line Товар: 2710124130 [08:32:21]line Аи-92-К-5 [08:32:21]line 4.490 * 66.90 [08:32:21]line = 300.38 [08:32:21]line НДС 12% НСП 1% [08:32:21]line > о реализуемом товаре [08:32:21]line ОКРУГЛЕНИЕ: -0.38 [08:32:21]line ИТОГО: 300.00 [08:32:21]line Внесено: 300.00 [08:32:21]line СДАЧА: 0.00 [08:32:21]line НСП 1% : 2.66 [08:32:21]line НДС 12% : 31.90 [08:32:21]line Наличными: 300.00 [08:32:21]line Безнал.: 0.00 [08:32:21]line Место: АЗС № 161 "Партнер Нефть" [08:32:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:32:21]line СНО: Общий режим [08:32:21]line Чек 44 22.10.2024 08:32 [08:32:21]line Смена: 536 ФФД: 1.0 [08:32:21]line ЗНМ: 0300000104 [08:32:21]line РНМ: 0000000000091764 [08:32:21]line Версия ККМ: 001 [08:32:21]line ФМ: 0000000000871759 [08:32:21]line ФД: 166289 [08:32:21]line ФПД: 178549036505130 [08:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166289&fm=178549036505130&tin=02508201610067®Number=0000000000091764&sum=30000 [08:32:22]OFD Sender: Processing packet 166289 [packets to send 48, broken 47] [08:32:22]ProducePacketName [08:32:22]name=ofd_packets/00166289 [08:32:22]OFD Sender: To server: pG, [08:32:22]CommunicateWithHost lk.salyk.kg:30040 [08:32:22]ConnectInit lk.salyk.kg [08:32:22]written 0, free lines is 4095 [08:32:22]Connected sock=7 [08:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 82 07 01 C4 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2B 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 89 02 00 35 04 06 00 A2 63 AF E5 58 2A 4F 48 FA 51 37 D7 1B 94 [08:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E D1 47 00 77 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 89 02 00 F4 03 04 00 96 09 17 67 B6 04 01 00 00 2B 01 C0 50 77 1E A6 97 [08:32:22]CommunicateWithHost err = 0 [08:32:22]CheckOFDResponse [08:32:22]1017 (14) - 77093643461234 [08:32:22]1041 (16) - 0000000000871759 [08:32:22]1040 (4) - 166289 [08:32:22]1012 (4) - 22.10.2024 02:10 [08:32:22]1206 (1) - 0 [08:32:22]OFD Sender: Remove packet 166289 [08:32:22]ProducePacketName [08:32:22]name=ofd_packets/00166289 [08:32:22]NVStorageDeleteData [08:32:22]Write to MH i2c: 01 00 00 FF 9E 9D [08:32:22]Write i2c OK [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: 01 [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: 01 07 00 [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: 01 07 00 FF 9E 00 00 00 00 00 CE 0C 7E [08:32:22]RasterBufferAndPrint [08:32:22]line [08:32:22]line [08:32:22]line [08:32:22]line [08:32:22]line [08:32:22]written 0, free lines is 3285 [08:32:22]MH_Cut [08:32:22]Write to MH i2c: D1 01 00 06 9F 01 77 [08:32:22]Write i2c OK [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: D1 [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: D1 01 00 [08:32:22]MH_I2C_Read... [08:32:22]Read from MH i2c: D1 01 00 06 9F 00 76 [08:32:22]Write to MH i2c: 01 00 00 07 9F A6 [08:32:22]Write i2c OK [08:32:22]MH_I2C_Read... [08:32:23]OFD Sender: No OFD packet to send [08:32:23]*** Cut start [08:32:23]*** Partial cut [08:32:23]*** CUTSNS_PIN = 1 [08:32:23]*** CUTSNS_PIN = 0 [08:32:23]*** Brake cut motor [08:32:24]Read from MH i2c: 01 [08:32:24]MH_I2C_Read... [08:32:24]*** Stop cut motor [08:32:24]*** Cut end [08:32:24]Read from MH i2c: 01 07 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: 01 07 00 07 9F 00 00 00 00 00 FF 0F BB [08:32:24]process_action close_receipt done [08:32:24]requested_data is exist [08:32:24]produce_requested_data [08:32:24]requested_item fm.sn is exist - process it [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 11 00 00 [08:32:24]Write to MH i2c: E2 08 00 08 9F 80 11 00 00 00 00 00 00 21 [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 17 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 17 00 08 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [08:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:24]wFMCommunicate OK [08:32:24]requested_item fd.num is exist - process it [08:32:24]SAM_PROTO_GetFieldsCounters [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 13 00 00 [08:32:24]Write to MH i2c: E2 08 00 09 9F 80 13 00 00 00 00 00 00 24 [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 62 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 62 00 09 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [08:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:24]wFMCommunicate OK [08:32:24]SAM_PROTO_GetFieldsCounters done [08:32:24]requested_item shift.num is exist - process it [08:32:24]requested_item shift.opened is exist - process it [08:32:24]req_shift_opened [08:32:24]FM_GetShiftState [08:32:24]SAM_PROTO_GetShiftState [08:32:24]wFMCommunicate request_size=4 [08:32:24]MH_SAM_APDU [08:32:24]CAPDU: 80 13 01 00 [08:32:24]Write to MH i2c: E2 08 00 0A 9F 80 13 01 00 00 00 00 00 26 [08:32:24]Write i2c OK [08:32:24]MH_I2C_Read... [08:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:24]Read from MH i2c: E2 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 0E 00 [08:32:24]MH_I2C_Read... [08:32:24]Read from MH i2c: E2 0E 00 0A 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 79 [08:32:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:32:24]wFMCommunicate OK [08:32:24]SAM_PROTO_GetShiftState done [08:32:24]FM_GetShiftState done [08:32:24]req_shift_opened done [08:32:24]requested_item shift.open_date is exist - process it [08:32:24]req_shift_open_date [08:32:24]req_shift_open_date done [08:32:24]produce_requested_data done [08:32:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166289,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:32:24]process_action_free close_receipt [08:32:24]json_value_free [08:32:24]json_value_free done [08:32:24]process_json_proto returns [08:32:24]Send response to host [08:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166289,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:32:24]free response buf [08:32:24]execute_script done [08:32:24]execute_script returns [08:32:24]free content buf [08:32:24]Sock 5.Close socket [08:32:24]Sock 5.Thread stoped [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:45]accept exits with 6 [08:32:45]New connection [08:32:45]New thread 3066920292 created [08:32:45]Thread 3066776932 joined [08:32:45]Waiting for new connection... [08:32:45] Sock 6.Parse request [08:32:45]Sock 6.Check first char [08:32:45]Sock 6.First char is OK [08:32:45]request: POST /json_proto HTTP/1.0 [08:32:45]Method: POST [08:32:45]URL: /json_proto [08:32:45]Method is POST - this is cgi request [08:32:45]url: /json_proto [08:32:45]query_string will be loaded in cgi processing [08:32:45]execute_cgi json_proto POST (null) [08:32:45]execute_cgi path=json_proto method=POST [08:32:45]POST find Content-Length [08:32:45]Host: 172.17.53.195:8080 [08:32:45]Content-Length: 766 [08:32:45]Content-Type: application/json [08:32:45] [08:32:45]POST finish read [08:32:45]Found Content-Length = 766 [08:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:45]execute_script... [08:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:45]POST & json_proto [08:32:45]process_json_proto [08:32:45]json parsed OK: [08:32:45]protocol is kg_v1.0 [08:32:45]action value=close_receipt [08:32:45]process_action close_receipt [08:32:45]cmd_close_receipt [08:32:45]MH_GetDate [08:32:45]Write to MH i2c: F0 00 00 0B 9F 99 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 09 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: F0 09 00 0B 9F 00 44 63 17 67 21 48 4A 65 DF [08:32:45]GetLastDocTimeStamp 1729585963 [08:32:45]current date 1729585988 [08:32:45]FM_GetShiftState [08:32:45]SAM_PROTO_GetShiftState [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 01 00 [08:32:45]Write to MH i2c: E2 08 00 0C 9F 80 13 01 00 00 00 00 00 28 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 0C 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7B [08:32:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetShiftState done [08:32:45]FM_GetShiftState done [08:32:45]opened in 1729557463 [08:32:45]opened+sec_in_day 1729643863 [08:32:45]quantity*price = 100050 [08:32:45]sum+1 = 100052 [08:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 45 22.10.2024 08:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166290 ФПД: 205524991938331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166290&fm=205524991938331&tin=02508201610067®Number=0000000000091764&sum=100051 [08:32:46]StoreToDocumentArchive [08:32:46]shift 536 fd 166290 [08:32:46]save to /storage/0536/doc_00166290 [08:32:46]save last doc name /storage/0536/doc_00166290 to /storage/kkm_last_doc_name [08:32:46]save OK [08:32:46]Clear old archive folders... [08:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:32:46]tlvbuf is 014A6DF0 [08:32:46]SAM_PROTO_ClearQueue [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 09 00 00 [08:32:46]Write to MH i2c: E2 08 00 19 9F 80 09 00 00 00 00 00 00 2A [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 19 9F 00 90 00 2C [08:32:47]RAPDU: 90 00 [08:32:47]wFMCommunicate OK [08:32:47]SAM_PROTO_ClearQueue done [08:32:47]KKMCreateOFDPacket [08:32:47]OFDProtocolAddRootSTLVToBuf [08:32:47]FM_MakeSignedData [08:32:47]FM_MakeSignedData [08:32:47]SAM_PROTO_SignData [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 0D 01 02 [08:32:47]Write to MH i2c: E2 08 00 1A 9F 80 0D 01 02 00 00 00 00 32 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 1A 9F 00 90 00 2D [08:32:47]RAPDU: 90 00 [08:32:47]wFMCommunicate OK [08:32:47]wFMCommunicate request_size=255 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 44 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 89 02 00 35 04 06 00 BA EC 84 23 [08:32:47]Write to MH i2c: E2 02 01 1B 9F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 44 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 89 02 00 35 04 06 00 BA EC 84 23 00 00 FA [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 1B 9F 00 90 00 2E [08:32:47]RAPDU: 90 00 [08:32:47]wFMCommunicate OK [08:32:47]wFMCommunicate request_size=7 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 0D 02 02 02 0F 1B [08:32:47]Write to MH i2c: E2 0A 00 1C 9F 80 0D 02 02 02 00 0F 1B 00 00 63 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 03 00 1C 9F 00 90 00 2F [08:32:47]RAPDU: 90 00 [08:32:47]wFMCommunicate OK [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 0D 03 02 [08:32:47]Write to MH i2c: E2 08 00 1D 9F 80 0D 03 02 00 00 00 00 37 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 0B 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 0B 00 1D 9F 00 D4 15 18 0F 5E 0D 33 D6 90 00 BC [08:32:47]RAPDU: D4 15 18 0F 5E 0D 33 D6 90 00 [08:32:47]wFMCommunicate OK [08:32:47]SAM_PROTO_SignData done [08:32:47]FM_MakeSignedData done [08:32:47]CreateOFDProtocolMessage [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 11 00 00 [08:32:47]Write to MH i2c: E2 08 00 1E 9F 80 11 00 00 00 00 00 00 37 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 17 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 17 00 1E 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [08:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:47]wFMCommunicate OK [08:32:47]CreateOFDProtocolMessage done [08:32:47]OFDSenderStorePacket 166290 [08:32:47]StoreOFDPacket docnum=166290 [08:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0C 8D 04 01 D8 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 44 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 89 02 00 35 04 06 00 BA EC 84 23 0F 1B D4 15 18 0F 5E 0D 33 D6 [08:32:47]CheckFolder [08:32:47]dirname=/storage/ofd_packets [08:32:47]CheckFolder done [08:32:47]ProducePacketName [08:32:47]name=ofd_packets/00166290 [08:32:47]NVStorageSaveData ofd_packets/00166290 [08:32:47]File name is /storage/ofd_packets/00166290 [08:32:47]Write 298 bytes [08:32:47]NVStorageSaveData done [08:32:47]OFDSenderStorePacket done [08:32:47]KKMCreateOFDPacket done [08:32:47]NVStorageSaveData kkm_last_timestamp [08:32:47]File name is /storage/kkm_last_timestamp [08:32:47]Write 4 bytes [08:32:47]NVStorageSaveData done [08:32:47]ExternCall_PrintAddStr [08:32:47]wPrintStart [08:32:47]Write to MH i2c: 01 00 00 1F 9F BE [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 07 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 07 00 1F 9F 00 00 00 00 00 FF 0F D3 [08:32:47]RasterBufferAndPrint [08:32:47]line Счет N : (1)220865 [08:32:47]line ИНН: 02508201610067 [08:32:47]line Контрольно-Кассовый Чек [08:32:47]line ПРОДАЖА [08:32:47]line ТРК (МРК, ГНК) : 21 [08:32:47]line Товар: 2710194210 [08:32:47]line ДТ-К-5 [08:32:47]line 13.130 * 76.20 [08:32:47]line = 1000.51 [08:32:47]line НДС 12% НСП 1% [08:32:47]line > о реализуемом товаре [08:32:47]line ИТОГО: 1000.51 [08:32:47]line НСП 1% : 8.85 [08:32:47]line НДС 12% : 106.25 [08:32:47]line Наличными: 0.00 [08:32:47]line Безнал.: 1000.51 [08:32:47]line Место: АЗС № 161 "Партнер Нефть" [08:32:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:32:47]line СНО: Общий режим [08:32:47]line Чек 45 22.10.2024 08:33 [08:32:47]line Смена: 536 ФФД: 1.0 [08:32:47]line ЗНМ: 0300000104 [08:32:47]line РНМ: 0000000000091764 [08:32:47]line Версия ККМ: 001 [08:32:47]line Платежная система: Mbank [08:32:47]line ФМ: 0000000000871759 [08:32:47]line ФД: 166290 [08:32:47]line ФПД: 205524991938331 [08:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166290&fm=205524991938331&tin=02508201610067®Number=0000000000091764&sum=100051 [08:32:47]OFD Sender: Processing packet 166290 [packets to send 48, broken 47] [08:32:47]ProducePacketName [08:32:47]name=ofd_packets/00166290 [08:32:47]OFD Sender: To server: pG, [08:32:47]CommunicateWithHost lk.salyk.kg:30040 [08:32:47]ConnectInit lk.salyk.kg [08:32:47]written 0, free lines is 4095 [08:32:47]Connected sock=7 [08:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0C 8D 04 01 D8 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 44 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 89 02 00 35 04 06 00 BA EC 84 23 0F 1B D4 15 18 0F 5E 0D 33 D6 [08:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7F 92 47 00 CD 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 89 02 00 F4 03 04 00 B0 09 17 67 B6 04 01 00 00 74 CE 66 FC 24 2A 92 5C [08:32:48]CommunicateWithHost err = 0 [08:32:48]CheckOFDResponse [08:32:48]1017 (14) - 77093643461234 [08:32:48]1041 (16) - 0000000000871759 [08:32:48]1040 (4) - 166290 [08:32:48]1012 (4) - 22.10.2024 02:10 [08:32:48]1206 (1) - 0 [08:32:48]OFD Sender: Remove packet 166290 [08:32:48]ProducePacketName [08:32:48]name=ofd_packets/00166290 [08:32:48]NVStorageDeleteData [08:32:48]Write to MH i2c: 01 00 00 48 9F E7 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: 01 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: 01 07 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: 01 07 00 48 9F 00 00 00 00 00 E0 0C DA [08:32:48]RasterBufferAndPrint [08:32:48]line [08:32:48]line [08:32:48]line [08:32:48]line [08:32:48]line [08:32:48]written 0, free lines is 3302 [08:32:48]MH_Cut [08:32:48]Write to MH i2c: D1 01 00 4F 9F 01 C0 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: D1 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: D1 01 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: D1 01 00 4F 9F 00 BF [08:32:48]Write to MH i2c: 01 00 00 50 9F EF [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]OFD Sender: No OFD packet to send [08:32:49]*** Cut start [08:32:49]*** Partial cut [08:32:49]*** CUTSNS_PIN = 1 [08:32:49]*** CUTSNS_PIN = 0 [08:32:49]*** Brake cut motor [08:32:49]Read from MH i2c: 01 [08:32:49]MH_I2C_Read... [08:32:49]*** Stop cut motor [08:32:49]*** Cut end [08:32:49]Read from MH i2c: 01 07 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: 01 07 00 50 9F 00 00 00 00 00 FF 0F 04 [08:32:49]process_action close_receipt done [08:32:49]requested_data is exist [08:32:49]produce_requested_data [08:32:49]requested_item fm.sn is exist - process it [08:32:49]wFMCommunicate request_size=4 [08:32:49]MH_SAM_APDU [08:32:49]CAPDU: 80 11 00 00 [08:32:49]Write to MH i2c: E2 08 00 51 9F 80 11 00 00 00 00 00 00 6A [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 17 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 17 00 51 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [08:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:49]wFMCommunicate OK [08:32:49]requested_item fd.num is exist - process it [08:32:49]SAM_PROTO_GetFieldsCounters [08:32:49]wFMCommunicate request_size=4 [08:32:49]MH_SAM_APDU [08:32:49]CAPDU: 80 13 00 00 [08:32:49]Write to MH i2c: E2 08 00 52 9F 80 13 00 00 00 00 00 00 6D [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 62 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 62 00 52 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [08:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:49]wFMCommunicate OK [08:32:49]SAM_PROTO_GetFieldsCounters done [08:32:49]requested_item shift.num is exist - process it [08:32:49]requested_item shift.opened is exist - process it [08:32:49]req_shift_opened [08:32:49]FM_GetShiftState [08:32:49]SAM_PROTO_GetShiftState [08:32:49]wFMCommunicate request_size=4 [08:32:49]MH_SAM_APDU [08:32:49]CAPDU: 80 13 01 00 [08:32:49]Write to MH i2c: E2 08 00 53 9F 80 13 01 00 00 00 00 00 6F [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 53 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C2 [08:32:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:32:49]wFMCommunicate OK [08:32:49]SAM_PROTO_GetShiftState done [08:32:49]FM_GetShiftState done [08:32:49]req_shift_opened done [08:32:49]requested_item shift.open_date is exist - process it [08:32:49]req_shift_open_date [08:32:49]req_shift_open_date done [08:32:49]produce_requested_data done [08:32:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166290,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:32:49]process_action_free close_receipt [08:32:49]json_value_free [08:32:49]json_value_free done [08:32:49]process_json_proto returns [08:32:49]Send response to host [08:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166290,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:32:49]free response buf [08:32:49]execute_script done [08:32:49]execute_script returns [08:32:49]free content buf [08:32:49]Sock 6.Close socket [08:32:49]Sock 6.Thread stoped [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:28]accept exits with 5 [08:33:28]New connection [08:33:28]New thread 3066776932 created [08:33:28]Thread 3066920292 joined [08:33:28]Waiting for new connection... [08:33:28] Sock 5.Parse request [08:33:28]Sock 5.Check first char [08:33:28]Sock 5.First char is OK [08:33:28]request: POST /json_proto HTTP/1.0 [08:33:28]Method: POST [08:33:28]URL: /json_proto [08:33:28]Method is POST - this is cgi request [08:33:28]url: /json_proto [08:33:28]query_string will be loaded in cgi processing [08:33:28]execute_cgi json_proto POST (null) [08:33:28]execute_cgi path=json_proto method=POST [08:33:28]POST find Content-Length [08:33:28]Host: 172.17.53.195:8080 [08:33:28]Content-Length: 679 [08:33:28]Content-Type: application/json [08:33:28] [08:33:28]POST finish read [08:33:28]Found Content-Length = 679 [08:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:28]execute_script... [08:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:28]POST & json_proto [08:33:28]process_json_proto [08:33:28]json parsed OK: [08:33:28]protocol is kg_v1.0 [08:33:28]action value=close_receipt [08:33:28]process_action close_receipt [08:33:28]cmd_close_receipt [08:33:28]MH_GetDate [08:33:28]Write to MH i2c: F0 00 00 54 9F E2 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: F0 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: F0 09 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: F0 09 00 54 9F 00 6F 63 17 67 21 48 4A 65 53 [08:33:28]GetLastDocTimeStamp 1729585988 [08:33:28]current date 1729586031 [08:33:28]FM_GetShiftState [08:33:28]SAM_PROTO_GetShiftState [08:33:28]wFMCommunicate request_size=4 [08:33:28]MH_SAM_APDU [08:33:28]CAPDU: 80 13 01 00 [08:33:28]Write to MH i2c: E2 08 00 55 9F 80 13 01 00 00 00 00 00 71 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:28]Read from MH i2c: E2 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 0E 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 0E 00 55 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C4 [08:33:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:33:28]wFMCommunicate OK [08:33:28]SAM_PROTO_GetShiftState done [08:33:28]FM_GetShiftState done [08:33:28]opened in 1729557463 [08:33:28]opened+sec_in_day 1729643863 [08:33:28]quantity*price = 100050 [08:33:28]sum+1 = 100052 [08:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 46 22.10.2024 08:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166291 ФПД: 213162399789001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166291&fm=213162399789001&tin=02508201610067®Number=0000000000091764&sum=100000 [08:33:30]StoreToDocumentArchive [08:33:30]shift 536 fd 166291 [08:33:30]save to /storage/0536/doc_00166291 [08:33:30]save last doc name /storage/0536/doc_00166291 to /storage/kkm_last_doc_name [08:33:30]save OK [08:33:30]Clear old archive folders... [08:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:33:30]tlvbuf is 016E4770 [08:33:30]SAM_PROTO_ClearQueue [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 09 00 00 [08:33:30]Write to MH i2c: E2 08 00 62 9F 80 09 00 00 00 00 00 00 73 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 62 9F 00 90 00 75 [08:33:30]RAPDU: 90 00 [08:33:30]wFMCommunicate OK [08:33:30]SAM_PROTO_ClearQueue done [08:33:30]KKMCreateOFDPacket [08:33:30]OFDProtocolAddRootSTLVToBuf [08:33:30]FM_MakeSignedData [08:33:30]FM_MakeSignedData [08:33:30]SAM_PROTO_SignData [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 0D 01 02 [08:33:30]Write to MH i2c: E2 08 00 63 9F 80 0D 01 02 00 00 00 00 7B [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 63 9F 00 90 00 76 [08:33:30]RAPDU: 90 00 [08:33:30]wFMCommunicate OK [08:33:30]wFMCommunicate request_size=255 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 6F 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 89 02 00 35 04 06 00 C1 DE BD 1E [08:33:30]Write to MH i2c: E2 02 01 64 9F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 6F 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 89 02 00 35 04 06 00 C1 DE BD 1E 00 00 37 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 64 9F 00 90 00 77 [08:33:30]RAPDU: 90 00 [08:33:30]wFMCommunicate OK [08:33:30]wFMCommunicate request_size=7 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 0D 02 02 02 6F C9 [08:33:30]Write to MH i2c: E2 0A 00 65 9F 80 0D 02 02 02 00 6F C9 00 00 BA [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 03 00 65 9F 00 90 00 78 [08:33:30]RAPDU: 90 00 [08:33:30]wFMCommunicate OK [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 0D 03 02 [08:33:30]Write to MH i2c: E2 08 00 66 9F 80 0D 03 02 00 00 00 00 80 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 0B 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 0B 00 66 9F 00 DB 16 18 76 95 51 76 E4 90 00 40 [08:33:30]RAPDU: DB 16 18 76 95 51 76 E4 90 00 [08:33:30]wFMCommunicate OK [08:33:30]SAM_PROTO_SignData done [08:33:30]FM_MakeSignedData done [08:33:30]CreateOFDProtocolMessage [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 11 00 00 [08:33:30]Write to MH i2c: E2 08 00 67 9F 80 11 00 00 00 00 00 00 80 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 17 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 17 00 67 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [08:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:33:30]wFMCommunicate OK [08:33:30]CreateOFDProtocolMessage done [08:33:30]OFDSenderStorePacket 166291 [08:33:30]StoreOFDPacket docnum=166291 [08:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 57 04 01 7B 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 6F 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 89 02 00 35 04 06 00 C1 DE BD 1E 6F C9 DB 16 18 76 95 51 76 E4 [08:33:30]CheckFolder [08:33:30]dirname=/storage/ofd_packets [08:33:30]CheckFolder done [08:33:30]ProducePacketName [08:33:30]name=ofd_packets/00166291 [08:33:30]NVStorageSaveData ofd_packets/00166291 [08:33:30]File name is /storage/ofd_packets/00166291 [08:33:30]Write 298 bytes [08:33:30]NVStorageSaveData done [08:33:30]OFDSenderStorePacket done [08:33:30]KKMCreateOFDPacket done [08:33:30]NVStorageSaveData kkm_last_timestamp [08:33:30]File name is /storage/kkm_last_timestamp [08:33:30]Write 4 bytes [08:33:30]NVStorageSaveData done [08:33:30]ExternCall_PrintAddStr [08:33:30]wPrintStart [08:33:30]Write to MH i2c: 01 00 00 68 9F 07 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: 01 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: 01 07 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: 01 07 00 68 9F 00 00 00 00 00 FF 0F 1C [08:33:30]RasterBufferAndPrint [08:33:30]line Счет N : (1)220866 [08:33:30]line ИНН: 02508201610067 [08:33:30]line Контрольно-Кассовый Чек [08:33:30]line ПРОДАЖА [08:33:30]line ТРК (МРК, ГНК) : 31 [08:33:30]line Товар: 2710194210 [08:33:30]line ДТ-К-5 [08:33:30]line 13.130 * 76.20 [08:33:30]line = 1000.51 [08:33:30]line НДС 12% НСП 1% [08:33:30]line > о реализуемом товаре [08:33:30]line ОКРУГЛЕНИЕ: -0.51 [08:33:30]line ИТОГО: 1000.00 [08:33:30]line Внесено: 1000.00 [08:33:30]line СДАЧА: 0.00 [08:33:30]line НСП 1% : 8.85 [08:33:30]line НДС 12% : 106.25 [08:33:30]line Наличными: 1000.00 [08:33:30]line Безнал.: 0.00 [08:33:30]line Место: АЗС № 161 "Партнер Нефть" [08:33:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:33:30]line СНО: Общий режим [08:33:30]line Чек 46 22.10.2024 08:33 [08:33:30]line Смена: 536 ФФД: 1.0 [08:33:30]line ЗНМ: 0300000104 [08:33:30]line РНМ: 0000000000091764 [08:33:30]line Версия ККМ: 001 [08:33:30]line ФМ: 0000000000871759 [08:33:30]line ФД: 166291 [08:33:30]line ФПД: 213162399789001 [08:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166291&fm=213162399789001&tin=02508201610067®Number=0000000000091764&sum=100000 [08:33:30]written 0, free lines is 4095 [08:33:30]OFD Sender: Processing packet 166291 [packets to send 48, broken 47] [08:33:30]ProducePacketName [08:33:30]name=ofd_packets/00166291 [08:33:30]OFD Sender: To server: pG, [08:33:30]CommunicateWithHost lk.salyk.kg:30040 [08:33:30]ConnectInit lk.salyk.kg [08:33:30]Connected sock=7 [08:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 57 04 01 7B 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 6F 63 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 89 02 00 35 04 06 00 C1 DE BD 1E 6F C9 DB 16 18 76 95 51 76 E4 [08:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 62 47 00 18 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 89 02 00 F4 03 04 00 DB 09 17 67 B6 04 01 00 00 33 92 D9 41 AD FA C7 AC [08:33:31]CommunicateWithHost err = 0 [08:33:31]CheckOFDResponse [08:33:31]1017 (14) - 77093643461234 [08:33:31]1041 (16) - 0000000000871759 [08:33:31]1040 (4) - 166291 [08:33:31]1012 (4) - 22.10.2024 02:11 [08:33:31]1206 (1) - 0 [08:33:31]OFD Sender: Remove packet 166291 [08:33:31]ProducePacketName [08:33:31]name=ofd_packets/00166291 [08:33:31]NVStorageDeleteData [08:33:31]Write to MH i2c: 01 00 00 93 9F 32 [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 07 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: 01 07 00 93 9F 00 00 00 00 00 BA 0C FF [08:33:31]RasterBufferAndPrint [08:33:31]line [08:33:31]line [08:33:31]line [08:33:31]line [08:33:31]line [08:33:31]written 0, free lines is 3265 [08:33:31]MH_Cut [08:33:31]Write to MH i2c: D1 01 00 9A 9F 01 0B [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: D1 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: D1 01 00 [08:33:31]MH_I2C_Read... [08:33:31]Read from MH i2c: D1 01 00 9A 9F 00 0A [08:33:31]Write to MH i2c: 01 00 00 9B 9F 3A [08:33:31]Write i2c OK [08:33:31]MH_I2C_Read... [08:33:31]OFD Sender: No OFD packet to send [08:33:32]*** Cut start [08:33:32]*** Partial cut [08:33:32]*** CUTSNS_PIN = 1 [08:33:32]*** CUTSNS_PIN = 0 [08:33:32]*** Brake cut motor [08:33:32]Read from MH i2c: 01 [08:33:32]MH_I2C_Read... [08:33:32]*** Stop cut motor [08:33:32]*** Cut end [08:33:32]Read from MH i2c: 01 07 00 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: 01 07 00 9B 9F 00 00 00 00 00 FF 0F 4F [08:33:32]process_action close_receipt done [08:33:32]requested_data is exist [08:33:32]produce_requested_data [08:33:32]requested_item fm.sn is exist - process it [08:33:32]wFMCommunicate request_size=4 [08:33:32]MH_SAM_APDU [08:33:32]CAPDU: 80 11 00 00 [08:33:32]Write to MH i2c: E2 08 00 9C 9F 80 11 00 00 00 00 00 00 B5 [08:33:32]Write i2c OK [08:33:32]MH_I2C_Read... [08:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:32]Read from MH i2c: E2 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: E2 17 00 [08:33:32]MH_I2C_Read... [08:33:32]Read from MH i2c: E2 17 00 9C 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [08:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:33:32]wFMCommunicate OK [08:33:32]requested_item fd.num is exist - process it [08:33:32]SAM_PROTO_GetFieldsCounters [08:33:32]wFMCommunicate request_size=4 [08:33:32]MH_SAM_APDU [08:33:32]CAPDU: 80 13 00 00 [08:33:32]Write to MH i2c: E2 08 00 9D 9F 80 13 00 00 00 00 00 00 B8 [08:33:32]Write i2c OK [08:33:32]MH_I2C_Read... [08:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:33]Read from MH i2c: E2 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 62 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 62 00 9D 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [08:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:33]wFMCommunicate OK [08:33:33]SAM_PROTO_GetFieldsCounters done [08:33:33]requested_item shift.num is exist - process it [08:33:33]requested_item shift.opened is exist - process it [08:33:33]req_shift_opened [08:33:33]FM_GetShiftState [08:33:33]SAM_PROTO_GetShiftState [08:33:33]wFMCommunicate request_size=4 [08:33:33]MH_SAM_APDU [08:33:33]CAPDU: 80 13 01 00 [08:33:33]Write to MH i2c: E2 08 00 9E 9F 80 13 01 00 00 00 00 00 BA [08:33:33]Write i2c OK [08:33:33]MH_I2C_Read... [08:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:33]Read from MH i2c: E2 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 0E 00 [08:33:33]MH_I2C_Read... [08:33:33]Read from MH i2c: E2 0E 00 9E 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0D [08:33:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:33:33]wFMCommunicate OK [08:33:33]SAM_PROTO_GetShiftState done [08:33:33]FM_GetShiftState done [08:33:33]req_shift_opened done [08:33:33]requested_item shift.open_date is exist - process it [08:33:33]req_shift_open_date [08:33:33]req_shift_open_date done [08:33:33]produce_requested_data done [08:33:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166291,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:33:33]process_action_free close_receipt [08:33:33]json_value_free [08:33:33]json_value_free done [08:33:33]process_json_proto returns [08:33:33]Send response to host [08:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166291,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:33:33]free response buf [08:33:33]execute_script done [08:33:33]execute_script returns [08:33:33]free content buf [08:33:33]Sock 5.Close socket [08:33:33]Sock 5.Thread stoped [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:04]recv_with_timeout no data received [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:19]recv_with_timeout no data received [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:39]recv_with_timeout no data received [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:54]accept exits with 6 [08:36:54]New connection [08:36:54]New thread 3066920292 created [08:36:54]Thread 3066776932 joined [08:36:54]Waiting for new connection... [08:36:54] Sock 6.Parse request [08:36:54]Sock 6.Check first char [08:36:54]Sock 6.First char is OK [08:36:54]request: POST /json_proto HTTP/1.0 [08:36:54]Method: POST [08:36:54]URL: /json_proto [08:36:54]Method is POST - this is cgi request [08:36:54]url: /json_proto [08:36:54]query_string will be loaded in cgi processing [08:36:54]execute_cgi json_proto POST (null) [08:36:54]execute_cgi path=json_proto method=POST [08:36:54]POST find Content-Length [08:36:54]Host: 172.17.53.195:8080 [08:36:54]Content-Length: 766 [08:36:54]Content-Type: application/json [08:36:54] [08:36:54]POST finish read [08:36:54]Found Content-Length = 766 [08:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:54]execute_script... [08:36:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:54]POST & json_proto [08:36:54]process_json_proto [08:36:54]json parsed OK: [08:36:54]protocol is kg_v1.0 [08:36:54]action value=close_receipt [08:36:54]process_action close_receipt [08:36:54]cmd_close_receipt [08:36:54]MH_GetDate [08:36:54]Write to MH i2c: F0 00 00 9F 9F 2D [08:36:54]Write i2c OK [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: F0 [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: F0 09 00 [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: F0 09 00 9F 9F 00 3D 64 17 67 21 48 4A 65 6D [08:36:54]GetLastDocTimeStamp 1729586031 [08:36:54]current date 1729586237 [08:36:54]FM_GetShiftState [08:36:54]SAM_PROTO_GetShiftState [08:36:54]wFMCommunicate request_size=4 [08:36:54]MH_SAM_APDU [08:36:54]CAPDU: 80 13 01 00 [08:36:54]Write to MH i2c: E2 08 00 A0 9F 80 13 01 00 00 00 00 00 BC [08:36:54]Write i2c OK [08:36:54]MH_I2C_Read... [08:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:54]Read from MH i2c: E2 [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: E2 0E 00 [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: E2 0E 00 A0 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0F [08:36:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:36:54]wFMCommunicate OK [08:36:54]SAM_PROTO_GetShiftState done [08:36:54]FM_GetShiftState done [08:36:54]opened in 1729557463 [08:36:54]opened+sec_in_day 1729643863 [08:36:54]quantity*price = 50041 [08:36:54]sum+1 = 50042 [08:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 47 22.10.2024 08:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166292 ФПД: 246289411211997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166292&fm=246289411211997&tin=02508201610067®Number=0000000000091764&sum=50041 [08:36:55]StoreToDocumentArchive [08:36:55]shift 536 fd 166292 [08:36:55]save to /storage/0536/doc_00166292 [08:36:55]save last doc name /storage/0536/doc_00166292 to /storage/kkm_last_doc_name [08:36:55]save OK [08:36:55]Clear old archive folders... [08:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:55]tlvbuf is 014FF0D0 [08:36:55]SAM_PROTO_ClearQueue [08:36:55]wFMCommunicate request_size=4 [08:36:55]MH_SAM_APDU [08:36:55]CAPDU: 80 09 00 00 [08:36:55]Write to MH i2c: E2 08 00 AD 9F 80 09 00 00 00 00 00 00 BE [08:36:55]Write i2c OK [08:36:55]MH_I2C_Read... [08:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:55]Read from MH i2c: E2 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 03 00 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 03 00 AD 9F 00 90 00 C0 [08:36:55]RAPDU: 90 00 [08:36:55]wFMCommunicate OK [08:36:55]SAM_PROTO_ClearQueue done [08:36:55]KKMCreateOFDPacket [08:36:55]OFDProtocolAddRootSTLVToBuf [08:36:55]FM_MakeSignedData [08:36:55]FM_MakeSignedData [08:36:55]SAM_PROTO_SignData [08:36:55]wFMCommunicate request_size=4 [08:36:55]MH_SAM_APDU [08:36:55]CAPDU: 80 0D 01 02 [08:36:55]Write to MH i2c: E2 08 00 AE 9F 80 0D 01 02 00 00 00 00 C6 [08:36:55]Write i2c OK [08:36:55]MH_I2C_Read... [08:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:55]Read from MH i2c: E2 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 03 00 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 03 00 AE 9F 00 90 00 C1 [08:36:55]RAPDU: 90 00 [08:36:55]wFMCommunicate OK [08:36:55]wFMCommunicate request_size=255 [08:36:55]MH_SAM_APDU [08:36:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 64 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 89 02 00 35 04 06 00 DF [08:36:55]Write to MH i2c: E2 02 01 AF 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 64 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 89 02 00 35 04 06 00 DF 00 00 14 [08:36:55]Write i2c OK [08:36:55]MH_I2C_Read... [08:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:56]Read from MH i2c: E2 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 03 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 03 00 AF 9F 00 90 00 C2 [08:36:56]RAPDU: 90 00 [08:36:56]wFMCommunicate OK [08:36:56]wFMCommunicate request_size=10 [08:36:56]MH_SAM_APDU [08:36:56]CAPDU: 80 0D 02 02 05 FF B8 DE 02 DD [08:36:56]Write to MH i2c: E2 0D 00 B0 9F 80 0D 02 02 05 00 FF B8 DE 02 DD 00 00 47 [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:56]Read from MH i2c: E2 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 03 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 03 00 B0 9F 00 90 00 C3 [08:36:56]RAPDU: 90 00 [08:36:56]wFMCommunicate OK [08:36:56]wFMCommunicate request_size=4 [08:36:56]MH_SAM_APDU [08:36:56]CAPDU: 80 0D 03 02 [08:36:56]Write to MH i2c: E2 08 00 B1 9F 80 0D 03 02 00 00 00 00 CB [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:56]Read from MH i2c: E2 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 0B 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 0B 00 B1 9F 00 75 91 77 CB 41 1F DA 9C 90 00 EA [08:36:56]RAPDU: 75 91 77 CB 41 1F DA 9C 90 00 [08:36:56]wFMCommunicate OK [08:36:56]SAM_PROTO_SignData done [08:36:56]FM_MakeSignedData done [08:36:56]CreateOFDProtocolMessage [08:36:56]wFMCommunicate request_size=4 [08:36:56]MH_SAM_APDU [08:36:56]CAPDU: 80 11 00 00 [08:36:56]Write to MH i2c: E2 08 00 B2 9F 80 11 00 00 00 00 00 00 CB [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:56]Read from MH i2c: E2 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 17 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: E2 17 00 B2 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [08:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:36:56]wFMCommunicate OK [08:36:56]CreateOFDProtocolMessage done [08:36:56]OFDSenderStorePacket 166292 [08:36:56]StoreOFDPacket docnum=166292 [08:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC 28 07 01 C7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 64 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 89 02 00 35 04 06 00 DF FF B8 DE 02 DD 75 91 77 CB 41 1F DA 9C [08:36:56]CheckFolder [08:36:56]dirname=/storage/ofd_packets [08:36:56]CheckFolder done [08:36:56]ProducePacketName [08:36:56]name=ofd_packets/00166292 [08:36:56]NVStorageSaveData ofd_packets/00166292 [08:36:56]File name is /storage/ofd_packets/00166292 [08:36:56]Write 301 bytes [08:36:56]NVStorageSaveData done [08:36:56]OFDSenderStorePacket done [08:36:56]KKMCreateOFDPacket done [08:36:56]NVStorageSaveData kkm_last_timestamp [08:36:56]File name is /storage/kkm_last_timestamp [08:36:56]Write 4 bytes [08:36:56]NVStorageSaveData done [08:36:56]ExternCall_PrintAddStr [08:36:56]wPrintStart [08:36:56]Write to MH i2c: 01 00 00 B3 9F 52 [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 07 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 07 00 B3 9F 00 00 00 00 00 FF 0F 67 [08:36:56]RasterBufferAndPrint [08:36:56]line Счет N : (1)220867 [08:36:56]line ИНН: 02508201610067 [08:36:56]line Контрольно-Кассовый Чек [08:36:56]line ПРОДАЖА [08:36:56]line ТРК (МРК, ГНК) : 13 [08:36:56]line Товар: 2710124130 [08:36:56]line Аи-92-К-5 [08:36:56]line 7.480 * 66.90 [08:36:56]line = 500.41 [08:36:56]line НДС 12% НСП 1% [08:36:56]line > о реализуемом товаре [08:36:56]line ИТОГО: 500.41 [08:36:56]line НСП 1% : 4.43 [08:36:56]line НДС 12% : 53.14 [08:36:56]line Наличными: 0.00 [08:36:56]line Безнал.: 500.41 [08:36:56]line Место: АЗС № 161 "Партнер Нефть" [08:36:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:36:56]line СНО: Общий режим [08:36:56]line Чек 47 22.10.2024 08:37 [08:36:56]line Смена: 536 ФФД: 1.0 [08:36:56]line ЗНМ: 0300000104 [08:36:56]line РНМ: 0000000000091764 [08:36:56]line Версия ККМ: 001 [08:36:56]line Платежная система: Mbank [08:36:56]line ФМ: 0000000000871759 [08:36:56]line ФД: 166292 [08:36:56]line ФПД: 246289411211997 [08:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166292&fm=246289411211997&tin=02508201610067®Number=0000000000091764&sum=50041 [08:36:56]written 0, free lines is 4095 [08:36:56]OFD Sender: Processing packet 166292 [packets to send 48, broken 47] [08:36:56]ProducePacketName [08:36:56]name=ofd_packets/00166292 [08:36:56]OFD Sender: To server: pG, [08:36:56]CommunicateWithHost lk.salyk.kg:30040 [08:36:56]ConnectInit lk.salyk.kg [08:36:56]Connected sock=7 [08:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC 28 07 01 C7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 64 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 89 02 00 35 04 06 00 DF FF B8 DE 02 DD 75 91 77 CB 41 1F DA 9C [08:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 B6 47 00 7A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 89 02 00 F4 03 04 00 A9 0A 17 67 B6 04 01 00 00 C7 E7 0D 5B 9F 49 3F E8 [08:36:56]CommunicateWithHost err = 0 [08:36:56]CheckOFDResponse [08:36:56]1017 (14) - 77093643461234 [08:36:56]1041 (16) - 0000000000871759 [08:36:56]1040 (4) - 166292 [08:36:56]1012 (4) - 22.10.2024 02:15 [08:36:56]1206 (1) - 0 [08:36:56]OFD Sender: Remove packet 166292 [08:36:56]ProducePacketName [08:36:56]name=ofd_packets/00166292 [08:36:56]NVStorageDeleteData [08:36:56]Write to MH i2c: 01 00 00 DC 9F 7B [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 07 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: 01 07 00 DC 9F 00 00 00 00 00 EE 0C 7C [08:36:56]RasterBufferAndPrint [08:36:56]line [08:36:56]line [08:36:56]line [08:36:56]line [08:36:56]line [08:36:56]written 0, free lines is 3319 [08:36:56]MH_Cut [08:36:56]Write to MH i2c: D1 01 00 E3 9F 01 54 [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: D1 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: D1 01 00 [08:36:56]MH_I2C_Read... [08:36:56]Read from MH i2c: D1 01 00 E3 9F 00 53 [08:36:56]Write to MH i2c: 01 00 00 E4 9F 83 [08:36:56]Write i2c OK [08:36:56]MH_I2C_Read... [08:36:57]OFD Sender: No OFD packet to send [08:36:57]*** Cut start [08:36:57]*** Partial cut [08:36:57]*** CUTSNS_PIN = 1 [08:36:57]*** CUTSNS_PIN = 0 [08:36:57]*** Brake cut motor [08:36:58]Read from MH i2c: 01 [08:36:58]MH_I2C_Read... [08:36:58]*** Stop cut motor [08:36:58]*** Cut end [08:36:58]Read from MH i2c: 01 07 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: 01 07 00 E4 9F 00 00 00 00 00 FF 0F 98 [08:36:58]process_action close_receipt done [08:36:58]requested_data is exist [08:36:58]produce_requested_data [08:36:58]requested_item fm.sn is exist - process it [08:36:58]wFMCommunicate request_size=4 [08:36:58]MH_SAM_APDU [08:36:58]CAPDU: 80 11 00 00 [08:36:58]Write to MH i2c: E2 08 00 E5 9F 80 11 00 00 00 00 00 00 FE [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:58]Read from MH i2c: E2 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 17 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 17 00 E5 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [08:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:36:58]wFMCommunicate OK [08:36:58]requested_item fd.num is exist - process it [08:36:58]SAM_PROTO_GetFieldsCounters [08:36:58]wFMCommunicate request_size=4 [08:36:58]MH_SAM_APDU [08:36:58]CAPDU: 80 13 00 00 [08:36:58]Write to MH i2c: E2 08 00 E6 9F 80 13 00 00 00 00 00 00 01 [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:58]Read from MH i2c: E2 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 62 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 62 00 E6 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [08:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:58]wFMCommunicate OK [08:36:58]SAM_PROTO_GetFieldsCounters done [08:36:58]requested_item shift.num is exist - process it [08:36:58]requested_item shift.opened is exist - process it [08:36:58]req_shift_opened [08:36:58]FM_GetShiftState [08:36:58]SAM_PROTO_GetShiftState [08:36:58]wFMCommunicate request_size=4 [08:36:58]MH_SAM_APDU [08:36:58]CAPDU: 80 13 01 00 [08:36:58]Write to MH i2c: E2 08 00 E7 9F 80 13 01 00 00 00 00 00 03 [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:58]Read from MH i2c: E2 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 E7 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 56 [08:36:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:36:58]wFMCommunicate OK [08:36:58]SAM_PROTO_GetShiftState done [08:36:58]FM_GetShiftState done [08:36:58]req_shift_opened done [08:36:58]requested_item shift.open_date is exist - process it [08:36:58]req_shift_open_date [08:36:58]req_shift_open_date done [08:36:58]produce_requested_data done [08:36:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166292,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:36:58]process_action_free close_receipt [08:36:58]json_value_free [08:36:58]json_value_free done [08:36:58]process_json_proto returns [08:36:58]Send response to host [08:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166292,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:36:58]free response buf [08:36:58]execute_script done [08:36:58]execute_script returns [08:36:58]free content buf [08:36:58]Sock 6.Close socket [08:36:58]Sock 6.Thread stoped [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:50]accept exits with 5 [08:50:50]New connection [08:50:50]New thread 3066776932 created [08:50:50]Thread 3066920292 joined [08:50:50]Waiting for new connection... [08:50:50] Sock 5.Parse request [08:50:50]Sock 5.Check first char [08:50:50]Sock 5.First char is OK [08:50:50]request: POST /json_proto HTTP/1.0 [08:50:50]Method: POST [08:50:50]URL: /json_proto [08:50:50]Method is POST - this is cgi request [08:50:50]url: /json_proto [08:50:50]query_string will be loaded in cgi processing [08:50:50]execute_cgi json_proto POST (null) [08:50:50]execute_cgi path=json_proto method=POST [08:50:50]POST find Content-Length [08:50:50]Host: 172.17.53.195:8080 [08:50:50]Content-Length: 677 [08:50:50]Content-Type: application/json [08:50:50] [08:50:50]POST finish read [08:50:50]Found Content-Length = 677 [08:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:50]execute_script... [08:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:50]POST & json_proto [08:50:50]process_json_proto [08:50:50]json parsed OK: [08:50:50]protocol is kg_v1.0 [08:50:50]action value=close_receipt [08:50:50]process_action close_receipt [08:50:50]cmd_close_receipt [08:50:50]MH_GetDate [08:50:50]Write to MH i2c: F0 00 00 E8 9F 76 [08:50:50]Write i2c OK [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: F0 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: F0 09 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: F0 09 00 E8 9F 00 81 67 17 67 21 48 4A 65 FD [08:50:50]GetLastDocTimeStamp 1729586237 [08:50:50]current date 1729587073 [08:50:50]FM_GetShiftState [08:50:50]SAM_PROTO_GetShiftState [08:50:50]wFMCommunicate request_size=4 [08:50:50]MH_SAM_APDU [08:50:50]CAPDU: 80 13 01 00 [08:50:50]Write to MH i2c: E2 08 00 E9 9F 80 13 01 00 00 00 00 00 05 [08:50:50]Write i2c OK [08:50:50]MH_I2C_Read... [08:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:50]Read from MH i2c: E2 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 0E 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 0E 00 E9 9F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 58 [08:50:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:50:50]wFMCommunicate OK [08:50:50]SAM_PROTO_GetShiftState done [08:50:50]FM_GetShiftState done [08:50:50]opened in 1729557463 [08:50:50]opened+sec_in_day 1729643863 [08:50:50]quantity*price = 50041 [08:50:50]sum+1 = 50042 [08:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 48 22.10.2024 08:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166293 ФПД: 142260181657003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166293&fm=142260181657003&tin=02508201610067®Number=0000000000091764&sum=50000 [08:50:51]StoreToDocumentArchive [08:50:51]shift 536 fd 166293 [08:50:51]save to /storage/0536/doc_00166293 [08:50:51]save last doc name /storage/0536/doc_00166293 to /storage/kkm_last_doc_name [08:50:51]save OK [08:50:51]Clear old archive folders... [08:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:51]tlvbuf is 01B4DAA0 [08:50:51]SAM_PROTO_ClearQueue [08:50:51]wFMCommunicate request_size=4 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 09 00 00 [08:50:51]Write to MH i2c: E2 08 00 F6 9F 80 09 00 00 00 00 00 00 07 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 F6 9F 00 90 00 09 [08:50:51]RAPDU: 90 00 [08:50:51]wFMCommunicate OK [08:50:51]SAM_PROTO_ClearQueue done [08:50:51]KKMCreateOFDPacket [08:50:51]OFDProtocolAddRootSTLVToBuf [08:50:51]FM_MakeSignedData [08:50:51]FM_MakeSignedData [08:50:51]SAM_PROTO_SignData [08:50:51]wFMCommunicate request_size=4 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 0D 01 02 [08:50:51]Write to MH i2c: E2 08 00 F7 9F 80 0D 01 02 00 00 00 00 0F [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 F7 9F 00 90 00 0A [08:50:51]RAPDU: 90 00 [08:50:51]wFMCommunicate OK [08:50:51]wFMCommunicate request_size=255 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 81 67 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 89 02 00 35 04 06 00 81 [08:50:51]Write to MH i2c: E2 02 01 F8 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 81 67 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 89 02 00 35 04 06 00 81 00 00 F6 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 F8 9F 00 90 00 0B [08:50:51]RAPDU: 90 00 [08:50:51]wFMCommunicate OK [08:50:51]wFMCommunicate request_size=10 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 0D 02 02 05 62 87 97 E5 AB [08:50:51]Write to MH i2c: E2 0D 00 F9 9F 80 0D 02 02 05 00 62 87 97 E5 AB 00 00 2C [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 03 00 F9 9F 00 90 00 0C [08:50:51]RAPDU: 90 00 [08:50:51]wFMCommunicate OK [08:50:51]wFMCommunicate request_size=4 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 0D 03 02 [08:50:51]Write to MH i2c: E2 08 00 FA 9F 80 0D 03 02 00 00 00 00 14 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 0B 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 0B 00 FA 9F 00 99 70 E1 36 EA 86 CD C4 90 00 36 [08:50:51]RAPDU: 99 70 E1 36 EA 86 CD C4 90 00 [08:50:51]wFMCommunicate OK [08:50:51]SAM_PROTO_SignData done [08:50:51]FM_MakeSignedData done [08:50:51]CreateOFDProtocolMessage [08:50:51]wFMCommunicate request_size=4 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 11 00 00 [08:50:51]Write to MH i2c: E2 08 00 FB 9F 80 11 00 00 00 00 00 00 14 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 17 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 17 00 FB 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [08:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:51]wFMCommunicate OK [08:50:51]CreateOFDProtocolMessage done [08:50:51]OFDSenderStorePacket 166293 [08:50:51]StoreOFDPacket docnum=166293 [08:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 93 07 01 00 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 81 67 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 89 02 00 35 04 06 00 81 62 87 97 E5 AB 99 70 E1 36 EA 86 CD C4 [08:50:51]CheckFolder [08:50:51]dirname=/storage/ofd_packets [08:50:51]CheckFolder done [08:50:51]ProducePacketName [08:50:51]name=ofd_packets/00166293 [08:50:51]NVStorageSaveData ofd_packets/00166293 [08:50:51]File name is /storage/ofd_packets/00166293 [08:50:51]Write 301 bytes [08:50:51]NVStorageSaveData done [08:50:51]OFDSenderStorePacket done [08:50:51]KKMCreateOFDPacket done [08:50:51]NVStorageSaveData kkm_last_timestamp [08:50:51]File name is /storage/kkm_last_timestamp [08:50:51]Write 4 bytes [08:50:51]NVStorageSaveData done [08:50:51]ExternCall_PrintAddStr [08:50:51]wPrintStart [08:50:51]Write to MH i2c: 01 00 00 FC 9F 9B [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: 01 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: 01 07 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: 01 07 00 FC 9F 00 00 00 00 00 FF 0F B0 [08:50:51]RasterBufferAndPrint [08:50:51]line Счет N : (1)220868 [08:50:51]line ИНН: 02508201610067 [08:50:51]line Контрольно-Кассовый Чек [08:50:51]line ПРОДАЖА [08:50:51]line ТРК (МРК, ГНК) : 33 [08:50:51]line Товар: 2710124130 [08:50:51]line Аи-92-К-5 [08:50:51]line 7.480 * 66.90 [08:50:51]line = 500.41 [08:50:51]line НДС 12% НСП 1% [08:50:51]line > о реализуемом товаре [08:50:51]line ОКРУГЛЕНИЕ: -0.41 [08:50:51]line ИТОГО: 500.00 [08:50:51]line Внесено: 500.00 [08:50:51]line СДАЧА: 0.00 [08:50:51]line НСП 1% : 4.43 [08:50:51]line НДС 12% : 53.14 [08:50:51]line Наличными: 500.00 [08:50:51]line Безнал.: 0.00 [08:50:51]line Место: АЗС № 161 "Партнер Нефть" [08:50:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:50:51]line СНО: Общий режим [08:50:51]line Чек 48 22.10.2024 08:51 [08:50:51]line Смена: 536 ФФД: 1.0 [08:50:51]line ЗНМ: 0300000104 [08:50:51]line РНМ: 0000000000091764 [08:50:51]line Версия ККМ: 001 [08:50:51]line ФМ: 0000000000871759 [08:50:51]line ФД: 166293 [08:50:51]line ФПД: 142260181657003 [08:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166293&fm=142260181657003&tin=02508201610067®Number=0000000000091764&sum=50000 [08:50:52]OFD Sender: Processing packet 166293 [packets to send 48, broken 47] [08:50:52]ProducePacketName [08:50:52]name=ofd_packets/00166293 [08:50:52]OFD Sender: To server: pG, [08:50:52]CommunicateWithHost lk.salyk.kg:30040 [08:50:52]ConnectInit lk.salyk.kg [08:50:52]written 0, free lines is 4095 [08:50:52]Connected sock=9 [08:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 93 07 01 00 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 81 67 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 89 02 00 35 04 06 00 81 62 87 97 E5 AB 99 70 E1 36 EA 86 CD C4 [08:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 54 47 00 25 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 89 02 00 F4 03 04 00 EC 0D 17 67 B6 04 01 00 00 09 C3 74 2A 67 08 93 41 [08:50:52]CommunicateWithHost err = 0 [08:50:52]CheckOFDResponse [08:50:52]1017 (14) - 77093643461234 [08:50:52]1041 (16) - 0000000000871759 [08:50:52]1040 (4) - 166293 [08:50:52]1012 (4) - 22.10.2024 02:29 [08:50:52]1206 (1) - 0 [08:50:52]OFD Sender: Remove packet 166293 [08:50:52]ProducePacketName [08:50:52]name=ofd_packets/00166293 [08:50:52]NVStorageDeleteData [08:50:52]Write to MH i2c: 01 00 00 27 A0 C7 [08:50:52]Write i2c OK [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: 01 [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: 01 07 00 [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: 01 07 00 27 A0 00 00 00 00 00 B5 0C 8F [08:50:52]RasterBufferAndPrint [08:50:52]line [08:50:52]line [08:50:52]line [08:50:52]line [08:50:52]line [08:50:52]written 0, free lines is 3259 [08:50:52]MH_Cut [08:50:52]Write to MH i2c: D1 01 00 2E A0 01 A0 [08:50:52]Write i2c OK [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: D1 [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: D1 01 00 [08:50:52]MH_I2C_Read... [08:50:52]Read from MH i2c: D1 01 00 2E A0 00 9F [08:50:52]Write to MH i2c: 01 00 00 2F A0 CF [08:50:52]Write i2c OK [08:50:52]MH_I2C_Read... [08:50:52]OFD Sender: No OFD packet to send [08:50:53]*** Cut start [08:50:53]*** Partial cut [08:50:53]*** CUTSNS_PIN = 1 [08:50:53]*** CUTSNS_PIN = 0 [08:50:53]*** Brake cut motor [08:50:54]Read from MH i2c: 01 [08:50:54]MH_I2C_Read... [08:50:54]*** Stop cut motor [08:50:54]*** Cut end [08:50:54]Read from MH i2c: 01 07 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: 01 07 00 2F A0 00 00 00 00 00 FF 0F E4 [08:50:54]process_action close_receipt done [08:50:54]requested_data is exist [08:50:54]produce_requested_data [08:50:54]requested_item fm.sn is exist - process it [08:50:54]wFMCommunicate request_size=4 [08:50:54]MH_SAM_APDU [08:50:54]CAPDU: 80 11 00 00 [08:50:54]Write to MH i2c: E2 08 00 30 A0 80 11 00 00 00 00 00 00 4A [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:54]Read from MH i2c: E2 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 17 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 17 00 30 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [08:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:54]wFMCommunicate OK [08:50:54]requested_item fd.num is exist - process it [08:50:54]SAM_PROTO_GetFieldsCounters [08:50:54]wFMCommunicate request_size=4 [08:50:54]MH_SAM_APDU [08:50:54]CAPDU: 80 13 00 00 [08:50:54]Write to MH i2c: E2 08 00 31 A0 80 13 00 00 00 00 00 00 4D [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:54]Read from MH i2c: E2 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 62 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 62 00 31 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [08:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:54]wFMCommunicate OK [08:50:54]SAM_PROTO_GetFieldsCounters done [08:50:54]requested_item shift.num is exist - process it [08:50:54]requested_item shift.opened is exist - process it [08:50:54]req_shift_opened [08:50:54]FM_GetShiftState [08:50:54]SAM_PROTO_GetShiftState [08:50:54]wFMCommunicate request_size=4 [08:50:54]MH_SAM_APDU [08:50:54]CAPDU: 80 13 01 00 [08:50:54]Write to MH i2c: E2 08 00 32 A0 80 13 01 00 00 00 00 00 4F [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:54]Read from MH i2c: E2 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 32 A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A2 [08:50:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:50:54]wFMCommunicate OK [08:50:54]SAM_PROTO_GetShiftState done [08:50:54]FM_GetShiftState done [08:50:54]req_shift_opened done [08:50:54]requested_item shift.open_date is exist - process it [08:50:54]req_shift_open_date [08:50:54]req_shift_open_date done [08:50:54]produce_requested_data done [08:50:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166293,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:50:54]process_action_free close_receipt [08:50:54]json_value_free [08:50:54]json_value_free done [08:50:54]process_json_proto returns [08:50:54]Send response to host [08:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166293,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:50:54]free response buf [08:50:54]execute_script done [08:50:54]execute_script returns [08:50:54]free content buf [08:50:54]Sock 5.Close socket [08:50:54]Sock 5.Thread stoped [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]accept exits with 6 [08:55:23]New connection [08:55:23]New thread 3066920292 created [08:55:23]Thread 3066776932 joined [08:55:23]Waiting for new connection... [08:55:23] Sock 6.Parse request [08:55:23]Sock 6.Check first char [08:55:23]Sock 6.First char is OK [08:55:23]request: POST /json_proto HTTP/1.0 [08:55:23]Method: POST [08:55:23]URL: /json_proto [08:55:23]Method is POST - this is cgi request [08:55:23]url: /json_proto [08:55:23]query_string will be loaded in cgi processing [08:55:23]execute_cgi json_proto POST (null) [08:55:23]execute_cgi path=json_proto method=POST [08:55:23]POST find Content-Length [08:55:23]Host: 172.17.53.195:8080 [08:55:23]Content-Length: 679 [08:55:23]Content-Type: application/json [08:55:23] [08:55:23]POST finish read [08:55:23]Found Content-Length = 679 [08:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:23]execute_script... [08:55:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:23]POST & json_proto [08:55:23]process_json_proto [08:55:23]json parsed OK: [08:55:23]protocol is kg_v1.0 [08:55:23]action value=close_receipt [08:55:23]process_action close_receipt [08:55:23]cmd_close_receipt [08:55:23]MH_GetDate [08:55:23]Write to MH i2c: F0 00 00 33 A0 C2 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 09 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 09 00 33 A0 00 92 68 17 67 21 48 4A 65 5B [08:55:23]GetLastDocTimeStamp 1729587073 [08:55:23]current date 1729587346 [08:55:23]FM_GetShiftState [08:55:23]SAM_PROTO_GetShiftState [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 13 01 00 [08:55:23]Write to MH i2c: E2 08 00 34 A0 80 13 01 00 00 00 00 00 51 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0E 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0E 00 34 A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A4 [08:55:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:55:23]wFMCommunicate OK [08:55:23]SAM_PROTO_GetShiftState done [08:55:23]FM_GetShiftState done [08:55:23]opened in 1729557463 [08:55:23]opened+sec_in_day 1729643863 [08:55:23]quantity*price = 100050 [08:55:23]sum+1 = 100052 [08:55:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 49 22.10.2024 08:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166294 ФПД: 232467524623031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085546&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166294&fm=232467524623031&tin=02508201610067®Number=0000000000091764&sum=100000 [08:55:24]StoreToDocumentArchive [08:55:24]shift 536 fd 166294 [08:55:24]save to /storage/0536/doc_00166294 [08:55:24]save last doc name /storage/0536/doc_00166294 to /storage/kkm_last_doc_name [08:55:24]save OK [08:55:24]Clear old archive folders... [08:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:55:24]tlvbuf is 0186ADD0 [08:55:24]SAM_PROTO_ClearQueue [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 09 00 00 [08:55:24]Write to MH i2c: E2 08 00 41 A0 80 09 00 00 00 00 00 00 53 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 41 A0 00 90 00 55 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_ClearQueue done [08:55:24]KKMCreateOFDPacket [08:55:24]OFDProtocolAddRootSTLVToBuf [08:55:24]FM_MakeSignedData [08:55:24]FM_MakeSignedData [08:55:24]SAM_PROTO_SignData [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 0D 01 02 [08:55:24]Write to MH i2c: E2 08 00 42 A0 80 0D 01 02 00 00 00 00 5B [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 42 A0 00 90 00 56 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]wFMCommunicate request_size=255 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 68 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 89 02 00 35 04 06 00 D3 6D 90 3A [08:55:24]Write to MH i2c: E2 02 01 43 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 68 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 89 02 00 35 04 06 00 D3 6D 90 3A 00 00 D5 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 43 A0 00 90 00 57 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]wFMCommunicate request_size=7 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 0D 02 02 02 1A B7 [08:55:24]Write to MH i2c: E2 0A 00 44 A0 80 0D 02 02 02 00 1A B7 00 00 33 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 44 A0 00 90 00 58 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 0D 03 02 [08:55:24]Write to MH i2c: E2 08 00 45 A0 80 0D 03 02 00 00 00 00 60 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0B 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0B 00 45 A0 00 CE 84 82 DA CD 3A DB 1D 90 00 0E [08:55:24]RAPDU: CE 84 82 DA CD 3A DB 1D 90 00 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_SignData done [08:55:24]FM_MakeSignedData done [08:55:24]CreateOFDProtocolMessage [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 11 00 00 [08:55:24]Write to MH i2c: E2 08 00 46 A0 80 11 00 00 00 00 00 00 60 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 46 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [08:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:55:24]wFMCommunicate OK [08:55:24]CreateOFDProtocolMessage done [08:55:24]OFDSenderStorePacket 166294 [08:55:24]StoreOFDPacket docnum=166294 [08:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8D 59 04 01 7C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 68 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 89 02 00 35 04 06 00 D3 6D 90 3A 1A B7 CE 84 82 DA CD 3A DB 1D [08:55:24]CheckFolder [08:55:24]dirname=/storage/ofd_packets [08:55:24]CheckFolder done [08:55:24]ProducePacketName [08:55:24]name=ofd_packets/00166294 [08:55:24]NVStorageSaveData ofd_packets/00166294 [08:55:24]File name is /storage/ofd_packets/00166294 [08:55:24]Write 298 bytes [08:55:24]NVStorageSaveData done [08:55:24]OFDSenderStorePacket done [08:55:24]KKMCreateOFDPacket done [08:55:24]NVStorageSaveData kkm_last_timestamp [08:55:24]File name is /storage/kkm_last_timestamp [08:55:24]Write 4 bytes [08:55:24]NVStorageSaveData done [08:55:24]ExternCall_PrintAddStr [08:55:24]wPrintStart [08:55:24]Write to MH i2c: 01 00 00 47 A0 E7 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 47 A0 00 00 00 00 00 FF 0F FC [08:55:24]RasterBufferAndPrint [08:55:24]line Счет N : (1)220869 [08:55:24]line ИНН: 02508201610067 [08:55:24]line Контрольно-Кассовый Чек [08:55:24]line ПРОДАЖА [08:55:24]line ТРК (МРК, ГНК) : 11 [08:55:24]line Товар: 2710194210 [08:55:24]line ДТ-К-5 [08:55:24]line 13.130 * 76.20 [08:55:24]line = 1000.51 [08:55:24]line НДС 12% НСП 1% [08:55:24]line > о реализуемом товаре [08:55:24]line ОКРУГЛЕНИЕ: -0.51 [08:55:24]line ИТОГО: 1000.00 [08:55:24]line Внесено: 1000.00 [08:55:24]line СДАЧА: 0.00 [08:55:24]line НСП 1% : 8.85 [08:55:24]line НДС 12% : 106.25 [08:55:24]line Наличными: 1000.00 [08:55:24]line Безнал.: 0.00 [08:55:24]line Место: АЗС № 161 "Партнер Нефть" [08:55:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:55:24]line СНО: Общий режим [08:55:24]line Чек 49 22.10.2024 08:55 [08:55:24]line Смена: 536 ФФД: 1.0 [08:55:24]line ЗНМ: 0300000104 [08:55:24]line РНМ: 0000000000091764 [08:55:24]line Версия ККМ: 001 [08:55:24]line ФМ: 0000000000871759 [08:55:24]line ФД: 166294 [08:55:24]line ФПД: 232467524623031 [08:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085546&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166294&fm=232467524623031&tin=02508201610067®Number=0000000000091764&sum=100000 [08:55:25]OFD Sender: Processing packet 166294 [packets to send 48, broken 47] [08:55:25]ProducePacketName [08:55:25]name=ofd_packets/00166294 [08:55:25]OFD Sender: To server: pG, [08:55:25]CommunicateWithHost lk.salyk.kg:30040 [08:55:25]ConnectInit lk.salyk.kg [08:55:25]written 0, free lines is 4095 [08:55:25]Connected sock=7 [08:55:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8D 59 04 01 7C 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 92 68 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 89 02 00 35 04 06 00 D3 6D 90 3A 1A B7 CE 84 82 DA CD 3A DB 1D [08:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C 22 47 00 12 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 89 02 00 F4 03 04 00 FD 0E 17 67 B6 04 01 00 00 4E 26 5D FE 73 1D C8 EC [08:55:25]CommunicateWithHost err = 0 [08:55:25]CheckOFDResponse [08:55:25]1017 (14) - 77093643461234 [08:55:25]1041 (16) - 0000000000871759 [08:55:25]1040 (4) - 166294 [08:55:25]1012 (4) - 22.10.2024 02:33 [08:55:25]1206 (1) - 0 [08:55:25]OFD Sender: Remove packet 166294 [08:55:25]ProducePacketName [08:55:25]name=ofd_packets/00166294 [08:55:25]NVStorageDeleteData [08:55:25]Write to MH i2c: 01 00 00 72 A0 12 [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 07 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 07 00 72 A0 00 00 00 00 00 BE 0C E3 [08:55:25]RasterBufferAndPrint [08:55:25]line [08:55:25]line [08:55:25]line [08:55:25]line [08:55:25]line [08:55:25]written 0, free lines is 3269 [08:55:25]MH_Cut [08:55:25]Write to MH i2c: D1 01 00 79 A0 01 EB [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: D1 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: D1 01 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: D1 01 00 79 A0 00 EA [08:55:25]Write to MH i2c: 01 00 00 7A A0 1A [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]OFD Sender: No OFD packet to send [08:55:26]*** Cut start [08:55:26]*** Partial cut [08:55:26]*** CUTSNS_PIN = 1 [08:55:26]*** CUTSNS_PIN = 0 [08:55:26]*** Brake cut motor [08:55:27]Read from MH i2c: 01 [08:55:27]MH_I2C_Read... [08:55:27]*** Stop cut motor [08:55:27]*** Cut end [08:55:27]Read from MH i2c: 01 07 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: 01 07 00 7A A0 00 00 00 00 00 FF 0F 2F [08:55:27]process_action close_receipt done [08:55:27]requested_data is exist [08:55:27]produce_requested_data [08:55:27]requested_item fm.sn is exist - process it [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 11 00 00 [08:55:27]Write to MH i2c: E2 08 00 7B A0 80 11 00 00 00 00 00 00 95 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 17 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 17 00 7B A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [08:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:55:27]wFMCommunicate OK [08:55:27]requested_item fd.num is exist - process it [08:55:27]SAM_PROTO_GetFieldsCounters [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 13 00 00 [08:55:27]Write to MH i2c: E2 08 00 7C A0 80 13 00 00 00 00 00 00 98 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 62 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 62 00 7C A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [08:55:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_GetFieldsCounters done [08:55:27]requested_item shift.num is exist - process it [08:55:27]requested_item shift.opened is exist - process it [08:55:27]req_shift_opened [08:55:27]FM_GetShiftState [08:55:27]SAM_PROTO_GetShiftState [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 13 01 00 [08:55:27]Write to MH i2c: E2 08 00 7D A0 80 13 01 00 00 00 00 00 9A [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 7D A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 ED [08:55:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_GetShiftState done [08:55:27]FM_GetShiftState done [08:55:27]req_shift_opened done [08:55:27]requested_item shift.open_date is exist - process it [08:55:27]req_shift_open_date [08:55:27]req_shift_open_date done [08:55:27]produce_requested_data done [08:55:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166294,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:55:27]process_action_free close_receipt [08:55:27]json_value_free [08:55:27]json_value_free done [08:55:27]process_json_proto returns [08:55:27]Send response to host [08:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166294,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:55:27]free response buf [08:55:27]execute_script done [08:55:27]execute_script returns [08:55:27]free content buf [08:55:27]Sock 6.Close socket [08:55:27]Sock 6.Thread stoped [08:55:30]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:18]accept exits with 5 [08:58:18]New connection [08:58:18]New thread 3066776932 created [08:58:18]Thread 3066920292 joined [08:58:18]Waiting for new connection... [08:58:18] Sock 5.Parse request [08:58:18]Sock 5.Check first char [08:58:18]Sock 5.First char is OK [08:58:18]request: POST /json_proto HTTP/1.0 [08:58:18]Method: POST [08:58:18]URL: /json_proto [08:58:18]Method is POST - this is cgi request [08:58:18]url: /json_proto [08:58:18]query_string will be loaded in cgi processing [08:58:18]execute_cgi json_proto POST (null) [08:58:18]execute_cgi path=json_proto method=POST [08:58:18]POST find Content-Length [08:58:18]Host: 172.17.53.195:8080 [08:58:18]Content-Length: 682 [08:58:18]Content-Type: application/json [08:58:18] [08:58:18]POST finish read [08:58:18]Found Content-Length = 682 [08:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:18]execute_script... [08:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:18]POST & json_proto [08:58:18]process_json_proto [08:58:18]json parsed OK: [08:58:18]protocol is kg_v1.0 [08:58:18]action value=close_receipt [08:58:18]process_action close_receipt [08:58:18]cmd_close_receipt [08:58:18]MH_GetDate [08:58:18]Write to MH i2c: F0 00 00 7E A0 0D [08:58:18]Write i2c OK [08:58:18]MH_I2C_Read... [08:58:18]Read from MH i2c: F0 [08:58:18]MH_I2C_Read... [08:58:18]Read from MH i2c: F0 09 00 [08:58:18]MH_I2C_Read... [08:58:18]Read from MH i2c: F0 09 00 7E A0 00 41 69 17 67 21 48 4A 65 56 [08:58:18]GetLastDocTimeStamp 1729587346 [08:58:18]current date 1729587521 [08:58:18]FM_GetShiftState [08:58:18]SAM_PROTO_GetShiftState [08:58:18]wFMCommunicate request_size=4 [08:58:18]MH_SAM_APDU [08:58:18]CAPDU: 80 13 01 00 [08:58:18]Write to MH i2c: E2 08 00 7F A0 80 13 01 00 00 00 00 00 9C [08:58:18]Write i2c OK [08:58:18]MH_I2C_Read... [08:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:18]Read from MH i2c: E2 [08:58:18]MH_I2C_Read... [08:58:18]Read from MH i2c: E2 0E 00 [08:58:18]MH_I2C_Read... [08:58:18]Read from MH i2c: E2 0E 00 7F A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EF [08:58:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:18]wFMCommunicate OK [08:58:18]SAM_PROTO_GetShiftState done [08:58:18]FM_GetShiftState done [08:58:18]opened in 1729557463 [08:58:18]opened+sec_in_day 1729643863 [08:58:18]quantity*price = 199969 [08:58:18]sum+1 = 199970 [08:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 50 22.10.2024 08:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166295 ФПД: 161643337967888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166295&fm=161643337967888&tin=02508201610067®Number=0000000000091764&sum=199900 [08:58:19]StoreToDocumentArchive [08:58:19]shift 536 fd 166295 [08:58:19]save to /storage/0536/doc_00166295 [08:58:19]save last doc name /storage/0536/doc_00166295 to /storage/kkm_last_doc_name [08:58:19]save OK [08:58:19]Clear old archive folders... [08:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:19]tlvbuf is 01891DB0 [08:58:19]SAM_PROTO_ClearQueue [08:58:19]wFMCommunicate request_size=4 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 09 00 00 [08:58:19]Write to MH i2c: E2 08 00 8C A0 80 09 00 00 00 00 00 00 9E [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 8C A0 00 90 00 A0 [08:58:19]RAPDU: 90 00 [08:58:19]wFMCommunicate OK [08:58:19]SAM_PROTO_ClearQueue done [08:58:19]KKMCreateOFDPacket [08:58:19]OFDProtocolAddRootSTLVToBuf [08:58:19]FM_MakeSignedData [08:58:19]FM_MakeSignedData [08:58:19]SAM_PROTO_SignData [08:58:19]wFMCommunicate request_size=4 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 0D 01 02 [08:58:19]Write to MH i2c: E2 08 00 8D A0 80 0D 01 02 00 00 00 00 A6 [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 8D A0 00 90 00 A1 [08:58:19]RAPDU: 90 00 [08:58:19]wFMCommunicate OK [08:58:19]wFMCommunicate request_size=255 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 41 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 89 02 00 35 04 06 00 93 [08:58:19]Write to MH i2c: E2 02 01 8E A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 41 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 89 02 00 35 04 06 00 93 00 00 E8 [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 8E A0 00 90 00 A2 [08:58:19]RAPDU: 90 00 [08:58:19]wFMCommunicate OK [08:58:19]wFMCommunicate request_size=10 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 0D 02 02 05 03 85 BD 69 10 [08:58:19]Write to MH i2c: E2 0D 00 8F A0 80 0D 02 02 05 00 03 85 BD 69 10 00 00 71 [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 03 00 8F A0 00 90 00 A3 [08:58:19]RAPDU: 90 00 [08:58:19]wFMCommunicate OK [08:58:19]wFMCommunicate request_size=4 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 0D 03 02 [08:58:19]Write to MH i2c: E2 08 00 90 A0 80 0D 03 02 00 00 00 00 AB [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 0B 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 0B 00 90 A0 00 BC 15 36 C1 1D CB 3A 71 90 00 07 [08:58:19]RAPDU: BC 15 36 C1 1D CB 3A 71 90 00 [08:58:19]wFMCommunicate OK [08:58:19]SAM_PROTO_SignData done [08:58:19]FM_MakeSignedData done [08:58:19]CreateOFDProtocolMessage [08:58:19]wFMCommunicate request_size=4 [08:58:19]MH_SAM_APDU [08:58:19]CAPDU: 80 11 00 00 [08:58:19]Write to MH i2c: E2 08 00 91 A0 80 11 00 00 00 00 00 00 AB [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:19]Read from MH i2c: E2 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 17 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: E2 17 00 91 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [08:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:19]wFMCommunicate OK [08:58:19]CreateOFDProtocolMessage done [08:58:19]OFDSenderStorePacket 166295 [08:58:19]StoreOFDPacket docnum=166295 [08:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 E8 07 01 FC 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 41 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 89 02 00 35 04 06 00 93 03 85 BD 69 10 BC 15 36 C1 1D CB 3A 71 [08:58:19]CheckFolder [08:58:19]dirname=/storage/ofd_packets [08:58:19]CheckFolder done [08:58:19]ProducePacketName [08:58:19]name=ofd_packets/00166295 [08:58:19]NVStorageSaveData ofd_packets/00166295 [08:58:19]File name is /storage/ofd_packets/00166295 [08:58:19]Write 301 bytes [08:58:19]NVStorageSaveData done [08:58:19]OFDSenderStorePacket done [08:58:19]KKMCreateOFDPacket done [08:58:19]NVStorageSaveData kkm_last_timestamp [08:58:19]File name is /storage/kkm_last_timestamp [08:58:19]Write 4 bytes [08:58:19]NVStorageSaveData done [08:58:19]ExternCall_PrintAddStr [08:58:19]wPrintStart [08:58:19]Write to MH i2c: 01 00 00 92 A0 32 [08:58:19]Write i2c OK [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: 01 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: 01 07 00 [08:58:19]MH_I2C_Read... [08:58:19]Read from MH i2c: 01 07 00 92 A0 00 00 00 00 00 FF 0F 47 [08:58:19]RasterBufferAndPrint [08:58:19]line Счет N : (1)220870 [08:58:19]line ИНН: 02508201610067 [08:58:19]line Контрольно-Кассовый Чек [08:58:19]line ПРОДАЖА [08:58:19]line ТРК (МРК, ГНК) : 44 [08:58:19]line Товар: 2710124500 [08:58:19]line Аи-95-К-5 [08:58:19]line 26.950 * 74.20 [08:58:19]line = 1999.69 [08:58:19]line НДС 12% НСП 1% [08:58:19]line > о реализуемом товаре [08:58:19]line ОКРУГЛЕНИЕ: -0.69 [08:58:19]line ИТОГО: 1999.00 [08:58:19]line Внесено: 2000.00 [08:58:19]line СДАЧА: 1.00 [08:58:19]line НСП 1% : 17.70 [08:58:19]line НДС 12% : 212.36 [08:58:19]line Наличными: 1999.00 [08:58:19]line Безнал.: 0.00 [08:58:19]line Место: АЗС № 161 "Партнер Нефть" [08:58:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:58:19]line СНО: Общий режим [08:58:19]line Чек 50 22.10.2024 08:58 [08:58:19]line Смена: 536 ФФД: 1.0 [08:58:19]line ЗНМ: 0300000104 [08:58:19]line РНМ: 0000000000091764 [08:58:19]line Версия ККМ: 001 [08:58:19]line ФМ: 0000000000871759 [08:58:19]line ФД: 166295 [08:58:19]line ФПД: 161643337967888 [08:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166295&fm=161643337967888&tin=02508201610067®Number=0000000000091764&sum=199900 [08:58:20]OFD Sender: Processing packet 166295 [packets to send 48, broken 47] [08:58:20]ProducePacketName [08:58:20]name=ofd_packets/00166295 [08:58:20]OFD Sender: To server: pG, [08:58:20]CommunicateWithHost lk.salyk.kg:30040 [08:58:20]ConnectInit lk.salyk.kg [08:58:20]written 0, free lines is 4095 [08:58:20]Connected sock=7 [08:58:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 E8 07 01 FC 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 41 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 89 02 00 35 04 06 00 93 03 85 BD 69 10 BC 15 36 C1 1D CB 3A 71 [08:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9F 96 47 00 16 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 89 02 00 F4 03 04 00 AC 0F 17 67 B6 04 01 00 00 D5 21 63 81 52 39 4E 3E [08:58:20]CommunicateWithHost err = 0 [08:58:20]CheckOFDResponse [08:58:20]1017 (14) - 77093643461234 [08:58:20]1041 (16) - 0000000000871759 [08:58:20]1040 (4) - 166295 [08:58:20]1012 (4) - 22.10.2024 02:36 [08:58:20]1206 (1) - 0 [08:58:20]OFD Sender: Remove packet 166295 [08:58:20]ProducePacketName [08:58:20]name=ofd_packets/00166295 [08:58:20]NVStorageDeleteData [08:58:20]Write to MH i2c: 01 00 00 BD A0 5D [08:58:20]Write i2c OK [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: 01 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: 01 07 00 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: 01 07 00 BD A0 00 00 00 00 00 CE 0C 3E [08:58:20]RasterBufferAndPrint [08:58:20]line [08:58:20]line [08:58:20]line [08:58:20]line [08:58:20]line [08:58:20]written 0, free lines is 3283 [08:58:20]MH_Cut [08:58:20]Write to MH i2c: D1 01 00 C4 A0 01 36 [08:58:20]Write i2c OK [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: D1 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: D1 01 00 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: D1 01 00 C4 A0 00 35 [08:58:20]Write to MH i2c: 01 00 00 C5 A0 65 [08:58:20]Write i2c OK [08:58:20]MH_I2C_Read... [08:58:20]OFD Sender: No OFD packet to send [08:58:21]*** Cut start [08:58:21]*** Partial cut [08:58:21]*** CUTSNS_PIN = 1 [08:58:21]*** CUTSNS_PIN = 0 [08:58:21]*** Brake cut motor [08:58:21]Read from MH i2c: 01 [08:58:22]MH_I2C_Read... [08:58:22]*** Stop cut motor [08:58:22]*** Cut end [08:58:22]Read from MH i2c: 01 07 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 07 00 C5 A0 00 00 00 00 00 FF 0F 7A [08:58:22]process_action close_receipt done [08:58:22]requested_data is exist [08:58:22]produce_requested_data [08:58:22]requested_item fm.sn is exist - process it [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 11 00 00 [08:58:22]Write to MH i2c: E2 08 00 C6 A0 80 11 00 00 00 00 00 00 E0 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 17 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 17 00 C6 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [08:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:22]wFMCommunicate OK [08:58:22]requested_item fd.num is exist - process it [08:58:22]SAM_PROTO_GetFieldsCounters [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 13 00 00 [08:58:22]Write to MH i2c: E2 08 00 C7 A0 80 13 00 00 00 00 00 00 E3 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 62 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 62 00 C7 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [08:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:22]wFMCommunicate OK [08:58:22]SAM_PROTO_GetFieldsCounters done [08:58:22]requested_item shift.num is exist - process it [08:58:22]requested_item shift.opened is exist - process it [08:58:22]req_shift_opened [08:58:22]FM_GetShiftState [08:58:22]SAM_PROTO_GetShiftState [08:58:22]wFMCommunicate request_size=4 [08:58:22]MH_SAM_APDU [08:58:22]CAPDU: 80 13 01 00 [08:58:22]Write to MH i2c: E2 08 00 C8 A0 80 13 01 00 00 00 00 00 E5 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:22]Read from MH i2c: E2 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 0E 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: E2 0E 00 C8 A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 38 [08:58:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:22]wFMCommunicate OK [08:58:22]SAM_PROTO_GetShiftState done [08:58:22]FM_GetShiftState done [08:58:22]req_shift_opened done [08:58:22]requested_item shift.open_date is exist - process it [08:58:22]req_shift_open_date [08:58:22]req_shift_open_date done [08:58:22]produce_requested_data done [08:58:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166295,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:58:22]process_action_free close_receipt [08:58:22]json_value_free [08:58:22]json_value_free done [08:58:22]process_json_proto returns [08:58:22]Send response to host [08:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166295,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:58:22]free response buf [08:58:22]execute_script done [08:58:22]execute_script returns [08:58:22]free content buf [08:58:22]Sock 5.Close socket [08:58:22]Sock 5.Thread stoped [08:58:23]accept exits with 6 [08:58:23]New connection [08:58:23]New thread 3066920292 created [08:58:23]Thread 3066776932 joined [08:58:23]Waiting for new connection... [08:58:23] Sock 6.Parse request [08:58:23]Sock 6.Check first char [08:58:23]Sock 6.First char is OK [08:58:23]request: POST /json_proto HTTP/1.0 [08:58:23]Method: POST [08:58:23]URL: /json_proto [08:58:23]Method is POST - this is cgi request [08:58:23]url: /json_proto [08:58:23]query_string will be loaded in cgi processing [08:58:23]execute_cgi json_proto POST (null) [08:58:23]execute_cgi path=json_proto method=POST [08:58:23]POST find Content-Length [08:58:23]Host: 172.17.53.195:8080 [08:58:23]Content-Length: 682 [08:58:23]Content-Type: application/json [08:58:23] [08:58:23]POST finish read [08:58:23]Found Content-Length = 682 [08:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:23]execute_script... [08:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:23]POST & json_proto [08:58:23]process_json_proto [08:58:23]json parsed OK: [08:58:23]protocol is kg_v1.0 [08:58:23]action value=close_receipt [08:58:23]process_action close_receipt [08:58:23]cmd_close_receipt [08:58:23]MH_GetDate [08:58:23]Write to MH i2c: F0 00 00 C9 A0 58 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 09 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: F0 09 00 C9 A0 00 46 69 17 67 21 48 4A 65 A6 [08:58:23]GetLastDocTimeStamp 1729587521 [08:58:23]current date 1729587526 [08:58:23]FM_GetShiftState [08:58:23]SAM_PROTO_GetShiftState [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 13 01 00 [08:58:23]Write to MH i2c: E2 08 00 CA A0 80 13 01 00 00 00 00 00 E7 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 0E 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 0E 00 CA A0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3A [08:58:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:23]wFMCommunicate OK [08:58:23]SAM_PROTO_GetShiftState done [08:58:23]FM_GetShiftState done [08:58:23]opened in 1729557463 [08:58:23]opened+sec_in_day 1729643863 [08:58:23]quantity*price = 100021 [08:58:23]sum+1 = 100023 [08:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 51 22.10.2024 08:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166296 ФПД: 60659423823759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085846&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166296&fm=60659423823759&tin=02508201610067®Number=0000000000091764&sum=100000 [08:58:25]StoreToDocumentArchive [08:58:25]shift 536 fd 166296 [08:58:25]save to /storage/0536/doc_00166296 [08:58:25]save last doc name /storage/0536/doc_00166296 to /storage/kkm_last_doc_name [08:58:25]save OK [08:58:25]Clear old archive folders... [08:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:25]tlvbuf is 019AA360 [08:58:25]SAM_PROTO_ClearQueue [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 09 00 00 [08:58:25]Write to MH i2c: E2 08 00 D7 A0 80 09 00 00 00 00 00 00 E9 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 D7 A0 00 90 00 EB [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_ClearQueue done [08:58:25]KKMCreateOFDPacket [08:58:25]OFDProtocolAddRootSTLVToBuf [08:58:25]FM_MakeSignedData [08:58:25]FM_MakeSignedData [08:58:25]SAM_PROTO_SignData [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 01 02 [08:58:25]Write to MH i2c: E2 08 00 D8 A0 80 0D 01 02 00 00 00 00 F1 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 D8 A0 00 90 00 EC [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=255 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 46 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 89 02 00 35 04 06 00 37 [08:58:25]Write to MH i2c: E2 02 01 D9 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 46 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 89 02 00 35 04 06 00 37 00 00 78 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 D9 A0 00 90 00 ED [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=10 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 02 02 05 2B 5F 68 C7 8F [08:58:25]Write to MH i2c: E2 0D 00 DA A0 80 0D 02 02 05 00 2B 5F 68 C7 8F 00 00 46 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 03 00 DA A0 00 90 00 EE [08:58:25]RAPDU: 90 00 [08:58:25]wFMCommunicate OK [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 0D 03 02 [08:58:25]Write to MH i2c: E2 08 00 DB A0 80 0D 03 02 00 00 00 00 F6 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0B 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 0B 00 DB A0 00 FB 43 A2 68 17 93 6E 65 90 00 BC [08:58:25]RAPDU: FB 43 A2 68 17 93 6E 65 90 00 [08:58:25]wFMCommunicate OK [08:58:25]SAM_PROTO_SignData done [08:58:25]FM_MakeSignedData done [08:58:25]CreateOFDProtocolMessage [08:58:25]wFMCommunicate request_size=4 [08:58:25]MH_SAM_APDU [08:58:25]CAPDU: 80 11 00 00 [08:58:25]Write to MH i2c: E2 08 00 DC A0 80 11 00 00 00 00 00 00 F6 [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:25]Read from MH i2c: E2 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: E2 17 00 DC A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [08:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:25]wFMCommunicate OK [08:58:25]CreateOFDProtocolMessage done [08:58:25]OFDSenderStorePacket 166296 [08:58:25]StoreOFDPacket docnum=166296 [08:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 AD 07 01 03 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 46 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 89 02 00 35 04 06 00 37 2B 5F 68 C7 8F FB 43 A2 68 17 93 6E 65 [08:58:25]CheckFolder [08:58:25]dirname=/storage/ofd_packets [08:58:25]CheckFolder done [08:58:25]ProducePacketName [08:58:25]name=ofd_packets/00166296 [08:58:25]NVStorageSaveData ofd_packets/00166296 [08:58:25]File name is /storage/ofd_packets/00166296 [08:58:25]Write 301 bytes [08:58:25]NVStorageSaveData done [08:58:25]OFDSenderStorePacket done [08:58:25]KKMCreateOFDPacket done [08:58:25]NVStorageSaveData kkm_last_timestamp [08:58:25]File name is /storage/kkm_last_timestamp [08:58:25]Write 4 bytes [08:58:25]NVStorageSaveData done [08:58:25]ExternCall_PrintAddStr [08:58:25]wPrintStart [08:58:25]Write to MH i2c: 01 00 00 DD A0 7D [08:58:25]Write i2c OK [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 07 00 [08:58:25]MH_I2C_Read... [08:58:25]Read from MH i2c: 01 07 00 DD A0 00 00 00 00 00 FF 0F 92 [08:58:25]RasterBufferAndPrint [08:58:25]line Счет N : (1)220871 [08:58:25]line ИНН: 02508201610067 [08:58:25]line Контрольно-Кассовый Чек [08:58:25]line ПРОДАЖА [08:58:25]line ТРК (МРК, ГНК) : 34 [08:58:25]line Товар: 2710124500 [08:58:25]line Аи-95-К-5 [08:58:25]line 13.480 * 74.20 [08:58:25]line = 1000.22 [08:58:25]line НДС 12% НСП 1% [08:58:25]line > о реализуемом товаре [08:58:25]line ОКРУГЛЕНИЕ: -0.22 [08:58:25]line ИТОГО: 1000.00 [08:58:25]line Внесено: 1000.00 [08:58:25]line СДАЧА: 0.00 [08:58:25]line НСП 1% : 8.85 [08:58:25]line НДС 12% : 106.22 [08:58:25]line Наличными: 1000.00 [08:58:25]line Безнал.: 0.00 [08:58:25]line Место: АЗС № 161 "Партнер Нефть" [08:58:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:58:25]line СНО: Общий режим [08:58:25]line Чек 51 22.10.2024 08:58 [08:58:25]line Смена: 536 ФФД: 1.0 [08:58:25]line ЗНМ: 0300000104 [08:58:25]line РНМ: 0000000000091764 [08:58:25]line Версия ККМ: 001 [08:58:25]line ФМ: 0000000000871759 [08:58:25]line ФД: 166296 [08:58:25]line ФПД: 60659423823759 [08:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085846&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166296&fm=60659423823759&tin=02508201610067®Number=0000000000091764&sum=100000 [08:58:25]OFD Sender: Processing packet 166296 [packets to send 48, broken 47] [08:58:25]ProducePacketName [08:58:25]name=ofd_packets/00166296 [08:58:25]OFD Sender: To server: pG, [08:58:25]CommunicateWithHost lk.salyk.kg:30040 [08:58:25]ConnectInit lk.salyk.kg [08:58:25]written 0, free lines is 4095 [08:58:25]Connected sock=7 [08:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 AD 07 01 03 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 46 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 89 02 00 35 04 06 00 37 2B 5F 68 C7 8F FB 43 A2 68 17 93 6E 65 [08:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD 10 47 00 87 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 89 02 00 F4 03 04 00 B2 0F 17 67 B6 04 01 00 00 69 85 70 D7 46 5C 6D DB [08:58:26]CommunicateWithHost err = 0 [08:58:26]CheckOFDResponse [08:58:26]1017 (14) - 77093643461234 [08:58:26]1041 (16) - 0000000000871759 [08:58:26]1040 (4) - 166296 [08:58:26]1012 (4) - 22.10.2024 02:36 [08:58:26]1206 (1) - 0 [08:58:26]OFD Sender: Remove packet 166296 [08:58:26]ProducePacketName [08:58:26]name=ofd_packets/00166296 [08:58:26]NVStorageDeleteData [08:58:26]Write to MH i2c: 01 00 00 08 A1 A9 [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 07 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: 01 07 00 08 A1 00 00 00 00 00 D9 0C 95 [08:58:26]RasterBufferAndPrint [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]line [08:58:26]written 0, free lines is 3300 [08:58:26]MH_Cut [08:58:26]Write to MH i2c: D1 01 00 0F A1 01 82 [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 01 00 [08:58:26]MH_I2C_Read... [08:58:26]Read from MH i2c: D1 01 00 0F A1 00 81 [08:58:26]Write to MH i2c: 01 00 00 10 A1 B1 [08:58:26]Write i2c OK [08:58:26]MH_I2C_Read... [08:58:26]OFD Sender: No OFD packet to send [08:58:26]*** Cut start [08:58:26]*** Partial cut [08:58:26]*** CUTSNS_PIN = 1 [08:58:26]*** CUTSNS_PIN = 0 [08:58:27]*** Brake cut motor [08:58:27]Read from MH i2c: 01 [08:58:27]*** Stop cut motor [08:58:27]MH_I2C_Read... [08:58:27]*** Cut end [08:58:27]Read from MH i2c: 01 07 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: 01 07 00 10 A1 00 00 00 00 00 FF 0F C6 [08:58:27]process_action close_receipt done [08:58:27]requested_data is exist [08:58:27]produce_requested_data [08:58:27]requested_item fm.sn is exist - process it [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 11 00 00 [08:58:27]Write to MH i2c: E2 08 00 11 A1 80 11 00 00 00 00 00 00 2C [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:27]Read from MH i2c: E2 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 17 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 17 00 11 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [08:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:27]wFMCommunicate OK [08:58:27]requested_item fd.num is exist - process it [08:58:27]SAM_PROTO_GetFieldsCounters [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 13 00 00 [08:58:27]Write to MH i2c: E2 08 00 12 A1 80 13 00 00 00 00 00 00 2F [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:27]Read from MH i2c: E2 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 62 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 62 00 12 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [08:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:27]wFMCommunicate OK [08:58:27]SAM_PROTO_GetFieldsCounters done [08:58:27]requested_item shift.num is exist - process it [08:58:27]requested_item shift.opened is exist - process it [08:58:27]req_shift_opened [08:58:27]FM_GetShiftState [08:58:27]SAM_PROTO_GetShiftState [08:58:27]wFMCommunicate request_size=4 [08:58:27]MH_SAM_APDU [08:58:27]CAPDU: 80 13 01 00 [08:58:27]Write to MH i2c: E2 08 00 13 A1 80 13 01 00 00 00 00 00 31 [08:58:27]Write i2c OK [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 [08:58:27]MH_I2C_Read... [08:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:27]Read from MH i2c: E2 0E 00 [08:58:27]MH_I2C_Read... [08:58:27]Read from MH i2c: E2 0E 00 13 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 84 [08:58:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:27]wFMCommunicate OK [08:58:27]SAM_PROTO_GetShiftState done [08:58:27]FM_GetShiftState done [08:58:27]req_shift_opened done [08:58:27]requested_item shift.open_date is exist - process it [08:58:27]req_shift_open_date [08:58:27]req_shift_open_date done [08:58:27]produce_requested_data done [08:58:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166296,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:58:27]process_action_free close_receipt [08:58:27]json_value_free [08:58:27]json_value_free done [08:58:27]process_json_proto returns [08:58:27]Send response to host [08:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166296,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:58:27]free response buf [08:58:27]execute_script done [08:58:27]execute_script returns [08:58:27]free content buf [08:58:27]Sock 6.Close socket [08:58:27]Sock 6.Thread stoped [08:58:31]OFD Sender: No OFD packet to send [08:58:32]accept exits with 5 [08:58:32]New connection [08:58:32]New thread 3066776932 created [08:58:32]Thread 3066920292 joined [08:58:32]Waiting for new connection... [08:58:32] Sock 5.Parse request [08:58:32]Sock 5.Check first char [08:58:32]Sock 5.First char is OK [08:58:32]request: POST /json_proto HTTP/1.0 [08:58:32]Method: POST [08:58:32]URL: /json_proto [08:58:32]Method is POST - this is cgi request [08:58:32]url: /json_proto [08:58:32]query_string will be loaded in cgi processing [08:58:32]execute_cgi json_proto POST (null) [08:58:32]execute_cgi path=json_proto method=POST [08:58:32]POST find Content-Length [08:58:32]Host: 172.17.53.195:8080 [08:58:32]Content-Length: 677 [08:58:32]Content-Type: application/json [08:58:32] [08:58:32]POST finish read [08:58:32]Found Content-Length = 677 [08:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:32]execute_script... [08:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:32]POST & json_proto [08:58:32]process_json_proto [08:58:32]json parsed OK: [08:58:32]protocol is kg_v1.0 [08:58:32]action value=close_receipt [08:58:32]process_action close_receipt [08:58:32]cmd_close_receipt [08:58:32]MH_GetDate [08:58:32]Write to MH i2c: F0 00 00 14 A1 A4 [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 09 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 09 00 14 A1 00 4F 69 17 67 21 48 4A 65 FB [08:58:32]GetLastDocTimeStamp 1729587526 [08:58:32]current date 1729587535 [08:58:32]FM_GetShiftState [08:58:32]SAM_PROTO_GetShiftState [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 13 01 00 [08:58:32]Write to MH i2c: E2 08 00 15 A1 80 13 01 00 00 00 00 00 33 [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 15 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [08:58:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:32]wFMCommunicate OK [08:58:32]SAM_PROTO_GetShiftState done [08:58:32]FM_GetShiftState done [08:58:32]opened in 1729557463 [08:58:32]opened+sec_in_day 1729643863 [08:58:32]quantity*price = 40006 [08:58:32]sum+1 = 40007 [08:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 52 22.10.2024 08:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166297 ФПД: 278453739739775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166297&fm=278453739739775&tin=02508201610067®Number=0000000000091764&sum=40000 [08:58:33]StoreToDocumentArchive [08:58:33]shift 536 fd 166297 [08:58:33]save to /storage/0536/doc_00166297 [08:58:33]save last doc name /storage/0536/doc_00166297 to /storage/kkm_last_doc_name [08:58:33]save OK [08:58:33]Clear old archive folders... [08:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:33]tlvbuf is 01A91B60 [08:58:33]SAM_PROTO_ClearQueue [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 09 00 00 [08:58:33]Write to MH i2c: E2 08 00 22 A1 80 09 00 00 00 00 00 00 35 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 22 A1 00 90 00 37 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_ClearQueue done [08:58:33]KKMCreateOFDPacket [08:58:33]OFDProtocolAddRootSTLVToBuf [08:58:33]FM_MakeSignedData [08:58:33]FM_MakeSignedData [08:58:33]SAM_PROTO_SignData [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 01 02 [08:58:33]Write to MH i2c: E2 08 00 23 A1 80 0D 01 02 00 00 00 00 3D [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 23 A1 00 90 00 38 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=255 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 89 02 00 35 04 06 00 FD [08:58:33]Write to MH i2c: E2 02 01 24 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 89 02 00 35 04 06 00 FD 00 00 47 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 24 A1 00 90 00 39 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=10 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 05 40 90 3E 5A 7F [08:58:33]Write to MH i2c: E2 0D 00 25 A1 80 0D 02 02 05 00 40 90 3E 5A 7F 00 00 31 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 25 A1 00 90 00 3A [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 03 02 [08:58:33]Write to MH i2c: E2 08 00 26 A1 80 0D 03 02 00 00 00 00 42 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 26 A1 00 BD 20 0D 18 C7 AB AF 42 90 00 A8 [08:58:33]RAPDU: BD 20 0D 18 C7 AB AF 42 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_SignData done [08:58:33]FM_MakeSignedData done [08:58:33]CreateOFDProtocolMessage [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 11 00 00 [08:58:33]Write to MH i2c: E2 08 00 27 A1 80 11 00 00 00 00 00 00 42 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 27 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [08:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:33]wFMCommunicate OK [08:58:33]CreateOFDProtocolMessage done [08:58:33]OFDSenderStorePacket 166297 [08:58:33]StoreOFDPacket docnum=166297 [08:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 00 07 01 C8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 89 02 00 35 04 06 00 FD 40 90 3E 5A 7F BD 20 0D 18 C7 AB AF 42 [08:58:33]CheckFolder [08:58:33]dirname=/storage/ofd_packets [08:58:33]CheckFolder done [08:58:33]ProducePacketName [08:58:33]name=ofd_packets/00166297 [08:58:33]NVStorageSaveData ofd_packets/00166297 [08:58:33]File name is /storage/ofd_packets/00166297 [08:58:33]Write 301 bytes [08:58:33]NVStorageSaveData done [08:58:33]OFDSenderStorePacket done [08:58:33]KKMCreateOFDPacket done [08:58:33]NVStorageSaveData kkm_last_timestamp [08:58:33]File name is /storage/kkm_last_timestamp [08:58:33]Write 4 bytes [08:58:33]NVStorageSaveData done [08:58:33]ExternCall_PrintAddStr [08:58:33]wPrintStart [08:58:33]Write to MH i2c: 01 00 00 28 A1 C9 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 28 A1 00 00 00 00 00 FF 0F DE [08:58:33]RasterBufferAndPrint [08:58:33]line Счет N : (1)220873 [08:58:33]line ИНН: 02508201610067 [08:58:33]line Контрольно-Кассовый Чек [08:58:33]line ПРОДАЖА [08:58:33]line ТРК (МРК, ГНК) : 23 [08:58:33]line Товар: 2710124130 [08:58:33]line Аи-92-К-5 [08:58:33]line 5.980 * 66.90 [08:58:33]line = 400.06 [08:58:33]line НДС 12% НСП 1% [08:58:33]line > о реализуемом товаре [08:58:33]line ОКРУГЛЕНИЕ: -0.06 [08:58:33]line ИТОГО: 400.00 [08:58:33]line Внесено: 400.00 [08:58:33]line СДАЧА: 0.00 [08:58:33]line НСП 1% : 3.54 [08:58:33]line НДС 12% : 42.48 [08:58:33]line Наличными: 400.00 [08:58:33]line Безнал.: 0.00 [08:58:33]line Место: АЗС № 161 "Партнер Нефть" [08:58:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:58:33]line СНО: Общий режим [08:58:33]line Чек 52 22.10.2024 08:58 [08:58:33]line Смена: 536 ФФД: 1.0 [08:58:33]line ЗНМ: 0300000104 [08:58:33]line РНМ: 0000000000091764 [08:58:33]line Версия ККМ: 001 [08:58:33]line ФМ: 0000000000871759 [08:58:33]line ФД: 166297 [08:58:33]line ФПД: 278453739739775 [08:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166297&fm=278453739739775&tin=02508201610067®Number=0000000000091764&sum=40000 [08:58:34]OFD Sender: Processing packet 166297 [packets to send 48, broken 47] [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00166297 [08:58:34]OFD Sender: To server: pG, [08:58:34]CommunicateWithHost lk.salyk.kg:30040 [08:58:34]ConnectInit lk.salyk.kg [08:58:34]written 0, free lines is 4095 [08:58:34]Connected sock=7 [08:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 00 07 01 C8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 89 02 00 35 04 06 00 FD 40 90 3E 5A 7F BD 20 0D 18 C7 AB AF 42 [08:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 80 47 00 C0 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 89 02 00 F4 03 04 00 BA 0F 17 67 B6 04 01 00 00 C9 4E 46 A0 E4 73 EE 5E [08:58:34]CommunicateWithHost err = 0 [08:58:34]CheckOFDResponse [08:58:34]1017 (14) - 77093643461234 [08:58:34]1041 (16) - 0000000000871759 [08:58:34]1040 (4) - 166297 [08:58:34]1012 (4) - 22.10.2024 02:36 [08:58:34]1206 (1) - 0 [08:58:34]OFD Sender: Remove packet 166297 [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00166297 [08:58:34]NVStorageDeleteData [08:58:34]Write to MH i2c: 01 00 00 53 A1 F4 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 53 A1 00 00 00 00 00 C3 0C CA [08:58:34]RasterBufferAndPrint [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]written 0, free lines is 3287 [08:58:34]MH_Cut [08:58:34]Write to MH i2c: D1 01 00 5A A1 01 CD [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 5A A1 00 CC [08:58:34]Write to MH i2c: 01 00 00 5B A1 FC [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]OFD Sender: No OFD packet to send [08:58:35]*** Cut start [08:58:35]*** Partial cut [08:58:35]*** CUTSNS_PIN = 1 [08:58:35]*** CUTSNS_PIN = 0 [08:58:35]*** Brake cut motor [08:58:35]Read from MH i2c: 01 [08:58:35]MH_I2C_Read... [08:58:35]*** Stop cut motor [08:58:35]*** Cut end [08:58:35]Read from MH i2c: 01 07 00 [08:58:35]MH_I2C_Read... [08:58:35]Read from MH i2c: 01 07 00 5B A1 00 00 00 00 00 FF 0F 11 [08:58:35]process_action close_receipt done [08:58:35]requested_data is exist [08:58:35]produce_requested_data [08:58:35]requested_item fm.sn is exist - process it [08:58:35]wFMCommunicate request_size=4 [08:58:35]MH_SAM_APDU [08:58:35]CAPDU: 80 11 00 00 [08:58:35]Write to MH i2c: E2 08 00 5C A1 80 11 00 00 00 00 00 00 77 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 17 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 17 00 5C A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [08:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:36]wFMCommunicate OK [08:58:36]requested_item fd.num is exist - process it [08:58:36]SAM_PROTO_GetFieldsCounters [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 13 00 00 [08:58:36]Write to MH i2c: E2 08 00 5D A1 80 13 00 00 00 00 00 00 7A [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 62 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 62 00 5D A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [08:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:36]wFMCommunicate OK [08:58:36]SAM_PROTO_GetFieldsCounters done [08:58:36]requested_item shift.num is exist - process it [08:58:36]requested_item shift.opened is exist - process it [08:58:36]req_shift_opened [08:58:36]FM_GetShiftState [08:58:36]SAM_PROTO_GetShiftState [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 13 01 00 [08:58:36]Write to MH i2c: E2 08 00 5E A1 80 13 01 00 00 00 00 00 7C [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 5E A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CF [08:58:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [08:58:36]wFMCommunicate OK [08:58:36]SAM_PROTO_GetShiftState done [08:58:36]FM_GetShiftState done [08:58:36]req_shift_opened done [08:58:36]requested_item shift.open_date is exist - process it [08:58:36]req_shift_open_date [08:58:36]req_shift_open_date done [08:58:36]produce_requested_data done [08:58:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166297,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [08:58:36]process_action_free close_receipt [08:58:36]json_value_free [08:58:36]json_value_free done [08:58:36]process_json_proto returns [08:58:36]Send response to host [08:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166297,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [08:58:36]free response buf [08:58:36]execute_script done [08:58:36]execute_script returns [08:58:36]free content buf [08:58:36]Sock 5.Close socket [08:58:36]Sock 5.Thread stoped [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:27]accept exits with 6 [09:00:27]New connection [09:00:27]New thread 3066920292 created [09:00:27]Thread 3066776932 joined [09:00:27]Waiting for new connection... [09:00:27] Sock 6.Parse request [09:00:27]Sock 6.Check first char [09:00:27]Sock 6.First char is OK [09:00:27]request: POST /json_proto HTTP/1.0 [09:00:27]Method: POST [09:00:27]URL: /json_proto [09:00:27]Method is POST - this is cgi request [09:00:27]url: /json_proto [09:00:27]query_string will be loaded in cgi processing [09:00:27]execute_cgi json_proto POST (null) [09:00:27]execute_cgi path=json_proto method=POST [09:00:27]POST find Content-Length [09:00:27]Host: 172.17.53.195:8080 [09:00:27]Content-Length: 800 [09:00:27]Content-Type: application/json [09:00:27] [09:00:27]POST finish read [09:00:27]Found Content-Length = 800 [09:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 19.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4196320", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:27]execute_script... [09:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 19.960, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4196320", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:27]POST & json_proto [09:00:27]process_json_proto [09:00:27]json parsed OK: [09:00:27]protocol is kg_v1.0 [09:00:27]action value=close_receipt [09:00:27]process_action close_receipt [09:00:27]cmd_close_receipt [09:00:27]MH_GetDate [09:00:27]Write to MH i2c: F0 00 00 5F A1 EF [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 5F A1 00 C2 69 17 67 21 48 4A 65 B9 [09:00:27]GetLastDocTimeStamp 1729587535 [09:00:27]current date 1729587650 [09:00:27]FM_GetShiftState [09:00:27]SAM_PROTO_GetShiftState [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 13 01 00 [09:00:27]Write to MH i2c: E2 08 00 60 A1 80 13 01 00 00 00 00 00 7E [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 60 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [09:00:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetShiftState done [09:00:27]FM_GetShiftState done [09:00:27]opened in 1729557463 [09:00:27]opened+sec_in_day 1729643863 [09:00:27]quantity*price = 0 [09:00:27]sum+1 = 1 [09:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 53 22.10.2024 09:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4196320 ФМ: 0000000000871759 ФД: 166298 ФПД: 124417028824283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090050&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166298&fm=124417028824283&tin=02508201610067®Number=0000000000091764&sum=0 [09:00:28]StoreToDocumentArchive [09:00:28]shift 536 fd 166298 [09:00:28]save to /storage/0536/doc_00166298 [09:00:28]save last doc name /storage/0536/doc_00166298 to /storage/kkm_last_doc_name [09:00:28]save OK [09:00:28]Clear old archive folders... [09:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:28]tlvbuf is 01512F30 [09:00:28]SAM_PROTO_ClearQueue [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 09 00 00 [09:00:28]Write to MH i2c: E2 08 00 6D A1 80 09 00 00 00 00 00 00 80 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 6D A1 00 90 00 82 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]SAM_PROTO_ClearQueue done [09:00:28]KKMCreateOFDPacket [09:00:28]OFDProtocolAddRootSTLVToBuf [09:00:28]FM_MakeSignedData [09:00:28]FM_MakeSignedData [09:00:28]SAM_PROTO_SignData [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 01 02 [09:00:28]Write to MH i2c: E2 08 00 6E A1 80 0D 01 02 00 00 00 00 88 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 6E A1 00 90 00 83 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=255 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C2 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 89 02 00 35 04 06 00 71 [09:00:28]Write to MH i2c: E2 02 01 6F A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C2 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 89 02 00 35 04 06 00 71 00 00 6C [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 6F A1 00 90 00 84 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=10 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 02 02 05 28 18 CE 9C DB [09:00:28]Write to MH i2c: E2 0D 00 70 A1 80 0D 02 02 05 00 28 18 CE 9C DB 00 00 1A [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 70 A1 00 90 00 85 [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 03 02 [09:00:28]Write to MH i2c: E2 08 00 71 A1 80 0D 03 02 00 00 00 00 8D [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0B 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0B 00 71 A1 00 32 73 EA 7A 02 0C 92 50 90 00 87 [09:00:29]RAPDU: 32 73 EA 7A 02 0C 92 50 90 00 [09:00:29]wFMCommunicate OK [09:00:29]SAM_PROTO_SignData done [09:00:29]FM_MakeSignedData done [09:00:29]CreateOFDProtocolMessage [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 11 00 00 [09:00:29]Write to MH i2c: E2 08 00 72 A1 80 11 00 00 00 00 00 00 8D [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 72 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [09:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:00:29]wFMCommunicate OK [09:00:29]CreateOFDProtocolMessage done [09:00:29]OFDSenderStorePacket 166298 [09:00:29]StoreOFDPacket docnum=166298 [09:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 F7 07 01 C4 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C2 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 89 02 00 35 04 06 00 71 28 18 CE 9C DB 32 73 EA 7A 02 0C 92 50 [09:00:29]CheckFolder [09:00:29]dirname=/storage/ofd_packets [09:00:29]CheckFolder done [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00166298 [09:00:29]NVStorageSaveData ofd_packets/00166298 [09:00:29]File name is /storage/ofd_packets/00166298 [09:00:29]Write 301 bytes [09:00:29]NVStorageSaveData done [09:00:29]OFDSenderStorePacket done [09:00:29]KKMCreateOFDPacket done [09:00:29]NVStorageSaveData kkm_last_timestamp [09:00:29]File name is /storage/kkm_last_timestamp [09:00:29]Write 4 bytes [09:00:29]NVStorageSaveData done [09:00:29]ExternCall_PrintAddStr [09:00:29]wPrintStart [09:00:29]Write to MH i2c: 01 00 00 73 A1 14 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 73 A1 00 00 00 00 00 FF 0F 29 [09:00:29]RasterBufferAndPrint [09:00:29]line Счет N : (1)220872 [09:00:29]line ИНН: 02508201610067 [09:00:29]line Контрольно-Кассовый Чек [09:00:29]line ПРОДАЖА [09:00:29]line ТРК (МРК, ГНК) : 13 [09:00:29]line Товар: 2710124130 [09:00:29]line Аи-92-К-5 [09:00:29]line 19.960 * 0.00 [09:00:29]line = 0.00 [09:00:29]line НДС 12% НСП 1% [09:00:29]line > о реализуемом товаре [09:00:29]line ИТОГО: 0.00 [09:00:29]line НСП 1% : 0.00 [09:00:29]line НДС 12% : 0.00 [09:00:29]line Наличными: 0.00 [09:00:29]line Безнал.: 0.00 [09:00:29]line Место: АЗС № 161 "Партнер Нефть" [09:00:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:00:29]line СНО: Общий режим [09:00:29]line Чек 53 22.10.2024 09:00 [09:00:29]line Смена: 536 ФФД: 1.0 [09:00:29]line ЗНМ: 0300000104 [09:00:29]line РНМ: 0000000000091764 [09:00:29]line Версия ККМ: 001 [09:00:29]line Талоны: Топливные Талоны [09:00:29]line 4196320 [09:00:29]line ФМ: 0000000000871759 [09:00:29]line ФД: 166298 [09:00:29]line ФПД: 124417028824283 [09:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090050&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166298&fm=124417028824283&tin=02508201610067®Number=0000000000091764&sum=0 [09:00:29]written 0, free lines is 4095 [09:00:29]OFD Sender: Processing packet 166298 [packets to send 48, broken 47] [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00166298 [09:00:29]OFD Sender: To server: pG, [09:00:29]CommunicateWithHost lk.salyk.kg:30040 [09:00:29]ConnectInit lk.salyk.kg [09:00:29]Connected sock=7 [09:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 F7 07 01 C4 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C2 69 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 89 02 00 35 04 06 00 71 28 18 CE 9C DB 32 73 EA 7A 02 0C 92 50 [09:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 51 47 00 FB 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 89 02 00 F4 03 04 00 2E 10 17 67 B6 04 01 00 00 2A E9 29 75 D7 1B 0C A1 [09:00:29]CommunicateWithHost err = 0 [09:00:29]CheckOFDResponse [09:00:29]1017 (14) - 77093643461234 [09:00:29]1041 (16) - 0000000000871759 [09:00:29]1040 (4) - 166298 [09:00:29]1012 (4) - 22.10.2024 02:38 [09:00:29]1206 (1) - 0 [09:00:29]OFD Sender: Remove packet 166298 [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00166298 [09:00:29]NVStorageDeleteData [09:00:29]Write to MH i2c: 01 00 00 9D A1 3E [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 9D A1 00 00 00 00 00 C3 0C 14 [09:00:29]RasterBufferAndPrint [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]line [09:00:29]written 0, free lines is 3275 [09:00:29]MH_Cut [09:00:29]Write to MH i2c: D1 01 00 A4 A1 01 17 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 01 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: D1 01 00 A4 A1 00 16 [09:00:29]Write to MH i2c: 01 00 00 A5 A1 46 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:30]OFD Sender: No OFD packet to send [09:00:30]*** Cut start [09:00:30]*** Partial cut [09:00:30]*** CUTSNS_PIN = 1 [09:00:30]*** CUTSNS_PIN = 0 [09:00:30]*** Brake cut motor [09:00:31]Read from MH i2c: 01 [09:00:31]MH_I2C_Read... [09:00:31]*** Stop cut motor [09:00:31]*** Cut end [09:00:31]Read from MH i2c: 01 07 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 07 00 A5 A1 00 00 00 00 00 FF 0F 5B [09:00:31]process_action close_receipt done [09:00:31]requested_data is exist [09:00:31]produce_requested_data [09:00:31]requested_item fm.sn is exist - process it [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 11 00 00 [09:00:31]Write to MH i2c: E2 08 00 A6 A1 80 11 00 00 00 00 00 00 C1 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 A6 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [09:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:00:31]wFMCommunicate OK [09:00:31]requested_item fd.num is exist - process it [09:00:31]SAM_PROTO_GetFieldsCounters [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 00 00 [09:00:31]Write to MH i2c: E2 08 00 A7 A1 80 13 00 00 00 00 00 00 C4 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 A7 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetFieldsCounters done [09:00:31]requested_item shift.num is exist - process it [09:00:31]requested_item shift.opened is exist - process it [09:00:31]req_shift_opened [09:00:31]FM_GetShiftState [09:00:31]SAM_PROTO_GetShiftState [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 01 00 [09:00:31]Write to MH i2c: E2 08 00 A8 A1 80 13 01 00 00 00 00 00 C6 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 A8 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 19 [09:00:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetShiftState done [09:00:31]FM_GetShiftState done [09:00:31]req_shift_opened done [09:00:31]requested_item shift.open_date is exist - process it [09:00:31]req_shift_open_date [09:00:31]req_shift_open_date done [09:00:31]produce_requested_data done [09:00:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166298,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:00:31]process_action_free close_receipt [09:00:31]json_value_free [09:00:31]json_value_free done [09:00:31]process_json_proto returns [09:00:31]Send response to host [09:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166298,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:00:31]free response buf [09:00:31]execute_script done [09:00:31]execute_script returns [09:00:31]free content buf [09:00:31]Sock 6.Close socket [09:00:31]Sock 6.Thread stoped [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:07]accept exits with 5 [09:05:07]New connection [09:05:07]New thread 3066776932 created [09:05:07]Thread 3066920292 joined [09:05:07]Waiting for new connection... [09:05:07] Sock 5.Parse request [09:05:07]Sock 5.Check first char [09:05:07]Sock 5.First char is OK [09:05:07]request: POST /json_proto HTTP/1.0 [09:05:07]Method: POST [09:05:07]URL: /json_proto [09:05:07]Method is POST - this is cgi request [09:05:07]url: /json_proto [09:05:07]query_string will be loaded in cgi processing [09:05:07]execute_cgi json_proto POST (null) [09:05:07]execute_cgi path=json_proto method=POST [09:05:07]POST find Content-Length [09:05:07]Host: 172.17.53.195:8080 [09:05:07]Content-Length: 679 [09:05:07]Content-Type: application/json [09:05:07] [09:05:07]POST finish read [09:05:07]Found Content-Length = 679 [09:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:07]execute_script... [09:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:07]POST & json_proto [09:05:07]process_json_proto [09:05:07]json parsed OK: [09:05:07]protocol is kg_v1.0 [09:05:07]action value=close_receipt [09:05:07]process_action close_receipt [09:05:07]cmd_close_receipt [09:05:07]MH_GetDate [09:05:07]Write to MH i2c: F0 00 00 A9 A1 39 [09:05:07]Write i2c OK [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 09 00 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: F0 09 00 A9 A1 00 DA 6A 17 67 21 48 4A 65 1C [09:05:07]GetLastDocTimeStamp 1729587650 [09:05:07]current date 1729587930 [09:05:07]FM_GetShiftState [09:05:07]SAM_PROTO_GetShiftState [09:05:07]wFMCommunicate request_size=4 [09:05:07]MH_SAM_APDU [09:05:07]CAPDU: 80 13 01 00 [09:05:07]Write to MH i2c: E2 08 00 AA A1 80 13 01 00 00 00 00 00 C8 [09:05:07]Write i2c OK [09:05:07]MH_I2C_Read... [09:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:07]Read from MH i2c: E2 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: E2 0E 00 [09:05:07]MH_I2C_Read... [09:05:07]Read from MH i2c: E2 0E 00 AA A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1B [09:05:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:05:07]wFMCommunicate OK [09:05:07]SAM_PROTO_GetShiftState done [09:05:07]FM_GetShiftState done [09:05:07]opened in 1729557463 [09:05:07]opened+sec_in_day 1729643863 [09:05:07]quantity*price = 99948 [09:05:07]sum+1 = 99950 [09:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 54 22.10.2024 09:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166299 ФПД: 14397770255604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166299&fm=14397770255604&tin=02508201610067®Number=0000000000091764&sum=99900 [09:05:08]StoreToDocumentArchive [09:05:08]shift 536 fd 166299 [09:05:08]save to /storage/0536/doc_00166299 [09:05:08]save last doc name /storage/0536/doc_00166299 to /storage/kkm_last_doc_name [09:05:08]save OK [09:05:08]Clear old archive folders... [09:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:08]tlvbuf is 01D8A250 [09:05:08]SAM_PROTO_ClearQueue [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 09 00 00 [09:05:08]Write to MH i2c: E2 08 00 B7 A1 80 09 00 00 00 00 00 00 CA [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 B7 A1 00 90 00 CC [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]SAM_PROTO_ClearQueue done [09:05:08]KKMCreateOFDPacket [09:05:08]OFDProtocolAddRootSTLVToBuf [09:05:08]FM_MakeSignedData [09:05:08]FM_MakeSignedData [09:05:08]SAM_PROTO_SignData [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 01 02 [09:05:08]Write to MH i2c: E2 08 00 B8 A1 80 0D 01 02 00 00 00 00 D2 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 B8 A1 00 90 00 CD [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=255 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DA 6A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 89 02 00 35 04 06 00 0D [09:05:08]Write to MH i2c: E2 02 01 B9 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DA 6A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 89 02 00 35 04 06 00 0D 00 00 8A [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 B9 A1 00 90 00 CE [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=10 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 02 02 05 18 3D FB 4C F4 [09:05:08]Write to MH i2c: E2 0D 00 BA A1 80 0D 02 02 05 00 18 3D FB 4C F4 00 00 6F [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 03 00 BA A1 00 90 00 CF [09:05:08]RAPDU: 90 00 [09:05:08]wFMCommunicate OK [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 0D 03 02 [09:05:08]Write to MH i2c: E2 08 00 BB A1 80 0D 03 02 00 00 00 00 D7 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 0B 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 0B 00 BB A1 00 77 E0 9D D6 46 15 E6 33 90 00 16 [09:05:08]RAPDU: 77 E0 9D D6 46 15 E6 33 90 00 [09:05:08]wFMCommunicate OK [09:05:08]SAM_PROTO_SignData done [09:05:08]FM_MakeSignedData done [09:05:08]CreateOFDProtocolMessage [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 11 00 00 [09:05:08]Write to MH i2c: E2 08 00 BC A1 80 11 00 00 00 00 00 00 D7 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 17 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 17 00 BC A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2F [09:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:08]wFMCommunicate OK [09:05:08]CreateOFDProtocolMessage done [09:05:08]OFDSenderStorePacket 166299 [09:05:08]StoreOFDPacket docnum=166299 [09:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 F4 07 01 C8 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DA 6A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 89 02 00 35 04 06 00 0D 18 3D FB 4C F4 77 E0 9D D6 46 15 E6 33 [09:05:08]CheckFolder [09:05:08]dirname=/storage/ofd_packets [09:05:08]CheckFolder done [09:05:08]ProducePacketName [09:05:08]name=ofd_packets/00166299 [09:05:08]NVStorageSaveData ofd_packets/00166299 [09:05:08]File name is /storage/ofd_packets/00166299 [09:05:08]Write 301 bytes [09:05:08]NVStorageSaveData done [09:05:08]OFDSenderStorePacket done [09:05:08]KKMCreateOFDPacket done [09:05:08]NVStorageSaveData kkm_last_timestamp [09:05:08]File name is /storage/kkm_last_timestamp [09:05:08]Write 4 bytes [09:05:08]NVStorageSaveData done [09:05:08]ExternCall_PrintAddStr [09:05:08]wPrintStart [09:05:08]Write to MH i2c: 01 00 00 BD A1 5E [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: 01 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: 01 07 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: 01 07 00 BD A1 00 00 00 00 00 FF 0F 73 [09:05:08]RasterBufferAndPrint [09:05:08]line Счет N : (1)220874 [09:05:08]line ИНН: 02508201610067 [09:05:08]line Контрольно-Кассовый Чек [09:05:08]line ПРОДАЖА [09:05:08]line ТРК (МРК, ГНК) : 13 [09:05:08]line Товар: 2710124130 [09:05:08]line Аи-92-К-5 [09:05:08]line 14.940 * 66.90 [09:05:08]line = 999.49 [09:05:08]line НДС 12% НСП 1% [09:05:08]line > о реализуемом товаре [09:05:08]line ОКРУГЛЕНИЕ: -0.49 [09:05:08]line ИТОГО: 999.00 [09:05:08]line Внесено: 1000.00 [09:05:08]line СДАЧА: 1.00 [09:05:08]line НСП 1% : 8.84 [09:05:08]line НДС 12% : 106.14 [09:05:08]line Наличными: 999.00 [09:05:08]line Безнал.: 0.00 [09:05:08]line Место: АЗС № 161 "Партнер Нефть" [09:05:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:05:08]line СНО: Общий режим [09:05:08]line Чек 54 22.10.2024 09:05 [09:05:08]line Смена: 536 ФФД: 1.0 [09:05:08]line ЗНМ: 0300000104 [09:05:08]line РНМ: 0000000000091764 [09:05:08]line Версия ККМ: 001 [09:05:08]line ФМ: 0000000000871759 [09:05:08]line ФД: 166299 [09:05:08]line ФПД: 14397770255604 [09:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166299&fm=14397770255604&tin=02508201610067®Number=0000000000091764&sum=99900 [09:05:09]OFD Sender: Processing packet 166299 [packets to send 48, broken 47] [09:05:09]ProducePacketName [09:05:09]name=ofd_packets/00166299 [09:05:09]OFD Sender: To server: pG, [09:05:09]CommunicateWithHost lk.salyk.kg:30040 [09:05:09]ConnectInit lk.salyk.kg [09:05:09]written 0, free lines is 4095 [09:05:09]Connected sock=6 [09:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 F4 07 01 C8 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DA 6A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 89 02 00 35 04 06 00 0D 18 3D FB 4C F4 77 E0 9D D6 46 15 E6 33 [09:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 80 47 00 83 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 89 02 00 F4 03 04 00 45 11 17 67 B6 04 01 00 00 85 E9 50 86 5B 82 A4 52 [09:05:09]CommunicateWithHost err = 0 [09:05:09]CheckOFDResponse [09:05:09]1017 (14) - 77093643461234 [09:05:09]1041 (16) - 0000000000871759 [09:05:09]1040 (4) - 166299 [09:05:09]1012 (4) - 22.10.2024 02:43 [09:05:09]1206 (1) - 0 [09:05:09]OFD Sender: Remove packet 166299 [09:05:09]ProducePacketName [09:05:09]name=ofd_packets/00166299 [09:05:09]NVStorageDeleteData [09:05:09]Write to MH i2c: 01 00 00 E8 A1 89 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: 01 07 00 E8 A1 00 00 00 00 00 BF 0C 5B [09:05:09]RasterBufferAndPrint [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]line [09:05:09]written 0, free lines is 3270 [09:05:09]MH_Cut [09:05:09]Write to MH i2c: D1 01 00 EF A1 01 62 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 01 00 [09:05:09]MH_I2C_Read... [09:05:09]Read from MH i2c: D1 01 00 EF A1 00 61 [09:05:09]Write to MH i2c: 01 00 00 F0 A1 91 [09:05:09]Write i2c OK [09:05:09]MH_I2C_Read... [09:05:09]OFD Sender: No OFD packet to send [09:05:10]*** Cut start [09:05:10]*** Partial cut [09:05:10]*** CUTSNS_PIN = 1 [09:05:10]*** CUTSNS_PIN = 0 [09:05:10]*** Brake cut motor [09:05:11]Read from MH i2c: 01 [09:05:11]MH_I2C_Read... [09:05:11]*** Stop cut motor [09:05:11]*** Cut end [09:05:11]Read from MH i2c: 01 07 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: 01 07 00 F0 A1 00 00 00 00 00 FF 0F A6 [09:05:11]process_action close_receipt done [09:05:11]requested_data is exist [09:05:11]produce_requested_data [09:05:11]requested_item fm.sn is exist - process it [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 11 00 00 [09:05:11]Write to MH i2c: E2 08 00 F1 A1 80 11 00 00 00 00 00 00 0C [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 17 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 17 00 F1 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [09:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:05:11]wFMCommunicate OK [09:05:11]requested_item fd.num is exist - process it [09:05:11]SAM_PROTO_GetFieldsCounters [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 13 00 00 [09:05:11]Write to MH i2c: E2 08 00 F2 A1 80 13 00 00 00 00 00 00 0F [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 62 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 62 00 F2 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:11]wFMCommunicate OK [09:05:11]SAM_PROTO_GetFieldsCounters done [09:05:11]requested_item shift.num is exist - process it [09:05:11]requested_item shift.opened is exist - process it [09:05:11]req_shift_opened [09:05:11]FM_GetShiftState [09:05:11]SAM_PROTO_GetShiftState [09:05:11]wFMCommunicate request_size=4 [09:05:11]MH_SAM_APDU [09:05:11]CAPDU: 80 13 01 00 [09:05:11]Write to MH i2c: E2 08 00 F3 A1 80 13 01 00 00 00 00 00 11 [09:05:11]Write i2c OK [09:05:11]MH_I2C_Read... [09:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:11]Read from MH i2c: E2 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 [09:05:11]MH_I2C_Read... [09:05:11]Read from MH i2c: E2 0E 00 F3 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 64 [09:05:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:05:11]wFMCommunicate OK [09:05:11]SAM_PROTO_GetShiftState done [09:05:11]FM_GetShiftState done [09:05:11]req_shift_opened done [09:05:11]requested_item shift.open_date is exist - process it [09:05:11]req_shift_open_date [09:05:11]req_shift_open_date done [09:05:11]produce_requested_data done [09:05:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166299,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:05:11]process_action_free close_receipt [09:05:11]json_value_free [09:05:11]json_value_free done [09:05:11]process_json_proto returns [09:05:11]Send response to host [09:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166299,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:05:11]free response buf [09:05:11]execute_script done [09:05:11]execute_script returns [09:05:11]free content buf [09:05:11]Sock 5.Close socket [09:05:11]Sock 5.Thread stoped [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:05]accept exits with 7 [09:08:05]New connection [09:08:05]New thread 3066920292 created [09:08:05]Thread 3066776932 joined [09:08:05]Waiting for new connection... [09:08:05] Sock 7.Parse request [09:08:05]Sock 7.Check first char [09:08:05]Sock 7.First char is OK [09:08:05]request: POST /json_proto HTTP/1.0 [09:08:05]Method: POST [09:08:05]URL: /json_proto [09:08:05]Method is POST - this is cgi request [09:08:05]url: /json_proto [09:08:05]query_string will be loaded in cgi processing [09:08:05]execute_cgi json_proto POST (null) [09:08:05]execute_cgi path=json_proto method=POST [09:08:05]POST find Content-Length [09:08:05]Host: 172.17.53.195:8080 [09:08:05]Content-Length: 677 [09:08:05]Content-Type: application/json [09:08:05] [09:08:05]POST finish read [09:08:05]Found Content-Length = 677 [09:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:05]execute_script... [09:08:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:05]POST & json_proto [09:08:05]process_json_proto [09:08:05]json parsed OK: [09:08:05]protocol is kg_v1.0 [09:08:05]action value=close_receipt [09:08:05]process_action close_receipt [09:08:05]cmd_close_receipt [09:08:05]MH_GetDate [09:08:05]Write to MH i2c: F0 00 00 F4 A1 84 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 09 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 09 00 F4 A1 00 8D 6B 17 67 21 48 4A 65 1B [09:08:05]GetLastDocTimeStamp 1729587930 [09:08:05]current date 1729588109 [09:08:05]FM_GetShiftState [09:08:05]SAM_PROTO_GetShiftState [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 01 00 [09:08:05]Write to MH i2c: E2 08 00 F5 A1 80 13 01 00 00 00 00 00 13 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:06]Read from MH i2c: E2 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 0E 00 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 0E 00 F5 A1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 66 [09:08:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:08:06]wFMCommunicate OK [09:08:06]SAM_PROTO_GetShiftState done [09:08:06]FM_GetShiftState done [09:08:06]opened in 1729557463 [09:08:06]opened+sec_in_day 1729643863 [09:08:06]quantity*price = 25020 [09:08:06]sum+1 = 25022 [09:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 55 22.10.2024 09:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166300 ФПД: 223810020866205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166300&fm=223810020866205&tin=02508201610067®Number=0000000000091764&sum=25000 [09:08:07]StoreToDocumentArchive [09:08:07]shift 536 fd 166300 [09:08:07]save to /storage/0536/doc_00166300 [09:08:07]save last doc name /storage/0536/doc_00166300 to /storage/kkm_last_doc_name [09:08:07]save OK [09:08:07]Clear old archive folders... [09:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:07]tlvbuf is 015FC6C0 [09:08:07]SAM_PROTO_ClearQueue [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 09 00 00 [09:08:07]Write to MH i2c: E2 08 00 02 A2 80 09 00 00 00 00 00 00 16 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 02 A2 00 90 00 18 [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]SAM_PROTO_ClearQueue done [09:08:07]KKMCreateOFDPacket [09:08:07]OFDProtocolAddRootSTLVToBuf [09:08:07]FM_MakeSignedData [09:08:07]FM_MakeSignedData [09:08:07]SAM_PROTO_SignData [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 01 02 [09:08:07]Write to MH i2c: E2 08 00 03 A2 80 0D 01 02 00 00 00 00 1E [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 03 A2 00 90 00 19 [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=255 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8D 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 89 02 00 35 04 06 00 CB [09:08:07]Write to MH i2c: E2 02 01 04 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8D 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 89 02 00 35 04 06 00 CB 00 00 46 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 04 A2 00 90 00 1A [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=10 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 02 02 05 8D D4 CA 78 9D [09:08:07]Write to MH i2c: E2 0D 00 05 A2 80 0D 02 02 05 00 8D D4 CA 78 9D 00 00 6B [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 05 A2 00 90 00 1B [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 03 02 [09:08:07]Write to MH i2c: E2 08 00 06 A2 80 0D 03 02 00 00 00 00 23 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0B 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0B 00 06 A2 00 5F A1 B5 05 A0 10 95 79 90 00 9C [09:08:07]RAPDU: 5F A1 B5 05 A0 10 95 79 90 00 [09:08:07]wFMCommunicate OK [09:08:07]SAM_PROTO_SignData done [09:08:07]FM_MakeSignedData done [09:08:07]CreateOFDProtocolMessage [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 11 00 00 [09:08:07]Write to MH i2c: E2 08 00 07 A2 80 11 00 00 00 00 00 00 23 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 17 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 17 00 07 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [09:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:08:07]wFMCommunicate OK [09:08:07]CreateOFDProtocolMessage done [09:08:07]OFDSenderStorePacket 166300 [09:08:07]StoreOFDPacket docnum=166300 [09:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 97 07 01 FB 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8D 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 89 02 00 35 04 06 00 CB 8D D4 CA 78 9D 5F A1 B5 05 A0 10 95 79 [09:08:07]CheckFolder [09:08:07]dirname=/storage/ofd_packets [09:08:07]CheckFolder done [09:08:07]ProducePacketName [09:08:07]name=ofd_packets/00166300 [09:08:07]NVStorageSaveData ofd_packets/00166300 [09:08:07]File name is /storage/ofd_packets/00166300 [09:08:07]Write 301 bytes [09:08:07]NVStorageSaveData done [09:08:07]OFDSenderStorePacket done [09:08:07]KKMCreateOFDPacket done [09:08:07]NVStorageSaveData kkm_last_timestamp [09:08:07]File name is /storage/kkm_last_timestamp [09:08:07]Write 4 bytes [09:08:07]NVStorageSaveData done [09:08:07]ExternCall_PrintAddStr [09:08:07]wPrintStart [09:08:07]Write to MH i2c: 01 00 00 08 A2 AA [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 07 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 07 00 08 A2 00 00 00 00 00 FF 0F BF [09:08:07]RasterBufferAndPrint [09:08:07]line Счет N : (1)220876 [09:08:07]line ИНН: 02508201610067 [09:08:07]line Контрольно-Кассовый Чек [09:08:07]line ПРОДАЖА [09:08:07]line ТРК (МРК, ГНК) : 23 [09:08:07]line Товар: 2710124130 [09:08:07]line Аи-92-К-5 [09:08:07]line 3.740 * 66.90 [09:08:07]line = 250.21 [09:08:07]line НДС 12% НСП 1% [09:08:07]line > о реализуемом товаре [09:08:07]line ОКРУГЛЕНИЕ: -0.21 [09:08:07]line ИТОГО: 250.00 [09:08:07]line Внесено: 250.00 [09:08:07]line СДАЧА: 0.00 [09:08:07]line НСП 1% : 2.21 [09:08:07]line НДС 12% : 26.57 [09:08:07]line Наличными: 250.00 [09:08:07]line Безнал.: 0.00 [09:08:07]line Место: АЗС № 161 "Партнер Нефть" [09:08:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:08:07]line СНО: Общий режим [09:08:07]line Чек 55 22.10.2024 09:08 [09:08:07]line Смена: 536 ФФД: 1.0 [09:08:07]line ЗНМ: 0300000104 [09:08:07]line РНМ: 0000000000091764 [09:08:07]line Версия ККМ: 001 [09:08:07]line ФМ: 0000000000871759 [09:08:07]line ФД: 166300 [09:08:07]line ФПД: 223810020866205 [09:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166300&fm=223810020866205&tin=02508201610067®Number=0000000000091764&sum=25000 [09:08:08]OFD Sender: Processing packet 166300 [packets to send 48, broken 47] [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00166300 [09:08:08]OFD Sender: To server: pG, [09:08:08]CommunicateWithHost lk.salyk.kg:30040 [09:08:08]ConnectInit lk.salyk.kg [09:08:08]written 0, free lines is 4095 [09:08:08]Connected sock=6 [09:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 97 07 01 FB 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8D 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 89 02 00 35 04 06 00 CB 8D D4 CA 78 9D 5F A1 B5 05 A0 10 95 79 [09:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 34 DA 47 00 C2 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 89 02 00 F4 03 04 00 F8 11 17 67 B6 04 01 00 00 C4 57 18 0A 6E 0B 59 CA [09:08:08]CommunicateWithHost err = 0 [09:08:08]CheckOFDResponse [09:08:08]1017 (14) - 77093643461234 [09:08:08]1041 (16) - 0000000000871759 [09:08:08]1040 (4) - 166300 [09:08:08]1012 (4) - 22.10.2024 02:46 [09:08:08]1206 (1) - 0 [09:08:08]OFD Sender: Remove packet 166300 [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00166300 [09:08:08]NVStorageDeleteData [09:08:08]Write to MH i2c: 01 00 00 33 A2 D5 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 33 A2 00 00 00 00 00 B8 0C A0 [09:08:08]RasterBufferAndPrint [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]written 0, free lines is 3264 [09:08:08]MH_Cut [09:08:08]Write to MH i2c: D1 01 00 3A A2 01 AE [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 3A A2 00 AD [09:08:08]Write to MH i2c: 01 00 00 3B A2 DD [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]OFD Sender: No OFD packet to send [09:08:09]*** Cut start [09:08:09]*** Partial cut [09:08:09]*** CUTSNS_PIN = 1 [09:08:09]*** CUTSNS_PIN = 0 [09:08:09]*** Brake cut motor [09:08:09]Read from MH i2c: 01 [09:08:09]MH_I2C_Read... [09:08:09]*** Stop cut motor [09:08:09]*** Cut end [09:08:09]Read from MH i2c: 01 07 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: 01 07 00 3B A2 00 00 00 00 00 FF 0F F2 [09:08:09]process_action close_receipt done [09:08:09]requested_data is exist [09:08:09]produce_requested_data [09:08:09]requested_item fm.sn is exist - process it [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 11 00 00 [09:08:09]Write to MH i2c: E2 08 00 3C A2 80 11 00 00 00 00 00 00 58 [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:09]Read from MH i2c: E2 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 17 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 17 00 3C A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [09:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:08:09]wFMCommunicate OK [09:08:09]requested_item fd.num is exist - process it [09:08:09]SAM_PROTO_GetFieldsCounters [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 13 00 00 [09:08:09]Write to MH i2c: E2 08 00 3D A2 80 13 00 00 00 00 00 00 5B [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 62 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 62 00 3D A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [09:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:10]wFMCommunicate OK [09:08:10]SAM_PROTO_GetFieldsCounters done [09:08:10]requested_item shift.num is exist - process it [09:08:10]requested_item shift.opened is exist - process it [09:08:10]req_shift_opened [09:08:10]FM_GetShiftState [09:08:10]SAM_PROTO_GetShiftState [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 13 01 00 [09:08:10]Write to MH i2c: E2 08 00 3E A2 80 13 01 00 00 00 00 00 5D [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 0E 00 3E A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B0 [09:08:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:08:10]wFMCommunicate OK [09:08:10]SAM_PROTO_GetShiftState done [09:08:10]FM_GetShiftState done [09:08:10]req_shift_opened done [09:08:10]requested_item shift.open_date is exist - process it [09:08:10]req_shift_open_date [09:08:10]req_shift_open_date done [09:08:10]produce_requested_data done [09:08:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166300,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:08:10]process_action_free close_receipt [09:08:10]json_value_free [09:08:10]json_value_free done [09:08:10]process_json_proto returns [09:08:10]Send response to host [09:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166300,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:08:10]free response buf [09:08:10]execute_script done [09:08:10]execute_script returns [09:08:10]free content buf [09:08:10]Sock 7.Close socket [09:08:10]Sock 7.Thread stoped [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]accept exits with 5 [09:09:18]New connection [09:09:18]New thread 3066776932 created [09:09:18]Thread 3066920292 joined [09:09:18]Waiting for new connection... [09:09:18] Sock 5.Parse request [09:09:18]Sock 5.Check first char [09:09:18]Sock 5.First char is OK [09:09:18]request: POST /json_proto HTTP/1.0 [09:09:18]Method: POST [09:09:18]URL: /json_proto [09:09:18]Method is POST - this is cgi request [09:09:18]url: /json_proto [09:09:18]query_string will be loaded in cgi processing [09:09:18]execute_cgi json_proto POST (null) [09:09:18]execute_cgi path=json_proto method=POST [09:09:18]POST find Content-Length [09:09:18]Host: 172.17.53.195:8080 [09:09:18]Content-Length: 679 [09:09:18]Content-Type: application/json [09:09:18] [09:09:18]POST finish read [09:09:18]Found Content-Length = 679 [09:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:18]execute_script... [09:09: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)220875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:18]POST & json_proto [09:09:18]process_json_proto [09:09:18]json parsed OK: [09:09:18]protocol is kg_v1.0 [09:09:18]action value=close_receipt [09:09:18]process_action close_receipt [09:09:18]cmd_close_receipt [09:09:18]MH_GetDate [09:09:18]Write to MH i2c: F0 00 00 3F A2 D0 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 09 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 09 00 3F A2 00 D5 6B 17 67 21 48 4A 65 AF [09:09:18]GetLastDocTimeStamp 1729588109 [09:09:18]current date 1729588181 [09:09:18]FM_GetShiftState [09:09:18]SAM_PROTO_GetShiftState [09:09:18]wFMCommunicate request_size=4 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 13 01 00 [09:09:18]Write to MH i2c: E2 08 00 40 A2 80 13 01 00 00 00 00 00 5F [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0E 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0E 00 40 A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B2 [09:09:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:09:18]wFMCommunicate OK [09:09:18]SAM_PROTO_GetShiftState done [09:09:18]FM_GetShiftState done [09:09:18]opened in 1729557463 [09:09:18]opened+sec_in_day 1729643863 [09:09:18]quantity*price = 149961 [09:09:18]sum+1 = 149963 [09:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 56 22.10.2024 09:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166301 ФПД: 211830714234771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090941&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166301&fm=211830714234771&tin=02508201610067®Number=0000000000091764&sum=149900 [09:09:19]StoreToDocumentArchive [09:09:19]shift 536 fd 166301 [09:09:19]save to /storage/0536/doc_00166301 [09:09:19]save last doc name /storage/0536/doc_00166301 to /storage/kkm_last_doc_name [09:09:19]save OK [09:09:19]Clear old archive folders... [09:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:19]tlvbuf is 01B4D930 [09:09:19]SAM_PROTO_ClearQueue [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 09 00 00 [09:09:19]Write to MH i2c: E2 08 00 4D A2 80 09 00 00 00 00 00 00 61 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 4D A2 00 90 00 63 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]SAM_PROTO_ClearQueue done [09:09:19]KKMCreateOFDPacket [09:09:19]OFDProtocolAddRootSTLVToBuf [09:09:19]FM_MakeSignedData [09:09:19]FM_MakeSignedData [09:09:19]SAM_PROTO_SignData [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 01 02 [09:09:19]Write to MH i2c: E2 08 00 4E A2 80 0D 01 02 00 00 00 00 69 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 4E A2 00 90 00 64 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=255 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 89 02 00 35 04 06 00 C0 A8 AE 79 [09:09:19]Write to MH i2c: E2 02 01 4F A2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 89 02 00 35 04 06 00 C0 A8 AE 79 00 00 0B [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 03 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 03 00 4F A2 00 90 00 65 [09:09:20]RAPDU: 90 00 [09:09:20]wFMCommunicate OK [09:09:20]wFMCommunicate request_size=7 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 0D 02 02 02 77 93 [09:09:20]Write to MH i2c: E2 0A 00 50 A2 80 0D 02 02 02 00 77 93 00 00 7A [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 03 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 03 00 50 A2 00 90 00 66 [09:09:20]RAPDU: 90 00 [09:09:20]wFMCommunicate OK [09:09:20]wFMCommunicate request_size=4 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 0D 03 02 [09:09:20]Write to MH i2c: E2 08 00 51 A2 80 0D 03 02 00 00 00 00 6E [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 0B 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 0B 00 51 A2 00 84 A8 E7 AE AE 14 D3 D2 90 00 97 [09:09:20]RAPDU: 84 A8 E7 AE AE 14 D3 D2 90 00 [09:09:20]wFMCommunicate OK [09:09:20]SAM_PROTO_SignData done [09:09:20]FM_MakeSignedData done [09:09:20]CreateOFDProtocolMessage [09:09:20]wFMCommunicate request_size=4 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 11 00 00 [09:09:20]Write to MH i2c: E2 08 00 52 A2 80 11 00 00 00 00 00 00 6E [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 17 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 17 00 52 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [09:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:09:20]wFMCommunicate OK [09:09:20]CreateOFDProtocolMessage done [09:09:20]OFDSenderStorePacket 166301 [09:09:20]StoreOFDPacket docnum=166301 [09:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 77 04 01 53 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 89 02 00 35 04 06 00 C0 A8 AE 79 77 93 84 A8 E7 AE AE 14 D3 D2 [09:09:20]CheckFolder [09:09:20]dirname=/storage/ofd_packets [09:09:20]CheckFolder done [09:09:20]ProducePacketName [09:09:20]name=ofd_packets/00166301 [09:09:20]NVStorageSaveData ofd_packets/00166301 [09:09:20]File name is /storage/ofd_packets/00166301 [09:09:20]Write 298 bytes [09:09:20]NVStorageSaveData done [09:09:20]OFDSenderStorePacket done [09:09:20]KKMCreateOFDPacket done [09:09:20]NVStorageSaveData kkm_last_timestamp [09:09:20]File name is /storage/kkm_last_timestamp [09:09:20]Write 4 bytes [09:09:20]NVStorageSaveData done [09:09:20]ExternCall_PrintAddStr [09:09:20]wPrintStart [09:09:20]Write to MH i2c: 01 00 00 53 A2 F5 [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 53 A2 00 00 00 00 00 FF 0F 0A [09:09:20]RasterBufferAndPrint [09:09:20]line Счет N : (1)220875 [09:09:20]line ИНН: 02508201610067 [09:09:20]line Контрольно-Кассовый Чек [09:09:20]line ПРОДАЖА [09:09:20]line ТРК (МРК, ГНК) : 11 [09:09:20]line Товар: 2710194210 [09:09:20]line ДТ-К-5 [09:09:20]line 19.680 * 76.20 [09:09:20]line = 1499.62 [09:09:20]line НДС 12% НСП 1% [09:09:20]line > о реализуемом товаре [09:09:20]line ОКРУГЛЕНИЕ: -0.62 [09:09:20]line ИТОГО: 1499.00 [09:09:20]line Внесено: 1500.00 [09:09:20]line СДАЧА: 1.00 [09:09:20]line НСП 1% : 13.27 [09:09:20]line НДС 12% : 159.25 [09:09:20]line Наличными: 1499.00 [09:09:20]line Безнал.: 0.00 [09:09:20]line Место: АЗС № 161 "Партнер Нефть" [09:09:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:09:20]line СНО: Общий режим [09:09:20]line Чек 56 22.10.2024 09:09 [09:09:20]line Смена: 536 ФФД: 1.0 [09:09:20]line ЗНМ: 0300000104 [09:09:20]line РНМ: 0000000000091764 [09:09:20]line Версия ККМ: 001 [09:09:20]line ФМ: 0000000000871759 [09:09:20]line ФД: 166301 [09:09:20]line ФПД: 211830714234771 [09:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090941&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166301&fm=211830714234771&tin=02508201610067®Number=0000000000091764&sum=149900 [09:09:20]OFD Sender: Processing packet 166301 [packets to send 48, broken 47] [09:09:20]ProducePacketName [09:09:20]name=ofd_packets/00166301 [09:09:20]OFD Sender: To server: pG, [09:09:20]CommunicateWithHost lk.salyk.kg:30040 [09:09:20]ConnectInit lk.salyk.kg [09:09:20]written 0, free lines is 4095 [09:09:20]Connected sock=7 [09:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 77 04 01 53 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 6B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 89 02 00 35 04 06 00 C0 A8 AE 79 77 93 84 A8 E7 AE AE 14 D3 D2 [09:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 40 85 47 00 39 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 89 02 00 F4 03 04 00 41 12 17 67 B6 04 01 00 00 9C 41 72 05 33 12 9E 31 [09:09:21]CommunicateWithHost err = 0 [09:09:21]CheckOFDResponse [09:09:21]1017 (14) - 77093643461234 [09:09:21]1041 (16) - 0000000000871759 [09:09:21]1040 (4) - 166301 [09:09:21]1012 (4) - 22.10.2024 02:47 [09:09:21]1206 (1) - 0 [09:09:21]OFD Sender: Remove packet 166301 [09:09:21]ProducePacketName [09:09:21]name=ofd_packets/00166301 [09:09:21]NVStorageDeleteData [09:09:21]Write to MH i2c: 01 00 00 7E A2 20 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 7E A2 00 00 00 00 00 BC 0C EF [09:09:21]RasterBufferAndPrint [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]written 0, free lines is 3267 [09:09:21]MH_Cut [09:09:21]Write to MH i2c: D1 01 00 85 A2 01 F9 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 01 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 01 00 85 A2 00 F8 [09:09:21]Write to MH i2c: 01 00 00 86 A2 28 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]OFD Sender: No OFD packet to send [09:09:21]*** Cut start [09:09:21]*** Partial cut [09:09:21]*** CUTSNS_PIN = 1 [09:09:22]*** CUTSNS_PIN = 0 [09:09:22]*** Brake cut motor [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]*** Stop cut motor [09:09:22]*** Cut end [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 86 A2 00 00 00 00 00 FF 0F 3D [09:09:22]process_action close_receipt done [09:09:22]requested_data is exist [09:09:22]produce_requested_data [09:09:22]requested_item fm.sn is exist - process it [09:09:22]wFMCommunicate request_size=4 [09:09:22]MH_SAM_APDU [09:09:22]CAPDU: 80 11 00 00 [09:09:22]Write to MH i2c: E2 08 00 87 A2 80 11 00 00 00 00 00 00 A3 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 17 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 17 00 87 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [09:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:09:22]wFMCommunicate OK [09:09:22]requested_item fd.num is exist - process it [09:09:22]SAM_PROTO_GetFieldsCounters [09:09:22]wFMCommunicate request_size=4 [09:09:22]MH_SAM_APDU [09:09:22]CAPDU: 80 13 00 00 [09:09:22]Write to MH i2c: E2 08 00 88 A2 80 13 00 00 00 00 00 00 A6 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 88 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [09:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetFieldsCounters done [09:09:22]requested_item shift.num is exist - process it [09:09:22]requested_item shift.opened is exist - process it [09:09:22]req_shift_opened [09:09:22]FM_GetShiftState [09:09:22]SAM_PROTO_GetShiftState [09:09:22]wFMCommunicate request_size=4 [09:09:22]MH_SAM_APDU [09:09:22]CAPDU: 80 13 01 00 [09:09:22]Write to MH i2c: E2 08 00 89 A2 80 13 01 00 00 00 00 00 A8 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 89 A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [09:09:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetShiftState done [09:09:22]FM_GetShiftState done [09:09:22]req_shift_opened done [09:09:22]requested_item shift.open_date is exist - process it [09:09:22]req_shift_open_date [09:09:22]req_shift_open_date done [09:09:22]produce_requested_data done [09:09:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166301,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:09:22]process_action_free close_receipt [09:09:22]json_value_free [09:09:22]json_value_free done [09:09:22]process_json_proto returns [09:09:22]Send response to host [09:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166301,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:09:22]free response buf [09:09:22]execute_script done [09:09:22]execute_script returns [09:09:22]free content buf [09:09:22]Sock 5.Close socket [09:09:22]Sock 5.Thread stoped [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:18]accept exits with 6 [09:15:18]New connection [09:15:18]New thread 3066920292 created [09:15:18]Thread 3066776932 joined [09:15:18]Waiting for new connection... [09:15:18] Sock 6.Parse request [09:15:18]Sock 6.Check first char [09:15:18]Sock 6.First char is OK [09:15:18]request: POST /json_proto HTTP/1.0 [09:15:18]Method: POST [09:15:18]URL: /json_proto [09:15:18]Method is POST - this is cgi request [09:15:18]url: /json_proto [09:15:18]query_string will be loaded in cgi processing [09:15:18]execute_cgi json_proto POST (null) [09:15:18]execute_cgi path=json_proto method=POST [09:15:18]POST find Content-Length [09:15:18]Host: 172.17.53.195:8080 [09:15:18]Content-Length: 682 [09:15:18]Content-Type: application/json [09:15:18] [09:15:18]POST finish read [09:15:18]Found Content-Length = 682 [09:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:18]execute_script... [09:15: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)220877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:18]POST & json_proto [09:15:18]process_json_proto [09:15:18]json parsed OK: [09:15:18]protocol is kg_v1.0 [09:15:18]action value=close_receipt [09:15:18]process_action close_receipt [09:15:18]cmd_close_receipt [09:15:18]MH_GetDate [09:15:18]Write to MH i2c: F0 00 00 8A A2 1B [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 09 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 09 00 8A A2 00 3D 6D 17 67 21 48 4A 65 64 [09:15:18]GetLastDocTimeStamp 1729588181 [09:15:18]current date 1729588541 [09:15:18]FM_GetShiftState [09:15:18]SAM_PROTO_GetShiftState [09:15:18]wFMCommunicate request_size=4 [09:15:18]MH_SAM_APDU [09:15:18]CAPDU: 80 13 01 00 [09:15:18]Write to MH i2c: E2 08 00 8B A2 80 13 01 00 00 00 00 00 AA [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:18]Read from MH i2c: E2 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0E 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0E 00 8B A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FD [09:15:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:15:18]wFMCommunicate OK [09:15:18]SAM_PROTO_GetShiftState done [09:15:18]FM_GetShiftState done [09:15:18]opened in 1729557463 [09:15:18]opened+sec_in_day 1729643863 [09:15:18]quantity*price = 150056 [09:15:18]sum+1 = 150058 [09:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 57 22.10.2024 09:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166302 ФПД: 35886157460287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166302&fm=35886157460287&tin=02508201610067®Number=0000000000091764&sum=150000 [09:15:19]StoreToDocumentArchive [09:15:19]shift 536 fd 166302 [09:15:19]save to /storage/0536/doc_00166302 [09:15:19]save last doc name /storage/0536/doc_00166302 to /storage/kkm_last_doc_name [09:15:19]save OK [09:15:19]Clear old archive folders... [09:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:19]tlvbuf is 014FEA80 [09:15:19]SAM_PROTO_ClearQueue [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 09 00 00 [09:15:19]Write to MH i2c: E2 08 00 98 A2 80 09 00 00 00 00 00 00 AC [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 98 A2 00 90 00 AE [09:15:19]RAPDU: 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_ClearQueue done [09:15:19]KKMCreateOFDPacket [09:15:19]OFDProtocolAddRootSTLVToBuf [09:15:19]FM_MakeSignedData [09:15:19]FM_MakeSignedData [09:15:19]SAM_PROTO_SignData [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 0D 01 02 [09:15:19]Write to MH i2c: E2 08 00 99 A2 80 0D 01 02 00 00 00 00 B4 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 99 A2 00 90 00 AF [09:15:19]RAPDU: 90 00 [09:15:19]wFMCommunicate OK [09:15:19]wFMCommunicate request_size=255 [09:15:19]MH_SAM_APDU [09:15: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 3D 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 89 02 00 35 04 06 00 20 [09:15:19]Write to MH i2c: E2 02 01 9A A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 3D 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 89 02 00 35 04 06 00 20 00 00 57 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 9A A2 00 90 00 B0 [09:15:19]RAPDU: 90 00 [09:15:19]wFMCommunicate OK [09:15:19]wFMCommunicate request_size=10 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 0D 02 02 05 A3 65 AA F3 3F [09:15:19]Write to MH i2c: E2 0D 00 9B A2 80 0D 02 02 05 00 A3 65 AA F3 3F 00 00 A5 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 9B A2 00 90 00 B1 [09:15:20]RAPDU: 90 00 [09:15:20]wFMCommunicate OK [09:15:20]wFMCommunicate request_size=4 [09:15:20]MH_SAM_APDU [09:15:20]CAPDU: 80 0D 03 02 [09:15:20]Write to MH i2c: E2 08 00 9C A2 80 0D 03 02 00 00 00 00 B9 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 0B 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 0B 00 9C A2 00 7B E2 C0 26 D4 B8 94 1D 90 00 3A [09:15:20]RAPDU: 7B E2 C0 26 D4 B8 94 1D 90 00 [09:15:20]wFMCommunicate OK [09:15:20]SAM_PROTO_SignData done [09:15:20]FM_MakeSignedData done [09:15:20]CreateOFDProtocolMessage [09:15:20]wFMCommunicate request_size=4 [09:15:20]MH_SAM_APDU [09:15:20]CAPDU: 80 11 00 00 [09:15:20]Write to MH i2c: E2 08 00 9D A2 80 11 00 00 00 00 00 00 B9 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 17 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 17 00 9D A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [09:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:20]wFMCommunicate OK [09:15:20]CreateOFDProtocolMessage done [09:15:20]OFDSenderStorePacket 166302 [09:15:20]StoreOFDPacket docnum=166302 [09:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BF C1 07 01 E6 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 3D 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 89 02 00 35 04 06 00 20 A3 65 AA F3 3F 7B E2 C0 26 D4 B8 94 1D [09:15:20]CheckFolder [09:15:20]dirname=/storage/ofd_packets [09:15:20]CheckFolder done [09:15:20]ProducePacketName [09:15:20]name=ofd_packets/00166302 [09:15:20]NVStorageSaveData ofd_packets/00166302 [09:15:20]File name is /storage/ofd_packets/00166302 [09:15:20]Write 301 bytes [09:15:20]NVStorageSaveData done [09:15:20]OFDSenderStorePacket done [09:15:20]KKMCreateOFDPacket done [09:15:20]NVStorageSaveData kkm_last_timestamp [09:15:20]File name is /storage/kkm_last_timestamp [09:15:20]Write 4 bytes [09:15:20]NVStorageSaveData done [09:15:20]ExternCall_PrintAddStr [09:15:20]wPrintStart [09:15:20]Write to MH i2c: 01 00 00 9E A2 40 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 9E A2 00 00 00 00 00 FF 0F 55 [09:15:20]RasterBufferAndPrint [09:15:20]line Счет N : (1)220877 [09:15:20]line ИНН: 02508201610067 [09:15:20]line Контрольно-Кассовый Чек [09:15:20]line ПРОДАЖА [09:15:20]line ТРК (МРК, ГНК) : 23 [09:15:20]line Товар: 2710124130 [09:15:20]line Аи-92-К-5 [09:15:20]line 22.430 * 66.90 [09:15:20]line = 1500.57 [09:15:20]line НДС 12% НСП 1% [09:15:20]line > о реализуемом товаре [09:15:20]line ОКРУГЛЕНИЕ: -0.57 [09:15:20]line ИТОГО: 1500.00 [09:15:20]line Внесено: 1500.00 [09:15:20]line СДАЧА: 0.00 [09:15:20]line НСП 1% : 13.28 [09:15:20]line НДС 12% : 159.35 [09:15:20]line Наличными: 1500.00 [09:15:20]line Безнал.: 0.00 [09:15:20]line Место: АЗС № 161 "Партнер Нефть" [09:15:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:15:20]line СНО: Общий режим [09:15:20]line Чек 57 22.10.2024 09:15 [09:15:20]line Смена: 536 ФФД: 1.0 [09:15:20]line ЗНМ: 0300000104 [09:15:20]line РНМ: 0000000000091764 [09:15:20]line Версия ККМ: 001 [09:15:20]line ФМ: 0000000000871759 [09:15:20]line ФД: 166302 [09:15:20]line ФПД: 35886157460287 [09:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091541&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166302&fm=35886157460287&tin=02508201610067®Number=0000000000091764&sum=150000 [09:15:20]OFD Sender: Processing packet 166302 [packets to send 48, broken 47] [09:15:20]ProducePacketName [09:15:20]name=ofd_packets/00166302 [09:15:20]OFD Sender: To server: pG, [09:15:20]CommunicateWithHost lk.salyk.kg:30040 [09:15:20]ConnectInit lk.salyk.kg [09:15:20]written 0, free lines is 4095 [09:15:20]Connected sock=7 [09:15:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BF C1 07 01 E6 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 3D 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 89 02 00 35 04 06 00 20 A3 65 AA F3 3F 7B E2 C0 26 D4 B8 94 1D [09:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD 24 47 00 68 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 89 02 00 F4 03 04 00 A9 13 17 67 B6 04 01 00 00 AC 6B 61 80 DB 03 0B E8 [09:15:20]CommunicateWithHost err = 0 [09:15:20]CheckOFDResponse [09:15:20]1017 (14) - 77093643461234 [09:15:20]1041 (16) - 0000000000871759 [09:15:20]1040 (4) - 166302 [09:15:20]1012 (4) - 22.10.2024 02:53 [09:15:20]1206 (1) - 0 [09:15:20]OFD Sender: Remove packet 166302 [09:15:20]ProducePacketName [09:15:20]name=ofd_packets/00166302 [09:15:20]NVStorageDeleteData [09:15:20]Write to MH i2c: 01 00 00 C9 A2 6B [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 C9 A2 00 00 00 00 00 C2 0C 40 [09:15:20]RasterBufferAndPrint [09:15:20]line [09:15:20]line [09:15:20]line [09:15:20]line [09:15:20]line [09:15:20]written 0, free lines is 3273 [09:15:20]MH_Cut [09:15:20]Write to MH i2c: D1 01 00 D0 A2 01 44 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: D1 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: D1 01 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: D1 01 00 D0 A2 00 43 [09:15:20]Write to MH i2c: 01 00 00 D1 A2 73 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:21]OFD Sender: No OFD packet to send [09:15:21]*** Cut start [09:15:21]*** Partial cut [09:15:21]*** CUTSNS_PIN = 1 [09:15:21]*** CUTSNS_PIN = 0 [09:15:22]*** Brake cut motor [09:15:22]Read from MH i2c: 01 [09:15:22]MH_I2C_Read... [09:15:22]*** Stop cut motor [09:15:22]*** Cut end [09:15:22]Read from MH i2c: 01 07 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 07 00 D1 A2 00 00 00 00 00 FF 0F 88 [09:15:22]process_action close_receipt done [09:15:22]requested_data is exist [09:15:22]produce_requested_data [09:15:22]requested_item fm.sn is exist - process it [09:15:22]wFMCommunicate request_size=4 [09:15:22]MH_SAM_APDU [09:15:22]CAPDU: 80 11 00 00 [09:15:22]Write to MH i2c: E2 08 00 D2 A2 80 11 00 00 00 00 00 00 EE [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:22]Read from MH i2c: E2 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 17 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 17 00 D2 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [09:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:22]wFMCommunicate OK [09:15:22]requested_item fd.num is exist - process it [09:15:22]SAM_PROTO_GetFieldsCounters [09:15:22]wFMCommunicate request_size=4 [09:15:22]MH_SAM_APDU [09:15:22]CAPDU: 80 13 00 00 [09:15:22]Write to MH i2c: E2 08 00 D3 A2 80 13 00 00 00 00 00 00 F1 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:22]Read from MH i2c: E2 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 62 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 62 00 D3 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [09:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:22]wFMCommunicate OK [09:15:22]SAM_PROTO_GetFieldsCounters done [09:15:22]requested_item shift.num is exist - process it [09:15:22]requested_item shift.opened is exist - process it [09:15:22]req_shift_opened [09:15:22]FM_GetShiftState [09:15:22]SAM_PROTO_GetShiftState [09:15:22]wFMCommunicate request_size=4 [09:15:22]MH_SAM_APDU [09:15:22]CAPDU: 80 13 01 00 [09:15:22]Write to MH i2c: E2 08 00 D4 A2 80 13 01 00 00 00 00 00 F3 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:22]Read from MH i2c: E2 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 0E 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: E2 0E 00 D4 A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [09:15:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:15:22]wFMCommunicate OK [09:15:22]SAM_PROTO_GetShiftState done [09:15:22]FM_GetShiftState done [09:15:22]req_shift_opened done [09:15:22]requested_item shift.open_date is exist - process it [09:15:22]req_shift_open_date [09:15:22]req_shift_open_date done [09:15:22]produce_requested_data done [09:15:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166302,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:15:22]process_action_free close_receipt [09:15:22]json_value_free [09:15:22]json_value_free done [09:15:22]process_json_proto returns [09:15:22]Send response to host [09:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166302,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:15:22]free response buf [09:15:22]execute_script done [09:15:22]execute_script returns [09:15:22]free content buf [09:15:22]Sock 6.Close socket [09:15:22]Sock 6.Thread stoped [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:46]accept exits with 5 [09:15:46]New connection [09:15:46]New thread 3066776932 created [09:15:46]Thread 3066920292 joined [09:15:46]Waiting for new connection... [09:15:46] Sock 5.Parse request [09:15:46]Sock 5.Check first char [09:15:46]Sock 5.First char is OK [09:15:46]request: POST /json_proto HTTP/1.0 [09:15:46]Method: POST [09:15:46]URL: /json_proto [09:15:46]Method is POST - this is cgi request [09:15:46]url: /json_proto [09:15:46]query_string will be loaded in cgi processing [09:15:46]execute_cgi json_proto POST (null) [09:15:46]execute_cgi path=json_proto method=POST [09:15:46]POST find Content-Length [09:15:46]Host: 172.17.53.195:8080 [09:15:46]Content-Length: 674 [09:15:46]Content-Type: application/json [09:15:46] [09:15:46]POST finish read [09:15:46]Found Content-Length = 674 [09:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]execute_script... [09:15:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]POST & json_proto [09:15:46]process_json_proto [09:15:46]json parsed OK: [09:15:46]protocol is kg_v1.0 [09:15:46]action value=close_receipt [09:15:46]process_action close_receipt [09:15:46]cmd_close_receipt [09:15:46]MH_GetDate [09:15:46]Write to MH i2c: F0 00 00 D5 A2 66 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 D5 A2 00 5A 6D 17 67 21 48 4A 65 CC [09:15:46]GetLastDocTimeStamp 1729588541 [09:15:46]current date 1729588570 [09:15:46]FM_GetShiftState [09:15:46]SAM_PROTO_GetShiftState [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 01 00 [09:15:46]Write to MH i2c: E2 08 00 D6 A2 80 13 01 00 00 00 00 00 F5 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 D6 A2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 48 [09:15:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:15:46]wFMCommunicate OK [09:15:46]SAM_PROTO_GetShiftState done [09:15:46]FM_GetShiftState done [09:15:46]opened in 1729557463 [09:15:46]opened+sec_in_day 1729643863 [09:15:46]quantity*price = 40005 [09:15:46]sum+1 = 40006 [09:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 58 22.10.2024 09:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166303 ФПД: 83278052155676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091610&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166303&fm=83278052155676&tin=02508201610067®Number=0000000000091764&sum=40000 [09:15:48]StoreToDocumentArchive [09:15:48]shift 536 fd 166303 [09:15:48]save to /storage/0536/doc_00166303 [09:15:48]save last doc name /storage/0536/doc_00166303 to /storage/kkm_last_doc_name [09:15:48]save OK [09:15:48]Clear old archive folders... [09:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:48]tlvbuf is 01C36470 [09:15:48]SAM_PROTO_ClearQueue [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 09 00 00 [09:15:48]Write to MH i2c: E2 08 00 E3 A2 80 09 00 00 00 00 00 00 F7 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 E3 A2 00 90 00 F9 [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]SAM_PROTO_ClearQueue done [09:15:48]KKMCreateOFDPacket [09:15:48]OFDProtocolAddRootSTLVToBuf [09:15:48]FM_MakeSignedData [09:15:48]FM_MakeSignedData [09:15:48]SAM_PROTO_SignData [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 01 02 [09:15:48]Write to MH i2c: E2 08 00 E4 A2 80 0D 01 02 00 00 00 00 FF [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 E4 A2 00 90 00 FA [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=255 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5A 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 89 02 00 35 04 06 00 4B BD AE B7 [09:15:48]Write to MH i2c: E2 02 01 E5 A2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5A 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 89 02 00 35 04 06 00 4B BD AE B7 00 00 AE [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 E5 A2 00 90 00 FB [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=7 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 02 02 02 61 1C [09:15:48]Write to MH i2c: E2 0A 00 E6 A2 80 0D 02 02 02 00 61 1C 00 00 83 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 E6 A2 00 90 00 FC [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 03 02 [09:15:48]Write to MH i2c: E2 08 00 E7 A2 80 0D 03 02 00 00 00 00 04 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0B 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0B 00 E7 A2 00 BA 22 F3 74 55 50 5D BD 90 00 07 [09:15:48]RAPDU: BA 22 F3 74 55 50 5D BD 90 00 [09:15:48]wFMCommunicate OK [09:15:48]SAM_PROTO_SignData done [09:15:48]FM_MakeSignedData done [09:15:48]CreateOFDProtocolMessage [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 11 00 00 [09:15:48]Write to MH i2c: E2 08 00 E8 A2 80 11 00 00 00 00 00 00 04 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 17 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 17 00 E8 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [09:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:48]wFMCommunicate OK [09:15:48]CreateOFDProtocolMessage done [09:15:48]OFDSenderStorePacket 166303 [09:15:48]StoreOFDPacket docnum=166303 [09:15:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9F BB 04 01 81 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5A 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 89 02 00 35 04 06 00 4B BD AE B7 61 1C BA 22 F3 74 55 50 5D BD [09:15:48]CheckFolder [09:15:48]dirname=/storage/ofd_packets [09:15:48]CheckFolder done [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00166303 [09:15:48]NVStorageSaveData ofd_packets/00166303 [09:15:48]File name is /storage/ofd_packets/00166303 [09:15:48]Write 298 bytes [09:15:48]NVStorageSaveData done [09:15:48]OFDSenderStorePacket done [09:15:48]KKMCreateOFDPacket done [09:15:48]NVStorageSaveData kkm_last_timestamp [09:15:48]File name is /storage/kkm_last_timestamp [09:15:48]Write 4 bytes [09:15:48]NVStorageSaveData done [09:15:48]ExternCall_PrintAddStr [09:15:48]wPrintStart [09:15:48]Write to MH i2c: 01 00 00 E9 A2 8B [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 E9 A2 00 00 00 00 00 FF 0F A0 [09:15:48]RasterBufferAndPrint [09:15:48]line Счет N : (1)220878 [09:15:48]line ИНН: 02508201610067 [09:15:48]line Контрольно-Кассовый Чек [09:15:48]line ПРОДАЖА [09:15:48]line ТРК (МРК, ГНК) : 31 [09:15:48]line Товар: 2710194210 [09:15:48]line ДТ-К-5 [09:15:48]line 5.250 * 76.20 [09:15:48]line = 400.05 [09:15:48]line НДС 12% НСП 1% [09:15:48]line > о реализуемом товаре [09:15:48]line ОКРУГЛЕНИЕ: -0.05 [09:15:48]line ИТОГО: 400.00 [09:15:48]line Внесено: 400.00 [09:15:48]line СДАЧА: 0.00 [09:15:48]line НСП 1% : 3.54 [09:15:48]line НДС 12% : 42.48 [09:15:48]line Наличными: 400.00 [09:15:48]line Безнал.: 0.00 [09:15:48]line Место: АЗС № 161 "Партнер Нефть" [09:15:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:15:48]line СНО: Общий режим [09:15:48]line Чек 58 22.10.2024 09:16 [09:15:48]line Смена: 536 ФФД: 1.0 [09:15:48]line ЗНМ: 0300000104 [09:15:48]line РНМ: 0000000000091764 [09:15:48]line Версия ККМ: 001 [09:15:48]line ФМ: 0000000000871759 [09:15:48]line ФД: 166303 [09:15:48]line ФПД: 83278052155676 [09:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091610&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166303&fm=83278052155676&tin=02508201610067®Number=0000000000091764&sum=40000 [09:15:48]OFD Sender: Processing packet 166303 [packets to send 48, broken 47] [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00166303 [09:15:48]OFD Sender: To server: pG, [09:15:48]CommunicateWithHost lk.salyk.kg:30040 [09:15:48]ConnectInit lk.salyk.kg [09:15:48]written 0, free lines is 4095 [09:15:49]Connected sock=7 [09:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 9F BB 04 01 81 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5A 6D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 89 02 00 35 04 06 00 4B BD AE B7 61 1C BA 22 F3 74 55 50 5D BD [09:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 ED 4E 47 00 5B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 89 02 00 F4 03 04 00 C5 13 17 67 B6 04 01 00 00 18 08 ED 3A A7 F0 D2 F1 [09:15:49]CommunicateWithHost err = 0 [09:15:49]CheckOFDResponse [09:15:49]1017 (14) - 77093643461234 [09:15:49]1041 (16) - 0000000000871759 [09:15:49]1040 (4) - 166303 [09:15:49]1012 (4) - 22.10.2024 02:53 [09:15:49]1206 (1) - 0 [09:15:49]OFD Sender: Remove packet 166303 [09:15:49]ProducePacketName [09:15:49]name=ofd_packets/00166303 [09:15:49]NVStorageDeleteData [09:15:49]Write to MH i2c: 01 00 00 14 A3 B7 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 14 A3 00 00 00 00 00 AF 0C 79 [09:15:49]RasterBufferAndPrint [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]written 0, free lines is 3257 [09:15:49]MH_Cut [09:15:49]Write to MH i2c: D1 01 00 1B A3 01 90 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 01 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 01 00 1B A3 00 8F [09:15:49]Write to MH i2c: 01 00 00 1C A3 BF [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]OFD Sender: No OFD packet to send [09:15:50]*** Cut start [09:15:50]*** Partial cut [09:15:50]*** CUTSNS_PIN = 1 [09:15:50]*** CUTSNS_PIN = 0 [09:15:50]*** Brake cut motor [09:15:50]Read from MH i2c: 01 [09:15:50]MH_I2C_Read... [09:15:50]*** Stop cut motor [09:15:50]*** Cut end [09:15:50]Read from MH i2c: 01 07 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 1C A3 00 00 00 00 00 FF 0F D4 [09:15:50]process_action close_receipt done [09:15:50]requested_data is exist [09:15:50]produce_requested_data [09:15:50]requested_item fm.sn is exist - process it [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 11 00 00 [09:15:50]Write to MH i2c: E2 08 00 1D A3 80 11 00 00 00 00 00 00 3A [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 1D A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [09:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:50]wFMCommunicate OK [09:15:50]requested_item fd.num is exist - process it [09:15:50]SAM_PROTO_GetFieldsCounters [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 13 00 00 [09:15:50]Write to MH i2c: E2 08 00 1E A3 80 13 00 00 00 00 00 00 3D [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 62 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 62 00 1E A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [09:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetFieldsCounters done [09:15:51]requested_item shift.num is exist - process it [09:15:51]requested_item shift.opened is exist - process it [09:15:51]req_shift_opened [09:15:51]FM_GetShiftState [09:15:51]SAM_PROTO_GetShiftState [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 13 01 00 [09:15:51]Write to MH i2c: E2 08 00 1F A3 80 13 01 00 00 00 00 00 3F [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 1F A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 92 [09:15:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetShiftState done [09:15:51]FM_GetShiftState done [09:15:51]req_shift_opened done [09:15:51]requested_item shift.open_date is exist - process it [09:15:51]req_shift_open_date [09:15:51]req_shift_open_date done [09:15:51]produce_requested_data done [09:15:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166303,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:15:51]process_action_free close_receipt [09:15:51]json_value_free [09:15:51]json_value_free done [09:15:51]process_json_proto returns [09:15:51]Send response to host [09:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166303,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:15:51]free response buf [09:15:51]execute_script done [09:15:51]execute_script returns [09:15:51]free content buf [09:15:51]Sock 5.Close socket [09:15:51]Sock 5.Thread stoped [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]accept exits with 6 [09:19:04]New connection [09:19:04]New thread 3066920292 created [09:19:04]Thread 3066776932 joined [09:19:04]Waiting for new connection... [09:19:04] Sock 6.Parse request [09:19:04]Sock 6.Check first char [09:19:04]Sock 6.First char is OK [09:19:04]request: POST /json_proto HTTP/1.0 [09:19:04]Method: POST [09:19:04]URL: /json_proto [09:19:04]Method is POST - this is cgi request [09:19:04]url: /json_proto [09:19:04]query_string will be loaded in cgi processing [09:19:04]execute_cgi json_proto POST (null) [09:19:04]execute_cgi path=json_proto method=POST [09:19:04]POST find Content-Length [09:19:04]Host: 172.17.53.195:8080 [09:19:04]Content-Length: 677 [09:19:04]Content-Type: application/json [09:19:04] [09:19:04]POST finish read [09:19:04]Found Content-Length = 677 [09:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]execute_script... [09:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]POST & json_proto [09:19:04]process_json_proto [09:19:04]json parsed OK: [09:19:04]protocol is kg_v1.0 [09:19:04]action value=close_receipt [09:19:04]process_action close_receipt [09:19:04]cmd_close_receipt [09:19:04]MH_GetDate [09:19:04]Write to MH i2c: F0 00 00 20 A3 B2 [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 09 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 09 00 20 A3 00 1F 6E 17 67 21 48 4A 65 DE [09:19:04]GetLastDocTimeStamp 1729588570 [09:19:04]current date 1729588767 [09:19:04]FM_GetShiftState [09:19:04]SAM_PROTO_GetShiftState [09:19:04]wFMCommunicate request_size=4 [09:19:04]MH_SAM_APDU [09:19:04]CAPDU: 80 13 01 00 [09:19:04]Write to MH i2c: E2 08 00 21 A3 80 13 01 00 00 00 00 00 41 [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:04]Read from MH i2c: E2 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: E2 0E 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: E2 0E 00 21 A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 94 [09:19:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:19:04]wFMCommunicate OK [09:19:04]SAM_PROTO_GetShiftState done [09:19:04]FM_GetShiftState done [09:19:04]opened in 1729557463 [09:19:04]opened+sec_in_day 1729643863 [09:19:04]quantity*price = 40006 [09:19:04]sum+1 = 40007 [09:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 59 22.10.2024 09:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166304 ФПД: 183162228967469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091927&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166304&fm=183162228967469&tin=02508201610067®Number=0000000000091764&sum=40000 [09:19:05]StoreToDocumentArchive [09:19:05]shift 536 fd 166304 [09:19:05]save to /storage/0536/doc_00166304 [09:19:05]save last doc name /storage/0536/doc_00166304 to /storage/kkm_last_doc_name [09:19:05]save OK [09:19:05]Clear old archive folders... [09:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:05]tlvbuf is 01B4DD60 [09:19:05]SAM_PROTO_ClearQueue [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 09 00 00 [09:19:05]Write to MH i2c: E2 08 00 2E A3 80 09 00 00 00 00 00 00 43 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 2E A3 00 90 00 45 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_ClearQueue done [09:19:05]KKMCreateOFDPacket [09:19:05]OFDProtocolAddRootSTLVToBuf [09:19:05]FM_MakeSignedData [09:19:05]FM_MakeSignedData [09:19:05]SAM_PROTO_SignData [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 01 02 [09:19:05]Write to MH i2c: E2 08 00 2F A3 80 0D 01 02 00 00 00 00 4B [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 2F A3 00 90 00 46 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]wFMCommunicate request_size=255 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 89 02 00 35 04 06 00 A6 [09:19:05]Write to MH i2c: E2 02 01 30 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 89 02 00 35 04 06 00 A6 00 00 E1 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 30 A3 00 90 00 47 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]wFMCommunicate request_size=10 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 02 02 05 95 C7 98 08 2D [09:19:05]Write to MH i2c: E2 0D 00 31 A3 80 0D 02 02 05 00 95 C7 98 08 2D 00 00 81 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 31 A3 00 90 00 48 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 03 02 [09:19:05]Write to MH i2c: E2 08 00 32 A3 80 0D 03 02 00 00 00 00 50 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0B 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0B 00 32 A3 00 26 C1 37 39 A3 23 41 62 90 00 11 [09:19:05]RAPDU: 26 C1 37 39 A3 23 41 62 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_SignData done [09:19:05]FM_MakeSignedData done [09:19:05]CreateOFDProtocolMessage [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 11 00 00 [09:19:05]Write to MH i2c: E2 08 00 33 A3 80 11 00 00 00 00 00 00 50 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 17 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 17 00 33 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [09:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:19:06]wFMCommunicate OK [09:19:06]CreateOFDProtocolMessage done [09:19:06]OFDSenderStorePacket 166304 [09:19:06]StoreOFDPacket docnum=166304 [09:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 32 8F 07 01 84 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 89 02 00 35 04 06 00 A6 95 C7 98 08 2D 26 C1 37 39 A3 23 41 62 [09:19:06]CheckFolder [09:19:06]dirname=/storage/ofd_packets [09:19:06]CheckFolder done [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00166304 [09:19:06]NVStorageSaveData ofd_packets/00166304 [09:19:06]File name is /storage/ofd_packets/00166304 [09:19:06]Write 301 bytes [09:19:06]NVStorageSaveData done [09:19:06]OFDSenderStorePacket done [09:19:06]KKMCreateOFDPacket done [09:19:06]NVStorageSaveData kkm_last_timestamp [09:19:06]File name is /storage/kkm_last_timestamp [09:19:06]Write 4 bytes [09:19:06]NVStorageSaveData done [09:19:06]ExternCall_PrintAddStr [09:19:06]wPrintStart [09:19:06]Write to MH i2c: 01 00 00 34 A3 D7 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 34 A3 00 00 00 00 00 FF 0F EC [09:19:06]RasterBufferAndPrint [09:19:06]line Счет N : (1)220879 [09:19:06]line ИНН: 02508201610067 [09:19:06]line Контрольно-Кассовый Чек [09:19:06]line ПРОДАЖА [09:19:06]line ТРК (МРК, ГНК) : 23 [09:19:06]line Товар: 2710124130 [09:19:06]line Аи-92-К-5 [09:19:06]line 5.980 * 66.90 [09:19:06]line = 400.06 [09:19:06]line НДС 12% НСП 1% [09:19:06]line > о реализуемом товаре [09:19:06]line ОКРУГЛЕНИЕ: -0.06 [09:19:06]line ИТОГО: 400.00 [09:19:06]line Внесено: 400.00 [09:19:06]line СДАЧА: 0.00 [09:19:06]line НСП 1% : 3.54 [09:19:06]line НДС 12% : 42.48 [09:19:06]line Наличными: 400.00 [09:19:06]line Безнал.: 0.00 [09:19:06]line Место: АЗС № 161 "Партнер Нефть" [09:19:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:19:06]line СНО: Общий режим [09:19:06]line Чек 59 22.10.2024 09:19 [09:19:06]line Смена: 536 ФФД: 1.0 [09:19:06]line ЗНМ: 0300000104 [09:19:06]line РНМ: 0000000000091764 [09:19:06]line Версия ККМ: 001 [09:19:06]line ФМ: 0000000000871759 [09:19:06]line ФД: 166304 [09:19:06]line ФПД: 183162228967469 [09:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091927&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166304&fm=183162228967469&tin=02508201610067®Number=0000000000091764&sum=40000 [09:19:06]written 0, free lines is 4095 [09:19:06]OFD Sender: Processing packet 166304 [packets to send 48, broken 47] [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00166304 [09:19:06]OFD Sender: To server: pG, [09:19:06]CommunicateWithHost lk.salyk.kg:30040 [09:19:06]ConnectInit lk.salyk.kg [09:19:06]Connected sock=9 [09:19:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 32 8F 07 01 84 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 89 02 00 35 04 06 00 A6 95 C7 98 08 2D 26 C1 37 39 A3 23 41 62 [09:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9E 32 47 00 71 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 89 02 00 F4 03 04 00 8A 14 17 67 B6 04 01 00 00 75 80 BD 21 CC C7 C6 C8 [09:19:06]CommunicateWithHost err = 0 [09:19:06]CheckOFDResponse [09:19:06]1017 (14) - 77093643461234 [09:19:06]1041 (16) - 0000000000871759 [09:19:06]1040 (4) - 166304 [09:19:06]1012 (4) - 22.10.2024 02:57 [09:19:06]1206 (1) - 0 [09:19:06]OFD Sender: Remove packet 166304 [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00166304 [09:19:06]NVStorageDeleteData [09:19:06]Write to MH i2c: 01 00 00 5F A3 02 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 5F A3 00 00 00 00 00 C6 0C DB [09:19:06]RasterBufferAndPrint [09:19:06]line [09:19:06]line [09:19:06]line [09:19:06]line [09:19:06]line [09:19:06]written 0, free lines is 3276 [09:19:06]MH_Cut [09:19:06]Write to MH i2c: D1 01 00 66 A3 01 DB [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D1 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D1 01 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D1 01 00 66 A3 00 DA [09:19:06]Write to MH i2c: 01 00 00 67 A3 0A [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]OFD Sender: No OFD packet to send [09:19:07]*** Cut start [09:19:07]*** Partial cut [09:19:07]*** CUTSNS_PIN = 1 [09:19:07]*** CUTSNS_PIN = 0 [09:19:07]*** Brake cut motor [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]*** Stop cut motor [09:19:07]*** Cut end [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 67 A3 00 00 00 00 00 FF 0F 1F [09:19:07]process_action close_receipt done [09:19:07]requested_data is exist [09:19:07]produce_requested_data [09:19:07]requested_item fm.sn is exist - process it [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 68 A3 80 11 00 00 00 00 00 00 85 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:08]Read from MH i2c: E2 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 17 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 17 00 68 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [09:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:19:08]wFMCommunicate OK [09:19:08]requested_item fd.num is exist - process it [09:19:08]SAM_PROTO_GetFieldsCounters [09:19:08]wFMCommunicate request_size=4 [09:19:08]MH_SAM_APDU [09:19:08]CAPDU: 80 13 00 00 [09:19:08]Write to MH i2c: E2 08 00 69 A3 80 13 00 00 00 00 00 00 88 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:08]Read from MH i2c: E2 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 62 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 62 00 69 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:08]wFMCommunicate OK [09:19:08]SAM_PROTO_GetFieldsCounters done [09:19:08]requested_item shift.num is exist - process it [09:19:08]requested_item shift.opened is exist - process it [09:19:08]req_shift_opened [09:19:08]FM_GetShiftState [09:19:08]SAM_PROTO_GetShiftState [09:19:08]wFMCommunicate request_size=4 [09:19:08]MH_SAM_APDU [09:19:08]CAPDU: 80 13 01 00 [09:19:08]Write to MH i2c: E2 08 00 6A A3 80 13 01 00 00 00 00 00 8A [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:08]Read from MH i2c: E2 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 0E 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: E2 0E 00 6A A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DD [09:19:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:19:08]wFMCommunicate OK [09:19:08]SAM_PROTO_GetShiftState done [09:19:08]FM_GetShiftState done [09:19:08]req_shift_opened done [09:19:08]requested_item shift.open_date is exist - process it [09:19:08]req_shift_open_date [09:19:08]req_shift_open_date done [09:19:08]produce_requested_data done [09:19:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166304,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:19:08]process_action_free close_receipt [09:19:08]json_value_free [09:19:08]json_value_free done [09:19:08]process_json_proto returns [09:19:08]Send response to host [09:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166304,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:19:08]free response buf [09:19:08]execute_script done [09:19:08]execute_script returns [09:19:08]free content buf [09:19:08]Sock 6.Close socket [09:19:08]Sock 6.Thread stoped [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:37]accept exits with 5 [09:19:37]New connection [09:19:37]New thread 3066776932 created [09:19:37]Thread 3066920292 joined [09:19:37]Waiting for new connection... [09:19:37] Sock 5.Parse request [09:19:37]Sock 5.Check first char [09:19:37]Sock 5.First char is OK [09:19:37]request: POST /json_proto HTTP/1.0 [09:19:37]Method: POST [09:19:37]URL: /json_proto [09:19:37]Method is POST - this is cgi request [09:19:37]url: /json_proto [09:19:37]query_string will be loaded in cgi processing [09:19:37]execute_cgi json_proto POST (null) [09:19:37]execute_cgi path=json_proto method=POST [09:19:37]POST find Content-Length [09:19:37]Host: 172.17.53.195:8080 [09:19:37]Content-Length: 677 [09:19:37]Content-Type: application/json [09:19:37] [09:19:37]POST finish read [09:19:37]Found Content-Length = 677 [09:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:37]execute_script... [09:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:37]POST & json_proto [09:19:37]process_json_proto [09:19:37]json parsed OK: [09:19:37]protocol is kg_v1.0 [09:19:37]action value=close_receipt [09:19:37]process_action close_receipt [09:19:37]cmd_close_receipt [09:19:37]MH_GetDate [09:19:37]Write to MH i2c: F0 00 00 6B A3 FD [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: F0 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: F0 09 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: F0 09 00 6B A3 00 40 6E 17 67 21 48 4A 65 4A [09:19:37]GetLastDocTimeStamp 1729588767 [09:19:37]current date 1729588800 [09:19:37]FM_GetShiftState [09:19:37]SAM_PROTO_GetShiftState [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 13 01 00 [09:19:37]Write to MH i2c: E2 08 00 6C A3 80 13 01 00 00 00 00 00 8C [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0E 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0E 00 6C A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DF [09:19:37]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:19:37]wFMCommunicate OK [09:19:37]SAM_PROTO_GetShiftState done [09:19:37]FM_GetShiftState done [09:19:37]opened in 1729557463 [09:19:37]opened+sec_in_day 1729643863 [09:19:37]quantity*price = 50041 [09:19:37]sum+1 = 50042 [09:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 60 22.10.2024 09:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166305 ФПД: 91984405896548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166305&fm=91984405896548&tin=02508201610067®Number=0000000000091764&sum=50000 [09:19:38]StoreToDocumentArchive [09:19:38]shift 536 fd 166305 [09:19:38]save to /storage/0536/doc_00166305 [09:19:38]save last doc name /storage/0536/doc_00166305 to /storage/kkm_last_doc_name [09:19:38]save OK [09:19:38]Clear old archive folders... [09:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:38]tlvbuf is 01599800 [09:19:38]SAM_PROTO_ClearQueue [09:19:38]wFMCommunicate request_size=4 [09:19:38]MH_SAM_APDU [09:19:38]CAPDU: 80 09 00 00 [09:19:38]Write to MH i2c: E2 08 00 79 A3 80 09 00 00 00 00 00 00 8E [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:38]Read from MH i2c: E2 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 03 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 03 00 79 A3 00 90 00 90 [09:19:38]RAPDU: 90 00 [09:19:38]wFMCommunicate OK [09:19:38]SAM_PROTO_ClearQueue done [09:19:38]KKMCreateOFDPacket [09:19:38]OFDProtocolAddRootSTLVToBuf [09:19:38]FM_MakeSignedData [09:19:38]FM_MakeSignedData [09:19:38]SAM_PROTO_SignData [09:19:38]wFMCommunicate request_size=4 [09:19:38]MH_SAM_APDU [09:19:38]CAPDU: 80 0D 01 02 [09:19:38]Write to MH i2c: E2 08 00 7A A3 80 0D 01 02 00 00 00 00 96 [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:38]Read from MH i2c: E2 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 03 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 03 00 7A A3 00 90 00 91 [09:19:38]RAPDU: 90 00 [09:19:38]wFMCommunicate OK [09:19:38]wFMCommunicate request_size=255 [09:19:38]MH_SAM_APDU [09:19:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 89 02 00 35 04 06 00 53 [09:19:38]Write to MH i2c: E2 02 01 7B A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 89 02 00 35 04 06 00 53 00 00 2D [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 03 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 03 00 7B A3 00 90 00 92 [09:19:39]RAPDU: 90 00 [09:19:39]wFMCommunicate OK [09:19:39]wFMCommunicate request_size=10 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 0D 02 02 05 A8 C9 D6 9D 64 [09:19:39]Write to MH i2c: E2 0D 00 7C A3 80 0D 02 02 05 00 A8 C9 D6 9D 64 00 00 EB [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 03 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 03 00 7C A3 00 90 00 93 [09:19:39]RAPDU: 90 00 [09:19:39]wFMCommunicate OK [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 0D 03 02 [09:19:39]Write to MH i2c: E2 08 00 7D A3 80 0D 03 02 00 00 00 00 9B [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 0B 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 0B 00 7D A3 00 5D D0 76 61 68 EA 20 62 90 00 74 [09:19:39]RAPDU: 5D D0 76 61 68 EA 20 62 90 00 [09:19:39]wFMCommunicate OK [09:19:39]SAM_PROTO_SignData done [09:19:39]FM_MakeSignedData done [09:19:39]CreateOFDProtocolMessage [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 11 00 00 [09:19:39]Write to MH i2c: E2 08 00 7E A3 80 11 00 00 00 00 00 00 9B [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:39]Read from MH i2c: E2 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 17 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: E2 17 00 7E A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [09:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:19:39]wFMCommunicate OK [09:19:39]CreateOFDProtocolMessage done [09:19:39]OFDSenderStorePacket 166305 [09:19:39]StoreOFDPacket docnum=166305 [09:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 77 D7 07 01 16 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 89 02 00 35 04 06 00 53 A8 C9 D6 9D 64 5D D0 76 61 68 EA 20 62 [09:19:39]CheckFolder [09:19:39]dirname=/storage/ofd_packets [09:19:39]CheckFolder done [09:19:39]ProducePacketName [09:19:39]name=ofd_packets/00166305 [09:19:39]NVStorageSaveData ofd_packets/00166305 [09:19:39]File name is /storage/ofd_packets/00166305 [09:19:39]Write 301 bytes [09:19:39]NVStorageSaveData done [09:19:39]OFDSenderStorePacket done [09:19:39]KKMCreateOFDPacket done [09:19:39]NVStorageSaveData kkm_last_timestamp [09:19:39]File name is /storage/kkm_last_timestamp [09:19:39]Write 4 bytes [09:19:39]NVStorageSaveData done [09:19:39]ExternCall_PrintAddStr [09:19:39]wPrintStart [09:19:39]Write to MH i2c: 01 00 00 7F A3 22 [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: 01 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: 01 07 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: 01 07 00 7F A3 00 00 00 00 00 FF 0F 37 [09:19:39]RasterBufferAndPrint [09:19:39]line Счет N : (1)220880 [09:19:39]line ИНН: 02508201610067 [09:19:39]line Контрольно-Кассовый Чек [09:19:39]line ПРОДАЖА [09:19:39]line ТРК (МРК, ГНК) : 13 [09:19:39]line Товар: 2710124130 [09:19:39]line Аи-92-К-5 [09:19:39]line 7.480 * 66.90 [09:19:39]line = 500.41 [09:19:39]line НДС 12% НСП 1% [09:19:39]line > о реализуемом товаре [09:19:39]line ОКРУГЛЕНИЕ: -0.41 [09:19:39]line ИТОГО: 500.00 [09:19:39]line Внесено: 500.00 [09:19:39]line СДАЧА: 0.00 [09:19:39]line НСП 1% : 4.43 [09:19:39]line НДС 12% : 53.14 [09:19:39]line Наличными: 500.00 [09:19:39]line Безнал.: 0.00 [09:19:39]line Место: АЗС № 161 "Партнер Нефть" [09:19:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:19:39]line СНО: Общий режим [09:19:39]line Чек 60 22.10.2024 09:20 [09:19:39]line Смена: 536 ФФД: 1.0 [09:19:39]line ЗНМ: 0300000104 [09:19:39]line РНМ: 0000000000091764 [09:19:39]line Версия ККМ: 001 [09:19:39]line ФМ: 0000000000871759 [09:19:39]line ФД: 166305 [09:19:39]line ФПД: 91984405896548 [09:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166305&fm=91984405896548&tin=02508201610067®Number=0000000000091764&sum=50000 [09:19:39]OFD Sender: Processing packet 166305 [packets to send 48, broken 47] [09:19:39]ProducePacketName [09:19:39]name=ofd_packets/00166305 [09:19:39]OFD Sender: To server: pG, [09:19:39]CommunicateWithHost lk.salyk.kg:30040 [09:19:39]ConnectInit lk.salyk.kg [09:19:39]written 0, free lines is 4095 [09:19:39]Connected sock=7 [09:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 77 D7 07 01 16 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 6E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 89 02 00 35 04 06 00 53 A8 C9 D6 9D 64 5D D0 76 61 68 EA 20 62 [09:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A3 F6 47 00 22 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 89 02 00 F4 03 04 00 AC 14 17 67 B6 04 01 00 00 8B 12 38 40 5A 07 A5 BF [09:19:39]CommunicateWithHost err = 0 [09:19:39]CheckOFDResponse [09:19:39]1017 (14) - 77093643461234 [09:19:39]1041 (16) - 0000000000871759 [09:19:39]1040 (4) - 166305 [09:19:39]1012 (4) - 22.10.2024 02:57 [09:19:39]1206 (1) - 0 [09:19:39]OFD Sender: Remove packet 166305 [09:19:39]ProducePacketName [09:19:39]name=ofd_packets/00166305 [09:19:39]NVStorageDeleteData [09:19:40]Write to MH i2c: 01 00 00 AA A3 4D [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: 01 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: 01 07 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: 01 07 00 AA A3 00 00 00 00 00 B6 0C 16 [09:19:40]RasterBufferAndPrint [09:19:40]line [09:19:40]line [09:19:40]line [09:19:40]line [09:19:40]line [09:19:40]written 0, free lines is 3260 [09:19:40]MH_Cut [09:19:40]Write to MH i2c: D1 01 00 B1 A3 01 26 [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: D1 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: D1 01 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: D1 01 00 B1 A3 00 25 [09:19:40]Write to MH i2c: 01 00 00 B2 A3 55 [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]OFD Sender: No OFD packet to send [09:19:40]*** Cut start [09:19:40]*** Partial cut [09:19:40]*** CUTSNS_PIN = 1 [09:19:40]*** CUTSNS_PIN = 0 [09:19:41]*** Brake cut motor [09:19:41]Read from MH i2c: 01 [09:19:41]MH_I2C_Read... [09:19:41]*** Stop cut motor [09:19:41]*** Cut end [09:19:41]Read from MH i2c: 01 07 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 B2 A3 00 00 00 00 00 FF 0F 6A [09:19:41]process_action close_receipt done [09:19:41]requested_data is exist [09:19:41]produce_requested_data [09:19:41]requested_item fm.sn is exist - process it [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 11 00 00 [09:19:41]Write to MH i2c: E2 08 00 B3 A3 80 11 00 00 00 00 00 00 D0 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 17 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 17 00 B3 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [09:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:19:41]wFMCommunicate OK [09:19:41]requested_item fd.num is exist - process it [09:19:41]SAM_PROTO_GetFieldsCounters [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 13 00 00 [09:19:41]Write to MH i2c: E2 08 00 B4 A3 80 13 00 00 00 00 00 00 D3 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 62 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 62 00 B4 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [09:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:41]wFMCommunicate OK [09:19:41]SAM_PROTO_GetFieldsCounters done [09:19:41]requested_item shift.num is exist - process it [09:19:41]requested_item shift.opened is exist - process it [09:19:41]req_shift_opened [09:19:41]FM_GetShiftState [09:19:41]SAM_PROTO_GetShiftState [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 13 01 00 [09:19:41]Write to MH i2c: E2 08 00 B5 A3 80 13 01 00 00 00 00 00 D5 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0E 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0E 00 B5 A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 28 [09:19:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:19:41]wFMCommunicate OK [09:19:41]SAM_PROTO_GetShiftState done [09:19:41]FM_GetShiftState done [09:19:41]req_shift_opened done [09:19:41]requested_item shift.open_date is exist - process it [09:19:41]req_shift_open_date [09:19:41]req_shift_open_date done [09:19:41]produce_requested_data done [09:19:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166305,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:19:41]process_action_free close_receipt [09:19:41]json_value_free [09:19:41]json_value_free done [09:19:41]process_json_proto returns [09:19:41]Send response to host [09:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166305,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:19:41]free response buf [09:19:41]execute_script done [09:19:41]execute_script returns [09:19:41]free content buf [09:19:41]Sock 5.Close socket [09:19:41]Sock 5.Thread stoped [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:47]*** FLAG_PRN_PAP1 set [09:20:47]*** FLAG_PRN_PAP2 set [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:05]*** FLAG_PRN_PAP2 reset [09:21:08]*** FLAG_PRN_KEY set [09:21:09]*** FLAG_PRN_KEY reset [09:21:10]OFD Sender: No OFD packet to send [09:21:11]*** FLAG_PRN_PAP2 set [09:21:15]OFD Sender: No OFD packet to send [09:21:15]*** FLAG_PRN_PAP2 reset [09:21:19]*** FLAG_PRN_PAP2 set [09:21:20]OFD Sender: No OFD packet to send [09:21:22]*** FLAG_PRN_PAP2 reset [09:21:22]*** FLAG_PRN_PAP1 reset [09:21:24]*** FLAG_PRN_KEY set [09:21:25]*** FLAG_PRN_KEY reset [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]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:30]accept exits with 6 [09:29:30]New connection [09:29:30]New thread 3066920292 created [09:29:30]Thread 3066776932 joined [09:29:30]Waiting for new connection... [09:29:30] Sock 6.Parse request [09:29:30]Sock 6.Check first char [09:29:30]Sock 6.First char is OK [09:29:30]request: POST /json_proto HTTP/1.0 [09:29:30]Method: POST [09:29:30]URL: /json_proto [09:29:30]Method is POST - this is cgi request [09:29:30]url: /json_proto [09:29:30]query_string will be loaded in cgi processing [09:29:30]execute_cgi json_proto POST (null) [09:29:30]execute_cgi path=json_proto method=POST [09:29:30]POST find Content-Length [09:29:30]Host: 172.17.53.195:8080 [09:29:30]Content-Length: 788 [09:29:30]Content-Type: application/json [09:29:30] [09:29:30]POST finish read [09:29:30]Found Content-Length = 788 [09:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 7.880, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:30]execute_script... [09:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 7.880, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:30]POST & json_proto [09:29:30]process_json_proto [09:29:30]json parsed OK: [09:29:30]protocol is kg_v1.0 [09:29:30]action value=close_receipt [09:29:30]process_action close_receipt [09:29:30]cmd_close_receipt [09:29:30]MH_GetDate [09:29:30]Write to MH i2c: F0 00 00 B6 A3 48 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: F0 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: F0 09 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: F0 09 00 B6 A3 00 92 70 17 67 21 48 4A 65 E9 [09:29:30]GetLastDocTimeStamp 1729588800 [09:29:30]current date 1729589394 [09:29:30]FM_GetShiftState [09:29:30]SAM_PROTO_GetShiftState [09:29:30]wFMCommunicate request_size=4 [09:29:30]MH_SAM_APDU [09:29:30]CAPDU: 80 13 01 00 [09:29:30]Write to MH i2c: E2 08 00 B7 A3 80 13 01 00 00 00 00 00 D7 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:30]Read from MH i2c: E2 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 0E 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 0E 00 B7 A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2A [09:29:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:29:30]wFMCommunicate OK [09:29:30]SAM_PROTO_GetShiftState done [09:29:30]FM_GetShiftState done [09:29:30]opened in 1729557463 [09:29:30]opened+sec_in_day 1729643863 [09:29:30]quantity*price = 0 [09:29:30]sum+1 = 1 [09:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 61 22.10.2024 09:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166306 ФПД: 82360911677135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092954&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166306&fm=82360911677135&tin=02508201610067®Number=0000000000091764&sum=0 [09:29:32]StoreToDocumentArchive [09:29:32]shift 536 fd 166306 [09:29:32]save to /storage/0536/doc_00166306 [09:29:32]save last doc name /storage/0536/doc_00166306 to /storage/kkm_last_doc_name [09:29:32]save OK [09:29:32]Clear old archive folders... [09:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:32]tlvbuf is 014457F0 [09:29:32]SAM_PROTO_ClearQueue [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 09 00 00 [09:29:32]Write to MH i2c: E2 08 00 C4 A3 80 09 00 00 00 00 00 00 D9 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 C4 A3 00 90 00 DB [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]SAM_PROTO_ClearQueue done [09:29:32]KKMCreateOFDPacket [09:29:32]OFDProtocolAddRootSTLVToBuf [09:29:32]FM_MakeSignedData [09:29:32]FM_MakeSignedData [09:29:32]SAM_PROTO_SignData [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 01 02 [09:29:32]Write to MH i2c: E2 08 00 C5 A3 80 0D 01 02 00 00 00 00 E1 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 C5 A3 00 90 00 DC [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]wFMCommunicate request_size=255 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 92 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 89 02 00 35 04 06 00 4A E8 24 E2 [09:29:32]Write to MH i2c: E2 02 01 C6 A3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 92 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 89 02 00 35 04 06 00 4A E8 24 E2 00 00 67 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 C6 A3 00 90 00 DD [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]wFMCommunicate request_size=7 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 02 02 02 46 CF [09:29:32]Write to MH i2c: E2 0A 00 C7 A3 80 0D 02 02 02 00 46 CF 00 00 FD [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 03 00 C7 A3 00 90 00 DE [09:29:32]RAPDU: 90 00 [09:29:32]wFMCommunicate OK [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 0D 03 02 [09:29:32]Write to MH i2c: E2 08 00 C8 A3 80 0D 03 02 00 00 00 00 E6 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 0B 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 0B 00 C8 A3 00 75 90 2C BE 5E 37 DD 09 90 00 51 [09:29:32]RAPDU: 75 90 2C BE 5E 37 DD 09 90 00 [09:29:32]wFMCommunicate OK [09:29:32]SAM_PROTO_SignData done [09:29:32]FM_MakeSignedData done [09:29:32]CreateOFDProtocolMessage [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 11 00 00 [09:29:32]Write to MH i2c: E2 08 00 C9 A3 80 11 00 00 00 00 00 00 E6 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 17 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 17 00 C9 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [09:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:29:32]wFMCommunicate OK [09:29:32]CreateOFDProtocolMessage done [09:29:32]OFDSenderStorePacket 166306 [09:29:32]StoreOFDPacket docnum=166306 [09:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 39 E7 04 01 DE 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 92 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 89 02 00 35 04 06 00 4A E8 24 E2 46 CF 75 90 2C BE 5E 37 DD 09 [09:29:32]CheckFolder [09:29:32]dirname=/storage/ofd_packets [09:29:32]CheckFolder done [09:29:32]ProducePacketName [09:29:32]name=ofd_packets/00166306 [09:29:32]NVStorageSaveData ofd_packets/00166306 [09:29:32]File name is /storage/ofd_packets/00166306 [09:29:32]Write 298 bytes [09:29:32]NVStorageSaveData done [09:29:32]OFDSenderStorePacket done [09:29:32]KKMCreateOFDPacket done [09:29:32]NVStorageSaveData kkm_last_timestamp [09:29:32]File name is /storage/kkm_last_timestamp [09:29:32]Write 4 bytes [09:29:32]NVStorageSaveData done [09:29:32]ExternCall_PrintAddStr [09:29:32]wPrintStart [09:29:32]Write to MH i2c: 01 00 00 CA A3 6D [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: 01 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: 01 07 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: 01 07 00 CA A3 00 00 00 00 00 FF 0F 82 [09:29:32]RasterBufferAndPrint [09:29:32]line Счет N : (1)220881 [09:29:32]line ИНН: 02508201610067 [09:29:32]line Контрольно-Кассовый Чек [09:29:32]line ПРОДАЖА [09:29:32]line ТРК (МРК, ГНК) : 11 [09:29:32]line Товар: 2710194210 [09:29:32]line ДТ-К-5 [09:29:32]line 7.880 * 0.00 [09:29:32]line = 0.00 [09:29:32]line НДС 12% НСП 1% [09:29:32]line > о реализуемом товаре [09:29:32]line ИТОГО: 0.00 [09:29:32]line НСП 1% : 0.00 [09:29:32]line НДС 12% : 0.00 [09:29:32]line Наличными: 0.00 [09:29:32]line Безнал.: 0.00 [09:29:32]line Место: АЗС № 161 "Партнер Нефть" [09:29:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:29:32]line СНО: Общий режим [09:29:32]line Чек 61 22.10.2024 09:29 [09:29:32]line Смена: 536 ФФД: 1.0 [09:29:32]line ЗНМ: 0300000104 [09:29:32]line РНМ: 0000000000091764 [09:29:32]line Версия ККМ: 001 [09:29:32]line Талоны: Топливная Карта [09:29:32]line 38286 [09:29:32]line ФМ: 0000000000871759 [09:29:32]line ФД: 166306 [09:29:32]line ФПД: 82360911677135 [09:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092954&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166306&fm=82360911677135&tin=02508201610067®Number=0000000000091764&sum=0 [09:29:32]OFD Sender: Processing packet 166306 [packets to send 48, broken 47] [09:29:32]ProducePacketName [09:29:32]name=ofd_packets/00166306 [09:29:32]OFD Sender: To server: pG, [09:29:32]CommunicateWithHost lk.salyk.kg:30040 [09:29:32]ConnectInit lk.salyk.kg [09:29:32]written 0, free lines is 4095 [09:29:33]Connected sock=7 [09:29:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 39 E7 04 01 DE 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 92 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 89 02 00 35 04 06 00 4A E8 24 E2 46 CF 75 90 2C BE 5E 37 DD 09 [09:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 08 68 47 00 C5 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 89 02 00 F4 03 04 00 FD 16 17 67 B6 04 01 00 00 AD F6 D9 51 B0 DE 93 8B [09:29:33]CommunicateWithHost err = 0 [09:29:33]CheckOFDResponse [09:29:33]1017 (14) - 77093643461234 [09:29:33]1041 (16) - 0000000000871759 [09:29:33]1040 (4) - 166306 [09:29:33]1012 (4) - 22.10.2024 03:07 [09:29:33]1206 (1) - 0 [09:29:33]OFD Sender: Remove packet 166306 [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00166306 [09:29:33]NVStorageDeleteData [09:29:33]Write to MH i2c: 01 00 00 F4 A3 97 [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 07 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: 01 07 00 F4 A3 00 00 00 00 00 BC 0C 66 [09:29:33]RasterBufferAndPrint [09:29:33]line [09:29:33]line [09:29:33]line [09:29:33]line [09:29:33]line [09:29:33]written 0, free lines is 3265 [09:29:33]MH_Cut [09:29:33]Write to MH i2c: D1 01 00 FB A3 01 70 [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: D1 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: D1 01 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: D1 01 00 FB A3 00 6F [09:29:33]Write to MH i2c: 01 00 00 FC A3 9F [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]OFD Sender: No OFD packet to send [09:29:34]*** Cut start [09:29:34]*** Partial cut [09:29:34]*** CUTSNS_PIN = 1 [09:29:34]*** CUTSNS_PIN = 0 [09:29:34]*** Brake cut motor [09:29:34]Read from MH i2c: 01 [09:29:34]MH_I2C_Read... [09:29:34]*** Stop cut motor [09:29:34]*** Cut end [09:29:34]Read from MH i2c: 01 07 00 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: 01 07 00 FC A3 00 00 00 00 00 FF 0F B4 [09:29:34]process_action close_receipt done [09:29:34]requested_data is exist [09:29:34]produce_requested_data [09:29:34]requested_item fm.sn is exist - process it [09:29:34]wFMCommunicate request_size=4 [09:29:34]MH_SAM_APDU [09:29:34]CAPDU: 80 11 00 00 [09:29:34]Write to MH i2c: E2 08 00 FD A3 80 11 00 00 00 00 00 00 1A [09:29:34]Write i2c OK [09:29:34]MH_I2C_Read... [09:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:34]Read from MH i2c: E2 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: E2 17 00 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: E2 17 00 FD A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [09:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:29:34]wFMCommunicate OK [09:29:34]requested_item fd.num is exist - process it [09:29:34]SAM_PROTO_GetFieldsCounters [09:29:34]wFMCommunicate request_size=4 [09:29:34]MH_SAM_APDU [09:29:34]CAPDU: 80 13 00 00 [09:29:34]Write to MH i2c: E2 08 00 FE A3 80 13 00 00 00 00 00 00 1D [09:29:34]Write i2c OK [09:29:34]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 62 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 62 00 FE A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [09:29:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_GetFieldsCounters done [09:29:35]requested_item shift.num is exist - process it [09:29:35]requested_item shift.opened is exist - process it [09:29:35]req_shift_opened [09:29:35]FM_GetShiftState [09:29:35]SAM_PROTO_GetShiftState [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 13 01 00 [09:29:35]Write to MH i2c: E2 08 00 FF A3 80 13 01 00 00 00 00 00 1F [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 FF A3 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 72 [09:29:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_GetShiftState done [09:29:35]FM_GetShiftState done [09:29:35]req_shift_opened done [09:29:35]requested_item shift.open_date is exist - process it [09:29:35]req_shift_open_date [09:29:35]req_shift_open_date done [09:29:35]produce_requested_data done [09:29:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166306,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:29:35]process_action_free close_receipt [09:29:35]json_value_free [09:29:35]json_value_free done [09:29:35]process_json_proto returns [09:29:35]Send response to host [09:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166306,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:29:35]free response buf [09:29:35]execute_script done [09:29:35]execute_script returns [09:29:35]free content buf [09:29:35]Sock 6.Close socket [09:29:35]Sock 6.Thread stoped [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:09]accept exits with 5 [09:30:09]New connection [09:30:09]New thread 3066776932 created [09:30:09]Thread 3066920292 joined [09:30:09]Waiting for new connection... [09:30:09] Sock 5.Parse request [09:30:09]Sock 5.Check first char [09:30:09]Sock 5.First char is OK [09:30:09]request: POST /json_proto HTTP/1.0 [09:30:09]Method: POST [09:30:09]URL: /json_proto [09:30:09]Method is POST - this is cgi request [09:30:09]url: /json_proto [09:30:09]query_string will be loaded in cgi processing [09:30:09]execute_cgi json_proto POST (null) [09:30:09]execute_cgi path=json_proto method=POST [09:30:09]POST find Content-Length [09:30:09]Host: 172.17.53.195:8080 [09:30:09]Content-Length: 679 [09:30:09]Content-Type: application/json [09:30:09] [09:30:09]POST finish read [09:30:09]Found Content-Length = 679 [09:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:09]execute_script... [09:30:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:09]POST & json_proto [09:30:09]process_json_proto [09:30:09]json parsed OK: [09:30:09]protocol is kg_v1.0 [09:30:09]action value=close_receipt [09:30:09]process_action close_receipt [09:30:09]cmd_close_receipt [09:30:09]MH_GetDate [09:30:09]Write to MH i2c: F0 00 00 00 A4 93 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: F0 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: F0 09 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: F0 09 00 00 A4 00 B8 70 17 67 21 48 4A 65 5A [09:30:09]GetLastDocTimeStamp 1729589394 [09:30:09]current date 1729589432 [09:30:09]FM_GetShiftState [09:30:09]SAM_PROTO_GetShiftState [09:30:09]wFMCommunicate request_size=4 [09:30:09]MH_SAM_APDU [09:30:09]CAPDU: 80 13 01 00 [09:30:09]Write to MH i2c: E2 08 00 01 A4 80 13 01 00 00 00 00 00 22 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:09]Read from MH i2c: E2 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 0E 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: E2 0E 00 01 A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 75 [09:30:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:30:09]wFMCommunicate OK [09:30:09]SAM_PROTO_GetShiftState done [09:30:09]FM_GetShiftState done [09:30:09]opened in 1729557463 [09:30:09]opened+sec_in_day 1729643863 [09:30:09]quantity*price = 140055 [09:30:09]sum+1 = 140057 [09:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 62 22.10.2024 09:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166307 ФПД: 221554569570635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166307&fm=221554569570635&tin=02508201610067®Number=0000000000091764&sum=140000 [09:30:10]StoreToDocumentArchive [09:30:10]shift 536 fd 166307 [09:30:10]save to /storage/0536/doc_00166307 [09:30:10]save last doc name /storage/0536/doc_00166307 to /storage/kkm_last_doc_name [09:30:10]save OK [09:30:10]Clear old archive folders... [09:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:10]tlvbuf is 019710D0 [09:30:10]SAM_PROTO_ClearQueue [09:30:10]wFMCommunicate request_size=4 [09:30:10]MH_SAM_APDU [09:30:10]CAPDU: 80 09 00 00 [09:30:10]Write to MH i2c: E2 08 00 0E A4 80 09 00 00 00 00 00 00 24 [09:30:10]Write i2c OK [09:30:10]MH_I2C_Read... [09:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:10]Read from MH i2c: E2 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 03 00 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 03 00 0E A4 00 90 00 26 [09:30:10]RAPDU: 90 00 [09:30:10]wFMCommunicate OK [09:30:10]SAM_PROTO_ClearQueue done [09:30:10]KKMCreateOFDPacket [09:30:10]OFDProtocolAddRootSTLVToBuf [09:30:10]FM_MakeSignedData [09:30:10]FM_MakeSignedData [09:30:10]SAM_PROTO_SignData [09:30:10]wFMCommunicate request_size=4 [09:30:10]MH_SAM_APDU [09:30:10]CAPDU: 80 0D 01 02 [09:30:10]Write to MH i2c: E2 08 00 0F A4 80 0D 01 02 00 00 00 00 2C [09:30:10]Write i2c OK [09:30:10]MH_I2C_Read... [09:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:10]Read from MH i2c: E2 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 03 00 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 03 00 0F A4 00 90 00 27 [09:30:10]RAPDU: 90 00 [09:30:10]wFMCommunicate OK [09:30:10]wFMCommunicate request_size=255 [09:30:10]MH_SAM_APDU [09:30:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 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 3E 00 00 00 F4 03 04 00 B8 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 89 02 00 35 04 06 00 C9 80 B1 6A [09:30:10]Write to MH i2c: E2 02 01 10 A4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 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 3E 00 00 00 F4 03 04 00 B8 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 89 02 00 35 04 06 00 C9 80 B1 6A 00 00 87 [09:30:10]Write i2c OK [09:30:10]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 10 A4 00 90 00 28 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]wFMCommunicate request_size=7 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 02 02 02 E9 4B [09:30:11]Write to MH i2c: E2 0A 00 11 A4 80 0D 02 02 02 00 E9 4B 00 00 67 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 11 A4 00 90 00 29 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]wFMCommunicate request_size=4 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 03 02 [09:30:11]Write to MH i2c: E2 08 00 12 A4 80 0D 03 02 00 00 00 00 31 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 0B 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 0B 00 12 A4 00 83 FD 6E BB 44 5F CC E6 90 00 30 [09:30:11]RAPDU: 83 FD 6E BB 44 5F CC E6 90 00 [09:30:11]wFMCommunicate OK [09:30:11]SAM_PROTO_SignData done [09:30:11]FM_MakeSignedData done [09:30:11]CreateOFDProtocolMessage [09:30:11]wFMCommunicate request_size=4 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 11 00 00 [09:30:11]Write to MH i2c: E2 08 00 13 A4 80 11 00 00 00 00 00 00 31 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 17 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 17 00 13 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [09:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:11]wFMCommunicate OK [09:30:11]CreateOFDProtocolMessage done [09:30:11]OFDSenderStorePacket 166307 [09:30:11]StoreOFDPacket docnum=166307 [09:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 38 04 01 83 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 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 3E 00 00 00 F4 03 04 00 B8 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 89 02 00 35 04 06 00 C9 80 B1 6A E9 4B 83 FD 6E BB 44 5F CC E6 [09:30:11]CheckFolder [09:30:11]dirname=/storage/ofd_packets [09:30:11]CheckFolder done [09:30:11]ProducePacketName [09:30:11]name=ofd_packets/00166307 [09:30:11]NVStorageSaveData ofd_packets/00166307 [09:30:11]File name is /storage/ofd_packets/00166307 [09:30:11]Write 298 bytes [09:30:11]NVStorageSaveData done [09:30:11]OFDSenderStorePacket done [09:30:11]KKMCreateOFDPacket done [09:30:11]NVStorageSaveData kkm_last_timestamp [09:30:11]File name is /storage/kkm_last_timestamp [09:30:11]Write 4 bytes [09:30:11]NVStorageSaveData done [09:30:11]ExternCall_PrintAddStr [09:30:11]wPrintStart [09:30:11]Write to MH i2c: 01 00 00 14 A4 B8 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: 01 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: 01 07 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: 01 07 00 14 A4 00 00 00 00 00 FF 0F CD [09:30:11]RasterBufferAndPrint [09:30:11]line Счет N : (1)220882 [09:30:11]line ИНН: 02508201610067 [09:30:11]line Контрольно-Кассовый Чек [09:30:11]line ПРОДАЖА [09:30:11]line ТРК (МРК, ГНК) : 11 [09:30:11]line Товар: 2710194210 [09:30:11]line ДТ-К-5 [09:30:11]line 18.380 * 76.20 [09:30:11]line = 1400.56 [09:30:11]line НДС 12% НСП 1% [09:30:11]line > о реализуемом товаре [09:30:11]line ОКРУГЛЕНИЕ: -0.56 [09:30:11]line ИТОГО: 1400.00 [09:30:11]line Внесено: 1400.00 [09:30:11]line СДАЧА: 0.00 [09:30:11]line НСП 1% : 12.39 [09:30:11]line НДС 12% : 148.73 [09:30:11]line Наличными: 1400.00 [09:30:11]line Безнал.: 0.00 [09:30:11]line Место: АЗС № 161 "Партнер Нефть" [09:30:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:30:11]line СНО: Общий режим [09:30:11]line Чек 62 22.10.2024 09:30 [09:30:11]line Смена: 536 ФФД: 1.0 [09:30:11]line ЗНМ: 0300000104 [09:30:11]line РНМ: 0000000000091764 [09:30:11]line Версия ККМ: 001 [09:30:11]line ФМ: 0000000000871759 [09:30:11]line ФД: 166307 [09:30:11]line ФПД: 221554569570635 [09:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166307&fm=221554569570635&tin=02508201610067®Number=0000000000091764&sum=140000 [09:30:11]OFD Sender: Processing packet 166307 [packets to send 48, broken 47] [09:30:11]ProducePacketName [09:30:11]name=ofd_packets/00166307 [09:30:11]OFD Sender: To server: pG, [09:30:11]CommunicateWithHost lk.salyk.kg:30040 [09:30:11]ConnectInit lk.salyk.kg [09:30:11]written 0, free lines is 4095 [09:30:11]Connected sock=7 [09:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C4 38 04 01 83 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 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 3E 00 00 00 F4 03 04 00 B8 70 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 89 02 00 35 04 06 00 C9 80 B1 6A E9 4B 83 FD 6E BB 44 5F CC E6 [09:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 39 F9 47 00 E9 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 89 02 00 F4 03 04 00 24 17 17 67 B6 04 01 00 00 3C F2 E9 4F 99 CE 5D 1E [09:30:11]CommunicateWithHost err = 0 [09:30:11]CheckOFDResponse [09:30:11]1017 (14) - 77093643461234 [09:30:11]1041 (16) - 0000000000871759 [09:30:11]1040 (4) - 166307 [09:30:11]1012 (4) - 22.10.2024 03:08 [09:30:11]1206 (1) - 0 [09:30:11]OFD Sender: Remove packet 166307 [09:30:11]ProducePacketName [09:30:11]name=ofd_packets/00166307 [09:30:11]NVStorageDeleteData [09:30:12]Write to MH i2c: 01 00 00 3F A4 E3 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 3F A4 00 00 00 00 00 BB 0C B1 [09:30:12]RasterBufferAndPrint [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]written 0, free lines is 3267 [09:30:12]MH_Cut [09:30:12]Write to MH i2c: D1 01 00 46 A4 01 BC [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 01 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 01 00 46 A4 00 BB [09:30:12]Write to MH i2c: 01 00 00 47 A4 EB [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]OFD Sender: No OFD packet to send [09:30:12]*** Cut start [09:30:12]*** Partial cut [09:30:12]*** CUTSNS_PIN = 1 [09:30:12]*** CUTSNS_PIN = 0 [09:30:13]*** Brake cut motor [09:30:13]Read from MH i2c: 01 [09:30:13]MH_I2C_Read... [09:30:13]*** Stop cut motor [09:30:13]*** Cut end [09:30:13]Read from MH i2c: 01 07 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: 01 07 00 47 A4 00 00 00 00 00 FF 0F 00 [09:30:13]process_action close_receipt done [09:30:13]requested_data is exist [09:30:13]produce_requested_data [09:30:13]requested_item fm.sn is exist - process it [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 11 00 00 [09:30:13]Write to MH i2c: E2 08 00 48 A4 80 11 00 00 00 00 00 00 66 [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:13]Read from MH i2c: E2 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 17 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 17 00 48 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [09:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:13]wFMCommunicate OK [09:30:13]requested_item fd.num is exist - process it [09:30:13]SAM_PROTO_GetFieldsCounters [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 13 00 00 [09:30:13]Write to MH i2c: E2 08 00 49 A4 80 13 00 00 00 00 00 00 69 [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:13]Read from MH i2c: E2 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 62 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 62 00 49 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:13]wFMCommunicate OK [09:30:13]SAM_PROTO_GetFieldsCounters done [09:30:13]requested_item shift.num is exist - process it [09:30:13]requested_item shift.opened is exist - process it [09:30:13]req_shift_opened [09:30:13]FM_GetShiftState [09:30:13]SAM_PROTO_GetShiftState [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 13 01 00 [09:30:13]Write to MH i2c: E2 08 00 4A A4 80 13 01 00 00 00 00 00 6B [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:13]Read from MH i2c: E2 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 0E 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: E2 0E 00 4A A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BE [09:30:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:30:13]wFMCommunicate OK [09:30:13]SAM_PROTO_GetShiftState done [09:30:13]FM_GetShiftState done [09:30:13]req_shift_opened done [09:30:13]requested_item shift.open_date is exist - process it [09:30:13]req_shift_open_date [09:30:13]req_shift_open_date done [09:30:13]produce_requested_data done [09:30:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166307,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:30:13]process_action_free close_receipt [09:30:13]json_value_free [09:30:13]json_value_free done [09:30:13]process_json_proto returns [09:30:13]Send response to host [09:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166307,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:30:13]free response buf [09:30:13]execute_script done [09:30:13]execute_script returns [09:30:13]free content buf [09:30:13]Sock 5.Close socket [09:30:13]Sock 5.Thread stoped [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:09]accept exits with 6 [09:33:09]New connection [09:33:09]New thread 3066920292 created [09:33:09]Thread 3066776932 joined [09:33:09]Waiting for new connection... [09:33:09] Sock 6.Parse request [09:33:09]Sock 6.Check first char [09:33:09]Sock 6.First char is OK [09:33:09]request: POST /json_proto HTTP/1.0 [09:33:09]Method: POST [09:33:09]URL: /json_proto [09:33:09]Method is POST - this is cgi request [09:33:09]url: /json_proto [09:33:09]query_string will be loaded in cgi processing [09:33:09]execute_cgi json_proto POST (null) [09:33:09]execute_cgi path=json_proto method=POST [09:33:09]POST find Content-Length [09:33:09]Host: 172.17.53.195:8080 [09:33:09]Content-Length: 766 [09:33:09]Content-Type: application/json [09:33:09] [09:33:09]POST finish read [09:33:09]Found Content-Length = 766 [09:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:09]execute_script... [09:33:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:09]POST & json_proto [09:33:09]process_json_proto [09:33:09]json parsed OK: [09:33:09]protocol is kg_v1.0 [09:33:09]action value=close_receipt [09:33:09]process_action close_receipt [09:33:09]cmd_close_receipt [09:33:09]MH_GetDate [09:33:09]Write to MH i2c: F0 00 00 4B A4 DE [09:33:09]Write i2c OK [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 09 00 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 09 00 4B A4 00 6C 71 17 67 21 48 4A 65 5A [09:33:09]GetLastDocTimeStamp 1729589432 [09:33:09]current date 1729589612 [09:33:09]FM_GetShiftState [09:33:09]SAM_PROTO_GetShiftState [09:33:09]wFMCommunicate request_size=4 [09:33:09]MH_SAM_APDU [09:33:09]CAPDU: 80 13 01 00 [09:33:09]Write to MH i2c: E2 08 00 4C A4 80 13 01 00 00 00 00 00 6D [09:33:09]Write i2c OK [09:33:09]MH_I2C_Read... [09:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:09]Read from MH i2c: E2 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: E2 0E 00 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: E2 0E 00 4C A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C0 [09:33:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:33:09]wFMCommunicate OK [09:33:09]SAM_PROTO_GetShiftState done [09:33:09]FM_GetShiftState done [09:33:09]opened in 1729557463 [09:33:09]opened+sec_in_day 1729643863 [09:33:09]quantity*price = 40006 [09:33:09]sum+1 = 40007 [09:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 63 22.10.2024 09:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166308 ФПД: 161636599428904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093332&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166308&fm=161636599428904&tin=02508201610067®Number=0000000000091764&sum=40006 [09:33:10]StoreToDocumentArchive [09:33:10]shift 536 fd 166308 [09:33:10]save to /storage/0536/doc_00166308 [09:33:10]save last doc name /storage/0536/doc_00166308 to /storage/kkm_last_doc_name [09:33:10]save OK [09:33:10]Clear old archive folders... [09:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:10]tlvbuf is 01814F80 [09:33:10]SAM_PROTO_ClearQueue [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 09 00 00 [09:33:10]Write to MH i2c: E2 08 00 59 A4 80 09 00 00 00 00 00 00 6F [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 59 A4 00 90 00 71 [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]SAM_PROTO_ClearQueue done [09:33:10]KKMCreateOFDPacket [09:33:10]OFDProtocolAddRootSTLVToBuf [09:33:10]FM_MakeSignedData [09:33:10]FM_MakeSignedData [09:33:10]SAM_PROTO_SignData [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 0D 01 02 [09:33:10]Write to MH i2c: E2 08 00 5A A4 80 0D 01 02 00 00 00 00 77 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 5A A4 00 90 00 72 [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]wFMCommunicate request_size=255 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6C 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 89 02 00 35 04 06 00 93 [09:33:10]Write to MH i2c: E2 02 01 5B A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6C 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 89 02 00 35 04 06 00 93 00 00 5E [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 5B A4 00 90 00 73 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]wFMCommunicate request_size=10 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 02 02 05 01 F4 17 77 28 [09:33:11]Write to MH i2c: E2 0D 00 5C A4 80 0D 02 02 05 00 01 F4 17 77 28 00 00 2F [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 5C A4 00 90 00 74 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 03 02 [09:33:11]Write to MH i2c: E2 08 00 5D A4 80 0D 03 02 00 00 00 00 7C [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0B 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0B 00 5D A4 00 F0 A6 16 53 4E D7 3E 31 90 00 10 [09:33:11]RAPDU: F0 A6 16 53 4E D7 3E 31 90 00 [09:33:11]wFMCommunicate OK [09:33:11]SAM_PROTO_SignData done [09:33:11]FM_MakeSignedData done [09:33:11]CreateOFDProtocolMessage [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 11 00 00 [09:33:11]Write to MH i2c: E2 08 00 5E A4 80 11 00 00 00 00 00 00 7C [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 17 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 17 00 5E A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [09:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:11]wFMCommunicate OK [09:33:11]CreateOFDProtocolMessage done [09:33:11]OFDSenderStorePacket 166308 [09:33:11]StoreOFDPacket docnum=166308 [09:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 51 F8 07 01 7C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6C 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 89 02 00 35 04 06 00 93 01 F4 17 77 28 F0 A6 16 53 4E D7 3E 31 [09:33:11]CheckFolder [09:33:11]dirname=/storage/ofd_packets [09:33:11]CheckFolder done [09:33:11]ProducePacketName [09:33:11]name=ofd_packets/00166308 [09:33:11]NVStorageSaveData ofd_packets/00166308 [09:33:11]File name is /storage/ofd_packets/00166308 [09:33:11]Write 301 bytes [09:33:11]NVStorageSaveData done [09:33:11]OFDSenderStorePacket done [09:33:11]KKMCreateOFDPacket done [09:33:11]NVStorageSaveData kkm_last_timestamp [09:33:11]File name is /storage/kkm_last_timestamp [09:33:11]Write 4 bytes [09:33:11]NVStorageSaveData done [09:33:11]ExternCall_PrintAddStr [09:33:11]wPrintStart [09:33:11]Write to MH i2c: 01 00 00 5F A4 03 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 5F A4 00 00 00 00 00 FF 0F 18 [09:33:11]RasterBufferAndPrint [09:33:11]line Счет N : (1)220883 [09:33:11]line ИНН: 02508201610067 [09:33:11]line Контрольно-Кассовый Чек [09:33:11]line ПРОДАЖА [09:33:11]line ТРК (МРК, ГНК) : 43 [09:33:11]line Товар: 2710124130 [09:33:11]line Аи-92-К-5 [09:33:11]line 5.980 * 66.90 [09:33:11]line = 400.06 [09:33:11]line НДС 12% НСП 1% [09:33:11]line > о реализуемом товаре [09:33:11]line ИТОГО: 400.06 [09:33:11]line НСП 1% : 3.54 [09:33:11]line НДС 12% : 42.48 [09:33:11]line Наличными: 0.00 [09:33:11]line Безнал.: 400.06 [09:33:11]line Место: АЗС № 161 "Партнер Нефть" [09:33:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:33:11]line СНО: Общий режим [09:33:11]line Чек 63 22.10.2024 09:33 [09:33:11]line Смена: 536 ФФД: 1.0 [09:33:11]line ЗНМ: 0300000104 [09:33:11]line РНМ: 0000000000091764 [09:33:11]line Версия ККМ: 001 [09:33:11]line Платежная система: Mbank [09:33:11]line ФМ: 0000000000871759 [09:33:11]line ФД: 166308 [09:33:11]line ФПД: 161636599428904 [09:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093332&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166308&fm=161636599428904&tin=02508201610067®Number=0000000000091764&sum=40006 [09:33:11]OFD Sender: Processing packet 166308 [packets to send 48, broken 47] [09:33:11]ProducePacketName [09:33:11]name=ofd_packets/00166308 [09:33:11]OFD Sender: To server: pG, [09:33:11]CommunicateWithHost lk.salyk.kg:30040 [09:33:11]ConnectInit lk.salyk.kg [09:33:11]written 0, free lines is 4095 [09:33:11]Connected sock=7 [09:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 51 F8 07 01 7C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 6C 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 89 02 00 35 04 06 00 93 01 F4 17 77 28 F0 A6 16 53 4E D7 3E 31 [09:33:11]Write to MH i2c: 01 00 00 88 A4 2C [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 88 A4 00 00 00 00 00 E3 0C 22 [09:33:11]RasterBufferAndPrint [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]written 0, free lines is 3306 [09:33:11]MH_Cut [09:33:11]Write to MH i2c: D1 01 00 8F A4 01 05 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 8F A4 00 04 [09:33:11]Write to MH i2c: 01 00 00 90 A4 34 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CE 94 47 00 12 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 89 02 00 F4 03 04 00 D8 17 17 67 B6 04 01 00 00 54 70 C6 BD 09 64 9E 7A [09:33:12]CommunicateWithHost err = 0 [09:33:12]CheckOFDResponse [09:33:12]1017 (14) - 77093643461234 [09:33:12]1041 (16) - 0000000000871759 [09:33:12]1040 (4) - 166308 [09:33:12]1012 (4) - 22.10.2024 03:11 [09:33:12]1206 (1) - 0 [09:33:12]OFD Sender: Remove packet 166308 [09:33:12]ProducePacketName [09:33:12]name=ofd_packets/00166308 [09:33:12]NVStorageDeleteData [09:33:12]OFD Sender: No OFD packet to send [09:33:12]*** Cut start [09:33:12]*** Partial cut [09:33:12]*** CUTSNS_PIN = 1 [09:33:12]*** CUTSNS_PIN = 0 [09:33:13]*** Brake cut motor [09:33:13]Read from MH i2c: 01 [09:33:13]MH_I2C_Read... [09:33:13]*** Stop cut motor [09:33:13]*** Cut end [09:33:13]Read from MH i2c: 01 07 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: 01 07 00 90 A4 00 00 00 00 00 FF 0F 49 [09:33:13]process_action close_receipt done [09:33:13]requested_data is exist [09:33:13]produce_requested_data [09:33:13]requested_item fm.sn is exist - process it [09:33:13]wFMCommunicate request_size=4 [09:33:13]MH_SAM_APDU [09:33:13]CAPDU: 80 11 00 00 [09:33:13]Write to MH i2c: E2 08 00 91 A4 80 11 00 00 00 00 00 00 AF [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:13]Read from MH i2c: E2 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 17 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 17 00 91 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [09:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:13]wFMCommunicate OK [09:33:13]requested_item fd.num is exist - process it [09:33:13]SAM_PROTO_GetFieldsCounters [09:33:13]wFMCommunicate request_size=4 [09:33:13]MH_SAM_APDU [09:33:13]CAPDU: 80 13 00 00 [09:33:13]Write to MH i2c: E2 08 00 92 A4 80 13 00 00 00 00 00 00 B2 [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:13]Read from MH i2c: E2 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 62 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 62 00 92 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:13]wFMCommunicate OK [09:33:13]SAM_PROTO_GetFieldsCounters done [09:33:13]requested_item shift.num is exist - process it [09:33:13]requested_item shift.opened is exist - process it [09:33:13]req_shift_opened [09:33:13]FM_GetShiftState [09:33:13]SAM_PROTO_GetShiftState [09:33:13]wFMCommunicate request_size=4 [09:33:13]MH_SAM_APDU [09:33:13]CAPDU: 80 13 01 00 [09:33:13]Write to MH i2c: E2 08 00 93 A4 80 13 01 00 00 00 00 00 B4 [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:13]Read from MH i2c: E2 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 93 A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 07 [09:33:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:33:13]wFMCommunicate OK [09:33:13]SAM_PROTO_GetShiftState done [09:33:13]FM_GetShiftState done [09:33:13]req_shift_opened done [09:33:13]requested_item shift.open_date is exist - process it [09:33:13]req_shift_open_date [09:33:13]req_shift_open_date done [09:33:13]produce_requested_data done [09:33:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166308,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:33:13]process_action_free close_receipt [09:33:13]json_value_free [09:33:13]json_value_free done [09:33:13]process_json_proto returns [09:33:13]Send response to host [09:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166308,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:33:13]free response buf [09:33:13]execute_script done [09:33:13]execute_script returns [09:33:13]free content buf [09:33:13]Sock 6.Close socket [09:33:13]Sock 6.Thread stoped [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:26]accept exits with 5 [09:33:26]New connection [09:33:26]New thread 3066776932 created [09:33:26]Thread 3066920292 joined [09:33:26]Waiting for new connection... [09:33:26] Sock 5.Parse request [09:33:26]Sock 5.Check first char [09:33:26]Sock 5.First char is OK [09:33:26]request: POST /json_proto HTTP/1.0 [09:33:26]Method: POST [09:33:26]URL: /json_proto [09:33:26]Method is POST - this is cgi request [09:33:26]url: /json_proto [09:33:26]query_string will be loaded in cgi processing [09:33:26]execute_cgi json_proto POST (null) [09:33:26]execute_cgi path=json_proto method=POST [09:33:26]POST find Content-Length [09:33:26]Host: 172.17.53.195:8080 [09:33:26]Content-Length: 677 [09:33:26]Content-Type: application/json [09:33:26] [09:33:26]POST finish read [09:33:26]Found Content-Length = 677 [09:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:26]execute_script... [09:33:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:26]POST & json_proto [09:33:26]process_json_proto [09:33:26]json parsed OK: [09:33:26]protocol is kg_v1.0 [09:33:26]action value=close_receipt [09:33:26]process_action close_receipt [09:33:26]cmd_close_receipt [09:33:26]MH_GetDate [09:33:26]Write to MH i2c: F0 00 00 94 A4 27 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: F0 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: F0 09 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: F0 09 00 94 A4 00 7D 71 17 67 21 48 4A 65 B4 [09:33:26]GetLastDocTimeStamp 1729589612 [09:33:26]current date 1729589629 [09:33:26]FM_GetShiftState [09:33:26]SAM_PROTO_GetShiftState [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 13 01 00 [09:33:26]Write to MH i2c: E2 08 00 95 A4 80 13 01 00 00 00 00 00 B6 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 95 A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 09 [09:33:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_GetShiftState done [09:33:26]FM_GetShiftState done [09:33:26]opened in 1729557463 [09:33:26]opened+sec_in_day 1729643863 [09:33:26]quantity*price = 50010 [09:33:26]sum+1 = 50012 [09:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 64 22.10.2024 09:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166309 ФПД: 110472006282902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166309&fm=110472006282902&tin=02508201610067®Number=0000000000091764&sum=50000 [09:33:27]StoreToDocumentArchive [09:33:27]shift 536 fd 166309 [09:33:27]save to /storage/0536/doc_00166309 [09:33:27]save last doc name /storage/0536/doc_00166309 to /storage/kkm_last_doc_name [09:33:27]save OK [09:33:27]Clear old archive folders... [09:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:27]tlvbuf is 01D9C9C0 [09:33:27]SAM_PROTO_ClearQueue [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 09 00 00 [09:33:27]Write to MH i2c: E2 08 00 A2 A4 80 09 00 00 00 00 00 00 B8 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 A2 A4 00 90 00 BA [09:33:27]RAPDU: 90 00 [09:33:27]wFMCommunicate OK [09:33:27]SAM_PROTO_ClearQueue done [09:33:27]KKMCreateOFDPacket [09:33:27]OFDProtocolAddRootSTLVToBuf [09:33:27]FM_MakeSignedData [09:33:27]FM_MakeSignedData [09:33:27]SAM_PROTO_SignData [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 0D 01 02 [09:33:27]Write to MH i2c: E2 08 00 A3 A4 80 0D 01 02 00 00 00 00 C0 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 A3 A4 00 90 00 BB [09:33:27]RAPDU: 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=255 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 7D 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 89 02 00 35 04 06 00 64 [09:33:27]Write to MH i2c: E2 02 01 A4 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 7D 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 89 02 00 35 04 06 00 64 00 00 88 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]OFD Sender: No OFD packet to send [09:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 A4 A4 00 90 00 BC [09:33:27]RAPDU: 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=10 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 0D 02 02 05 79 44 B1 2E 96 [09:33:27]Write to MH i2c: E2 0D 00 A5 A4 80 0D 02 02 05 00 79 44 B1 2E 96 00 00 FF [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 03 00 A5 A4 00 90 00 BD [09:33:27]RAPDU: 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 0D 03 02 [09:33:27]Write to MH i2c: E2 08 00 A6 A4 80 0D 03 02 00 00 00 00 C5 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 0B 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 0B 00 A6 A4 00 74 F3 33 79 72 6E 7A E1 90 00 14 [09:33:27]RAPDU: 74 F3 33 79 72 6E 7A E1 90 00 [09:33:27]wFMCommunicate OK [09:33:27]SAM_PROTO_SignData done [09:33:27]FM_MakeSignedData done [09:33:27]CreateOFDProtocolMessage [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 11 00 00 [09:33:27]Write to MH i2c: E2 08 00 A7 A4 80 11 00 00 00 00 00 00 C5 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 17 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 17 00 A7 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [09:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:27]wFMCommunicate OK [09:33:27]CreateOFDProtocolMessage done [09:33:27]OFDSenderStorePacket 166309 [09:33:27]StoreOFDPacket docnum=166309 [09:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF 77 07 01 23 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 7D 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 89 02 00 35 04 06 00 64 79 44 B1 2E 96 74 F3 33 79 72 6E 7A E1 [09:33:27]CheckFolder [09:33:27]dirname=/storage/ofd_packets [09:33:27]CheckFolder done [09:33:27]ProducePacketName [09:33:27]name=ofd_packets/00166309 [09:33:27]NVStorageSaveData ofd_packets/00166309 [09:33:27]File name is /storage/ofd_packets/00166309 [09:33:27]Write 301 bytes [09:33:27]NVStorageSaveData done [09:33:27]OFDSenderStorePacket done [09:33:27]KKMCreateOFDPacket done [09:33:27]NVStorageSaveData kkm_last_timestamp [09:33:27]File name is /storage/kkm_last_timestamp [09:33:27]Write 4 bytes [09:33:27]NVStorageSaveData done [09:33:27]ExternCall_PrintAddStr [09:33:27]wPrintStart [09:33:27]Write to MH i2c: 01 00 00 A8 A4 4C [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: 01 07 00 A8 A4 00 00 00 00 00 FF 0F 61 [09:33:27]RasterBufferAndPrint [09:33:27]line Счет N : (1)220884 [09:33:27]line ИНН: 02508201610067 [09:33:27]line Контрольно-Кассовый Чек [09:33:27]line ПРОДАЖА [09:33:27]line ТРК (МРК, ГНК) : 14 [09:33:27]line Товар: 2710124500 [09:33:27]line Аи-95-К-5 [09:33:27]line 6.740 * 74.20 [09:33:27]line = 500.11 [09:33:27]line НДС 12% НСП 1% [09:33:27]line > о реализуемом товаре [09:33:27]line ОКРУГЛЕНИЕ: -0.11 [09:33:27]line ИТОГО: 500.00 [09:33:27]line Внесено: 500.00 [09:33:27]line СДАЧА: 0.00 [09:33:27]line НСП 1% : 4.43 [09:33:27]line НДС 12% : 53.11 [09:33:27]line Наличными: 500.00 [09:33:27]line Безнал.: 0.00 [09:33:27]line Место: АЗС № 161 "Партнер Нефть" [09:33:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:33:27]line СНО: Общий режим [09:33:27]line Чек 64 22.10.2024 09:33 [09:33:27]line Смена: 536 ФФД: 1.0 [09:33:27]line ЗНМ: 0300000104 [09:33:27]line РНМ: 0000000000091764 [09:33:27]line Версия ККМ: 001 [09:33:27]line ФМ: 0000000000871759 [09:33:27]line ФД: 166309 [09:33:27]line ФПД: 110472006282902 [09:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166309&fm=110472006282902&tin=02508201610067®Number=0000000000091764&sum=50000 [09:33:28]OFD Sender: Processing packet 166309 [packets to send 48, broken 47] [09:33:28]ProducePacketName [09:33:28]name=ofd_packets/00166309 [09:33:28]OFD Sender: To server: pG, [09:33:28]CommunicateWithHost lk.salyk.kg:30040 [09:33:28]ConnectInit lk.salyk.kg [09:33:28]written 0, free lines is 4095 [09:33:28]Connected sock=7 [09:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF 77 07 01 23 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 7D 71 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 89 02 00 35 04 06 00 64 79 44 B1 2E 96 74 F3 33 79 72 6E 7A E1 [09:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 3C 47 00 01 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 89 02 00 F4 03 04 00 E8 17 17 67 B6 04 01 00 00 5D D7 9F EF DD FB 22 AC [09:33:28]CommunicateWithHost err = 0 [09:33:28]CheckOFDResponse [09:33:28]1017 (14) - 77093643461234 [09:33:28]1041 (16) - 0000000000871759 [09:33:28]1040 (4) - 166309 [09:33:28]1012 (4) - 22.10.2024 03:11 [09:33:28]1206 (1) - 0 [09:33:28]OFD Sender: Remove packet 166309 [09:33:28]ProducePacketName [09:33:28]name=ofd_packets/00166309 [09:33:28]NVStorageDeleteData [09:33:28]Write to MH i2c: 01 00 00 D3 A4 77 [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: 01 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: 01 07 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: 01 07 00 D3 A4 00 00 00 00 00 BB 0C 45 [09:33:28]RasterBufferAndPrint [09:33:28]line [09:33:28]line [09:33:28]line [09:33:28]line [09:33:28]line [09:33:28]written 0, free lines is 3266 [09:33:28]MH_Cut [09:33:28]Write to MH i2c: D1 01 00 DA A4 01 50 [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: D1 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: D1 01 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: D1 01 00 DA A4 00 4F [09:33:28]Write to MH i2c: 01 00 00 DB A4 7F [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]OFD Sender: No OFD packet to send [09:33:29]*** Cut start [09:33:29]*** Partial cut [09:33:29]*** CUTSNS_PIN = 1 [09:33:29]*** CUTSNS_PIN = 0 [09:33:29]*** Brake cut motor [09:33:30]Read from MH i2c: 01 [09:33:30]MH_I2C_Read... [09:33:30]*** Stop cut motor [09:33:30]*** Cut end [09:33:30]Read from MH i2c: 01 07 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: 01 07 00 DB A4 00 00 00 00 00 FF 0F 94 [09:33:30]process_action close_receipt done [09:33:30]requested_data is exist [09:33:30]produce_requested_data [09:33:30]requested_item fm.sn is exist - process it [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 11 00 00 [09:33:30]Write to MH i2c: E2 08 00 DC A4 80 11 00 00 00 00 00 00 FA [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 17 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 17 00 DC A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [09:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:33:30]wFMCommunicate OK [09:33:30]requested_item fd.num is exist - process it [09:33:30]SAM_PROTO_GetFieldsCounters [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 13 00 00 [09:33:30]Write to MH i2c: E2 08 00 DD A4 80 13 00 00 00 00 00 00 FD [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 62 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 62 00 DD A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:33:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:30]wFMCommunicate OK [09:33:30]SAM_PROTO_GetFieldsCounters done [09:33:30]requested_item shift.num is exist - process it [09:33:30]requested_item shift.opened is exist - process it [09:33:30]req_shift_opened [09:33:30]FM_GetShiftState [09:33:30]SAM_PROTO_GetShiftState [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 13 01 00 [09:33:30]Write to MH i2c: E2 08 00 DE A4 80 13 01 00 00 00 00 00 FF [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:30]Read from MH i2c: E2 0E 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 0E 00 DE A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 52 [09:33:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:33:30]wFMCommunicate OK [09:33:30]SAM_PROTO_GetShiftState done [09:33:30]FM_GetShiftState done [09:33:30]req_shift_opened done [09:33:30]requested_item shift.open_date is exist - process it [09:33:30]req_shift_open_date [09:33:30]req_shift_open_date done [09:33:30]produce_requested_data done [09:33:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166309,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:33:30]process_action_free close_receipt [09:33:30]json_value_free [09:33:30]json_value_free done [09:33:30]process_json_proto returns [09:33:30]Send response to host [09:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166309,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:33:30]free response buf [09:33:30]execute_script done [09:33:30]execute_script returns [09:33:30]free content buf [09:33:30]Sock 5.Close socket [09:33:30]Sock 5.Thread stoped [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:32]accept exits with 6 [09:40:32]New connection [09:40:32]New thread 3066920292 created [09:40:32]Thread 3066776932 joined [09:40:32]Waiting for new connection... [09:40:32] Sock 6.Parse request [09:40:32]Sock 6.Check first char [09:40:32]Sock 6.First char is OK [09:40:32]request: POST /json_proto HTTP/1.0 [09:40:32]Method: POST [09:40:32]URL: /json_proto [09:40:32]Method is POST - this is cgi request [09:40:32]url: /json_proto [09:40:32]query_string will be loaded in cgi processing [09:40:32]execute_cgi json_proto POST (null) [09:40:32]execute_cgi path=json_proto method=POST [09:40:32]POST find Content-Length [09:40:32]Host: 172.17.53.195:8080 [09:40:32]Content-Length: 677 [09:40:32]Content-Type: application/json [09:40:32] [09:40:32]POST finish read [09:40:32]Found Content-Length = 677 [09:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:32]execute_script... [09:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:32]POST & json_proto [09:40:32]process_json_proto [09:40:32]json parsed OK: [09:40:32]protocol is kg_v1.0 [09:40:32]action value=close_receipt [09:40:32]process_action close_receipt [09:40:32]cmd_close_receipt [09:40:32]MH_GetDate [09:40:32]Write to MH i2c: F0 00 00 DF A4 72 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 09 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: F0 09 00 DF A4 00 28 73 17 67 21 48 4A 65 AC [09:40:32]GetLastDocTimeStamp 1729589629 [09:40:32]current date 1729590056 [09:40:32]FM_GetShiftState [09:40:32]SAM_PROTO_GetShiftState [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 01 00 [09:40:32]Write to MH i2c: E2 08 00 E0 A4 80 13 01 00 00 00 00 00 01 [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 E0 A4 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 54 [09:40:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetShiftState done [09:40:32]FM_GetShiftState done [09:40:32]opened in 1729557463 [09:40:32]opened+sec_in_day 1729643863 [09:40:32]quantity*price = 40006 [09:40:32]sum+1 = 40007 [09:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 65 22.10.2024 09:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166310 ФПД: 89487041895767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094056&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166310&fm=89487041895767&tin=02508201610067®Number=0000000000091764&sum=40000 [09:40:33]StoreToDocumentArchive [09:40:33]shift 536 fd 166310 [09:40:33]save to /storage/0536/doc_00166310 [09:40:33]save last doc name /storage/0536/doc_00166310 to /storage/kkm_last_doc_name [09:40:33]save OK [09:40:33]Clear old archive folders... [09:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:33]tlvbuf is 014FE9C0 [09:40:33]SAM_PROTO_ClearQueue [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 09 00 00 [09:40:33]Write to MH i2c: E2 08 00 ED A4 80 09 00 00 00 00 00 00 03 [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 ED A4 00 90 00 05 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]SAM_PROTO_ClearQueue done [09:40:34]KKMCreateOFDPacket [09:40:34]OFDProtocolAddRootSTLVToBuf [09:40:34]FM_MakeSignedData [09:40:34]FM_MakeSignedData [09:40:34]SAM_PROTO_SignData [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 01 02 [09:40:34]Write to MH i2c: E2 08 00 EE A4 80 0D 01 02 00 00 00 00 0B [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 EE A4 00 90 00 06 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=255 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 28 73 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 89 02 00 35 04 06 00 51 [09:40:34]Write to MH i2c: E2 02 01 EF A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 28 73 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 89 02 00 35 04 06 00 51 00 00 66 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 EF A4 00 90 00 07 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=10 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 02 02 05 63 53 58 1D 57 [09:40:34]Write to MH i2c: E2 0D 00 F0 A4 80 0D 02 02 05 00 63 53 58 1D 57 00 00 9A [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 F0 A4 00 90 00 08 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 03 02 [09:40:34]Write to MH i2c: E2 08 00 F1 A4 80 0D 03 02 00 00 00 00 10 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]OFD Sender: No OFD packet to send [09:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 F1 A4 00 1B 64 62 A8 54 EF 70 19 90 00 66 [09:40:34]RAPDU: 1B 64 62 A8 54 EF 70 19 90 00 [09:40:34]wFMCommunicate OK [09:40:34]SAM_PROTO_SignData done [09:40:34]FM_MakeSignedData done [09:40:34]CreateOFDProtocolMessage [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 11 00 00 [09:40:34]Write to MH i2c: E2 08 00 F2 A4 80 11 00 00 00 00 00 00 10 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 F2 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [09:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:40:34]wFMCommunicate OK [09:40:34]CreateOFDProtocolMessage done [09:40:34]OFDSenderStorePacket 166310 [09:40:34]StoreOFDPacket docnum=166310 [09:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7E 42 07 01 46 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 28 73 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 89 02 00 35 04 06 00 51 63 53 58 1D 57 1B 64 62 A8 54 EF 70 19 [09:40:34]CheckFolder [09:40:34]dirname=/storage/ofd_packets [09:40:34]CheckFolder done [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00166310 [09:40:34]NVStorageSaveData ofd_packets/00166310 [09:40:34]File name is /storage/ofd_packets/00166310 [09:40:34]Write 301 bytes [09:40:34]NVStorageSaveData done [09:40:34]OFDSenderStorePacket done [09:40:34]KKMCreateOFDPacket done [09:40:34]NVStorageSaveData kkm_last_timestamp [09:40:34]File name is /storage/kkm_last_timestamp [09:40:34]Write 4 bytes [09:40:34]NVStorageSaveData done [09:40:34]ExternCall_PrintAddStr [09:40:34]wPrintStart [09:40:34]Write to MH i2c: 01 00 00 F3 A4 97 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 F3 A4 00 00 00 00 00 FF 0F AC [09:40:34]RasterBufferAndPrint [09:40:34]line Счет N : (1)220885 [09:40:34]line ИНН: 02508201610067 [09:40:34]line Контрольно-Кассовый Чек [09:40:34]line ПРОДАЖА [09:40:34]line ТРК (МРК, ГНК) : 23 [09:40:34]line Товар: 2710124130 [09:40:34]line Аи-92-К-5 [09:40:34]line 5.980 * 66.90 [09:40:34]line = 400.06 [09:40:34]line НДС 12% НСП 1% [09:40:34]line > о реализуемом товаре [09:40:34]line ОКРУГЛЕНИЕ: -0.06 [09:40:34]line ИТОГО: 400.00 [09:40:34]line Внесено: 400.00 [09:40:34]line СДАЧА: 0.00 [09:40:34]line НСП 1% : 3.54 [09:40:34]line НДС 12% : 42.48 [09:40:34]line Наличными: 400.00 [09:40:34]line Безнал.: 0.00 [09:40:34]line Место: АЗС № 161 "Партнер Нефть" [09:40:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:40:34]line СНО: Общий режим [09:40:34]line Чек 65 22.10.2024 09:40 [09:40:34]line Смена: 536 ФФД: 1.0 [09:40:34]line ЗНМ: 0300000104 [09:40:34]line РНМ: 0000000000091764 [09:40:34]line Версия ККМ: 001 [09:40:34]line ФМ: 0000000000871759 [09:40:34]line ФД: 166310 [09:40:34]line ФПД: 89487041895767 [09:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094056&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166310&fm=89487041895767&tin=02508201610067®Number=0000000000091764&sum=40000 [09:40:34]OFD Sender: Processing packet 166310 [packets to send 48, broken 47] [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00166310 [09:40:34]OFD Sender: To server: pG, [09:40:34]CommunicateWithHost lk.salyk.kg:30040 [09:40:34]ConnectInit lk.salyk.kg [09:40:34]written 0, free lines is 4095 [09:40:34]Connected sock=7 [09:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7E 42 07 01 46 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 28 73 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 89 02 00 35 04 06 00 51 63 53 58 1D 57 1B 64 62 A8 54 EF 70 19 [09:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A 9E 47 00 3C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 89 02 00 F4 03 04 00 93 19 17 67 B6 04 01 00 00 36 81 57 F6 F7 15 9B 18 [09:40:35]CommunicateWithHost err = 0 [09:40:35]CheckOFDResponse [09:40:35]1017 (14) - 77093643461234 [09:40:35]1041 (16) - 0000000000871759 [09:40:35]1040 (4) - 166310 [09:40:35]1012 (4) - 22.10.2024 03:18 [09:40:35]1206 (1) - 0 [09:40:35]OFD Sender: Remove packet 166310 [09:40:35]ProducePacketName [09:40:35]name=ofd_packets/00166310 [09:40:35]NVStorageDeleteData [09:40:35]Write to MH i2c: 01 00 00 1E A5 C3 [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 07 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 07 00 1E A5 00 00 00 00 00 B3 0C 89 [09:40:35]RasterBufferAndPrint [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]written 0, free lines is 3262 [09:40:35]MH_Cut [09:40:35]Write to MH i2c: D1 01 00 25 A5 01 9C [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 01 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 01 00 25 A5 00 9B [09:40:35]Write to MH i2c: 01 00 00 26 A5 CB [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]OFD Sender: No OFD packet to send [09:40:36]*** Cut start [09:40:36]*** Partial cut [09:40:36]*** CUTSNS_PIN = 1 [09:40:36]*** CUTSNS_PIN = 0 [09:40:36]*** Brake cut motor [09:40:36]Read from MH i2c: 01 [09:40:36]MH_I2C_Read... [09:40:36]*** Stop cut motor [09:40:36]*** Cut end [09:40:36]Read from MH i2c: 01 07 00 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: 01 07 00 26 A5 00 00 00 00 00 FF 0F E0 [09:40:36]process_action close_receipt done [09:40:36]requested_data is exist [09:40:36]produce_requested_data [09:40:36]requested_item fm.sn is exist - process it [09:40:36]wFMCommunicate request_size=4 [09:40:36]MH_SAM_APDU [09:40:36]CAPDU: 80 11 00 00 [09:40:36]Write to MH i2c: E2 08 00 27 A5 80 11 00 00 00 00 00 00 46 [09:40:36]Write i2c OK [09:40:36]MH_I2C_Read... [09:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:36]Read from MH i2c: E2 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: E2 17 00 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: E2 17 00 27 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [09:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:40:36]wFMCommunicate OK [09:40:36]requested_item fd.num is exist - process it [09:40:36]SAM_PROTO_GetFieldsCounters [09:40:36]wFMCommunicate request_size=4 [09:40:36]MH_SAM_APDU [09:40:36]CAPDU: 80 13 00 00 [09:40:36]Write to MH i2c: E2 08 00 28 A5 80 13 00 00 00 00 00 00 49 [09:40:36]Write i2c OK [09:40:36]MH_I2C_Read... [09:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:36]Read from MH i2c: E2 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: E2 62 00 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: E2 62 00 28 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:36]wFMCommunicate OK [09:40:36]SAM_PROTO_GetFieldsCounters done [09:40:36]requested_item shift.num is exist - process it [09:40:36]requested_item shift.opened is exist - process it [09:40:36]req_shift_opened [09:40:36]FM_GetShiftState [09:40:36]SAM_PROTO_GetShiftState [09:40:36]wFMCommunicate request_size=4 [09:40:36]MH_SAM_APDU [09:40:36]CAPDU: 80 13 01 00 [09:40:36]Write to MH i2c: E2 08 00 29 A5 80 13 01 00 00 00 00 00 4B [09:40:36]Write i2c OK [09:40:36]MH_I2C_Read... [09:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:37]Read from MH i2c: E2 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 0E 00 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 0E 00 29 A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9E [09:40:37]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:40:37]wFMCommunicate OK [09:40:37]SAM_PROTO_GetShiftState done [09:40:37]FM_GetShiftState done [09:40:37]req_shift_opened done [09:40:37]requested_item shift.open_date is exist - process it [09:40:37]req_shift_open_date [09:40:37]req_shift_open_date done [09:40:37]produce_requested_data done [09:40:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166310,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:40:37]process_action_free close_receipt [09:40:37]json_value_free [09:40:37]json_value_free done [09:40:37]process_json_proto returns [09:40:37]Send response to host [09:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166310,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:40:37]free response buf [09:40:37]execute_script done [09:40:37]execute_script returns [09:40:37]free content buf [09:40:37]Sock 6.Close socket [09:40:37]Sock 6.Thread stoped [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:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]accept exits with 5 [09:45:35]New connection [09:45:35]New thread 3066776932 created [09:45:35]Thread 3066920292 joined [09:45:35]Waiting for new connection... [09:45:35] Sock 5.Parse request [09:45:35]Sock 5.Check first char [09:45:35]Sock 5.First char is OK [09:45:35]request: POST /json_proto HTTP/1.0 [09:45:35]Method: POST [09:45:35]URL: /json_proto [09:45:35]Method is POST - this is cgi request [09:45:35]url: /json_proto [09:45:35]query_string will be loaded in cgi processing [09:45:35]execute_cgi json_proto POST (null) [09:45:35]execute_cgi path=json_proto method=POST [09:45:35]POST find Content-Length [09:45:35]Host: 172.17.53.195:8080 [09:45:35]Content-Length: 682 [09:45:35]Content-Type: application/json [09:45:35] [09:45:35]POST finish read [09:45:35]Found Content-Length = 682 [09:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:35]execute_script... [09:45:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:35]POST & json_proto [09:45:35]process_json_proto [09:45:35]json parsed OK: [09:45:35]protocol is kg_v1.0 [09:45:35]action value=close_receipt [09:45:35]process_action close_receipt [09:45:35]cmd_close_receipt [09:45:35]MH_GetDate [09:45:35]Write to MH i2c: F0 00 00 2A A5 BE [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 09 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 09 00 2A A5 00 56 74 17 67 21 48 4A 65 27 [09:45:35]GetLastDocTimeStamp 1729590056 [09:45:35]current date 1729590358 [09:45:35]FM_GetShiftState [09:45:35]SAM_PROTO_GetShiftState [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 13 01 00 [09:45:35]Write to MH i2c: E2 08 00 2B A5 80 13 01 00 00 00 00 00 4D [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0E 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0E 00 2B A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A0 [09:45:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_GetShiftState done [09:45:35]FM_GetShiftState done [09:45:35]opened in 1729557463 [09:45:35]opened+sec_in_day 1729643863 [09:45:35]quantity*price = 150032 [09:45:35]sum+1 = 150033 [09:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 66 22.10.2024 09:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166311 ФПД: 185133348842161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166311&fm=185133348842161&tin=02508201610067®Number=0000000000091764&sum=150000 [09:45:36]StoreToDocumentArchive [09:45:36]shift 536 fd 166311 [09:45:36]save to /storage/0536/doc_00166311 [09:45:36]save last doc name /storage/0536/doc_00166311 to /storage/kkm_last_doc_name [09:45:36]save OK [09:45:36]Clear old archive folders... [09:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:36]tlvbuf is 0147D600 [09:45:36]SAM_PROTO_ClearQueue [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 09 00 00 [09:45:36]Write to MH i2c: E2 08 00 38 A5 80 09 00 00 00 00 00 00 4F [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 38 A5 00 90 00 51 [09:45:36]RAPDU: 90 00 [09:45:36]wFMCommunicate OK [09:45:36]SAM_PROTO_ClearQueue done [09:45:36]KKMCreateOFDPacket [09:45:36]OFDProtocolAddRootSTLVToBuf [09:45:36]FM_MakeSignedData [09:45:36]FM_MakeSignedData [09:45:36]SAM_PROTO_SignData [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 0D 01 02 [09:45:36]Write to MH i2c: E2 08 00 39 A5 80 0D 01 02 00 00 00 00 57 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 39 A5 00 90 00 52 [09:45:36]RAPDU: 90 00 [09:45:36]wFMCommunicate OK [09:45:36]wFMCommunicate request_size=255 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 89 02 00 35 04 06 00 A8 [09:45:36]Write to MH i2c: E2 02 01 3A A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 89 02 00 35 04 06 00 A8 00 00 CE [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 3A A5 00 90 00 53 [09:45:37]RAPDU: 90 00 [09:45:37]wFMCommunicate OK [09:45:37]wFMCommunicate request_size=10 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 0D 02 02 05 60 B7 7E 6A B1 [09:45:37]Write to MH i2c: E2 0D 00 3B A5 80 0D 02 02 05 00 60 B7 7E 6A B1 00 00 14 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 3B A5 00 90 00 54 [09:45:37]RAPDU: 90 00 [09:45:37]wFMCommunicate OK [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 0D 03 02 [09:45:37]Write to MH i2c: E2 08 00 3C A5 80 0D 03 02 00 00 00 00 5C [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0B 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0B 00 3C A5 00 8B 13 16 F6 2E 8E 76 44 90 00 7D [09:45:37]RAPDU: 8B 13 16 F6 2E 8E 76 44 90 00 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_SignData done [09:45:37]FM_MakeSignedData done [09:45:37]CreateOFDProtocolMessage [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 11 00 00 [09:45:37]Write to MH i2c: E2 08 00 3D A5 80 11 00 00 00 00 00 00 5C [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 3D A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B4 [09:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:45:37]wFMCommunicate OK [09:45:37]CreateOFDProtocolMessage done [09:45:37]OFDSenderStorePacket 166311 [09:45:37]StoreOFDPacket docnum=166311 [09:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 D0 07 01 64 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 89 02 00 35 04 06 00 A8 60 B7 7E 6A B1 8B 13 16 F6 2E 8E 76 44 [09:45:37]CheckFolder [09:45:37]dirname=/storage/ofd_packets [09:45:37]CheckFolder done [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00166311 [09:45:37]NVStorageSaveData ofd_packets/00166311 [09:45:37]File name is /storage/ofd_packets/00166311 [09:45:37]Write 301 bytes [09:45:37]NVStorageSaveData done [09:45:37]OFDSenderStorePacket done [09:45:37]KKMCreateOFDPacket done [09:45:37]NVStorageSaveData kkm_last_timestamp [09:45:37]File name is /storage/kkm_last_timestamp [09:45:37]Write 4 bytes [09:45:37]NVStorageSaveData done [09:45:37]ExternCall_PrintAddStr [09:45:37]wPrintStart [09:45:37]Write to MH i2c: 01 00 00 3E A5 E3 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 3E A5 00 00 00 00 00 FF 0F F8 [09:45:37]RasterBufferAndPrint [09:45:37]line Счет N : (1)220886 [09:45:37]line ИНН: 02508201610067 [09:45:37]line Контрольно-Кассовый Чек [09:45:37]line ПРОДАЖА [09:45:37]line ТРК (МРК, ГНК) : 24 [09:45:37]line Товар: 2710124500 [09:45:37]line Аи-95-К-5 [09:45:37]line 20.220 * 74.20 [09:45:37]line = 1500.32 [09:45:37]line НДС 12% НСП 1% [09:45:37]line > о реализуемом товаре [09:45:37]line ОКРУГЛЕНИЕ: -0.32 [09:45:37]line ИТОГО: 1500.00 [09:45:37]line Внесено: 1500.00 [09:45:37]line СДАЧА: 0.00 [09:45:37]line НСП 1% : 13.28 [09:45:37]line НДС 12% : 159.33 [09:45:37]line Наличными: 1500.00 [09:45:37]line Безнал.: 0.00 [09:45:37]line Место: АЗС № 161 "Партнер Нефть" [09:45:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:45:37]line СНО: Общий режим [09:45:37]line Чек 66 22.10.2024 09:45 [09:45:37]line Смена: 536 ФФД: 1.0 [09:45:37]line ЗНМ: 0300000104 [09:45:37]line РНМ: 0000000000091764 [09:45:37]line Версия ККМ: 001 [09:45:37]line ФМ: 0000000000871759 [09:45:37]line ФД: 166311 [09:45:37]line ФПД: 185133348842161 [09:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166311&fm=185133348842161&tin=02508201610067®Number=0000000000091764&sum=150000 [09:45:37]OFD Sender: Processing packet 166311 [packets to send 48, broken 47] [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00166311 [09:45:37]OFD Sender: To server: pG, [09:45:37]CommunicateWithHost lk.salyk.kg:30040 [09:45:37]ConnectInit lk.salyk.kg [09:45:37]written 0, free lines is 4095 [09:45:37]Connected sock=7 [09:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 D0 07 01 64 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 56 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 89 02 00 35 04 06 00 A8 60 B7 7E 6A B1 8B 13 16 F6 2E 8E 76 44 [09:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 40 47 00 EB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 89 02 00 F4 03 04 00 C2 1A 17 67 B6 04 01 00 00 E3 9B DF FA F0 61 2F 92 [09:45:37]CommunicateWithHost err = 0 [09:45:37]CheckOFDResponse [09:45:37]1017 (14) - 77093643461234 [09:45:37]1041 (16) - 0000000000871759 [09:45:37]1040 (4) - 166311 [09:45:37]1012 (4) - 22.10.2024 03:23 [09:45:37]1206 (1) - 0 [09:45:37]OFD Sender: Remove packet 166311 [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00166311 [09:45:37]NVStorageDeleteData [09:45:38]Write to MH i2c: 01 00 00 69 A5 0E [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 69 A5 00 00 00 00 00 B5 0C D6 [09:45:38]RasterBufferAndPrint [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]written 0, free lines is 3258 [09:45:38]MH_Cut [09:45:38]Write to MH i2c: D1 01 00 70 A5 01 E7 [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 01 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 01 00 70 A5 00 E6 [09:45:38]Write to MH i2c: 01 00 00 71 A5 16 [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]OFD Sender: No OFD packet to send [09:45:38]*** Cut start [09:45:38]*** Partial cut [09:45:38]*** CUTSNS_PIN = 1 [09:45:38]*** CUTSNS_PIN = 0 [09:45:39]*** Brake cut motor [09:45:39]Read from MH i2c: 01 [09:45:39]MH_I2C_Read... [09:45:39]*** Stop cut motor [09:45:39]*** Cut end [09:45:39]Read from MH i2c: 01 07 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: 01 07 00 71 A5 00 00 00 00 00 FF 0F 2B [09:45:39]process_action close_receipt done [09:45:39]requested_data is exist [09:45:39]produce_requested_data [09:45:39]requested_item fm.sn is exist - process it [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 11 00 00 [09:45:39]Write to MH i2c: E2 08 00 72 A5 80 11 00 00 00 00 00 00 91 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 72 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [09:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:45:39]wFMCommunicate OK [09:45:39]requested_item fd.num is exist - process it [09:45:39]SAM_PROTO_GetFieldsCounters [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 00 00 [09:45:39]Write to MH i2c: E2 08 00 73 A5 80 13 00 00 00 00 00 00 94 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 73 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetFieldsCounters done [09:45:39]requested_item shift.num is exist - process it [09:45:39]requested_item shift.opened is exist - process it [09:45:39]req_shift_opened [09:45:39]FM_GetShiftState [09:45:39]SAM_PROTO_GetShiftState [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 01 00 [09:45:39]Write to MH i2c: E2 08 00 74 A5 80 13 01 00 00 00 00 00 96 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 74 A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E9 [09:45:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetShiftState done [09:45:39]FM_GetShiftState done [09:45:39]req_shift_opened done [09:45:39]requested_item shift.open_date is exist - process it [09:45:39]req_shift_open_date [09:45:39]req_shift_open_date done [09:45:39]produce_requested_data done [09:45:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166311,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:45:39]process_action_free close_receipt [09:45:39]json_value_free [09:45:39]json_value_free done [09:45:39]process_json_proto returns [09:45:39]Send response to host [09:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166311,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:45:39]free response buf [09:45:39]execute_script done [09:45:39]execute_script returns [09:45:39]free content buf [09:45:39]Sock 5.Close socket [09:45:39]Sock 5.Thread stoped [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:00]accept exits with 6 [09:46:00]New connection [09:46:00]New thread 3066920292 created [09:46:00]Thread 3066776932 joined [09:46:00]Waiting for new connection... [09:46:00] Sock 6.Parse request [09:46:00]Sock 6.Check first char [09:46:00]Sock 6.First char is OK [09:46:00]request: POST /json_proto HTTP/1.0 [09:46:00]Method: POST [09:46:00]URL: /json_proto [09:46:00]Method is POST - this is cgi request [09:46:00]url: /json_proto [09:46:00]query_string will be loaded in cgi processing [09:46:00]execute_cgi json_proto POST (null) [09:46:00]execute_cgi path=json_proto method=POST [09:46:00]POST find Content-Length [09:46:00]Host: 172.17.53.195:8080 [09:46:00]Content-Length: 682 [09:46:00]Content-Type: application/json [09:46:00] [09:46:00]POST finish read [09:46:00]Found Content-Length = 682 [09:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.210, "sum" : 1499.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:00]execute_script... [09:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.210, "sum" : 1499.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:00]POST & json_proto [09:46:00]process_json_proto [09:46:00]json parsed OK: [09:46:00]protocol is kg_v1.0 [09:46:00]action value=close_receipt [09:46:00]process_action close_receipt [09:46:00]cmd_close_receipt [09:46:00]MH_GetDate [09:46:00]Write to MH i2c: F0 00 00 75 A5 09 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: F0 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: F0 09 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: F0 09 00 75 A5 00 6F 74 17 67 21 48 4A 65 8B [09:46:00]GetLastDocTimeStamp 1729590358 [09:46:00]current date 1729590383 [09:46:00]FM_GetShiftState [09:46:00]SAM_PROTO_GetShiftState [09:46:00]wFMCommunicate request_size=4 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 13 01 00 [09:46:00]Write to MH i2c: E2 08 00 76 A5 80 13 01 00 00 00 00 00 98 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 0E 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 0E 00 76 A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EB [09:46:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:46:00]wFMCommunicate OK [09:46:00]SAM_PROTO_GetShiftState done [09:46:00]FM_GetShiftState done [09:46:00]opened in 1729557463 [09:46:00]opened+sec_in_day 1729643863 [09:46:00]quantity*price = 149958 [09:46:00]sum+1 = 149959 [09:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 67 22.10.2024 09:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166312 ФПД: 278185020622941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166312&fm=278185020622941&tin=02508201610067®Number=0000000000091764&sum=149900 [09:46:01]StoreToDocumentArchive [09:46:01]shift 536 fd 166312 [09:46:01]save to /storage/0536/doc_00166312 [09:46:01]save last doc name /storage/0536/doc_00166312 to /storage/kkm_last_doc_name [09:46:01]save OK [09:46:01]Clear old archive folders... [09:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:01]tlvbuf is 01445810 [09:46:01]SAM_PROTO_ClearQueue [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 09 00 00 [09:46:01]Write to MH i2c: E2 08 00 83 A5 80 09 00 00 00 00 00 00 9A [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 83 A5 00 90 00 9C [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]SAM_PROTO_ClearQueue done [09:46:01]KKMCreateOFDPacket [09:46:01]OFDProtocolAddRootSTLVToBuf [09:46:01]FM_MakeSignedData [09:46:01]FM_MakeSignedData [09:46:01]SAM_PROTO_SignData [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 01 02 [09:46:01]Write to MH i2c: E2 08 00 84 A5 80 0D 01 02 00 00 00 00 A2 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 84 A5 00 90 00 9D [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=255 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 89 02 00 35 04 06 00 FD [09:46:01]Write to MH i2c: E2 02 01 85 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 89 02 00 35 04 06 00 FD 00 00 63 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 85 A5 00 90 00 9E [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=10 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 02 02 05 01 FF 56 08 5D [09:46:01]Write to MH i2c: E2 0D 00 86 A5 80 0D 02 02 05 00 01 FF 56 08 5D 00 00 6A [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 86 A5 00 90 00 9F [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 03 02 [09:46:01]Write to MH i2c: E2 08 00 87 A5 80 0D 03 02 00 00 00 00 A7 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 0B 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 0B 00 87 A5 00 2B 6A 8F D1 F1 95 11 0A 90 00 3E [09:46:01]RAPDU: 2B 6A 8F D1 F1 95 11 0A 90 00 [09:46:01]wFMCommunicate OK [09:46:01]SAM_PROTO_SignData done [09:46:01]FM_MakeSignedData done [09:46:01]CreateOFDProtocolMessage [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 11 00 00 [09:46:01]Write to MH i2c: E2 08 00 88 A5 80 11 00 00 00 00 00 00 A7 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 88 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [09:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:01]wFMCommunicate OK [09:46:01]CreateOFDProtocolMessage done [09:46:01]OFDSenderStorePacket 166312 [09:46:01]StoreOFDPacket docnum=166312 [09:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 59 07 01 BA 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 89 02 00 35 04 06 00 FD 01 FF 56 08 5D 2B 6A 8F D1 F1 95 11 0A [09:46:01]CheckFolder [09:46:01]dirname=/storage/ofd_packets [09:46:01]CheckFolder done [09:46:01]ProducePacketName [09:46:01]name=ofd_packets/00166312 [09:46:01]NVStorageSaveData ofd_packets/00166312 [09:46:01]File name is /storage/ofd_packets/00166312 [09:46:01]Write 301 bytes [09:46:01]NVStorageSaveData done [09:46:01]OFDSenderStorePacket done [09:46:01]KKMCreateOFDPacket done [09:46:01]NVStorageSaveData kkm_last_timestamp [09:46:01]File name is /storage/kkm_last_timestamp [09:46:01]Write 4 bytes [09:46:01]NVStorageSaveData done [09:46:01]ExternCall_PrintAddStr [09:46:01]wPrintStart [09:46:01]Write to MH i2c: 01 00 00 89 A5 2E [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 89 A5 00 00 00 00 00 FF 0F 43 [09:46:01]RasterBufferAndPrint [09:46:01]line Счет N : (1)220887 [09:46:01]line ИНН: 02508201610067 [09:46:01]line Контрольно-Кассовый Чек [09:46:01]line ПРОДАЖА [09:46:01]line ТРК (МРК, ГНК) : 14 [09:46:01]line Товар: 2710124500 [09:46:01]line Аи-95-К-5 [09:46:01]line 20.210 * 74.20 [09:46:01]line = 1499.58 [09:46:01]line НДС 12% НСП 1% [09:46:01]line > о реализуемом товаре [09:46:01]line ОКРУГЛЕНИЕ: -0.58 [09:46:01]line ИТОГО: 1499.00 [09:46:01]line Внесено: 1500.00 [09:46:01]line СДАЧА: 1.00 [09:46:01]line НСП 1% : 13.27 [09:46:01]line НДС 12% : 159.25 [09:46:01]line Наличными: 1499.00 [09:46:01]line Безнал.: 0.00 [09:46:01]line Место: АЗС № 161 "Партнер Нефть" [09:46:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:46:01]line СНО: Общий режим [09:46:01]line Чек 67 22.10.2024 09:46 [09:46:01]line Смена: 536 ФФД: 1.0 [09:46:01]line ЗНМ: 0300000104 [09:46:01]line РНМ: 0000000000091764 [09:46:01]line Версия ККМ: 001 [09:46:01]line ФМ: 0000000000871759 [09:46:01]line ФД: 166312 [09:46:01]line ФПД: 278185020622941 [09:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166312&fm=278185020622941&tin=02508201610067®Number=0000000000091764&sum=149900 [09:46:02]OFD Sender: Processing packet 166312 [packets to send 48, broken 47] [09:46:02]ProducePacketName [09:46:02]name=ofd_packets/00166312 [09:46:02]OFD Sender: To server: pG, [09:46:02]CommunicateWithHost lk.salyk.kg:30040 [09:46:02]ConnectInit lk.salyk.kg [09:46:02]written 0, free lines is 4095 [09:46:02]Connected sock=7 [09:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 59 07 01 BA 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 6F 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 89 02 00 35 04 06 00 FD 01 FF 56 08 5D 2B 6A 8F D1 F1 95 11 0A [09:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DA D5 47 00 CC 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 89 02 00 F4 03 04 00 DA 1A 17 67 B6 04 01 00 00 44 24 28 2A E7 5B 0B 1C [09:46:02]CommunicateWithHost err = 0 [09:46:02]CheckOFDResponse [09:46:02]1017 (14) - 77093643461234 [09:46:02]1041 (16) - 0000000000871759 [09:46:02]1040 (4) - 166312 [09:46:02]1012 (4) - 22.10.2024 03:24 [09:46:02]1206 (1) - 0 [09:46:02]OFD Sender: Remove packet 166312 [09:46:02]ProducePacketName [09:46:02]name=ofd_packets/00166312 [09:46:02]NVStorageDeleteData [09:46:02]Write to MH i2c: 01 00 00 B4 A5 59 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 07 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 07 00 B4 A5 00 00 00 00 00 C1 0C 2D [09:46:02]RasterBufferAndPrint [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]written 0, free lines is 3272 [09:46:02]MH_Cut [09:46:02]Write to MH i2c: D1 01 00 BB A5 01 32 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 01 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 01 00 BB A5 00 31 [09:46:02]Write to MH i2c: 01 00 00 BC A5 61 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:03]OFD Sender: No OFD packet to send [09:46:03]*** Cut start [09:46:03]*** Partial cut [09:46:03]*** CUTSNS_PIN = 1 [09:46:03]*** CUTSNS_PIN = 0 [09:46:03]*** Brake cut motor [09:46:04]Read from MH i2c: 01 [09:46:04]MH_I2C_Read... [09:46:04]*** Stop cut motor [09:46:04]*** Cut end [09:46:04]Read from MH i2c: 01 07 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: 01 07 00 BC A5 00 00 00 00 00 FF 0F 76 [09:46:04]process_action close_receipt done [09:46:04]requested_data is exist [09:46:04]produce_requested_data [09:46:04]requested_item fm.sn is exist - process it [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 11 00 00 [09:46:04]Write to MH i2c: E2 08 00 BD A5 80 11 00 00 00 00 00 00 DC [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 17 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 17 00 BD A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [09:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:04]wFMCommunicate OK [09:46:04]requested_item fd.num is exist - process it [09:46:04]SAM_PROTO_GetFieldsCounters [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 13 00 00 [09:46:04]Write to MH i2c: E2 08 00 BE A5 80 13 00 00 00 00 00 00 DF [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 62 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 62 00 BE A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:04]wFMCommunicate OK [09:46:04]SAM_PROTO_GetFieldsCounters done [09:46:04]requested_item shift.num is exist - process it [09:46:04]requested_item shift.opened is exist - process it [09:46:04]req_shift_opened [09:46:04]FM_GetShiftState [09:46:04]SAM_PROTO_GetShiftState [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 13 01 00 [09:46:04]Write to MH i2c: E2 08 00 BF A5 80 13 01 00 00 00 00 00 E1 [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 0E 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 0E 00 BF A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 34 [09:46:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:46:04]wFMCommunicate OK [09:46:04]SAM_PROTO_GetShiftState done [09:46:04]FM_GetShiftState done [09:46:04]req_shift_opened done [09:46:04]requested_item shift.open_date is exist - process it [09:46:04]req_shift_open_date [09:46:04]req_shift_open_date done [09:46:04]produce_requested_data done [09:46:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166312,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:46:04]process_action_free close_receipt [09:46:04]json_value_free [09:46:04]json_value_free done [09:46:04]process_json_proto returns [09:46:04]Send response to host [09:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166312,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:46:04]free response buf [09:46:04]execute_script done [09:46:04]execute_script returns [09:46:04]free content buf [09:46:04]Sock 6.Close socket [09:46:04]Sock 6.Thread stoped [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:40]accept exits with 5 [09:46:40]New connection [09:46:40]New thread 3066776932 created [09:46:40]Thread 3066920292 joined [09:46:40]Waiting for new connection... [09:46:40] Sock 5.Parse request [09:46:40]Sock 5.Check first char [09:46:40]Sock 5.First char is OK [09:46:40]request: POST /json_proto HTTP/1.0 [09:46:40]Method: POST [09:46:40]URL: /json_proto [09:46:40]Method is POST - this is cgi request [09:46:40]url: /json_proto [09:46:40]query_string will be loaded in cgi processing [09:46:40]execute_cgi json_proto POST (null) [09:46:40]execute_cgi path=json_proto method=POST [09:46:40]POST find Content-Length [09:46:40]Host: 172.17.53.195:8080 [09:46:40]Content-Length: 676 [09:46:40]Content-Type: application/json [09:46:40] [09:46:40]POST finish read [09:46:40]Found Content-Length = 676 [09:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:40]execute_script... [09:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:40]POST & json_proto [09:46:40]process_json_proto [09:46:40]json parsed OK: [09:46:40]protocol is kg_v1.0 [09:46:40]action value=close_receipt [09:46:40]process_action close_receipt [09:46:40]cmd_close_receipt [09:46:40]MH_GetDate [09:46:40]Write to MH i2c: F0 00 00 C0 A5 54 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 09 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 09 00 C0 A5 00 97 74 17 67 21 48 4A 65 FE [09:46:40]GetLastDocTimeStamp 1729590383 [09:46:40]current date 1729590423 [09:46:40]FM_GetShiftState [09:46:40]SAM_PROTO_GetShiftState [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 13 01 00 [09:46:40]Write to MH i2c: E2 08 00 C1 A5 80 13 01 00 00 00 00 00 E3 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0E 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0E 00 C1 A5 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [09:46:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_GetShiftState done [09:46:40]FM_GetShiftState done [09:46:40]opened in 1729557463 [09:46:40]opened+sec_in_day 1729643863 [09:46:40]quantity*price = 99974 [09:46:40]sum+1 = 99975 [09:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 68 22.10.2024 09:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166313 ФПД: 166331635584136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094704&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166313&fm=166331635584136&tin=02508201610067®Number=0000000000091764&sum=99900 [09:46:41]StoreToDocumentArchive [09:46:41]shift 536 fd 166313 [09:46:41]save to /storage/0536/doc_00166313 [09:46:41]save last doc name /storage/0536/doc_00166313 to /storage/kkm_last_doc_name [09:46:41]save OK [09:46:41]Clear old archive folders... [09:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:41]tlvbuf is 0165D760 [09:46:41]SAM_PROTO_ClearQueue [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 09 00 00 [09:46:41]Write to MH i2c: E2 08 00 CE A5 80 09 00 00 00 00 00 00 E5 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 CE A5 00 90 00 E7 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_ClearQueue done [09:46:41]KKMCreateOFDPacket [09:46:41]OFDProtocolAddRootSTLVToBuf [09:46:41]FM_MakeSignedData [09:46:41]FM_MakeSignedData [09:46:41]SAM_PROTO_SignData [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 01 02 [09:46:41]Write to MH i2c: E2 08 00 CF A5 80 0D 01 02 00 00 00 00 ED [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 CF A5 00 90 00 E8 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=255 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 98 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 89 02 00 35 04 06 00 97 47 1A 0D [09:46:41]Write to MH i2c: E2 02 01 D0 A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 98 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 89 02 00 35 04 06 00 97 47 1A 0D 00 00 73 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 D0 A5 00 90 00 E9 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=7 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 02 02 02 CC 88 [09:46:42]Write to MH i2c: E2 0A 00 D1 A5 80 0D 02 02 02 00 CC 88 00 00 48 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 D1 A5 00 90 00 EA [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 03 02 [09:46:42]Write to MH i2c: E2 08 00 D2 A5 80 0D 03 02 00 00 00 00 F2 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 D2 A5 00 DB 7E 0B C3 FA 6D 7E 52 90 00 51 [09:46:42]RAPDU: DB 7E 0B C3 FA 6D 7E 52 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_SignData done [09:46:42]FM_MakeSignedData done [09:46:42]CreateOFDProtocolMessage [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 D3 A5 80 11 00 00 00 00 00 00 F2 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 D3 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:42]wFMCommunicate OK [09:46:42]CreateOFDProtocolMessage done [09:46:42]OFDSenderStorePacket 166313 [09:46:42]StoreOFDPacket docnum=166313 [09:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B5 73 04 01 5F 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 98 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 89 02 00 35 04 06 00 97 47 1A 0D CC 88 DB 7E 0B C3 FA 6D 7E 52 [09:46:42]CheckFolder [09:46:42]dirname=/storage/ofd_packets [09:46:42]CheckFolder done [09:46:42]ProducePacketName [09:46:42]name=ofd_packets/00166313 [09:46:42]NVStorageSaveData ofd_packets/00166313 [09:46:42]File name is /storage/ofd_packets/00166313 [09:46:42]Write 298 bytes [09:46:42]NVStorageSaveData done [09:46:42]OFDSenderStorePacket done [09:46:42]KKMCreateOFDPacket done [09:46:42]NVStorageSaveData kkm_last_timestamp [09:46:42]File name is /storage/kkm_last_timestamp [09:46:42]Write 4 bytes [09:46:42]NVStorageSaveData done [09:46:42]ExternCall_PrintAddStr [09:46:42]wPrintStart [09:46:42]Write to MH i2c: 01 00 00 D4 A5 79 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 D4 A5 00 00 00 00 00 FF 0F 8E [09:46:42]RasterBufferAndPrint [09:46:42]line Счет N : (1)220888 [09:46:42]line ИНН: 02508201610067 [09:46:42]line Контрольно-Кассовый Чек [09:46:42]line ПРОДАЖА [09:46:42]line ТРК (МРК, ГНК) : 41 [09:46:42]line Товар: 2710194210 [09:46:42]line ДТ-К-5 [09:46:42]line 13.120 * 76.20 [09:46:42]line = 999.74 [09:46:42]line НДС 12% НСП 1% [09:46:42]line > о реализуемом товаре [09:46:42]line ОКРУГЛЕНИЕ: -0.74 [09:46:42]line ИТОГО: 999.00 [09:46:42]line Внесено: 1000.00 [09:46:42]line СДАЧА: 1.00 [09:46:42]line НСП 1% : 8.85 [09:46:42]line НДС 12% : 106.17 [09:46:42]line Наличными: 999.00 [09:46:42]line Безнал.: 0.00 [09:46:42]line Место: АЗС № 161 "Партнер Нефть" [09:46:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:46:42]line СНО: Общий режим [09:46:42]line Чек 68 22.10.2024 09:47 [09:46:42]line Смена: 536 ФФД: 1.0 [09:46:42]line ЗНМ: 0300000104 [09:46:42]line РНМ: 0000000000091764 [09:46:42]line Версия ККМ: 001 [09:46:42]line ФМ: 0000000000871759 [09:46:42]line ФД: 166313 [09:46:42]line ФПД: 166331635584136 [09:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094704&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166313&fm=166331635584136&tin=02508201610067®Number=0000000000091764&sum=99900 [09:46:42]OFD Sender: Processing packet 166313 [packets to send 48, broken 47] [09:46:42]ProducePacketName [09:46:42]name=ofd_packets/00166313 [09:46:42]OFD Sender: To server: pG, [09:46:42]CommunicateWithHost lk.salyk.kg:30040 [09:46:42]ConnectInit lk.salyk.kg [09:46:42]written 0, free lines is 4095 [09:46:42]Connected sock=7 [09:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B5 73 04 01 5F 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 98 74 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 89 02 00 35 04 06 00 97 47 1A 0D CC 88 DB 7E 0B C3 FA 6D 7E 52 [09:46:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC 41 47 00 45 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 89 02 00 F4 03 04 00 03 1B 17 67 B6 04 01 00 00 80 A0 F7 83 28 E6 E7 48 [09:46:43]CommunicateWithHost err = 0 [09:46:43]CheckOFDResponse [09:46:43]1017 (14) - 77093643461234 [09:46:43]1041 (16) - 0000000000871759 [09:46:43]1040 (4) - 166313 [09:46:43]1012 (4) - 22.10.2024 03:24 [09:46:43]1206 (1) - 0 [09:46:43]OFD Sender: Remove packet 166313 [09:46:43]ProducePacketName [09:46:43]name=ofd_packets/00166313 [09:46:43]NVStorageDeleteData [09:46:43]Write to MH i2c: 01 00 00 FF A5 A4 [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 07 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 07 00 FF A5 00 00 00 00 00 BC 0C 73 [09:46:43]RasterBufferAndPrint [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]line [09:46:43]written 0, free lines is 3268 [09:46:43]MH_Cut [09:46:43]Write to MH i2c: D1 01 00 06 A6 01 7E [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 01 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: D1 01 00 06 A6 00 7D [09:46:43]Write to MH i2c: 01 00 00 07 A6 AD [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]OFD Sender: No OFD packet to send [09:46:44]*** Cut start [09:46:44]*** Partial cut [09:46:44]*** CUTSNS_PIN = 1 [09:46:44]*** CUTSNS_PIN = 0 [09:46:44]*** Brake cut motor [09:46:44]Read from MH i2c: 01 [09:46:44]MH_I2C_Read... [09:46:44]*** Stop cut motor [09:46:44]*** Cut end [09:46:44]Read from MH i2c: 01 07 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: 01 07 00 07 A6 00 00 00 00 00 FF 0F C2 [09:46:44]process_action close_receipt done [09:46:44]requested_data is exist [09:46:44]produce_requested_data [09:46:44]requested_item fm.sn is exist - process it [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 11 00 00 [09:46:44]Write to MH i2c: E2 08 00 08 A6 80 11 00 00 00 00 00 00 28 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 08 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [09:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:44]wFMCommunicate OK [09:46:44]requested_item fd.num is exist - process it [09:46:44]SAM_PROTO_GetFieldsCounters [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 00 00 [09:46:44]Write to MH i2c: E2 08 00 09 A6 80 13 00 00 00 00 00 00 2B [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 09 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [09:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetFieldsCounters done [09:46:44]requested_item shift.num is exist - process it [09:46:44]requested_item shift.opened is exist - process it [09:46:44]req_shift_opened [09:46:44]FM_GetShiftState [09:46:44]SAM_PROTO_GetShiftState [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 01 00 [09:46:44]Write to MH i2c: E2 08 00 0A A6 80 13 01 00 00 00 00 00 2D [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 0A A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 80 [09:46:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetShiftState done [09:46:44]FM_GetShiftState done [09:46:44]req_shift_opened done [09:46:44]requested_item shift.open_date is exist - process it [09:46:44]req_shift_open_date [09:46:44]req_shift_open_date done [09:46:44]produce_requested_data done [09:46:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166313,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:46:44]process_action_free close_receipt [09:46:44]json_value_free [09:46:44]json_value_free done [09:46:44]process_json_proto returns [09:46:44]Send response to host [09:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166313,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:46:44]free response buf [09:46:44]execute_script done [09:46:44]execute_script returns [09:46:44]free content buf [09:46:44]Sock 5.Close socket [09:46:44]Sock 5.Thread stoped [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]accept exits with 6 [09:52:13]New connection [09:52:13]New thread 3066920292 created [09:52:13]Thread 3066776932 joined [09:52:13]Waiting for new connection... [09:52:13] Sock 6.Parse request [09:52:13]Sock 6.Check first char [09:52:13]Sock 6.First char is OK [09:52:13]request: POST /json_proto HTTP/1.0 [09:52:13]Method: POST [09:52:13]URL: /json_proto [09:52:13]Method is POST - this is cgi request [09:52:13]url: /json_proto [09:52:13]query_string will be loaded in cgi processing [09:52:13]execute_cgi json_proto POST (null) [09:52:13]execute_cgi path=json_proto method=POST [09:52:13]POST find Content-Length [09:52:13]Host: 172.17.53.195:8080 [09:52:13]Content-Length: 677 [09:52:13]Content-Type: application/json [09:52:13] [09:52:13]POST finish read [09:52:13]Found Content-Length = 677 [09:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:13]execute_script... [09:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:13]POST & json_proto [09:52:13]process_json_proto [09:52:13]json parsed OK: [09:52:13]protocol is kg_v1.0 [09:52:13]action value=close_receipt [09:52:13]process_action close_receipt [09:52:13]cmd_close_receipt [09:52:13]MH_GetDate [09:52:13]Write to MH i2c: F0 00 00 0B A6 A0 [09:52:13]Write i2c OK [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: F0 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: F0 09 00 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: F0 09 00 0B A6 00 E5 75 17 67 21 48 4A 65 99 [09:52:13]GetLastDocTimeStamp 1729590424 [09:52:13]current date 1729590757 [09:52:13]FM_GetShiftState [09:52:13]SAM_PROTO_GetShiftState [09:52:13]wFMCommunicate request_size=4 [09:52:13]MH_SAM_APDU [09:52:13]CAPDU: 80 13 01 00 [09:52:13]Write to MH i2c: E2 08 00 0C A6 80 13 01 00 00 00 00 00 2F [09:52:13]Write i2c OK [09:52:13]MH_I2C_Read... [09:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:13]Read from MH i2c: E2 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: E2 0E 00 [09:52:13]MH_I2C_Read... [09:52:13]Read from MH i2c: E2 0E 00 0C A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 82 [09:52:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:52:13]wFMCommunicate OK [09:52:13]SAM_PROTO_GetShiftState done [09:52:13]FM_GetShiftState done [09:52:13]opened in 1729557463 [09:52:13]opened+sec_in_day 1729643863 [09:52:13]quantity*price = 20003 [09:52:13]sum+1 = 20004 [09:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 69 22.10.2024 09:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166314 ФПД: 1350564472643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166314&fm=1350564472643&tin=02508201610067®Number=0000000000091764&sum=20000 [09:52:14]StoreToDocumentArchive [09:52:14]shift 536 fd 166314 [09:52:14]save to /storage/0536/doc_00166314 [09:52:14]save last doc name /storage/0536/doc_00166314 to /storage/kkm_last_doc_name [09:52:14]save OK [09:52:14]Clear old archive folders... [09:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:14]tlvbuf is 0179A120 [09:52:14]SAM_PROTO_ClearQueue [09:52:14]wFMCommunicate request_size=4 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 09 00 00 [09:52:14]Write to MH i2c: E2 08 00 19 A6 80 09 00 00 00 00 00 00 31 [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 19 A6 00 90 00 33 [09:52:14]RAPDU: 90 00 [09:52:14]wFMCommunicate OK [09:52:14]SAM_PROTO_ClearQueue done [09:52:14]KKMCreateOFDPacket [09:52:14]OFDProtocolAddRootSTLVToBuf [09:52:14]FM_MakeSignedData [09:52:14]FM_MakeSignedData [09:52:14]SAM_PROTO_SignData [09:52:14]wFMCommunicate request_size=4 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 0D 01 02 [09:52:14]Write to MH i2c: E2 08 00 1A A6 80 0D 01 02 00 00 00 00 39 [09:52:14]Write i2c OK [09:52:14]MH_I2C_Read... [09:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:14]Read from MH i2c: E2 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 [09:52:14]MH_I2C_Read... [09:52:14]Read from MH i2c: E2 03 00 1A A6 00 90 00 34 [09:52:14]RAPDU: 90 00 [09:52:14]wFMCommunicate OK [09:52:14]wFMCommunicate request_size=255 [09:52:14]MH_SAM_APDU [09:52:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E5 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 89 02 00 35 04 06 00 01 [09:52:14]Write to MH i2c: E2 02 01 1B A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E5 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 89 02 00 35 04 06 00 01 00 00 FE [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:15]Read from MH i2c: E2 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 03 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 03 00 1B A6 00 90 00 35 [09:52:15]RAPDU: 90 00 [09:52:15]wFMCommunicate OK [09:52:15]wFMCommunicate request_size=10 [09:52:15]MH_SAM_APDU [09:52:15]CAPDU: 80 0D 02 02 05 3A 73 EA 67 43 [09:52:15]Write to MH i2c: E2 0D 00 1C A6 80 0D 02 02 05 00 3A 73 EA 67 43 00 00 87 [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:15]Read from MH i2c: E2 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 03 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 03 00 1C A6 00 90 00 36 [09:52:15]RAPDU: 90 00 [09:52:15]wFMCommunicate OK [09:52:15]wFMCommunicate request_size=4 [09:52:15]MH_SAM_APDU [09:52:15]CAPDU: 80 0D 03 02 [09:52:15]Write to MH i2c: E2 08 00 1D A6 80 0D 03 02 00 00 00 00 3E [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:15]Read from MH i2c: E2 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 0B 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 0B 00 1D A6 00 03 82 FB 87 27 4F 4F FC 90 00 07 [09:52:15]RAPDU: 03 82 FB 87 27 4F 4F FC 90 00 [09:52:15]wFMCommunicate OK [09:52:15]SAM_PROTO_SignData done [09:52:15]FM_MakeSignedData done [09:52:15]CreateOFDProtocolMessage [09:52:15]wFMCommunicate request_size=4 [09:52:15]MH_SAM_APDU [09:52:15]CAPDU: 80 11 00 00 [09:52:15]Write to MH i2c: E2 08 00 1E A6 80 11 00 00 00 00 00 00 3E [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:15]Read from MH i2c: E2 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 17 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: E2 17 00 1E A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [09:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:52:15]wFMCommunicate OK [09:52:15]CreateOFDProtocolMessage done [09:52:15]OFDSenderStorePacket 166314 [09:52:15]StoreOFDPacket docnum=166314 [09:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 F1 07 01 C3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E5 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 89 02 00 35 04 06 00 01 3A 73 EA 67 43 03 82 FB 87 27 4F 4F FC [09:52:15]CheckFolder [09:52:15]dirname=/storage/ofd_packets [09:52:15]CheckFolder done [09:52:15]ProducePacketName [09:52:15]name=ofd_packets/00166314 [09:52:15]NVStorageSaveData ofd_packets/00166314 [09:52:15]File name is /storage/ofd_packets/00166314 [09:52:15]Write 301 bytes [09:52:15]NVStorageSaveData done [09:52:15]OFDSenderStorePacket done [09:52:15]KKMCreateOFDPacket done [09:52:15]NVStorageSaveData kkm_last_timestamp [09:52:15]File name is /storage/kkm_last_timestamp [09:52:15]Write 4 bytes [09:52:15]NVStorageSaveData done [09:52:15]ExternCall_PrintAddStr [09:52:15]wPrintStart [09:52:15]Write to MH i2c: 01 00 00 1F A6 C5 [09:52:15]Write i2c OK [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 07 00 [09:52:15]MH_I2C_Read... [09:52:15]Read from MH i2c: 01 07 00 1F A6 00 00 00 00 00 FF 0F DA [09:52:15]RasterBufferAndPrint [09:52:15]line Счет N : (1)220890 [09:52:15]line ИНН: 02508201610067 [09:52:15]line Контрольно-Кассовый Чек [09:52:15]line ПРОДАЖА [09:52:15]line ТРК (МРК, ГНК) : 43 [09:52:15]line Товар: 2710124130 [09:52:15]line Аи-92-К-5 [09:52:15]line 2.990 * 66.90 [09:52:15]line = 200.03 [09:52:15]line НДС 12% НСП 1% [09:52:15]line > о реализуемом товаре [09:52:15]line ОКРУГЛЕНИЕ: -0.03 [09:52:15]line ИТОГО: 200.00 [09:52:15]line Внесено: 200.00 [09:52:15]line СДАЧА: 0.00 [09:52:15]line НСП 1% : 1.77 [09:52:15]line НДС 12% : 21.24 [09:52:15]line Наличными: 200.00 [09:52:15]line Безнал.: 0.00 [09:52:15]line Место: АЗС № 161 "Партнер Нефть" [09:52:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:52:15]line СНО: Общий режим [09:52:15]line Чек 69 22.10.2024 09:52 [09:52:15]line Смена: 536 ФФД: 1.0 [09:52:15]line ЗНМ: 0300000104 [09:52:15]line РНМ: 0000000000091764 [09:52:15]line Версия ККМ: 001 [09:52:15]line ФМ: 0000000000871759 [09:52:15]line ФД: 166314 [09:52:15]line ФПД: 1350564472643 [09:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166314&fm=1350564472643&tin=02508201610067®Number=0000000000091764&sum=20000 [09:52:15]OFD Sender: Processing packet 166314 [packets to send 48, broken 47] [09:52:15]ProducePacketName [09:52:15]name=ofd_packets/00166314 [09:52:15]OFD Sender: To server: pG, [09:52:15]CommunicateWithHost lk.salyk.kg:30040 [09:52:15]ConnectInit lk.salyk.kg [09:52:15]written 0, free lines is 4095 [09:52:15]Connected sock=7 [09:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 F1 07 01 C3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E5 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 89 02 00 35 04 06 00 01 3A 73 EA 67 43 03 82 FB 87 27 4F 4F FC [09:52:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C 0A 47 00 48 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 89 02 00 F4 03 04 00 50 1C 17 67 B6 04 01 00 00 81 74 CC 15 D3 94 91 F1 [09:52:16]CommunicateWithHost err = 0 [09:52:16]CheckOFDResponse [09:52:16]1017 (14) - 77093643461234 [09:52:16]1041 (16) - 0000000000871759 [09:52:16]1040 (4) - 166314 [09:52:16]1012 (4) - 22.10.2024 03:30 [09:52:16]1206 (1) - 0 [09:52:16]OFD Sender: Remove packet 166314 [09:52:16]ProducePacketName [09:52:16]name=ofd_packets/00166314 [09:52:16]NVStorageDeleteData [09:52:16]Write to MH i2c: 01 00 00 4A A6 F0 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: 01 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: 01 07 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: 01 07 00 4A A6 00 00 00 00 00 BB 0C BE [09:52:16]RasterBufferAndPrint [09:52:16]line [09:52:16]line [09:52:16]line [09:52:16]line [09:52:16]line [09:52:16]written 0, free lines is 3266 [09:52:16]MH_Cut [09:52:16]Write to MH i2c: D1 01 00 51 A6 01 C9 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: D1 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: D1 01 00 [09:52:16]MH_I2C_Read... [09:52:16]Read from MH i2c: D1 01 00 51 A6 00 C8 [09:52:16]Write to MH i2c: 01 00 00 52 A6 F8 [09:52:16]Write i2c OK [09:52:16]MH_I2C_Read... [09:52:16]OFD Sender: No OFD packet to send [09:52:17]*** Cut start [09:52:17]*** Partial cut [09:52:17]*** CUTSNS_PIN = 1 [09:52:17]*** CUTSNS_PIN = 0 [09:52:17]*** Brake cut motor [09:52:17]Read from MH i2c: 01 [09:52:17]MH_I2C_Read... [09:52:17]*** Stop cut motor [09:52:17]*** Cut end [09:52:17]Read from MH i2c: 01 07 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: 01 07 00 52 A6 00 00 00 00 00 FF 0F 0D [09:52:17]process_action close_receipt done [09:52:17]requested_data is exist [09:52:17]produce_requested_data [09:52:17]requested_item fm.sn is exist - process it [09:52:17]wFMCommunicate request_size=4 [09:52:17]MH_SAM_APDU [09:52:17]CAPDU: 80 11 00 00 [09:52:17]Write to MH i2c: E2 08 00 53 A6 80 11 00 00 00 00 00 00 73 [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:17]Read from MH i2c: E2 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 17 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 17 00 53 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [09:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:52:17]wFMCommunicate OK [09:52:17]requested_item fd.num is exist - process it [09:52:17]SAM_PROTO_GetFieldsCounters [09:52:17]wFMCommunicate request_size=4 [09:52:17]MH_SAM_APDU [09:52:17]CAPDU: 80 13 00 00 [09:52:17]Write to MH i2c: E2 08 00 54 A6 80 13 00 00 00 00 00 00 76 [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:17]Read from MH i2c: E2 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 62 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 62 00 54 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:17]wFMCommunicate OK [09:52:17]SAM_PROTO_GetFieldsCounters done [09:52:17]requested_item shift.num is exist - process it [09:52:17]requested_item shift.opened is exist - process it [09:52:17]req_shift_opened [09:52:17]FM_GetShiftState [09:52:17]SAM_PROTO_GetShiftState [09:52:17]wFMCommunicate request_size=4 [09:52:17]MH_SAM_APDU [09:52:17]CAPDU: 80 13 01 00 [09:52:17]Write to MH i2c: E2 08 00 55 A6 80 13 01 00 00 00 00 00 78 [09:52:17]Write i2c OK [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 [09:52:17]MH_I2C_Read... [09:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:17]Read from MH i2c: E2 0E 00 [09:52:17]MH_I2C_Read... [09:52:17]Read from MH i2c: E2 0E 00 55 A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CB [09:52:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:52:17]wFMCommunicate OK [09:52:17]SAM_PROTO_GetShiftState done [09:52:17]FM_GetShiftState done [09:52:17]req_shift_opened done [09:52:17]requested_item shift.open_date is exist - process it [09:52:17]req_shift_open_date [09:52:17]req_shift_open_date done [09:52:17]produce_requested_data done [09:52:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166314,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:52:17]process_action_free close_receipt [09:52:17]json_value_free [09:52:17]json_value_free done [09:52:17]process_json_proto returns [09:52:17]Send response to host [09:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166314,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:52:17]free response buf [09:52:17]execute_script done [09:52:17]execute_script returns [09:52:17]free content buf [09:52:17]Sock 6.Close socket [09:52:17]Sock 6.Thread stoped [09:52:21]OFD Sender: No OFD packet to send [09:52:25]accept exits with 5 [09:52:25]New connection [09:52:25]New thread 3066776932 created [09:52:25]Thread 3066920292 joined [09:52:25]Waiting for new connection... [09:52:25] Sock 5.Parse request [09:52:25]Sock 5.Check first char [09:52:25]Sock 5.First char is OK [09:52:25]request: POST /json_proto HTTP/1.0 [09:52:25]Method: POST [09:52:25]URL: /json_proto [09:52:25]Method is POST - this is cgi request [09:52:25]url: /json_proto [09:52:25]query_string will be loaded in cgi processing [09:52:25]execute_cgi json_proto POST (null) [09:52:25]execute_cgi path=json_proto method=POST [09:52:25]POST find Content-Length [09:52:25]Host: 172.17.53.195:8080 [09:52:25]Content-Length: 679 [09:52:25]Content-Type: application/json [09:52:25] [09:52:25]POST finish read [09:52:25]Found Content-Length = 679 [09:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:25]execute_script... [09:52:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:25]POST & json_proto [09:52:25]process_json_proto [09:52:25]json parsed OK: [09:52:25]protocol is kg_v1.0 [09:52:25]action value=close_receipt [09:52:25]process_action close_receipt [09:52:25]cmd_close_receipt [09:52:25]MH_GetDate [09:52:25]Write to MH i2c: F0 00 00 56 A6 EB [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: F0 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: F0 09 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: F0 09 00 56 A6 00 F1 75 17 67 21 48 4A 65 F0 [09:52:25]GetLastDocTimeStamp 1729590757 [09:52:25]current date 1729590769 [09:52:25]FM_GetShiftState [09:52:25]SAM_PROTO_GetShiftState [09:52:25]wFMCommunicate request_size=4 [09:52:25]MH_SAM_APDU [09:52:25]CAPDU: 80 13 01 00 [09:52:25]Write to MH i2c: E2 08 00 57 A6 80 13 01 00 00 00 00 00 7A [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0E 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0E 00 57 A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CD [09:52:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:52:25]wFMCommunicate OK [09:52:25]SAM_PROTO_GetShiftState done [09:52:25]FM_GetShiftState done [09:52:25]opened in 1729557463 [09:52:25]opened+sec_in_day 1729643863 [09:52:25]quantity*price = 200025 [09:52:25]sum+1 = 200026 [09:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 70 22.10.2024 09:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166315 ФПД: 40926646947005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095249&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166315&fm=40926646947005&tin=02508201610067®Number=0000000000091764&sum=200000 [09:52:27]StoreToDocumentArchive [09:52:27]shift 536 fd 166315 [09:52:27]save to /storage/0536/doc_00166315 [09:52:27]save last doc name /storage/0536/doc_00166315 to /storage/kkm_last_doc_name [09:52:27]save OK [09:52:27]Clear old archive folders... [09:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:27]tlvbuf is 0157EA10 [09:52:27]SAM_PROTO_ClearQueue [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 09 00 00 [09:52:27]Write to MH i2c: E2 08 00 64 A6 80 09 00 00 00 00 00 00 7C [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 64 A6 00 90 00 7E [09:52:27]RAPDU: 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_ClearQueue done [09:52:27]KKMCreateOFDPacket [09:52:27]OFDProtocolAddRootSTLVToBuf [09:52:27]FM_MakeSignedData [09:52:27]FM_MakeSignedData [09:52:27]SAM_PROTO_SignData [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 0D 01 02 [09:52:27]Write to MH i2c: E2 08 00 65 A6 80 0D 01 02 00 00 00 00 84 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 65 A6 00 90 00 7F [09:52:27]RAPDU: 90 00 [09:52:27]wFMCommunicate OK [09:52:27]wFMCommunicate request_size=255 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F1 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 89 02 00 35 04 06 00 25 38 FA 40 [09:52:27]Write to MH i2c: E2 02 01 66 A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F1 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 89 02 00 35 04 06 00 25 38 FA 40 00 00 0F [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 66 A6 00 90 00 80 [09:52:27]RAPDU: 90 00 [09:52:27]wFMCommunicate OK [09:52:27]wFMCommunicate request_size=7 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 0D 02 02 02 CC BD [09:52:27]Write to MH i2c: E2 0A 00 67 A6 80 0D 02 02 02 00 CC BD 00 00 14 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 03 00 67 A6 00 90 00 81 [09:52:27]RAPDU: 90 00 [09:52:27]wFMCommunicate OK [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 0D 03 02 [09:52:27]Write to MH i2c: E2 08 00 68 A6 80 0D 03 02 00 00 00 00 89 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0B 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0B 00 68 A6 00 A5 B9 95 5B 57 7A 65 74 90 00 82 [09:52:27]RAPDU: A5 B9 95 5B 57 7A 65 74 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_SignData done [09:52:27]FM_MakeSignedData done [09:52:27]CreateOFDProtocolMessage [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 11 00 00 [09:52:27]Write to MH i2c: E2 08 00 69 A6 80 11 00 00 00 00 00 00 89 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 69 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [09:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:52:27]wFMCommunicate OK [09:52:27]CreateOFDProtocolMessage done [09:52:27]OFDSenderStorePacket 166315 [09:52:27]StoreOFDPacket docnum=166315 [09:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2D 3C 04 01 B9 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F1 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 89 02 00 35 04 06 00 25 38 FA 40 CC BD A5 B9 95 5B 57 7A 65 74 [09:52:27]CheckFolder [09:52:27]dirname=/storage/ofd_packets [09:52:27]CheckFolder done [09:52:27]ProducePacketName [09:52:27]name=ofd_packets/00166315 [09:52:27]NVStorageSaveData ofd_packets/00166315 [09:52:27]File name is /storage/ofd_packets/00166315 [09:52:27]Write 298 bytes [09:52:27]NVStorageSaveData done [09:52:27]OFDSenderStorePacket done [09:52:27]KKMCreateOFDPacket done [09:52:27]NVStorageSaveData kkm_last_timestamp [09:52:27]File name is /storage/kkm_last_timestamp [09:52:27]Write 4 bytes [09:52:27]NVStorageSaveData done [09:52:27]ExternCall_PrintAddStr [09:52:27]wPrintStart [09:52:27]Write to MH i2c: 01 00 00 6A A6 10 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 6A A6 00 00 00 00 00 FF 0F 25 [09:52:27]RasterBufferAndPrint [09:52:27]line Счет N : (1)220889 [09:52:27]line ИНН: 02508201610067 [09:52:27]line Контрольно-Кассовый Чек [09:52:27]line ПРОДАЖА [09:52:27]line ТРК (МРК, ГНК) : 21 [09:52:27]line Товар: 2710194210 [09:52:27]line ДТ-К-5 [09:52:27]line 26.250 * 76.20 [09:52:27]line = 2000.25 [09:52:27]line НДС 12% НСП 1% [09:52:27]line > о реализуемом товаре [09:52:27]line ОКРУГЛЕНИЕ: -0.25 [09:52:27]line ИТОГО: 2000.00 [09:52:27]line Внесено: 2000.00 [09:52:27]line СДАЧА: 0.00 [09:52:27]line НСП 1% : 17.70 [09:52:27]line НДС 12% : 212.42 [09:52:27]line Наличными: 2000.00 [09:52:27]line Безнал.: 0.00 [09:52:27]line Место: АЗС № 161 "Партнер Нефть" [09:52:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:52:27]line СНО: Общий режим [09:52:27]line Чек 70 22.10.2024 09:52 [09:52:27]line Смена: 536 ФФД: 1.0 [09:52:27]line ЗНМ: 0300000104 [09:52:27]line РНМ: 0000000000091764 [09:52:27]line Версия ККМ: 001 [09:52:27]line ФМ: 0000000000871759 [09:52:27]line ФД: 166315 [09:52:27]line ФПД: 40926646947005 [09:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095249&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166315&fm=40926646947005&tin=02508201610067®Number=0000000000091764&sum=200000 [09:52:27]OFD Sender: Processing packet 166315 [packets to send 48, broken 47] [09:52:27]ProducePacketName [09:52:27]name=ofd_packets/00166315 [09:52:27]OFD Sender: To server: pG, [09:52:27]CommunicateWithHost lk.salyk.kg:30040 [09:52:27]ConnectInit lk.salyk.kg [09:52:27]written 0, free lines is 4095 [09:52:28]Connected sock=6 [09:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2D 3C 04 01 B9 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F1 75 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 89 02 00 35 04 06 00 25 38 FA 40 CC BD A5 B9 95 5B 57 7A 65 74 [09:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 1E 47 00 C5 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 89 02 00 F4 03 04 00 5C 1C 17 67 B6 04 01 00 00 BD 06 08 10 45 F4 F3 36 [09:52:28]CommunicateWithHost err = 0 [09:52:28]CheckOFDResponse [09:52:28]1017 (14) - 77093643461234 [09:52:28]1041 (16) - 0000000000871759 [09:52:28]1040 (4) - 166315 [09:52:28]1012 (4) - 22.10.2024 03:30 [09:52:28]1206 (1) - 0 [09:52:28]OFD Sender: Remove packet 166315 [09:52:28]ProducePacketName [09:52:28]name=ofd_packets/00166315 [09:52:28]NVStorageDeleteData [09:52:28]Write to MH i2c: 01 00 00 95 A6 3B [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: 01 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: 01 07 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: 01 07 00 95 A6 00 00 00 00 00 C3 0C 11 [09:52:28]RasterBufferAndPrint [09:52:28]line [09:52:28]line [09:52:28]line [09:52:28]line [09:52:28]line [09:52:28]written 0, free lines is 3274 [09:52:28]MH_Cut [09:52:28]Write to MH i2c: D1 01 00 9C A6 01 14 [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: D1 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: D1 01 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: D1 01 00 9C A6 00 13 [09:52:28]Write to MH i2c: 01 00 00 9D A6 43 [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]OFD Sender: No OFD packet to send [09:52:29]*** Cut start [09:52:29]*** Partial cut [09:52:29]*** CUTSNS_PIN = 1 [09:52:29]*** CUTSNS_PIN = 0 [09:52:29]*** Brake cut motor [09:52:29]Read from MH i2c: 01 [09:52:29]MH_I2C_Read... [09:52:29]*** Stop cut motor [09:52:29]*** Cut end [09:52:29]Read from MH i2c: 01 07 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 9D A6 00 00 00 00 00 FF 0F 58 [09:52:29]process_action close_receipt done [09:52:29]requested_data is exist [09:52:29]produce_requested_data [09:52:29]requested_item fm.sn is exist - process it [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 11 00 00 [09:52:29]Write to MH i2c: E2 08 00 9E A6 80 11 00 00 00 00 00 00 BE [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 9E A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [09:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:52:29]wFMCommunicate OK [09:52:29]requested_item fd.num is exist - process it [09:52:29]SAM_PROTO_GetFieldsCounters [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 13 00 00 [09:52:29]Write to MH i2c: E2 08 00 9F A6 80 13 00 00 00 00 00 00 C1 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 62 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 62 00 9F A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_GetFieldsCounters done [09:52:30]requested_item shift.num is exist - process it [09:52:30]requested_item shift.opened is exist - process it [09:52:30]req_shift_opened [09:52:30]FM_GetShiftState [09:52:30]SAM_PROTO_GetShiftState [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 13 01 00 [09:52:30]Write to MH i2c: E2 08 00 A0 A6 80 13 01 00 00 00 00 00 C3 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0E 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0E 00 A0 A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 16 [09:52:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_GetShiftState done [09:52:30]FM_GetShiftState done [09:52:30]req_shift_opened done [09:52:30]requested_item shift.open_date is exist - process it [09:52:30]req_shift_open_date [09:52:30]req_shift_open_date done [09:52:30]produce_requested_data done [09:52:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166315,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:52:30]process_action_free close_receipt [09:52:30]json_value_free [09:52:30]json_value_free done [09:52:30]process_json_proto returns [09:52:30]Send response to host [09:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166315,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:52:30]free response buf [09:52:30]execute_script done [09:52:30]execute_script returns [09:52:30]free content buf [09:52:30]Sock 5.Close socket [09:52:30]Sock 5.Thread stoped [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:42]accept exits with 7 [09:53:42]New connection [09:53:42]New thread 3066920292 created [09:53:42]Thread 3066776932 joined [09:53:42]Waiting for new connection... [09:53:42] Sock 7.Parse request [09:53:42]Sock 7.Check first char [09:53:42]Sock 7.First char is OK [09:53:42]request: POST /json_proto HTTP/1.0 [09:53:42]Method: POST [09:53:42]URL: /json_proto [09:53:42]Method is POST - this is cgi request [09:53:42]url: /json_proto [09:53:42]query_string will be loaded in cgi processing [09:53:42]execute_cgi json_proto POST (null) [09:53:42]execute_cgi path=json_proto method=POST [09:53:42]POST find Content-Length [09:53:42]Host: 172.17.53.195:8080 [09:53:42]Content-Length: 674 [09:53:42]Content-Type: application/json [09:53:42] [09:53:42]POST finish read [09:53:42]Found Content-Length = 674 [09:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:42]execute_script... [09:53: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)220892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:42]POST & json_proto [09:53:42]process_json_proto [09:53:42]json parsed OK: [09:53:42]protocol is kg_v1.0 [09:53:42]action value=close_receipt [09:53:42]process_action close_receipt [09:53:42]cmd_close_receipt [09:53:42]MH_GetDate [09:53:42]Write to MH i2c: F0 00 00 A1 A6 36 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: F0 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: F0 09 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: F0 09 00 A1 A6 00 3D 76 17 67 21 48 4A 65 88 [09:53:42]GetLastDocTimeStamp 1729590769 [09:53:42]current date 1729590845 [09:53:42]FM_GetShiftState [09:53:42]SAM_PROTO_GetShiftState [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 13 01 00 [09:53:42]Write to MH i2c: E2 08 00 A2 A6 80 13 01 00 00 00 00 00 C5 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 0E 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 0E 00 A2 A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 18 [09:53:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:53:42]wFMCommunicate OK [09:53:42]SAM_PROTO_GetShiftState done [09:53:42]FM_GetShiftState done [09:53:42]opened in 1729557463 [09:53:42]opened+sec_in_day 1729643863 [09:53:42]quantity*price = 72009 [09:53:42]sum+1 = 72010 [09:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.47 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 71 22.10.2024 09:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166316 ФПД: 151543554341017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166316&fm=151543554341017&tin=02508201610067®Number=0000000000091764&sum=72000 [09:53:43]StoreToDocumentArchive [09:53:43]shift 536 fd 166316 [09:53:43]save to /storage/0536/doc_00166316 [09:53:43]save last doc name /storage/0536/doc_00166316 to /storage/kkm_last_doc_name [09:53:43]save OK [09:53:43]Clear old archive folders... [09:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:53:43]tlvbuf is 01D9C8E0 [09:53:43]SAM_PROTO_ClearQueue [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 09 00 00 [09:53:43]Write to MH i2c: E2 08 00 AF A6 80 09 00 00 00 00 00 00 C7 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 AF A6 00 90 00 C9 [09:53:43]RAPDU: 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_ClearQueue done [09:53:43]KKMCreateOFDPacket [09:53:43]OFDProtocolAddRootSTLVToBuf [09:53:43]FM_MakeSignedData [09:53:43]FM_MakeSignedData [09:53:43]SAM_PROTO_SignData [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 0D 01 02 [09:53:43]Write to MH i2c: E2 08 00 B0 A6 80 0D 01 02 00 00 00 00 CF [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 B0 A6 00 90 00 CA [09:53:43]RAPDU: 90 00 [09:53:43]wFMCommunicate OK [09:53:43]wFMCommunicate request_size=255 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 76 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 89 02 00 35 04 06 00 89 D3 FB B9 [09:53:43]Write to MH i2c: E2 02 01 B1 A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 76 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 89 02 00 35 04 06 00 89 D3 FB B9 00 00 8D [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 B1 A6 00 90 00 CB [09:53:43]RAPDU: 90 00 [09:53:43]wFMCommunicate OK [09:53:43]wFMCommunicate request_size=7 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 0D 02 02 02 78 99 [09:53:43]Write to MH i2c: E2 0A 00 B2 A6 80 0D 02 02 02 00 78 99 00 00 E7 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 B2 A6 00 90 00 CC [09:53:43]RAPDU: 90 00 [09:53:43]wFMCommunicate OK [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 0D 03 02 [09:53:43]Write to MH i2c: E2 08 00 B3 A6 80 0D 03 02 00 00 00 00 D4 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 B3 A6 00 62 BA 4A F0 2F 44 E7 C3 90 00 48 [09:53:43]RAPDU: 62 BA 4A F0 2F 44 E7 C3 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_SignData done [09:53:43]FM_MakeSignedData done [09:53:43]CreateOFDProtocolMessage [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 B4 A6 80 11 00 00 00 00 00 00 D4 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 B4 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:43]wFMCommunicate OK [09:53:43]CreateOFDProtocolMessage done [09:53:43]OFDSenderStorePacket 166316 [09:53:43]StoreOFDPacket docnum=166316 [09:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 45 85 04 01 4C AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 76 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 89 02 00 35 04 06 00 89 D3 FB B9 78 99 62 BA 4A F0 2F 44 E7 C3 [09:53:43]CheckFolder [09:53:43]dirname=/storage/ofd_packets [09:53:43]CheckFolder done [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00166316 [09:53:43]NVStorageSaveData ofd_packets/00166316 [09:53:43]File name is /storage/ofd_packets/00166316 [09:53:43]Write 298 bytes [09:53:43]NVStorageSaveData done [09:53:43]OFDSenderStorePacket done [09:53:43]KKMCreateOFDPacket done [09:53:43]NVStorageSaveData kkm_last_timestamp [09:53:43]File name is /storage/kkm_last_timestamp [09:53:43]Write 4 bytes [09:53:43]NVStorageSaveData done [09:53:43]ExternCall_PrintAddStr [09:53:43]wPrintStart [09:53:43]Write to MH i2c: 01 00 00 B5 A6 5B [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 B5 A6 00 00 00 00 00 FF 0F 70 [09:53:43]RasterBufferAndPrint [09:53:43]line Счет N : (1)220892 [09:53:43]line ИНН: 02508201610067 [09:53:43]line Контрольно-Кассовый Чек [09:53:43]line ПРОДАЖА [09:53:43]line ТРК (МРК, ГНК) : 31 [09:53:43]line Товар: 2710194210 [09:53:43]line ДТ-К-5 [09:53:43]line 9.450 * 76.20 [09:53:43]line = 720.09 [09:53:43]line НДС 12% НСП 1% [09:53:43]line > о реализуемом товаре [09:53:43]line ОКРУГЛЕНИЕ: -0.09 [09:53:43]line ИТОГО: 720.00 [09:53:43]line Внесено: 720.00 [09:53:43]line СДАЧА: 0.00 [09:53:43]line НСП 1% : 6.37 [09:53:43]line НДС 12% : 76.47 [09:53:43]line Наличными: 720.00 [09:53:43]line Безнал.: 0.00 [09:53:43]line Место: АЗС № 161 "Партнер Нефть" [09:53:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:53:43]line СНО: Общий режим [09:53:43]line Чек 71 22.10.2024 09:54 [09:53:43]line Смена: 536 ФФД: 1.0 [09:53:43]line ЗНМ: 0300000104 [09:53:43]line РНМ: 0000000000091764 [09:53:43]line Версия ККМ: 001 [09:53:43]line ФМ: 0000000000871759 [09:53:43]line ФД: 166316 [09:53:43]line ФПД: 151543554341017 [09:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166316&fm=151543554341017&tin=02508201610067®Number=0000000000091764&sum=72000 [09:53:44]OFD Sender: Processing packet 166316 [packets to send 48, broken 47] [09:53:44]ProducePacketName [09:53:44]name=ofd_packets/00166316 [09:53:44]OFD Sender: To server: pG, [09:53:44]CommunicateWithHost lk.salyk.kg:30040 [09:53:44]ConnectInit lk.salyk.kg [09:53:44]written 0, free lines is 4095 [09:53:44]Connected sock=6 [09:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 45 85 04 01 4C AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 76 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 89 02 00 35 04 06 00 89 D3 FB B9 78 99 62 BA 4A F0 2F 44 E7 C3 [09:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 C8 47 00 DB 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 89 02 00 F4 03 04 00 A8 1C 17 67 B6 04 01 00 00 4E 98 13 8D 5D FB 00 8A [09:53:44]CommunicateWithHost err = 0 [09:53:44]CheckOFDResponse [09:53:44]1017 (14) - 77093643461234 [09:53:44]1041 (16) - 0000000000871759 [09:53:44]1040 (4) - 166316 [09:53:44]1012 (4) - 22.10.2024 03:31 [09:53:44]1206 (1) - 0 [09:53:44]OFD Sender: Remove packet 166316 [09:53:44]ProducePacketName [09:53:44]name=ofd_packets/00166316 [09:53:44]NVStorageDeleteData [09:53:44]Write to MH i2c: 01 00 00 E0 A6 86 [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: 01 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: 01 07 00 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: 01 07 00 E0 A6 00 00 00 00 00 BE 0C 57 [09:53:44]RasterBufferAndPrint [09:53:44]line [09:53:44]line [09:53:44]line [09:53:44]line [09:53:44]line [09:53:44]written 0, free lines is 3271 [09:53:44]MH_Cut [09:53:44]Write to MH i2c: D1 01 00 E7 A6 01 5F [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: D1 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: D1 01 00 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: D1 01 00 E7 A6 00 5E [09:53:44]Write to MH i2c: 01 00 00 E8 A6 8E [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]OFD Sender: No OFD packet to send [09:53:45]*** Cut start [09:53:45]*** Partial cut [09:53:45]*** CUTSNS_PIN = 1 [09:53:45]*** CUTSNS_PIN = 0 [09:53:45]*** Brake cut motor [09:53:46]Read from MH i2c: 01 [09:53:46]MH_I2C_Read... [09:53:46]*** Stop cut motor [09:53:46]*** Cut end [09:53:46]Read from MH i2c: 01 07 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 E8 A6 00 00 00 00 00 FF 0F A3 [09:53:46]process_action close_receipt done [09:53:46]requested_data is exist [09:53:46]produce_requested_data [09:53:46]requested_item fm.sn is exist - process it [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 11 00 00 [09:53:46]Write to MH i2c: E2 08 00 E9 A6 80 11 00 00 00 00 00 00 09 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 17 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 17 00 E9 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [09:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:53:46]wFMCommunicate OK [09:53:46]requested_item fd.num is exist - process it [09:53:46]SAM_PROTO_GetFieldsCounters [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 13 00 00 [09:53:46]Write to MH i2c: E2 08 00 EA A6 80 13 00 00 00 00 00 00 0C [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 62 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 62 00 EA A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_GetFieldsCounters done [09:53:46]requested_item shift.num is exist - process it [09:53:46]requested_item shift.opened is exist - process it [09:53:46]req_shift_opened [09:53:46]FM_GetShiftState [09:53:46]SAM_PROTO_GetShiftState [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 13 01 00 [09:53:46]Write to MH i2c: E2 08 00 EB A6 80 13 01 00 00 00 00 00 0E [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0E 00 EB A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 61 [09:53:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_GetShiftState done [09:53:46]FM_GetShiftState done [09:53:46]req_shift_opened done [09:53:46]requested_item shift.open_date is exist - process it [09:53:46]req_shift_open_date [09:53:46]req_shift_open_date done [09:53:46]produce_requested_data done [09:53:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166316,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:53:46]process_action_free close_receipt [09:53:46]json_value_free [09:53:46]json_value_free done [09:53:46]process_json_proto returns [09:53:46]Send response to host [09:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166316,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:53:46]free response buf [09:53:46]execute_script done [09:53:46]execute_script returns [09:53:46]free content buf [09:53:46]Sock 7.Close socket [09:53:46]Sock 7.Thread stoped [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [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:57:57]accept exits with 5 [09:57:57]New connection [09:57:57]New thread 3066776932 created [09:57:57]Thread 3066920292 joined [09:57:57]Waiting for new connection... [09:57:57] Sock 5.Parse request [09:57:57]Sock 5.Check first char [09:57:57]Sock 5.First char is OK [09:57:57]request: POST /json_proto HTTP/1.0 [09:57:57]Method: POST [09:57:57]URL: /json_proto [09:57:57]Method is POST - this is cgi request [09:57:57]url: /json_proto [09:57:57]query_string will be loaded in cgi processing [09:57:57]execute_cgi json_proto POST (null) [09:57:57]execute_cgi path=json_proto method=POST [09:57:57]POST find Content-Length [09:57:57]Host: 172.17.53.195:8080 [09:57:57]Content-Length: 678 [09:57:57]Content-Type: application/json [09:57:57] [09:57:57]POST finish read [09:57:57]Found Content-Length = 678 [09:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]execute_script... [09:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.780, "sum" : 799.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 799.00, "payments": [ { "type": 0, "sum" : 799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]POST & json_proto [09:57:57]process_json_proto [09:57:57]json parsed OK: [09:57:57]protocol is kg_v1.0 [09:57:57]action value=close_receipt [09:57:57]process_action close_receipt [09:57:57]cmd_close_receipt [09:57:57]MH_GetDate [09:57:57]Write to MH i2c: F0 00 00 EC A6 81 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 EC A6 00 3C 77 17 67 21 48 4A 65 D3 [09:57:57]GetLastDocTimeStamp 1729590845 [09:57:57]current date 1729591100 [09:57:57]FM_GetShiftState [09:57:57]SAM_PROTO_GetShiftState [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 13 01 00 [09:57:57]Write to MH i2c: E2 08 00 ED A6 80 13 01 00 00 00 00 00 10 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 ED A6 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 63 [09:57:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetShiftState done [09:57:57]FM_GetShiftState done [09:57:57]opened in 1729557463 [09:57:57]opened+sec_in_day 1729643863 [09:57:57]quantity*price = 79987 [09:57:57]sum+1 = 79989 [09:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 799.00 Внесено: 800.00 СДАЧА: 1.00 НСП 1% : 7.08 НДС 12% : 84.94 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 72 22.10.2024 09:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166317 ФПД: 138210619171376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166317&fm=138210619171376&tin=02508201610067®Number=0000000000091764&sum=79900 [09:57:58]StoreToDocumentArchive [09:57:58]shift 536 fd 166317 [09:57:58]save to /storage/0536/doc_00166317 [09:57:58]save last doc name /storage/0536/doc_00166317 to /storage/kkm_last_doc_name [09:57:58]save OK [09:57:58]Clear old archive folders... [09:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:58]tlvbuf is 015309A0 [09:57:58]SAM_PROTO_ClearQueue [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 09 00 00 [09:57:58]Write to MH i2c: E2 08 00 FA A6 80 09 00 00 00 00 00 00 12 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 FA A6 00 90 00 14 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_ClearQueue done [09:57:58]KKMCreateOFDPacket [09:57:58]OFDProtocolAddRootSTLVToBuf [09:57:58]FM_MakeSignedData [09:57:58]FM_MakeSignedData [09:57:58]SAM_PROTO_SignData [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 01 02 [09:57:58]Write to MH i2c: E2 08 00 FB A6 80 0D 01 02 00 00 00 00 1A [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 FB A6 00 90 00 15 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]wFMCommunicate request_size=255 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 21 00 00 00 00 07 04 06 00 1C 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 89 02 00 35 04 06 00 7D [09:57:58]Write to MH i2c: E2 02 01 FC A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 21 00 00 00 00 07 04 06 00 1C 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 89 02 00 35 04 06 00 7D 00 00 41 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 FC A6 00 90 00 16 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]wFMCommunicate request_size=10 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 02 02 05 B3 AA DC 22 30 [09:57:58]Write to MH i2c: E2 0D 00 FD A6 80 0D 02 02 05 00 B3 AA DC 22 30 00 00 B2 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 03 00 FD A6 00 90 00 17 [09:57:58]RAPDU: 90 00 [09:57:58]wFMCommunicate OK [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 0D 03 02 [09:57:58]Write to MH i2c: E2 08 00 FE A6 80 0D 03 02 00 00 00 00 1F [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0B 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 0B 00 FE A6 00 3A B9 6B F8 0A F0 93 A5 90 00 A8 [09:57:58]RAPDU: 3A B9 6B F8 0A F0 93 A5 90 00 [09:57:58]wFMCommunicate OK [09:57:58]SAM_PROTO_SignData done [09:57:58]FM_MakeSignedData done [09:57:58]CreateOFDProtocolMessage [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 11 00 00 [09:57:58]Write to MH i2c: E2 08 00 FF A6 80 11 00 00 00 00 00 00 1F [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:58]Read from MH i2c: E2 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 17 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: E2 17 00 FF A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [09:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:57:58]wFMCommunicate OK [09:57:58]CreateOFDProtocolMessage done [09:57:58]OFDSenderStorePacket 166317 [09:57:58]StoreOFDPacket docnum=166317 [09:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 9B 07 01 C4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 21 00 00 00 00 07 04 06 00 1C 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 89 02 00 35 04 06 00 7D B3 AA DC 22 30 3A B9 6B F8 0A F0 93 A5 [09:57:58]CheckFolder [09:57:58]dirname=/storage/ofd_packets [09:57:58]CheckFolder done [09:57:58]ProducePacketName [09:57:58]name=ofd_packets/00166317 [09:57:58]NVStorageSaveData ofd_packets/00166317 [09:57:58]File name is /storage/ofd_packets/00166317 [09:57:58]Write 301 bytes [09:57:58]NVStorageSaveData done [09:57:58]OFDSenderStorePacket done [09:57:58]KKMCreateOFDPacket done [09:57:58]NVStorageSaveData kkm_last_timestamp [09:57:58]File name is /storage/kkm_last_timestamp [09:57:58]Write 4 bytes [09:57:58]NVStorageSaveData done [09:57:58]ExternCall_PrintAddStr [09:57:58]wPrintStart [09:57:58]Write to MH i2c: 01 00 00 00 A7 A7 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 00 A7 00 00 00 00 00 FF 0F BC [09:57:58]RasterBufferAndPrint [09:57:58]line Счет N : (1)220894 [09:57:58]line ИНН: 02508201610067 [09:57:58]line Контрольно-Кассовый Чек [09:57:58]line ПРОДАЖА [09:57:58]line ТРК (МРК, ГНК) : 14 [09:57:58]line Товар: 2710124500 [09:57:58]line Аи-95-К-5 [09:57:58]line 10.780 * 74.20 [09:57:58]line = 799.88 [09:57:58]line НДС 12% НСП 1% [09:57:58]line > о реализуемом товаре [09:57:58]line ОКРУГЛЕНИЕ: -0.88 [09:57:58]line ИТОГО: 799.00 [09:57:58]line Внесено: 800.00 [09:57:58]line СДАЧА: 1.00 [09:57:58]line НСП 1% : 7.08 [09:57:58]line НДС 12% : 84.94 [09:57:58]line Наличными: 799.00 [09:57:58]line Безнал.: 0.00 [09:57:58]line Место: АЗС № 161 "Партнер Нефть" [09:57:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:57:58]line СНО: Общий режим [09:57:58]line Чек 72 22.10.2024 09:58 [09:57:58]line Смена: 536 ФФД: 1.0 [09:57:58]line ЗНМ: 0300000104 [09:57:58]line РНМ: 0000000000091764 [09:57:58]line Версия ККМ: 001 [09:57:58]line ФМ: 0000000000871759 [09:57:58]line ФД: 166317 [09:57:58]line ФПД: 138210619171376 [09:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166317&fm=138210619171376&tin=02508201610067®Number=0000000000091764&sum=79900 [09:57:59]OFD Sender: Processing packet 166317 [packets to send 48, broken 47] [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00166317 [09:57:59]OFD Sender: To server: pG, [09:57:59]CommunicateWithHost lk.salyk.kg:30040 [09:57:59]ConnectInit lk.salyk.kg [09:57:59]written 0, free lines is 4095 [09:57:59]Connected sock=7 [09:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 9B 07 01 C4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1C 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 21 00 00 00 00 07 04 06 00 1C 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3C 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 89 02 00 35 04 06 00 7D B3 AA DC 22 30 3A B9 6B F8 0A F0 93 A5 [09:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 90 88 47 00 FD 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 89 02 00 F4 03 04 00 A8 1D 17 67 B6 04 01 00 00 5A 0C 5C 9D F6 6C 42 0E [09:57:59]CommunicateWithHost err = 0 [09:57:59]CheckOFDResponse [09:57:59]1017 (14) - 77093643461234 [09:57:59]1041 (16) - 0000000000871759 [09:57:59]1040 (4) - 166317 [09:57:59]1012 (4) - 22.10.2024 03:36 [09:57:59]1206 (1) - 0 [09:57:59]OFD Sender: Remove packet 166317 [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00166317 [09:57:59]NVStorageDeleteData [09:57:59]Write to MH i2c: 01 00 00 2B A7 D2 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 2B A7 00 00 00 00 00 BC 0C A1 [09:57:59]RasterBufferAndPrint [09:57:59]line [09:57:59]line [09:57:59]line [09:57:59]line [09:57:59]line [09:57:59]written 0, free lines is 3266 [09:57:59]MH_Cut [09:57:59]Write to MH i2c: D1 01 00 32 A7 01 AB [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: D1 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: D1 01 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: D1 01 00 32 A7 00 AA [09:57:59]Write to MH i2c: 01 00 00 33 A7 DA [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:58:00]OFD Sender: No OFD packet to send [09:58:00]*** Cut start [09:58:00]*** Partial cut [09:58:00]*** CUTSNS_PIN = 1 [09:58:00]*** CUTSNS_PIN = 0 [09:58:00]*** Brake cut motor [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 33 A7 00 00 00 00 00 FF 0F EF [09:58:01]process_action close_receipt done [09:58:01]requested_data is exist [09:58:01]produce_requested_data [09:58:01]requested_item fm.sn is exist - process it [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 11 00 00 [09:58:01]Write to MH i2c: E2 08 00 34 A7 80 11 00 00 00 00 00 00 55 [09:58:01]*** Stop cut motor [09:58:01]*** Cut end [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 34 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [09:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:58:01]wFMCommunicate OK [09:58:01]requested_item fd.num is exist - process it [09:58:01]SAM_PROTO_GetFieldsCounters [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 00 00 [09:58:01]Write to MH i2c: E2 08 00 35 A7 80 13 00 00 00 00 00 00 58 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 35 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [09:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetFieldsCounters done [09:58:01]requested_item shift.num is exist - process it [09:58:01]requested_item shift.opened is exist - process it [09:58:01]req_shift_opened [09:58:01]FM_GetShiftState [09:58:01]SAM_PROTO_GetShiftState [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 01 00 [09:58:01]Write to MH i2c: E2 08 00 36 A7 80 13 01 00 00 00 00 00 5A [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 36 A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AD [09:58:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetShiftState done [09:58:01]FM_GetShiftState done [09:58:01]req_shift_opened done [09:58:01]requested_item shift.open_date is exist - process it [09:58:01]req_shift_open_date [09:58:01]req_shift_open_date done [09:58:01]produce_requested_data done [09:58:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166317,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:58:01]process_action_free close_receipt [09:58:01]json_value_free [09:58:01]json_value_free done [09:58:01]process_json_proto returns [09:58:01]Send response to host [09:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166317,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:58:01]free response buf [09:58:01]execute_script done [09:58:01]execute_script returns [09:58:01]free content buf [09:58:01]Sock 5.Close socket [09:58:01]Sock 5.Thread stoped [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:11]accept exits with 6 [09:58:11]New connection [09:58:11]New thread 3066920292 created [09:58:11]Thread 3066776932 joined [09:58:11]Waiting for new connection... [09:58:11] Sock 6.Parse request [09:58:11]Sock 6.Check first char [09:58:11]Sock 6.First char is OK [09:58:11]request: POST /json_proto HTTP/1.0 [09:58:11]Method: POST [09:58:11]URL: /json_proto [09:58:11]Method is POST - this is cgi request [09:58:11]url: /json_proto [09:58:11]query_string will be loaded in cgi processing [09:58:11]execute_cgi json_proto POST (null) [09:58:11]execute_cgi path=json_proto method=POST [09:58:11]POST find Content-Length [09:58:11]Host: 172.17.53.195:8080 [09:58:11]Content-Length: 677 [09:58:11]Content-Type: application/json [09:58:11] [09:58:11]POST finish read [09:58:11]Found Content-Length = 677 [09:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:11]execute_script... [09:58:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:11]POST & json_proto [09:58:11]process_json_proto [09:58:11]json parsed OK: [09:58:11]protocol is kg_v1.0 [09:58:11]action value=close_receipt [09:58:11]process_action close_receipt [09:58:11]cmd_close_receipt [09:58:11]MH_GetDate [09:58:11]Write to MH i2c: F0 00 00 37 A7 CD [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 09 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 09 00 37 A7 00 4A 77 17 67 21 48 4A 65 2D [09:58:11]GetLastDocTimeStamp 1729591100 [09:58:11]current date 1729591114 [09:58:11]FM_GetShiftState [09:58:11]SAM_PROTO_GetShiftState [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 13 01 00 [09:58:11]Write to MH i2c: E2 08 00 38 A7 80 13 01 00 00 00 00 00 5C [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 38 A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AF [09:58:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:58:11]wFMCommunicate OK [09:58:11]SAM_PROTO_GetShiftState done [09:58:11]FM_GetShiftState done [09:58:11]opened in 1729557463 [09:58:11]opened+sec_in_day 1729643863 [09:58:11]quantity*price = 30038 [09:58:11]sum+1 = 30039 [09:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 73 22.10.2024 09:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166318 ФПД: 43161226340967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166318&fm=43161226340967&tin=02508201610067®Number=0000000000091764&sum=30000 [09:58:12]StoreToDocumentArchive [09:58:12]shift 536 fd 166318 [09:58:12]save to /storage/0536/doc_00166318 [09:58:12]save last doc name /storage/0536/doc_00166318 to /storage/kkm_last_doc_name [09:58:12]save OK [09:58:12]Clear old archive folders... [09:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:12]tlvbuf is 019A66E0 [09:58:12]SAM_PROTO_ClearQueue [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 09 00 00 [09:58:12]Write to MH i2c: E2 08 00 45 A7 80 09 00 00 00 00 00 00 5E [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 45 A7 00 90 00 60 [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_ClearQueue done [09:58:12]KKMCreateOFDPacket [09:58:12]OFDProtocolAddRootSTLVToBuf [09:58:12]FM_MakeSignedData [09:58:12]FM_MakeSignedData [09:58:12]SAM_PROTO_SignData [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 01 02 [09:58:12]Write to MH i2c: E2 08 00 46 A7 80 0D 01 02 00 00 00 00 66 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 46 A7 00 90 00 61 [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]wFMCommunicate request_size=255 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 89 02 00 35 04 06 00 27 [09:58:12]Write to MH i2c: E2 02 01 47 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 89 02 00 35 04 06 00 27 00 00 F2 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 03 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 03 00 47 A7 00 90 00 62 [09:58:13]RAPDU: 90 00 [09:58:13]wFMCommunicate OK [09:58:13]wFMCommunicate request_size=10 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 0D 02 02 05 41 41 90 6A 67 [09:58:13]Write to MH i2c: E2 0D 00 48 A7 80 0D 02 02 05 00 41 41 90 6A 67 00 00 56 [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 03 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 03 00 48 A7 00 90 00 63 [09:58:13]RAPDU: 90 00 [09:58:13]wFMCommunicate OK [09:58:13]wFMCommunicate request_size=4 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 0D 03 02 [09:58:13]Write to MH i2c: E2 08 00 49 A7 80 0D 03 02 00 00 00 00 6B [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 0B 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 0B 00 49 A7 00 D0 CC 1E 31 9B 7F 4C 69 90 00 26 [09:58:13]RAPDU: D0 CC 1E 31 9B 7F 4C 69 90 00 [09:58:13]wFMCommunicate OK [09:58:13]SAM_PROTO_SignData done [09:58:13]FM_MakeSignedData done [09:58:13]CreateOFDProtocolMessage [09:58:13]wFMCommunicate request_size=4 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 11 00 00 [09:58:13]Write to MH i2c: E2 08 00 4A A7 80 11 00 00 00 00 00 00 6B [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 17 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 17 00 4A A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [09:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:58:13]wFMCommunicate OK [09:58:13]CreateOFDProtocolMessage done [09:58:13]OFDSenderStorePacket 166318 [09:58:13]StoreOFDPacket docnum=166318 [09:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 D2 07 01 AB 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 89 02 00 35 04 06 00 27 41 41 90 6A 67 D0 CC 1E 31 9B 7F 4C 69 [09:58:13]CheckFolder [09:58:13]dirname=/storage/ofd_packets [09:58:13]CheckFolder done [09:58:13]ProducePacketName [09:58:13]name=ofd_packets/00166318 [09:58:13]NVStorageSaveData ofd_packets/00166318 [09:58:13]File name is /storage/ofd_packets/00166318 [09:58:13]Write 301 bytes [09:58:13]NVStorageSaveData done [09:58:13]OFDSenderStorePacket done [09:58:13]KKMCreateOFDPacket done [09:58:13]NVStorageSaveData kkm_last_timestamp [09:58:13]File name is /storage/kkm_last_timestamp [09:58:13]Write 4 bytes [09:58:13]NVStorageSaveData done [09:58:13]ExternCall_PrintAddStr [09:58:13]wPrintStart [09:58:13]Write to MH i2c: 01 00 00 4B A7 F2 [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 07 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 07 00 4B A7 00 00 00 00 00 FF 0F 07 [09:58:13]RasterBufferAndPrint [09:58:13]line Счет N : (1)220895 [09:58:13]line ИНН: 02508201610067 [09:58:13]line Контрольно-Кассовый Чек [09:58:13]line ПРОДАЖА [09:58:13]line ТРК (МРК, ГНК) : 23 [09:58:13]line Товар: 2710124130 [09:58:13]line Аи-92-К-5 [09:58:13]line 4.490 * 66.90 [09:58:13]line = 300.38 [09:58:13]line НДС 12% НСП 1% [09:58:13]line > о реализуемом товаре [09:58:13]line ОКРУГЛЕНИЕ: -0.38 [09:58:13]line ИТОГО: 300.00 [09:58:13]line Внесено: 300.00 [09:58:13]line СДАЧА: 0.00 [09:58:13]line НСП 1% : 2.66 [09:58:13]line НДС 12% : 31.90 [09:58:13]line Наличными: 300.00 [09:58:13]line Безнал.: 0.00 [09:58:13]line Место: АЗС № 161 "Партнер Нефть" [09:58:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:58:13]line СНО: Общий режим [09:58:13]line Чек 73 22.10.2024 09:58 [09:58:13]line Смена: 536 ФФД: 1.0 [09:58:13]line ЗНМ: 0300000104 [09:58:13]line РНМ: 0000000000091764 [09:58:13]line Версия ККМ: 001 [09:58:13]line ФМ: 0000000000871759 [09:58:13]line ФД: 166318 [09:58:13]line ФПД: 43161226340967 [09:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095834&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166318&fm=43161226340967&tin=02508201610067®Number=0000000000091764&sum=30000 [09:58:13]OFD Sender: Processing packet 166318 [packets to send 48, broken 47] [09:58:13]ProducePacketName [09:58:13]name=ofd_packets/00166318 [09:58:13]OFD Sender: To server: pG, [09:58:13]CommunicateWithHost lk.salyk.kg:30040 [09:58:13]ConnectInit lk.salyk.kg [09:58:13]written 0, free lines is 4095 [09:58:13]Connected sock=7 [09:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 D2 07 01 AB 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4A 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 89 02 00 35 04 06 00 27 41 41 90 6A 67 D0 CC 1E 31 9B 7F 4C 69 [09:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 01 D5 47 00 FA 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 89 02 00 F4 03 04 00 B6 1D 17 67 B6 04 01 00 00 AB 4F D1 4B 87 20 82 8D [09:58:13]CommunicateWithHost err = 0 [09:58:13]CheckOFDResponse [09:58:13]1017 (14) - 77093643461234 [09:58:13]1041 (16) - 0000000000871759 [09:58:13]1040 (4) - 166318 [09:58:13]1012 (4) - 22.10.2024 03:36 [09:58:13]1206 (1) - 0 [09:58:13]OFD Sender: Remove packet 166318 [09:58:13]ProducePacketName [09:58:13]name=ofd_packets/00166318 [09:58:13]NVStorageDeleteData [09:58:14]Write to MH i2c: 01 00 00 76 A7 1D [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 76 A7 00 00 00 00 00 C7 0C F7 [09:58:14]RasterBufferAndPrint [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]written 0, free lines is 3280 [09:58:14]MH_Cut [09:58:14]Write to MH i2c: D1 01 00 7D A7 01 F6 [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 01 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 01 00 7D A7 00 F5 [09:58:14]Write to MH i2c: 01 00 00 7E A7 25 [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]OFD Sender: No OFD packet to send [09:58:14]*** Cut start [09:58:14]*** Partial cut [09:58:14]*** CUTSNS_PIN = 1 [09:58:14]*** CUTSNS_PIN = 0 [09:58:15]*** Brake cut motor [09:58:15]Read from MH i2c: 01 [09:58:15]MH_I2C_Read... [09:58:15]*** Stop cut motor [09:58:15]*** Cut end [09:58:15]Read from MH i2c: 01 07 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: 01 07 00 7E A7 00 00 00 00 00 FF 0F 3A [09:58:15]process_action close_receipt done [09:58:15]requested_data is exist [09:58:15]produce_requested_data [09:58:15]requested_item fm.sn is exist - process it [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 11 00 00 [09:58:15]Write to MH i2c: E2 08 00 7F A7 80 11 00 00 00 00 00 00 A0 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 17 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 17 00 7F A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [09:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:58:15]wFMCommunicate OK [09:58:15]requested_item fd.num is exist - process it [09:58:15]SAM_PROTO_GetFieldsCounters [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 13 00 00 [09:58:15]Write to MH i2c: E2 08 00 80 A7 80 13 00 00 00 00 00 00 A3 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 80 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [09:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetFieldsCounters done [09:58:15]requested_item shift.num is exist - process it [09:58:15]requested_item shift.opened is exist - process it [09:58:15]req_shift_opened [09:58:15]FM_GetShiftState [09:58:15]SAM_PROTO_GetShiftState [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 13 01 00 [09:58:15]Write to MH i2c: E2 08 00 81 A7 80 13 01 00 00 00 00 00 A5 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 81 A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F8 [09:58:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetShiftState done [09:58:15]FM_GetShiftState done [09:58:15]req_shift_opened done [09:58:15]requested_item shift.open_date is exist - process it [09:58:15]req_shift_open_date [09:58:15]req_shift_open_date done [09:58:15]produce_requested_data done [09:58:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166318,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [09:58:15]process_action_free close_receipt [09:58:15]json_value_free [09:58:15]json_value_free done [09:58:15]process_json_proto returns [09:58:15]Send response to host [09:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166318,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [09:58:15]free response buf [09:58:15]execute_script done [09:58:15]execute_script returns [09:58:15]free content buf [09:58:15]Sock 6.Close socket [09:58:15]Sock 6.Thread stoped [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:03]accept exits with 5 [10:00:03]New connection [10:00:03]New thread 3066776932 created [10:00:03]Thread 3066920292 joined [10:00:03]Waiting for new connection... [10:00:03] Sock 5.Parse request [10:00:03]Sock 5.Check first char [10:00:03]Sock 5.First char is OK [10:00:03]request: POST /json_proto HTTP/1.0 [10:00:03]Method: POST [10:00:03]URL: /json_proto [10:00:03]Method is POST - this is cgi request [10:00:03]url: /json_proto [10:00:03]query_string will be loaded in cgi processing [10:00:03]execute_cgi json_proto POST (null) [10:00:03]execute_cgi path=json_proto method=POST [10:00:03]POST find Content-Length [10:00:03]Host: 172.17.53.195:8080 [10:00:03]Content-Length: 677 [10:00:03]Content-Type: application/json [10:00:03] [10:00:03]POST finish read [10:00:03]Found Content-Length = 677 [10:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:03]execute_script... [10:00:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:03]POST & json_proto [10:00:03]process_json_proto [10:00:03]json parsed OK: [10:00:03]protocol is kg_v1.0 [10:00:03]action value=close_receipt [10:00:03]process_action close_receipt [10:00:03]cmd_close_receipt [10:00:03]MH_GetDate [10:00:03]Write to MH i2c: F0 00 00 82 A7 18 [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: F0 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: F0 09 00 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: F0 09 00 82 A7 00 BA 77 17 67 21 48 4A 65 E8 [10:00:03]GetLastDocTimeStamp 1729591114 [10:00:03]current date 1729591226 [10:00:03]FM_GetShiftState [10:00:03]SAM_PROTO_GetShiftState [10:00:03]wFMCommunicate request_size=4 [10:00:03]MH_SAM_APDU [10:00:03]CAPDU: 80 13 01 00 [10:00:03]Write to MH i2c: E2 08 00 83 A7 80 13 01 00 00 00 00 00 A7 [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:03]Read from MH i2c: E2 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 0E 00 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 0E 00 83 A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FA [10:00:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:00:03]wFMCommunicate OK [10:00:03]SAM_PROTO_GetShiftState done [10:00:03]FM_GetShiftState done [10:00:03]opened in 1729557463 [10:00:03]opened+sec_in_day 1729643863 [10:00:03]quantity*price = 50041 [10:00:03]sum+1 = 50042 [10:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 74 22.10.2024 10:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166319 ФПД: 113284195992693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166319&fm=113284195992693&tin=02508201610067®Number=0000000000091764&sum=50000 [10:00:04]StoreToDocumentArchive [10:00:04]shift 536 fd 166319 [10:00:04]save to /storage/0536/doc_00166319 [10:00:04]save last doc name /storage/0536/doc_00166319 to /storage/kkm_last_doc_name [10:00:04]save OK [10:00:04]Clear old archive folders... [10:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:04]tlvbuf is 0179A190 [10:00:04]SAM_PROTO_ClearQueue [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 09 00 00 [10:00:04]Write to MH i2c: E2 08 00 90 A7 80 09 00 00 00 00 00 00 A9 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 90 A7 00 90 00 AB [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_ClearQueue done [10:00:04]KKMCreateOFDPacket [10:00:04]OFDProtocolAddRootSTLVToBuf [10:00:04]FM_MakeSignedData [10:00:04]FM_MakeSignedData [10:00:04]SAM_PROTO_SignData [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 01 02 [10:00:04]Write to MH i2c: E2 08 00 91 A7 80 0D 01 02 00 00 00 00 B1 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 91 A7 00 90 00 AC [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]wFMCommunicate request_size=255 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BA 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 89 02 00 35 04 06 00 67 [10:00:04]Write to MH i2c: E2 02 01 92 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BA 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 89 02 00 35 04 06 00 67 00 00 FB [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]OFD Sender: No OFD packet to send [10:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 92 A7 00 90 00 AD [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]wFMCommunicate request_size=10 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 02 02 05 08 08 42 C4 75 [10:00:04]Write to MH i2c: E2 0D 00 93 A7 80 0D 02 02 05 00 08 08 42 C4 75 00 00 49 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 03 00 93 A7 00 90 00 AE [10:00:04]RAPDU: 90 00 [10:00:04]wFMCommunicate OK [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 0D 03 02 [10:00:04]Write to MH i2c: E2 08 00 94 A7 80 0D 03 02 00 00 00 00 B6 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0B 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0B 00 94 A7 00 71 EC 07 92 4A CD 15 DE 90 00 B7 [10:00:04]RAPDU: 71 EC 07 92 4A CD 15 DE 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_SignData done [10:00:04]FM_MakeSignedData done [10:00:04]CreateOFDProtocolMessage [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 11 00 00 [10:00:04]Write to MH i2c: E2 08 00 95 A7 80 11 00 00 00 00 00 00 B6 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 17 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 17 00 95 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0E [10:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:00:04]wFMCommunicate OK [10:00:04]CreateOFDProtocolMessage done [10:00:04]OFDSenderStorePacket 166319 [10:00:04]StoreOFDPacket docnum=166319 [10:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 9E 07 01 C9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BA 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 89 02 00 35 04 06 00 67 08 08 42 C4 75 71 EC 07 92 4A CD 15 DE [10:00:04]CheckFolder [10:00:04]dirname=/storage/ofd_packets [10:00:04]CheckFolder done [10:00:04]ProducePacketName [10:00:04]name=ofd_packets/00166319 [10:00:04]NVStorageSaveData ofd_packets/00166319 [10:00:04]File name is /storage/ofd_packets/00166319 [10:00:04]Write 301 bytes [10:00:04]NVStorageSaveData done [10:00:04]OFDSenderStorePacket done [10:00:04]KKMCreateOFDPacket done [10:00:04]NVStorageSaveData kkm_last_timestamp [10:00:04]File name is /storage/kkm_last_timestamp [10:00:04]Write 4 bytes [10:00:04]NVStorageSaveData done [10:00:04]ExternCall_PrintAddStr [10:00:04]wPrintStart [10:00:04]Write to MH i2c: 01 00 00 96 A7 3D [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: 01 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: 01 07 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: 01 07 00 96 A7 00 00 00 00 00 FF 0F 52 [10:00:04]RasterBufferAndPrint [10:00:04]line Счет N : (1)220896 [10:00:04]line ИНН: 02508201610067 [10:00:04]line Контрольно-Кассовый Чек [10:00:04]line ПРОДАЖА [10:00:04]line ТРК (МРК, ГНК) : 33 [10:00:04]line Товар: 2710124130 [10:00:04]line Аи-92-К-5 [10:00:04]line 7.480 * 66.90 [10:00:04]line = 500.41 [10:00:04]line НДС 12% НСП 1% [10:00:04]line > о реализуемом товаре [10:00:04]line ОКРУГЛЕНИЕ: -0.41 [10:00:04]line ИТОГО: 500.00 [10:00:04]line Внесено: 500.00 [10:00:04]line СДАЧА: 0.00 [10:00:04]line НСП 1% : 4.43 [10:00:04]line НДС 12% : 53.14 [10:00:04]line Наличными: 500.00 [10:00:04]line Безнал.: 0.00 [10:00:04]line Место: АЗС № 161 "Партнер Нефть" [10:00:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:00:04]line СНО: Общий режим [10:00:04]line Чек 74 22.10.2024 10:00 [10:00:04]line Смена: 536 ФФД: 1.0 [10:00:04]line ЗНМ: 0300000104 [10:00:04]line РНМ: 0000000000091764 [10:00:04]line Версия ККМ: 001 [10:00:04]line ФМ: 0000000000871759 [10:00:04]line ФД: 166319 [10:00:04]line ФПД: 113284195992693 [10:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166319&fm=113284195992693&tin=02508201610067®Number=0000000000091764&sum=50000 [10:00:04]written 0, free lines is 4095 [10:00:04]OFD Sender: Processing packet 166319 [packets to send 48, broken 47] [10:00:04]ProducePacketName [10:00:04]name=ofd_packets/00166319 [10:00:04]OFD Sender: To server: pG, [10:00:04]CommunicateWithHost lk.salyk.kg:30040 [10:00:04]ConnectInit lk.salyk.kg [10:00:05]Connected sock=9 [10:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 9E 07 01 C9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BA 77 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 89 02 00 35 04 06 00 67 08 08 42 C4 75 71 EC 07 92 4A CD 15 DE [10:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 13 8A 47 00 F4 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 89 02 00 F4 03 04 00 25 1E 17 67 B6 04 01 00 00 44 88 E3 83 5D C8 F4 E7 [10:00:05]CommunicateWithHost err = 0 [10:00:05]CheckOFDResponse [10:00:05]1017 (14) - 77093643461234 [10:00:05]1041 (16) - 0000000000871759 [10:00:05]1040 (4) - 166319 [10:00:05]1012 (4) - 22.10.2024 03:38 [10:00:05]1206 (1) - 0 [10:00:05]OFD Sender: Remove packet 166319 [10:00:05]ProducePacketName [10:00:05]name=ofd_packets/00166319 [10:00:05]NVStorageDeleteData [10:00:05]Write to MH i2c: 01 00 00 C1 A7 68 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 C1 A7 00 00 00 00 00 BE 0C 39 [10:00:05]RasterBufferAndPrint [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]written 0, free lines is 3268 [10:00:05]MH_Cut [10:00:05]Write to MH i2c: D1 01 00 C8 A7 01 41 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 C8 A7 00 40 [10:00:05]Write to MH i2c: 01 00 00 C9 A7 70 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]OFD Sender: No OFD packet to send [10:00:06]*** Cut start [10:00:06]*** Partial cut [10:00:06]*** CUTSNS_PIN = 1 [10:00:06]*** CUTSNS_PIN = 0 [10:00:06]*** Brake cut motor [10:00:06]Read from MH i2c: 01 [10:00:06]MH_I2C_Read... [10:00:06]*** Stop cut motor [10:00:06]*** Cut end [10:00:06]Read from MH i2c: 01 07 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 C9 A7 00 00 00 00 00 FF 0F 85 [10:00:06]process_action close_receipt done [10:00:06]requested_data is exist [10:00:06]produce_requested_data [10:00:06]requested_item fm.sn is exist - process it [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 11 00 00 [10:00:06]Write to MH i2c: E2 08 00 CA A7 80 11 00 00 00 00 00 00 EB [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 CA A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [10:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:00:06]wFMCommunicate OK [10:00:06]requested_item fd.num is exist - process it [10:00:06]SAM_PROTO_GetFieldsCounters [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 13 00 00 [10:00:06]Write to MH i2c: E2 08 00 CB A7 80 13 00 00 00 00 00 00 EE [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 62 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 62 00 CB A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetFieldsCounters done [10:00:07]requested_item shift.num is exist - process it [10:00:07]requested_item shift.opened is exist - process it [10:00:07]req_shift_opened [10:00:07]FM_GetShiftState [10:00:07]SAM_PROTO_GetShiftState [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 13 01 00 [10:00:07]Write to MH i2c: E2 08 00 CC A7 80 13 01 00 00 00 00 00 F0 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 CC A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 43 [10:00:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetShiftState done [10:00:07]FM_GetShiftState done [10:00:07]req_shift_opened done [10:00:07]requested_item shift.open_date is exist - process it [10:00:07]req_shift_open_date [10:00:07]req_shift_open_date done [10:00:07]produce_requested_data done [10:00:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166319,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:00:07]process_action_free close_receipt [10:00:07]json_value_free [10:00:07]json_value_free done [10:00:07]process_json_proto returns [10:00:07]Send response to host [10:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166319,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:00:07]free response buf [10:00:07]execute_script done [10:00:07]execute_script returns [10:00:07]free content buf [10:00:07]Sock 5.Close socket [10:00:07]Sock 5.Thread stoped [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:46]accept exits with 6 [10:01:46]New connection [10:01:46]New thread 3066920292 created [10:01:46]Thread 3066776932 joined [10:01:46]Waiting for new connection... [10:01:46] Sock 6.Parse request [10:01:46]Sock 6.Check first char [10:01:46]Sock 6.First char is OK [10:01:46]request: POST /json_proto HTTP/1.0 [10:01:46]Method: POST [10:01:46]URL: /json_proto [10:01:46]Method is POST - this is cgi request [10:01:46]url: /json_proto [10:01:46]query_string will be loaded in cgi processing [10:01:46]execute_cgi json_proto POST (null) [10:01:46]execute_cgi path=json_proto method=POST [10:01:46]POST find Content-Length [10:01:46]Host: 172.17.53.195:8080 [10:01:46]Content-Length: 679 [10:01:46]Content-Type: application/json [10:01:46] [10:01:46]POST finish read [10:01:46]Found Content-Length = 679 [10:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 37.610, "sum" : 2865.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2866.00, "total" : 2865.00, "payments": [ { "type": 0, "sum" : 2865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:46]execute_script... [10:01:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 37.610, "sum" : 2865.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2866.00, "total" : 2865.00, "payments": [ { "type": 0, "sum" : 2865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:46]POST & json_proto [10:01:46]process_json_proto [10:01:46]json parsed OK: [10:01:46]protocol is kg_v1.0 [10:01:46]action value=close_receipt [10:01:46]process_action close_receipt [10:01:46]cmd_close_receipt [10:01:46]MH_GetDate [10:01:46]Write to MH i2c: F0 00 00 CD A7 63 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 09 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: F0 09 00 CD A7 00 22 78 17 67 21 48 4A 65 9C [10:01:46]GetLastDocTimeStamp 1729591226 [10:01:46]current date 1729591330 [10:01:46]FM_GetShiftState [10:01:46]SAM_PROTO_GetShiftState [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 13 01 00 [10:01:46]Write to MH i2c: E2 08 00 CE A7 80 13 01 00 00 00 00 00 F2 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0E 00 CE A7 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 45 [10:01:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:01:46]wFMCommunicate OK [10:01:46]SAM_PROTO_GetShiftState done [10:01:46]FM_GetShiftState done [10:01:46]opened in 1729557463 [10:01:46]opened+sec_in_day 1729643863 [10:01:46]quantity*price = 286588 [10:01:46]sum+1 = 286589 [10:01:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 2865.00 Внесено: 2866.00 СДАЧА: 1.00 НСП 1% : 25.36 НДС 12% : 304.34 Наличными: 2865.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 75 22.10.2024 10:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166320 ФПД: 58227821489681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166320&fm=58227821489681&tin=02508201610067®Number=0000000000091764&sum=286500 [10:01:48]StoreToDocumentArchive [10:01:48]shift 536 fd 166320 [10:01:48]save to /storage/0536/doc_00166320 [10:01:48]save last doc name /storage/0536/doc_00166320 to /storage/kkm_last_doc_name [10:01:48]save OK [10:01:48]Clear old archive folders... [10:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:48]tlvbuf is 0165D9A0 [10:01:48]SAM_PROTO_ClearQueue [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 09 00 00 [10:01:48]Write to MH i2c: E2 08 00 DB A7 80 09 00 00 00 00 00 00 F4 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 DB A7 00 90 00 F6 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_ClearQueue done [10:01:48]KKMCreateOFDPacket [10:01:48]OFDProtocolAddRootSTLVToBuf [10:01:48]FM_MakeSignedData [10:01:48]FM_MakeSignedData [10:01:48]SAM_PROTO_SignData [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 01 02 [10:01:48]Write to MH i2c: E2 08 00 DC A7 80 0D 01 02 00 00 00 00 FC [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 DC A7 00 90 00 F7 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=255 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 92 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 5F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 76 00 00 00 00 07 04 06 00 24 5F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 22 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 89 02 00 35 04 06 00 34 F5 38 9D [10:01:48]Write to MH i2c: E2 02 01 DD A7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 92 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 5F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 76 00 00 00 00 07 04 06 00 24 5F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 22 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 89 02 00 35 04 06 00 34 F5 38 9D 00 00 A9 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 DD A7 00 90 00 F8 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=7 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 02 02 02 AE 11 [10:01:48]Write to MH i2c: E2 0A 00 DE A7 80 0D 02 02 02 00 AE 11 00 00 C2 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 03 00 DE A7 00 90 00 F9 [10:01:48]RAPDU: 90 00 [10:01:48]wFMCommunicate OK [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 0D 03 02 [10:01:48]Write to MH i2c: E2 08 00 DF A7 80 0D 03 02 00 00 00 00 01 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0B 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0B 00 DF A7 00 D9 C5 F1 EB 83 F6 A9 48 90 00 E6 [10:01:48]RAPDU: D9 C5 F1 EB 83 F6 A9 48 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_SignData done [10:01:48]FM_MakeSignedData done [10:01:48]CreateOFDProtocolMessage [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 11 00 00 [10:01:48]Write to MH i2c: E2 08 00 E0 A7 80 11 00 00 00 00 00 00 01 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 E0 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 59 [10:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:48]wFMCommunicate OK [10:01:48]CreateOFDProtocolMessage done [10:01:48]OFDSenderStorePacket 166320 [10:01:48]StoreOFDPacket docnum=166320 [10:01:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 60 EE 04 01 A3 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 92 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 5F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 76 00 00 00 00 07 04 06 00 24 5F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 22 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 89 02 00 35 04 06 00 34 F5 38 9D AE 11 D9 C5 F1 EB 83 F6 A9 48 [10:01:48]CheckFolder [10:01:48]dirname=/storage/ofd_packets [10:01:48]CheckFolder done [10:01:48]ProducePacketName [10:01:48]name=ofd_packets/00166320 [10:01:48]NVStorageSaveData ofd_packets/00166320 [10:01:48]File name is /storage/ofd_packets/00166320 [10:01:48]Write 298 bytes [10:01:48]NVStorageSaveData done [10:01:48]OFDSenderStorePacket done [10:01:48]KKMCreateOFDPacket done [10:01:48]NVStorageSaveData kkm_last_timestamp [10:01:48]File name is /storage/kkm_last_timestamp [10:01:48]Write 4 bytes [10:01:48]NVStorageSaveData done [10:01:48]ExternCall_PrintAddStr [10:01:48]wPrintStart [10:01:48]Write to MH i2c: 01 00 00 E1 A7 88 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 07 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 07 00 E1 A7 00 00 00 00 00 FF 0F 9D [10:01:48]RasterBufferAndPrint [10:01:48]line Счет N : (1)220893 [10:01:48]line ИНН: 02508201610067 [10:01:48]line Контрольно-Кассовый Чек [10:01:48]line ПРОДАЖА [10:01:48]line ТРК (МРК, ГНК) : 11 [10:01:48]line Товар: 2710194210 [10:01:48]line ДТ-К-5 [10:01:48]line 37.610 * 76.20 [10:01:48]line = 2865.88 [10:01:48]line НДС 12% НСП 1% [10:01:48]line > о реализуемом товаре [10:01:48]line ОКРУГЛЕНИЕ: -0.88 [10:01:48]line ИТОГО: 2865.00 [10:01:48]line Внесено: 2866.00 [10:01:48]line СДАЧА: 1.00 [10:01:48]line НСП 1% : 25.36 [10:01:48]line НДС 12% : 304.34 [10:01:48]line Наличными: 2865.00 [10:01:48]line Безнал.: 0.00 [10:01:48]line Место: АЗС № 161 "Партнер Нефть" [10:01:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:01:48]line СНО: Общий режим [10:01:48]line Чек 75 22.10.2024 10:02 [10:01:48]line Смена: 536 ФФД: 1.0 [10:01:48]line ЗНМ: 0300000104 [10:01:48]line РНМ: 0000000000091764 [10:01:48]line Версия ККМ: 001 [10:01:48]line ФМ: 0000000000871759 [10:01:48]line ФД: 166320 [10:01:48]line ФПД: 58227821489681 [10:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166320&fm=58227821489681&tin=02508201610067®Number=0000000000091764&sum=286500 [10:01:48]OFD Sender: Processing packet 166320 [packets to send 48, broken 47] [10:01:48]ProducePacketName [10:01:48]name=ofd_packets/00166320 [10:01:48]OFD Sender: To server: pG, [10:01:48]CommunicateWithHost lk.salyk.kg:30040 [10:01:48]ConnectInit lk.salyk.kg [10:01:48]written 0, free lines is 4095 [10:01:49]Connected sock=7 [10:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 60 EE 04 01 A3 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 92 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 5F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 76 00 00 00 00 07 04 06 00 24 5F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 22 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 89 02 00 35 04 06 00 34 F5 38 9D AE 11 D9 C5 F1 EB 83 F6 A9 48 [10:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 8F 47 00 A9 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 89 02 00 F4 03 04 00 8D 1E 17 67 B6 04 01 00 00 00 F2 F8 FB FD C3 C8 41 [10:01:49]CommunicateWithHost err = 0 [10:01:49]CheckOFDResponse [10:01:49]1017 (14) - 77093643461234 [10:01:49]1041 (16) - 0000000000871759 [10:01:49]1040 (4) - 166320 [10:01:49]1012 (4) - 22.10.2024 03:39 [10:01:49]1206 (1) - 0 [10:01:49]OFD Sender: Remove packet 166320 [10:01:49]ProducePacketName [10:01:49]name=ofd_packets/00166320 [10:01:49]NVStorageDeleteData [10:01:49]Write to MH i2c: 01 00 00 0C A8 B4 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 0C A8 00 00 00 00 00 C2 0C 89 [10:01:49]RasterBufferAndPrint [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]line [10:01:49]written 0, free lines is 3275 [10:01:49]MH_Cut [10:01:49]Write to MH i2c: D1 01 00 13 A8 01 8D [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 01 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: D1 01 00 13 A8 00 8C [10:01:49]Write to MH i2c: 01 00 00 14 A8 BC [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]OFD Sender: No OFD packet to send [10:01:50]*** Cut start [10:01:50]*** Partial cut [10:01:50]*** CUTSNS_PIN = 1 [10:01:50]*** CUTSNS_PIN = 0 [10:01:50]*** Brake cut motor [10:01:50]Read from MH i2c: 01 [10:01:50]MH_I2C_Read... [10:01:50]*** Stop cut motor [10:01:50]*** Cut end [10:01:50]Read from MH i2c: 01 07 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 14 A8 00 00 00 00 00 FF 0F D1 [10:01:50]process_action close_receipt done [10:01:50]requested_data is exist [10:01:50]produce_requested_data [10:01:50]requested_item fm.sn is exist - process it [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 11 00 00 [10:01:50]Write to MH i2c: E2 08 00 15 A8 80 11 00 00 00 00 00 00 37 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 15 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [10:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:50]wFMCommunicate OK [10:01:50]requested_item fd.num is exist - process it [10:01:50]SAM_PROTO_GetFieldsCounters [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 13 00 00 [10:01:50]Write to MH i2c: E2 08 00 16 A8 80 13 00 00 00 00 00 00 3A [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:51]Read from MH i2c: E2 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 62 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 62 00 16 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:51]wFMCommunicate OK [10:01:51]SAM_PROTO_GetFieldsCounters done [10:01:51]requested_item shift.num is exist - process it [10:01:51]requested_item shift.opened is exist - process it [10:01:51]req_shift_opened [10:01:51]FM_GetShiftState [10:01:51]SAM_PROTO_GetShiftState [10:01:51]wFMCommunicate request_size=4 [10:01:51]MH_SAM_APDU [10:01:51]CAPDU: 80 13 01 00 [10:01:51]Write to MH i2c: E2 08 00 17 A8 80 13 01 00 00 00 00 00 3C [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:51]Read from MH i2c: E2 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 0E 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 0E 00 17 A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8F [10:01:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:01:51]wFMCommunicate OK [10:01:51]SAM_PROTO_GetShiftState done [10:01:51]FM_GetShiftState done [10:01:51]req_shift_opened done [10:01:51]requested_item shift.open_date is exist - process it [10:01:51]req_shift_open_date [10:01:51]req_shift_open_date done [10:01:51]produce_requested_data done [10:01:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166320,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:01:51]process_action_free close_receipt [10:01:51]json_value_free [10:01:51]json_value_free done [10:01:51]process_json_proto returns [10:01:51]Send response to host [10:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166320,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:01:51]free response buf [10:01:51]execute_script done [10:01:51]execute_script returns [10:01:51]free content buf [10:01:51]Sock 6.Close socket [10:01:51]Sock 6.Thread stoped [10:01:51]accept exits with 5 [10:01:51]New connection [10:01:51]New thread 3066776932 created [10:01:51]Thread 3066920292 joined [10:01:51]Waiting for new connection... [10:01:51] Sock 5.Parse request [10:01:51]Sock 5.Check first char [10:01:51]Sock 5.First char is OK [10:01:51]request: POST /json_proto HTTP/1.0 [10:01:51]Method: POST [10:01:51]URL: /json_proto [10:01:51]Method is POST - this is cgi request [10:01:51]url: /json_proto [10:01:51]query_string will be loaded in cgi processing [10:01:51]execute_cgi json_proto POST (null) [10:01:51]execute_cgi path=json_proto method=POST [10:01:51]POST find Content-Length [10:01:51]Host: 172.17.53.195:8080 [10:01:51]Content-Length: 678 [10:01:51]Content-Type: application/json [10:01:51] [10:01:51]POST finish read [10:01:51]Found Content-Length = 678 [10:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.460, "sum" : 699.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:51]execute_script... [10:01:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.460, "sum" : 699.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:51]POST & json_proto [10:01:51]process_json_proto [10:01:51]json parsed OK: [10:01:51]protocol is kg_v1.0 [10:01:51]action value=close_receipt [10:01:51]process_action close_receipt [10:01:51]cmd_close_receipt [10:01:51]MH_GetDate [10:01:51]Write to MH i2c: F0 00 00 18 A8 AF [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: F0 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: F0 09 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: F0 09 00 18 A8 00 26 78 17 67 21 48 4A 65 EC [10:01:51]GetLastDocTimeStamp 1729591330 [10:01:51]current date 1729591334 [10:01:51]FM_GetShiftState [10:01:51]SAM_PROTO_GetShiftState [10:01:51]wFMCommunicate request_size=4 [10:01:51]MH_SAM_APDU [10:01:51]CAPDU: 80 13 01 00 [10:01:51]Write to MH i2c: E2 08 00 19 A8 80 13 01 00 00 00 00 00 3E [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:51]Read from MH i2c: E2 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 0E 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: E2 0E 00 19 A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [10:01:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:01:51]wFMCommunicate OK [10:01:51]SAM_PROTO_GetShiftState done [10:01:51]FM_GetShiftState done [10:01:51]opened in 1729557463 [10:01:51]opened+sec_in_day 1729643863 [10:01:51]quantity*price = 69977 [10:01:51]sum+1 = 69978 [10:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 699.00 Внесено: 700.00 СДАЧА: 1.00 НСП 1% : 6.19 НДС 12% : 74.31 Наличными: 699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 76 22.10.2024 10:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166321 ФПД: 158894532978671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100214&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166321&fm=158894532978671&tin=02508201610067®Number=0000000000091764&sum=69900 [10:01:52]StoreToDocumentArchive [10:01:52]shift 536 fd 166321 [10:01:52]save to /storage/0536/doc_00166321 [10:01:52]save last doc name /storage/0536/doc_00166321 to /storage/kkm_last_doc_name [10:01:52]save OK [10:01:52]Clear old archive folders... [10:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:52]tlvbuf is 01643B20 [10:01:52]SAM_PROTO_ClearQueue [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 09 00 00 [10:01:52]Write to MH i2c: E2 08 00 26 A8 80 09 00 00 00 00 00 00 40 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 03 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 03 00 26 A8 00 90 00 42 [10:01:52]RAPDU: 90 00 [10:01:52]wFMCommunicate OK [10:01:52]SAM_PROTO_ClearQueue done [10:01:52]KKMCreateOFDPacket [10:01:52]OFDProtocolAddRootSTLVToBuf [10:01:52]FM_MakeSignedData [10:01:52]FM_MakeSignedData [10:01:52]SAM_PROTO_SignData [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 0D 01 02 [10:01:52]Write to MH i2c: E2 08 00 27 A8 80 0D 01 02 00 00 00 00 48 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 03 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 03 00 27 A8 00 90 00 43 [10:01:52]RAPDU: 90 00 [10:01:52]wFMCommunicate OK [10:01:52]wFMCommunicate request_size=255 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 89 02 00 35 04 06 00 90 [10:01:52]Write to MH i2c: E2 02 01 28 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 89 02 00 35 04 06 00 90 00 00 1F [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 28 A8 00 90 00 44 [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=10 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 02 02 05 83 84 31 E7 EF [10:01:53]Write to MH i2c: E2 0D 00 29 A8 80 0D 02 02 05 00 83 84 31 E7 EF 00 00 63 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 29 A8 00 90 00 45 [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 03 02 [10:01:53]Write to MH i2c: E2 08 00 2A A8 80 0D 03 02 00 00 00 00 4D [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0B 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0B 00 2A A8 00 84 EA 90 D2 9E C7 52 05 90 00 DA [10:01:53]RAPDU: 84 EA 90 D2 9E C7 52 05 90 00 [10:01:53]wFMCommunicate OK [10:01:53]SAM_PROTO_SignData done [10:01:53]FM_MakeSignedData done [10:01:53]CreateOFDProtocolMessage [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 11 00 00 [10:01:53]Write to MH i2c: E2 08 00 2B A8 80 11 00 00 00 00 00 00 4D [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 17 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 17 00 2B A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [10:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:53]wFMCommunicate OK [10:01:53]CreateOFDProtocolMessage done [10:01:53]OFDSenderStorePacket 166321 [10:01:53]StoreOFDPacket docnum=166321 [10:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 B3 07 01 B1 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 89 02 00 35 04 06 00 90 83 84 31 E7 EF 84 EA 90 D2 9E C7 52 05 [10:01:53]CheckFolder [10:01:53]dirname=/storage/ofd_packets [10:01:53]CheckFolder done [10:01:53]ProducePacketName [10:01:53]name=ofd_packets/00166321 [10:01:53]NVStorageSaveData ofd_packets/00166321 [10:01:53]File name is /storage/ofd_packets/00166321 [10:01:53]Write 301 bytes [10:01:53]NVStorageSaveData done [10:01:53]OFDSenderStorePacket done [10:01:53]KKMCreateOFDPacket done [10:01:53]NVStorageSaveData kkm_last_timestamp [10:01:53]File name is /storage/kkm_last_timestamp [10:01:53]Write 4 bytes [10:01:53]NVStorageSaveData done [10:01:53]ExternCall_PrintAddStr [10:01:53]wPrintStart [10:01:53]Write to MH i2c: 01 00 00 2C A8 D4 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 07 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 07 00 2C A8 00 00 00 00 00 FF 0F E9 [10:01:53]RasterBufferAndPrint [10:01:53]line Счет N : (1)220891 [10:01:53]line ИНН: 02508201610067 [10:01:53]line Контрольно-Кассовый Чек [10:01:53]line ПРОДАЖА [10:01:53]line ТРК (МРК, ГНК) : 13 [10:01:53]line Товар: 2710124130 [10:01:53]line Аи-92-К-5 [10:01:53]line 10.460 * 66.90 [10:01:53]line = 699.77 [10:01:53]line НДС 12% НСП 1% [10:01:53]line > о реализуемом товаре [10:01:53]line ОКРУГЛЕНИЕ: -0.77 [10:01:53]line ИТОГО: 699.00 [10:01:53]line Внесено: 700.00 [10:01:53]line СДАЧА: 1.00 [10:01:53]line НСП 1% : 6.19 [10:01:53]line НДС 12% : 74.31 [10:01:53]line Наличными: 699.00 [10:01:53]line Безнал.: 0.00 [10:01:53]line Место: АЗС № 161 "Партнер Нефть" [10:01:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:01:53]line СНО: Общий режим [10:01:53]line Чек 76 22.10.2024 10:02 [10:01:53]line Смена: 536 ФФД: 1.0 [10:01:53]line ЗНМ: 0300000104 [10:01:53]line РНМ: 0000000000091764 [10:01:53]line Версия ККМ: 001 [10:01:53]line ФМ: 0000000000871759 [10:01:53]line ФД: 166321 [10:01:53]line ФПД: 158894532978671 [10:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100214&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166321&fm=158894532978671&tin=02508201610067®Number=0000000000091764&sum=69900 [10:01:53]written 0, free lines is 4095 [10:01:53]OFD Sender: Processing packet 166321 [packets to send 48, broken 47] [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00166321 [10:01:54]OFD Sender: To server: pG, [10:01:54]CommunicateWithHost lk.salyk.kg:30040 [10:01:54]ConnectInit lk.salyk.kg [10:01:54]Connected sock=7 [10:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 B3 07 01 B1 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 26 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 89 02 00 35 04 06 00 90 83 84 31 E7 EF 84 EA 90 D2 9E C7 52 05 [10:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 0B 47 00 DE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 89 02 00 F4 03 04 00 92 1E 17 67 B6 04 01 00 00 F4 CE 17 9B 94 22 71 6F [10:01:54]CommunicateWithHost err = 0 [10:01:54]CheckOFDResponse [10:01:54]1017 (14) - 77093643461234 [10:01:54]1041 (16) - 0000000000871759 [10:01:54]1040 (4) - 166321 [10:01:54]1012 (4) - 22.10.2024 03:40 [10:01:54]1206 (1) - 0 [10:01:54]OFD Sender: Remove packet 166321 [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00166321 [10:01:54]NVStorageDeleteData [10:01:54]Write to MH i2c: 01 00 00 57 A8 FF [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 57 A8 00 00 00 00 00 B5 0C C7 [10:01:54]RasterBufferAndPrint [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]written 0, free lines is 3270 [10:01:54]MH_Cut [10:01:54]Write to MH i2c: D1 01 00 5E A8 01 D8 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 5E A8 00 D7 [10:01:54]Write to MH i2c: 01 00 00 5F A8 07 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]OFD Sender: No OFD packet to send [10:01:55]*** Cut start [10:01:55]*** Partial cut [10:01:55]*** CUTSNS_PIN = 1 [10:01:55]*** CUTSNS_PIN = 0 [10:01:55]*** Brake cut motor [10:01:55]Read from MH i2c: 01 [10:01:55]MH_I2C_Read... [10:01:55]*** Stop cut motor [10:01:55]*** Cut end [10:01:55]Read from MH i2c: 01 07 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 5F A8 00 00 00 00 00 FF 0F 1C [10:01:55]process_action close_receipt done [10:01:55]requested_data is exist [10:01:55]produce_requested_data [10:01:55]requested_item fm.sn is exist - process it [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 11 00 00 [10:01:55]Write to MH i2c: E2 08 00 60 A8 80 11 00 00 00 00 00 00 82 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 60 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [10:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:55]wFMCommunicate OK [10:01:55]requested_item fd.num is exist - process it [10:01:55]SAM_PROTO_GetFieldsCounters [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 13 00 00 [10:01:55]Write to MH i2c: E2 08 00 61 A8 80 13 00 00 00 00 00 00 85 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 62 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 62 00 61 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_GetFieldsCounters done [10:01:56]requested_item shift.num is exist - process it [10:01:56]requested_item shift.opened is exist - process it [10:01:56]req_shift_opened [10:01:56]FM_GetShiftState [10:01:56]SAM_PROTO_GetShiftState [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 13 01 00 [10:01:56]Write to MH i2c: E2 08 00 62 A8 80 13 01 00 00 00 00 00 87 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 62 A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DA [10:01:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_GetShiftState done [10:01:56]FM_GetShiftState done [10:01:56]req_shift_opened done [10:01:56]requested_item shift.open_date is exist - process it [10:01:56]req_shift_open_date [10:01:56]req_shift_open_date done [10:01:56]produce_requested_data done [10:01:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166321,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:01:56]process_action_free close_receipt [10:01:56]json_value_free [10:01:56]json_value_free done [10:01:56]process_json_proto returns [10:01:56]Send response to host [10:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166321,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:01:56]free response buf [10:01:56]execute_script done [10:01:56]execute_script returns [10:01:56]free content buf [10:01:56]Sock 5.Close socket [10:01:56]Sock 5.Thread stoped [10:01:57]accept exits with 6 [10:01:57]New connection [10:01:57]New thread 3066920292 created [10:01:57]Thread 3066776932 joined [10:01:57]Waiting for new connection... [10:01:57] Sock 6.Parse request [10:01:57]Sock 6.Check first char [10:01:57]Sock 6.First char is OK [10:01:57]request: POST /json_proto HTTP/1.0 [10:01:57]Method: POST [10:01:57]URL: /json_proto [10:01:57]Method is POST - this is cgi request [10:01:57]url: /json_proto [10:01:57]query_string will be loaded in cgi processing [10:01:57]execute_cgi json_proto POST (null) [10:01:57]execute_cgi path=json_proto method=POST [10:01:57]POST find Content-Length [10:01:57]Host: 172.17.53.195:8080 [10:01:57]Content-Length: 215 [10:01:57]Content-Type: application/json [10:01:57] [10:01:57]POST finish read [10:01:57]Found Content-Length = 215 [10:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]execute_script... [10:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]POST & json_proto [10:01:57]process_json_proto [10:01:57]json parsed OK: [10:01:57]protocol is kg_v1.0 [10:01:57]action value=get_value [10:01:57]process_action get_value [10:01:57]cmd_get_value [10:01:57]process_action get_value done [10:01:57]requested_data is exist [10:01:57]produce_requested_data [10:01:57]requested_item kkm.sn is exist - process it [10:01:57]requested_item kkm.ver is exist - process it [10:01:57]requested_item fm.sn is exist - process it [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 11 00 00 [10:01:57]Write to MH i2c: E2 08 00 63 A8 80 11 00 00 00 00 00 00 85 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 63 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [10:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:57]wFMCommunicate OK [10:01:57]requested_item fd.num is exist - process it [10:01:57]SAM_PROTO_GetFieldsCounters [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 00 00 [10:01:57]Write to MH i2c: E2 08 00 64 A8 80 13 00 00 00 00 00 00 88 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 64 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [10:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetFieldsCounters done [10:01:57]requested_item shift.num is exist - process it [10:01:57]requested_item shift.opened is exist - process it [10:01:57]req_shift_opened [10:01:57]FM_GetShiftState [10:01:57]SAM_PROTO_GetShiftState [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 01 00 [10:01:57]Write to MH i2c: E2 08 00 65 A8 80 13 01 00 00 00 00 00 8A [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0E 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0E 00 65 A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DD [10:01:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_GetShiftState done [10:01:58]FM_GetShiftState done [10:01:58]req_shift_opened done [10:01:58]requested_item shift.open_date is exist - process it [10:01:58]req_shift_open_date [10:01:58]req_shift_open_date done [10:01:58]produce_requested_data done [10:01:58]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166321,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:01:58]process_action_free get_value [10:01:58]json_value_free [10:01:58]json_value_free done [10:01:58]process_json_proto returns [10:01:58]Send response to host [10:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166321,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:01:58]free response buf [10:01:58]execute_script done [10:01:58]execute_script returns [10:01:58]free content buf [10:01:58]Sock 6.Close socket [10:01:58]Sock 6.Thread stoped [10:01:58]accept exits with 5 [10:01:58]New connection [10:01:58]New thread 3066776932 created [10:01:58]Thread 3066920292 joined [10:01:58]Waiting for new connection... [10:01:58] Sock 5.Parse request [10:01:58]Sock 5.Check first char [10:01:58]Sock 5.First char is OK [10:01:58]request: POST /json_proto HTTP/1.0 [10:01:58]Method: POST [10:01:58]URL: /json_proto [10:01:58]Method is POST - this is cgi request [10:01:58]url: /json_proto [10:01:58]query_string will be loaded in cgi processing [10:01:58]execute_cgi json_proto POST (null) [10:01:58]execute_cgi path=json_proto method=POST [10:01:58]POST find Content-Length [10:01:58]Host: 172.17.53.195:8080 [10:01:58]Content-Length: 331 [10:01:58]Content-Type: application/json [10:01:58] [10:01:58]POST finish read [10:01:58]Found Content-Length = 331 [10:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:01:58]execute_script... [10:01:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:01:58]POST & json_proto [10:01:58]process_json_proto [10:01:58]json parsed OK: [10:01:58]protocol is kg_v1.0 [10:01:58]action value=get_value [10:01:58]process_action get_value [10:01:58]cmd_get_value [10:01:58]process_action get_value done [10:01:58]requested_data is exist [10:01:58]produce_requested_data [10:01:58]requested_item fm.sale.total is exist - process it [10:01:58]SAM_PROTO_GetFMData [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 13 03 00 [10:01:58]Write to MH i2c: E2 08 00 66 A8 80 13 03 00 00 00 00 00 8D [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 66 A8 00 C5 04 85 04 C1 04 6E 04 04 00 81 85 02 00 69 04 A3 00 6F 04 04 00 82 84 02 00 B1 04 05 00 44 8E 12 B3 03 70 04 05 00 5C 76 60 29 03 72 04 04 00 E8 17 B2 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 D9 9D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 37 64 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 24 [10:01:58]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 81 85 02 00 69 04 A3 00 6F 04 04 00 82 84 02 00 B1 04 05 00 44 8E 12 B3 03 70 04 05 00 5C 76 60 29 03 72 04 04 00 E8 17 B2 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D8 D9 9D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 37 64 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 17 00 00 [10:01:58]Write to MH i2c: E2 08 00 67 A8 80 17 00 00 00 00 00 00 8F [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 67 A8 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5B [10:01:58]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 17 00 00 [10:01:58]Write to MH i2c: E2 08 00 68 A8 80 17 00 00 00 00 00 00 90 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 68 A8 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A2 [10:01:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:01:59]wFMCommunicate OK [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 17 00 00 [10:01:59]Write to MH i2c: E2 08 00 69 A8 80 17 00 00 00 00 00 00 91 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 69 A8 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1D [10:01:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:01:59]wFMCommunicate OK [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 17 00 00 [10:01:59]Write to MH i2c: E2 08 00 6A A8 80 17 00 00 00 00 00 00 92 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]OFD Sender: No OFD packet to send [10:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 E2 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 E2 00 6A A8 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 70 [10:02:00]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_GetFMData done [10:02:00]requested_item fm.sale_refund.total is exist - process it [10:02:00]requested_item fm.buy.total is exist - process it [10:02:00]requested_item shift.sale.total is exist - process it [10:02:00]SAM_PROTO_GetShiftData [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 13 02 00 [10:02:00]Write to MH i2c: E2 08 00 6B A8 80 13 02 00 00 00 00 00 91 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 6B A8 00 AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 90 BF 9D 70 04 03 00 44 08 90 72 04 03 00 4C B7 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 85 C1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 72 65 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 FF [10:02:00]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 90 BF 9D 70 04 03 00 44 08 90 72 04 03 00 4C B7 0D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 85 C1 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 72 65 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 17 00 00 [10:02:00]Write to MH i2c: E2 08 00 6C A8 80 17 00 00 00 00 00 00 94 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 FD 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 FD 00 6C A8 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 AD [10:02:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:02:01]wFMCommunicate OK [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 17 00 00 [10:02:01]Write to MH i2c: E2 08 00 6D A8 80 17 00 00 00 00 00 00 95 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:01]Read from MH i2c: E2 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 FD 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 FD 00 6D A8 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 49 [10:02:01]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:02:01]wFMCommunicate OK [10:02:01]wFMCommunicate request_size=4 [10:02:01]MH_SAM_APDU [10:02:01]CAPDU: 80 17 00 00 [10:02:01]Write to MH i2c: E2 08 00 6E A8 80 17 00 00 00 00 00 00 96 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 FD 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 FD 00 6E A8 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 14 [10:02:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:02:02]wFMCommunicate OK [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 17 00 00 [10:02:02]Write to MH i2c: E2 08 00 6F A8 80 17 00 00 00 00 00 00 97 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 CC 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 CC 00 6F A8 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [10:02:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:02:02]wFMCommunicate OK [10:02:02]SAM_PROTO_GetShiftData done [10:02:02]requested_item shift.sale.total_cash is exist - process it [10:02:02]requested_item shift.sale_refund.total is exist - process it [10:02:02]requested_item shift.sale_refund.total_cash is exist - process it [10:02:02]requested_item shift.buy.total is exist - process it [10:02:02]requested_item shift.buy.total_cash is exist - process it [10:02:02]produce_requested_data done [10:02:02]produce_requested_data return {"fm.sale.total":158892396.20,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":103381.92,"shift.sale.total_cash":94393.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:02:02]process_action_free get_value [10:02:02]json_value_free [10:02:02]json_value_free done [10:02:02]process_json_proto returns [10:02:02]Send response to host [10:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158892396.20,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":103381.92,"shift.sale.total_cash":94393.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:02:02]free response buf [10:02:02]execute_script done [10:02:02]execute_script returns [10:02:02]free content buf [10:02:02]Sock 5.Close socket [10:02:02]Sock 5.Thread stoped [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:03:56]accept exits with 6 [10:03:56]New connection [10:03:56]New thread 3066920292 created [10:03:56]Thread 3066776932 joined [10:03:56]Waiting for new connection... [10:03:56] Sock 6.Parse request [10:03:56]Sock 6.Check first char [10:03:56]Sock 6.First char is OK [10:03:56]request: POST /json_proto HTTP/1.0 [10:03:56]Method: POST [10:03:56]URL: /json_proto [10:03:56]Method is POST - this is cgi request [10:03:56]url: /json_proto [10:03:56]query_string will be loaded in cgi processing [10:03:56]execute_cgi json_proto POST (null) [10:03:56]execute_cgi path=json_proto method=POST [10:03:56]POST find Content-Length [10:03:56]Host: 172.17.53.195:8080 [10:03:56]Content-Length: 677 [10:03:56]Content-Type: application/json [10:03:56] [10:03:56]POST finish read [10:03:56]Found Content-Length = 677 [10:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:56]execute_script... [10:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:56]POST & json_proto [10:03:56]process_json_proto [10:03:56]json parsed OK: [10:03:56]protocol is kg_v1.0 [10:03:56]action value=close_receipt [10:03:56]process_action close_receipt [10:03:56]cmd_close_receipt [10:03:56]MH_GetDate [10:03:56]Write to MH i2c: F0 00 00 70 A8 07 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 70 A8 00 A3 78 17 67 21 48 4A 65 C1 [10:03:56]GetLastDocTimeStamp 1729591334 [10:03:56]current date 1729591459 [10:03:56]FM_GetShiftState [10:03:56]SAM_PROTO_GetShiftState [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 13 01 00 [10:03:56]Write to MH i2c: E2 08 00 71 A8 80 13 01 00 00 00 00 00 96 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 71 A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E9 [10:03:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_GetShiftState done [10:03:56]FM_GetShiftState done [10:03:56]opened in 1729557463 [10:03:56]opened+sec_in_day 1729643863 [10:03:56]quantity*price = 40006 [10:03:56]sum+1 = 40007 [10:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 77 22.10.2024 10:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166322 ФПД: 248663686477928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166322&fm=248663686477928&tin=02508201610067®Number=0000000000091764&sum=40000 [10:03:57]StoreToDocumentArchive [10:03:57]shift 536 fd 166322 [10:03:57]save to /storage/0536/doc_00166322 [10:03:57]save last doc name /storage/0536/doc_00166322 to /storage/kkm_last_doc_name [10:03:57]save OK [10:03:57]Clear old archive folders... [10:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:57]tlvbuf is 018A2C40 [10:03:57]SAM_PROTO_ClearQueue [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 09 00 00 [10:03:57]Write to MH i2c: E2 08 00 7E A8 80 09 00 00 00 00 00 00 98 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 7E A8 00 90 00 9A [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]SAM_PROTO_ClearQueue done [10:03:57]KKMCreateOFDPacket [10:03:57]OFDProtocolAddRootSTLVToBuf [10:03:57]FM_MakeSignedData [10:03:57]FM_MakeSignedData [10:03:57]SAM_PROTO_SignData [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 01 02 [10:03:57]Write to MH i2c: E2 08 00 7F A8 80 0D 01 02 00 00 00 00 A0 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 7F A8 00 90 00 9B [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]wFMCommunicate request_size=255 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 89 02 00 35 04 06 00 E2 [10:03:57]Write to MH i2c: E2 02 01 80 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 89 02 00 35 04 06 00 E2 00 00 24 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 80 A8 00 90 00 9C [10:03:58]RAPDU: 90 00 [10:03:58]wFMCommunicate OK [10:03:58]wFMCommunicate request_size=10 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 0D 02 02 05 28 86 B3 78 68 [10:03:58]Write to MH i2c: E2 0D 00 81 A8 80 0D 02 02 05 00 28 86 B3 78 68 00 00 EE [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 81 A8 00 90 00 9D [10:03:58]RAPDU: 90 00 [10:03:58]wFMCommunicate OK [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 0D 03 02 [10:03:58]Write to MH i2c: E2 08 00 82 A8 80 0D 03 02 00 00 00 00 A5 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0B 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0B 00 82 A8 00 10 E0 13 F6 44 A2 70 39 90 00 2E [10:03:58]RAPDU: 10 E0 13 F6 44 A2 70 39 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_SignData done [10:03:58]FM_MakeSignedData done [10:03:58]CreateOFDProtocolMessage [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 11 00 00 [10:03:58]Write to MH i2c: E2 08 00 83 A8 80 11 00 00 00 00 00 00 A5 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 83 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [10:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:03:58]wFMCommunicate OK [10:03:58]CreateOFDProtocolMessage done [10:03:58]OFDSenderStorePacket 166322 [10:03:58]StoreOFDPacket docnum=166322 [10:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 C9 07 01 A1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 89 02 00 35 04 06 00 E2 28 86 B3 78 68 10 E0 13 F6 44 A2 70 39 [10:03:58]CheckFolder [10:03:58]dirname=/storage/ofd_packets [10:03:58]CheckFolder done [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00166322 [10:03:58]NVStorageSaveData ofd_packets/00166322 [10:03:58]File name is /storage/ofd_packets/00166322 [10:03:58]Write 301 bytes [10:03:58]NVStorageSaveData done [10:03:58]OFDSenderStorePacket done [10:03:58]KKMCreateOFDPacket done [10:03:58]NVStorageSaveData kkm_last_timestamp [10:03:58]File name is /storage/kkm_last_timestamp [10:03:58]Write 4 bytes [10:03:58]NVStorageSaveData done [10:03:58]ExternCall_PrintAddStr [10:03:58]wPrintStart [10:03:58]Write to MH i2c: 01 00 00 84 A8 2C [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 84 A8 00 00 00 00 00 FF 0F 41 [10:03:58]RasterBufferAndPrint [10:03:58]line Счет N : (1)220897 [10:03:58]line ИНН: 02508201610067 [10:03:58]line Контрольно-Кассовый Чек [10:03:58]line ПРОДАЖА [10:03:58]line ТРК (МРК, ГНК) : 23 [10:03:58]line Товар: 2710124130 [10:03:58]line Аи-92-К-5 [10:03:58]line 5.980 * 66.90 [10:03:58]line = 400.06 [10:03:58]line НДС 12% НСП 1% [10:03:58]line > о реализуемом товаре [10:03:58]line ОКРУГЛЕНИЕ: -0.06 [10:03:58]line ИТОГО: 400.00 [10:03:58]line Внесено: 400.00 [10:03:58]line СДАЧА: 0.00 [10:03:58]line НСП 1% : 3.54 [10:03:58]line НДС 12% : 42.48 [10:03:58]line Наличными: 400.00 [10:03:58]line Безнал.: 0.00 [10:03:58]line Место: АЗС № 161 "Партнер Нефть" [10:03:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:03:58]line СНО: Общий режим [10:03:58]line Чек 77 22.10.2024 10:04 [10:03:58]line Смена: 536 ФФД: 1.0 [10:03:58]line ЗНМ: 0300000104 [10:03:58]line РНМ: 0000000000091764 [10:03:58]line Версия ККМ: 001 [10:03:58]line ФМ: 0000000000871759 [10:03:58]line ФД: 166322 [10:03:58]line ФПД: 248663686477928 [10:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166322&fm=248663686477928&tin=02508201610067®Number=0000000000091764&sum=40000 [10:03:58]OFD Sender: Processing packet 166322 [packets to send 48, broken 47] [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00166322 [10:03:58]OFD Sender: To server: pG, [10:03:58]CommunicateWithHost lk.salyk.kg:30040 [10:03:58]ConnectInit lk.salyk.kg [10:03:58]written 0, free lines is 4095 [10:03:58]Connected sock=7 [10:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 C9 07 01 A1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 78 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 89 02 00 35 04 06 00 E2 28 86 B3 78 68 10 E0 13 F6 44 A2 70 39 [10:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 55 1B 47 00 9A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 89 02 00 F4 03 04 00 0F 1F 17 67 B6 04 01 00 00 33 B0 6E 1F C7 41 13 5F [10:03:58]CommunicateWithHost err = 0 [10:03:58]CheckOFDResponse [10:03:58]1017 (14) - 77093643461234 [10:03:58]1041 (16) - 0000000000871759 [10:03:58]1040 (4) - 166322 [10:03:58]1012 (4) - 22.10.2024 03:42 [10:03:58]1206 (1) - 0 [10:03:58]OFD Sender: Remove packet 166322 [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00166322 [10:03:58]NVStorageDeleteData [10:03:59]Write to MH i2c: 01 00 00 AF A8 57 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 07 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 07 00 AF A8 00 00 00 00 00 C8 0C 32 [10:03:59]RasterBufferAndPrint [10:03:59]line [10:03:59]line [10:03:59]line [10:03:59]line [10:03:59]line [10:03:59]written 0, free lines is 3278 [10:03:59]MH_Cut [10:03:59]Write to MH i2c: D1 01 00 B6 A8 01 30 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: D1 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: D1 01 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: D1 01 00 B6 A8 00 2F [10:03:59]Write to MH i2c: 01 00 00 B7 A8 5F [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]OFD Sender: No OFD packet to send [10:03:59]*** Cut start [10:03:59]*** Partial cut [10:03:59]*** CUTSNS_PIN = 1 [10:03:59]*** CUTSNS_PIN = 0 [10:04:00]*** Brake cut motor [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]*** Stop cut motor [10:04:00]*** Cut end [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 B7 A8 00 00 00 00 00 FF 0F 74 [10:04:00]process_action close_receipt done [10:04:00]requested_data is exist [10:04:00]produce_requested_data [10:04:00]requested_item fm.sn is exist - process it [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 11 00 00 [10:04:00]Write to MH i2c: E2 08 00 B8 A8 80 11 00 00 00 00 00 00 DA [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 B8 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [10:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:04:00]wFMCommunicate OK [10:04:00]requested_item fd.num is exist - process it [10:04:00]SAM_PROTO_GetFieldsCounters [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 00 00 [10:04:00]Write to MH i2c: E2 08 00 B9 A8 80 13 00 00 00 00 00 00 DD [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 B9 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetFieldsCounters done [10:04:00]requested_item shift.num is exist - process it [10:04:00]requested_item shift.opened is exist - process it [10:04:00]req_shift_opened [10:04:00]FM_GetShiftState [10:04:00]SAM_PROTO_GetShiftState [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 01 00 [10:04:00]Write to MH i2c: E2 08 00 BA A8 80 13 01 00 00 00 00 00 DF [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 BA A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 32 [10:04:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetShiftState done [10:04:00]FM_GetShiftState done [10:04:00]req_shift_opened done [10:04:00]requested_item shift.open_date is exist - process it [10:04:00]req_shift_open_date [10:04:00]req_shift_open_date done [10:04:00]produce_requested_data done [10:04:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166322,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:04:00]process_action_free close_receipt [10:04:00]json_value_free [10:04:00]json_value_free done [10:04:00]process_json_proto returns [10:04:00]Send response to host [10:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166322,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:04:00]free response buf [10:04:00]execute_script done [10:04:00]execute_script returns [10:04:00]free content buf [10:04:00]Sock 6.Close socket [10:04:00]Sock 6.Thread stoped [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:12]accept exits with 5 [10:09:12]New connection [10:09:12]New thread 3066776932 created [10:09:12]Thread 3066920292 joined [10:09:12]Waiting for new connection... [10:09:12] Sock 5.Parse request [10:09:12]Sock 5.Check first char [10:09:12]Sock 5.First char is OK [10:09:12]request: POST /json_proto HTTP/1.0 [10:09:12]Method: POST [10:09:12]URL: /json_proto [10:09:12]Method is POST - this is cgi request [10:09:12]url: /json_proto [10:09:12]query_string will be loaded in cgi processing [10:09:12]execute_cgi json_proto POST (null) [10:09:12]execute_cgi path=json_proto method=POST [10:09:12]POST find Content-Length [10:09:12]Host: 172.17.53.195:8080 [10:09:12]Content-Length: 677 [10:09:12]Content-Type: application/json [10:09:12] [10:09:12]POST finish read [10:09:12]Found Content-Length = 677 [10:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:12]execute_script... [10:09: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)220898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:12]POST & json_proto [10:09:12]process_json_proto [10:09:12]json parsed OK: [10:09:12]protocol is kg_v1.0 [10:09:12]action value=close_receipt [10:09:12]process_action close_receipt [10:09:12]cmd_close_receipt [10:09:12]MH_GetDate [10:09:12]Write to MH i2c: F0 00 00 BB A8 52 [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: F0 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: F0 09 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: F0 09 00 BB A8 00 DF 79 17 67 21 48 4A 65 49 [10:09:12]GetLastDocTimeStamp 1729591459 [10:09:12]current date 1729591775 [10:09:12]FM_GetShiftState [10:09:12]SAM_PROTO_GetShiftState [10:09:12]wFMCommunicate request_size=4 [10:09:12]MH_SAM_APDU [10:09:12]CAPDU: 80 13 01 00 [10:09:12]Write to MH i2c: E2 08 00 BC A8 80 13 01 00 00 00 00 00 E1 [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:12]Read from MH i2c: E2 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: E2 0E 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: E2 0E 00 BC A8 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 34 [10:09:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:09:12]wFMCommunicate OK [10:09:12]SAM_PROTO_GetShiftState done [10:09:12]FM_GetShiftState done [10:09:12]opened in 1729557463 [10:09:12]opened+sec_in_day 1729643863 [10:09:12]quantity*price = 29971 [10:09:12]sum+1 = 29972 [10:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 78 22.10.2024 10:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166323 ФПД: 123996641959693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166323&fm=123996641959693&tin=02508201610067®Number=0000000000091764&sum=29900 [10:09:13]StoreToDocumentArchive [10:09:13]shift 536 fd 166323 [10:09:13]save to /storage/0536/doc_00166323 [10:09:13]save last doc name /storage/0536/doc_00166323 to /storage/kkm_last_doc_name [10:09:13]save OK [10:09:13]Clear old archive folders... [10:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:13]tlvbuf is 01512D90 [10:09:13]SAM_PROTO_ClearQueue [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 09 00 00 [10:09:13]Write to MH i2c: E2 08 00 C9 A8 80 09 00 00 00 00 00 00 E3 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 C9 A8 00 90 00 E5 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_ClearQueue done [10:09:13]KKMCreateOFDPacket [10:09:13]OFDProtocolAddRootSTLVToBuf [10:09:13]FM_MakeSignedData [10:09:13]FM_MakeSignedData [10:09:13]SAM_PROTO_SignData [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 01 02 [10:09:13]Write to MH i2c: E2 08 00 CA A8 80 0D 01 02 00 00 00 00 EB [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 CA A8 00 90 00 E6 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=255 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DF 79 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 89 02 00 35 04 06 00 70 [10:09:13]Write to MH i2c: E2 02 01 CB A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DF 79 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 89 02 00 35 04 06 00 70 00 00 42 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 CB A8 00 90 00 E7 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=10 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 02 02 05 C6 37 CC 1F 0D [10:09:13]Write to MH i2c: E2 0D 00 CC A8 80 0D 02 02 05 00 C6 37 CC 1F 0D 00 00 ED [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 CC A8 00 90 00 E8 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 03 02 [10:09:13]Write to MH i2c: E2 08 00 CD A8 80 0D 03 02 00 00 00 00 F0 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0B 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0B 00 CD A8 00 9F 91 3B 96 00 42 7E 13 90 00 C5 [10:09:13]RAPDU: 9F 91 3B 96 00 42 7E 13 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_SignData done [10:09:13]FM_MakeSignedData done [10:09:13]CreateOFDProtocolMessage [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 11 00 00 [10:09:13]Write to MH i2c: E2 08 00 CE A8 80 11 00 00 00 00 00 00 F0 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 CE A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [10:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:13]wFMCommunicate OK [10:09:13]CreateOFDProtocolMessage done [10:09:13]OFDSenderStorePacket 166323 [10:09:13]StoreOFDPacket docnum=166323 [10:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC B4 07 01 35 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DF 79 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 89 02 00 35 04 06 00 70 C6 37 CC 1F 0D 9F 91 3B 96 00 42 7E 13 [10:09:13]CheckFolder [10:09:13]dirname=/storage/ofd_packets [10:09:13]CheckFolder done [10:09:13]ProducePacketName [10:09:13]name=ofd_packets/00166323 [10:09:13]NVStorageSaveData ofd_packets/00166323 [10:09:13]File name is /storage/ofd_packets/00166323 [10:09:13]Write 301 bytes [10:09:13]NVStorageSaveData done [10:09:13]OFDSenderStorePacket done [10:09:13]KKMCreateOFDPacket done [10:09:13]NVStorageSaveData kkm_last_timestamp [10:09:13]File name is /storage/kkm_last_timestamp [10:09:13]Write 4 bytes [10:09:13]NVStorageSaveData done [10:09:13]ExternCall_PrintAddStr [10:09:13]wPrintStart [10:09:13]Write to MH i2c: 01 00 00 CF A8 77 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 CF A8 00 00 00 00 00 FF 0F 8C [10:09:13]RasterBufferAndPrint [10:09:13]line Счет N : (1)220898 [10:09:13]line ИНН: 02508201610067 [10:09:13]line Контрольно-Кассовый Чек [10:09:13]line ПРОДАЖА [10:09:13]line ТРК (МРК, ГНК) : 43 [10:09:13]line Товар: 2710124130 [10:09:13]line Аи-92-К-5 [10:09:13]line 4.480 * 66.90 [10:09:13]line = 299.71 [10:09:13]line НДС 12% НСП 1% [10:09:13]line > о реализуемом товаре [10:09:13]line ОКРУГЛЕНИЕ: -0.71 [10:09:13]line ИТОГО: 299.00 [10:09:13]line Внесено: 300.00 [10:09:13]line СДАЧА: 1.00 [10:09:13]line НСП 1% : 2.65 [10:09:13]line НДС 12% : 31.83 [10:09:13]line Наличными: 299.00 [10:09:13]line Безнал.: 0.00 [10:09:13]line Место: АЗС № 161 "Партнер Нефть" [10:09:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:09:13]line СНО: Общий режим [10:09:13]line Чек 78 22.10.2024 10:09 [10:09:13]line Смена: 536 ФФД: 1.0 [10:09:13]line ЗНМ: 0300000104 [10:09:13]line РНМ: 0000000000091764 [10:09:13]line Версия ККМ: 001 [10:09:13]line ФМ: 0000000000871759 [10:09:13]line ФД: 166323 [10:09:13]line ФПД: 123996641959693 [10:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166323&fm=123996641959693&tin=02508201610067®Number=0000000000091764&sum=29900 [10:09:14]OFD Sender: Processing packet 166323 [packets to send 48, broken 47] [10:09:14]ProducePacketName [10:09:14]name=ofd_packets/00166323 [10:09:14]OFD Sender: To server: pG, [10:09:14]CommunicateWithHost lk.salyk.kg:30040 [10:09:14]ConnectInit lk.salyk.kg [10:09:14]written 0, free lines is 4095 [10:09:14]Connected sock=9 [10:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC B4 07 01 35 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DF 79 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 89 02 00 35 04 06 00 70 C6 37 CC 1F 0D 9F 91 3B 96 00 42 7E 13 [10:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6E 91 47 00 C8 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 89 02 00 F4 03 04 00 4A 20 17 67 B6 04 01 00 00 71 F5 E8 1C 1C 9D D8 1E [10:09:14]CommunicateWithHost err = 0 [10:09:14]CheckOFDResponse [10:09:14]1017 (14) - 77093643461234 [10:09:14]1041 (16) - 0000000000871759 [10:09:14]1040 (4) - 166323 [10:09:14]1012 (4) - 22.10.2024 03:47 [10:09:14]1206 (1) - 0 [10:09:14]OFD Sender: Remove packet 166323 [10:09:14]ProducePacketName [10:09:14]name=ofd_packets/00166323 [10:09:14]NVStorageDeleteData [10:09:14]Write to MH i2c: 01 00 00 FA A8 A2 [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 07 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 07 00 FA A8 00 00 00 00 00 C3 0C 78 [10:09:14]RasterBufferAndPrint [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]written 0, free lines is 3273 [10:09:14]MH_Cut [10:09:14]Write to MH i2c: D1 01 00 01 A9 01 7C [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 01 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 01 00 01 A9 00 7B [10:09:14]Write to MH i2c: 01 00 00 02 A9 AB [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]OFD Sender: No OFD packet to send [10:09:15]*** Cut start [10:09:15]*** Partial cut [10:09:15]*** CUTSNS_PIN = 1 [10:09:15]*** CUTSNS_PIN = 0 [10:09:15]*** Brake cut motor [10:09:16]Read from MH i2c: 01 [10:09:16]MH_I2C_Read... [10:09:16]*** Stop cut motor [10:09:16]*** Cut end [10:09:16]Read from MH i2c: 01 07 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: 01 07 00 02 A9 00 00 00 00 00 FF 0F C0 [10:09:16]process_action close_receipt done [10:09:16]requested_data is exist [10:09:16]produce_requested_data [10:09:16]requested_item fm.sn is exist - process it [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 11 00 00 [10:09:16]Write to MH i2c: E2 08 00 03 A9 80 11 00 00 00 00 00 00 26 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 17 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 17 00 03 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [10:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:16]wFMCommunicate OK [10:09:16]requested_item fd.num is exist - process it [10:09:16]SAM_PROTO_GetFieldsCounters [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 13 00 00 [10:09:16]Write to MH i2c: E2 08 00 04 A9 80 13 00 00 00 00 00 00 29 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 62 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 62 00 04 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:16]wFMCommunicate OK [10:09:16]SAM_PROTO_GetFieldsCounters done [10:09:16]requested_item shift.num is exist - process it [10:09:16]requested_item shift.opened is exist - process it [10:09:16]req_shift_opened [10:09:16]FM_GetShiftState [10:09:16]SAM_PROTO_GetShiftState [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 13 01 00 [10:09:16]Write to MH i2c: E2 08 00 05 A9 80 13 01 00 00 00 00 00 2B [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 0E 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 0E 00 05 A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7E [10:09:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:09:16]wFMCommunicate OK [10:09:16]SAM_PROTO_GetShiftState done [10:09:16]FM_GetShiftState done [10:09:16]req_shift_opened done [10:09:16]requested_item shift.open_date is exist - process it [10:09:16]req_shift_open_date [10:09:16]req_shift_open_date done [10:09:16]produce_requested_data done [10:09:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166323,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:09:16]process_action_free close_receipt [10:09:16]json_value_free [10:09:16]json_value_free done [10:09:16]process_json_proto returns [10:09:16]Send response to host [10:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166323,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:09:16]free response buf [10:09:16]execute_script done [10:09:16]execute_script returns [10:09:16]free content buf [10:09:16]Sock 5.Close socket [10:09:16]Sock 5.Thread stoped [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:43]accept exits with 6 [10:12:43]New connection [10:12:43]New thread 3066920292 created [10:12:43]Thread 3066776932 joined [10:12:43]Waiting for new connection... [10:12:43] Sock 6.Parse request [10:12:43]Sock 6.Check first char [10:12:43]Sock 6.First char is OK [10:12:43]request: POST /json_proto HTTP/1.0 [10:12:43]Method: POST [10:12:43]URL: /json_proto [10:12:43]Method is POST - this is cgi request [10:12:43]url: /json_proto [10:12:43]query_string will be loaded in cgi processing [10:12:43]execute_cgi json_proto POST (null) [10:12:43]execute_cgi path=json_proto method=POST [10:12:43]POST find Content-Length [10:12:43]Host: 172.17.53.195:8080 [10:12:43]Content-Length: 797 [10:12:43]Content-Type: application/json [10:12:43] [10:12:43]POST finish read [10:12:43]Found Content-Length = 797 [10:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690469", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:43]execute_script... [10:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690469", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:43]POST & json_proto [10:12:43]process_json_proto [10:12:43]json parsed OK: [10:12:43]protocol is kg_v1.0 [10:12:43]action value=close_receipt [10:12:43]process_action close_receipt [10:12:43]cmd_close_receipt [10:12:43]MH_GetDate [10:12:43]Write to MH i2c: F0 00 00 06 A9 9E [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 09 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: F0 09 00 06 A9 00 B3 7A 17 67 21 48 4A 65 6A [10:12:43]GetLastDocTimeStamp 1729591775 [10:12:43]current date 1729591987 [10:12:43]FM_GetShiftState [10:12:43]SAM_PROTO_GetShiftState [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 13 01 00 [10:12:43]Write to MH i2c: E2 08 00 07 A9 80 13 01 00 00 00 00 00 2D [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0E 00 07 A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 80 [10:12:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_GetShiftState done [10:12:43]FM_GetShiftState done [10:12:43]opened in 1729557463 [10:12:43]opened+sec_in_day 1729643863 [10:12:43]quantity*price = 0 [10:12:43]sum+1 = 1 [10:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 79 22.10.2024 10:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4690469 ФМ: 0000000000871759 ФД: 166324 ФПД: 128367500760715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166324&fm=128367500760715&tin=02508201610067®Number=0000000000091764&sum=0 [10:12:44]StoreToDocumentArchive [10:12:44]shift 536 fd 166324 [10:12:44]save to /storage/0536/doc_00166324 [10:12:44]save last doc name /storage/0536/doc_00166324 to /storage/kkm_last_doc_name [10:12:44]save OK [10:12:44]Clear old archive folders... [10:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:44]tlvbuf is 01C362B0 [10:12:44]SAM_PROTO_ClearQueue [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 09 00 00 [10:12:44]Write to MH i2c: E2 08 00 14 A9 80 09 00 00 00 00 00 00 2F [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 03 00 14 A9 00 90 00 31 [10:12:44]RAPDU: 90 00 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_ClearQueue done [10:12:44]KKMCreateOFDPacket [10:12:44]OFDProtocolAddRootSTLVToBuf [10:12:44]FM_MakeSignedData [10:12:44]FM_MakeSignedData [10:12:44]SAM_PROTO_SignData [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 0D 01 02 [10:12:44]Write to MH i2c: E2 08 00 15 A9 80 0D 01 02 00 00 00 00 37 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 15 A9 00 90 00 32 [10:12:45]RAPDU: 90 00 [10:12:45]wFMCommunicate OK [10:12:45]wFMCommunicate request_size=255 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B3 7A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 89 02 00 35 04 06 00 74 BF E3 48 [10:12:45]Write to MH i2c: E2 02 01 16 A9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B3 7A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 89 02 00 35 04 06 00 74 BF E3 48 00 00 96 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]OFD Sender: No OFD packet to send [10:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 16 A9 00 90 00 33 [10:12:45]RAPDU: 90 00 [10:12:45]wFMCommunicate OK [10:12:45]wFMCommunicate request_size=7 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 0D 02 02 02 96 8B [10:12:45]Write to MH i2c: E2 0A 00 17 A9 80 0D 02 02 02 00 96 8B 00 00 5F [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 03 00 17 A9 00 90 00 34 [10:12:45]RAPDU: 90 00 [10:12:45]wFMCommunicate OK [10:12:45]wFMCommunicate request_size=4 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 0D 03 02 [10:12:45]Write to MH i2c: E2 08 00 18 A9 80 0D 03 02 00 00 00 00 3C [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 0B 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 0B 00 18 A9 00 AB CB 8A E4 CF 7E 2F C3 90 00 60 [10:12:45]RAPDU: AB CB 8A E4 CF 7E 2F C3 90 00 [10:12:45]wFMCommunicate OK [10:12:45]SAM_PROTO_SignData done [10:12:45]FM_MakeSignedData done [10:12:45]CreateOFDProtocolMessage [10:12:45]wFMCommunicate request_size=4 [10:12:45]MH_SAM_APDU [10:12:45]CAPDU: 80 11 00 00 [10:12:45]Write to MH i2c: E2 08 00 19 A9 80 11 00 00 00 00 00 00 3C [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:45]Read from MH i2c: E2 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 17 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: E2 17 00 19 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [10:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:12:45]wFMCommunicate OK [10:12:45]CreateOFDProtocolMessage done [10:12:45]OFDSenderStorePacket 166324 [10:12:45]StoreOFDPacket docnum=166324 [10:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 BD 04 01 37 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B3 7A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 89 02 00 35 04 06 00 74 BF E3 48 96 8B AB CB 8A E4 CF 7E 2F C3 [10:12:45]CheckFolder [10:12:45]dirname=/storage/ofd_packets [10:12:45]CheckFolder done [10:12:45]ProducePacketName [10:12:45]name=ofd_packets/00166324 [10:12:45]NVStorageSaveData ofd_packets/00166324 [10:12:45]File name is /storage/ofd_packets/00166324 [10:12:45]Write 298 bytes [10:12:45]NVStorageSaveData done [10:12:45]OFDSenderStorePacket done [10:12:45]KKMCreateOFDPacket done [10:12:45]NVStorageSaveData kkm_last_timestamp [10:12:45]File name is /storage/kkm_last_timestamp [10:12:45]Write 4 bytes [10:12:45]NVStorageSaveData done [10:12:45]ExternCall_PrintAddStr [10:12:45]wPrintStart [10:12:45]Write to MH i2c: 01 00 00 1A A9 C3 [10:12:45]Write i2c OK [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 [10:12:45]MH_I2C_Read... [10:12:45]Read from MH i2c: 01 07 00 1A A9 00 00 00 00 00 FF 0F D8 [10:12:45]RasterBufferAndPrint [10:12:45]line Счет N : (1)220899 [10:12:45]line ИНН: 02508201610067 [10:12:45]line Контрольно-Кассовый Чек [10:12:45]line ПРОДАЖА [10:12:45]line ТРК (МРК, ГНК) : 21 [10:12:45]line Товар: 2710194210 [10:12:45]line ДТ-К-5 [10:12:45]line 60.000 * 0.00 [10:12:45]line = 0.00 [10:12:45]line НДС 12% НСП 1% [10:12:45]line > о реализуемом товаре [10:12:45]line ИТОГО: 0.00 [10:12:45]line НСП 1% : 0.00 [10:12:45]line НДС 12% : 0.00 [10:12:45]line Наличными: 0.00 [10:12:45]line Безнал.: 0.00 [10:12:45]line Место: АЗС № 161 "Партнер Нефть" [10:12:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:12:45]line СНО: Общий режим [10:12:45]line Чек 79 22.10.2024 10:13 [10:12:45]line Смена: 536 ФФД: 1.0 [10:12:45]line ЗНМ: 0300000104 [10:12:45]line РНМ: 0000000000091764 [10:12:45]line Версия ККМ: 001 [10:12:45]line Талоны: Топливные Талоны [10:12:45]line 4690469 [10:12:45]line ФМ: 0000000000871759 [10:12:45]line ФД: 166324 [10:12:45]line ФПД: 128367500760715 [10:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166324&fm=128367500760715&tin=02508201610067®Number=0000000000091764&sum=0 [10:12:45]OFD Sender: Processing packet 166324 [packets to send 48, broken 47] [10:12:45]ProducePacketName [10:12:45]name=ofd_packets/00166324 [10:12:45]OFD Sender: To server: pG, [10:12:45]CommunicateWithHost lk.salyk.kg:30040 [10:12:45]ConnectInit lk.salyk.kg [10:12:45]written 0, free lines is 4095 [10:12:45]Connected sock=7 [10:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 BD 04 01 37 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B3 7A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 89 02 00 35 04 06 00 74 BF E3 48 96 8B AB CB 8A E4 CF 7E 2F C3 [10:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E7 05 47 00 B2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 89 02 00 F4 03 04 00 1E 21 17 67 B6 04 01 00 00 B1 C3 E7 16 AF 0B BC C3 [10:12:46]CommunicateWithHost err = 0 [10:12:46]CheckOFDResponse [10:12:46]1017 (14) - 77093643461234 [10:12:46]1041 (16) - 0000000000871759 [10:12:46]1040 (4) - 166324 [10:12:46]1012 (4) - 22.10.2024 03:50 [10:12:46]1206 (1) - 0 [10:12:46]OFD Sender: Remove packet 166324 [10:12:46]ProducePacketName [10:12:46]name=ofd_packets/00166324 [10:12:46]NVStorageDeleteData [10:12:46]Write to MH i2c: 01 00 00 44 A9 ED [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: 01 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: 01 07 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: 01 07 00 44 A9 00 00 00 00 00 D1 0C D1 [10:12:46]RasterBufferAndPrint [10:12:46]line [10:12:46]line [10:12:46]line [10:12:46]line [10:12:46]line [10:12:46]written 0, free lines is 3287 [10:12:46]MH_Cut [10:12:46]Write to MH i2c: D1 01 00 4B A9 01 C6 [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: D1 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: D1 01 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: D1 01 00 4B A9 00 C5 [10:12:46]Write to MH i2c: 01 00 00 4C A9 F5 [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]OFD Sender: No OFD packet to send [10:12:47]*** Cut start [10:12:47]*** Partial cut [10:12:47]*** CUTSNS_PIN = 1 [10:12:47]*** CUTSNS_PIN = 0 [10:12:47]*** Brake cut motor [10:12:47]Read from MH i2c: 01 [10:12:47]MH_I2C_Read... [10:12:47]*** Stop cut motor [10:12:47]*** Cut end [10:12:47]Read from MH i2c: 01 07 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: 01 07 00 4C A9 00 00 00 00 00 FF 0F 0A [10:12:47]process_action close_receipt done [10:12:47]requested_data is exist [10:12:47]produce_requested_data [10:12:47]requested_item fm.sn is exist - process it [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 11 00 00 [10:12:47]Write to MH i2c: E2 08 00 4D A9 80 11 00 00 00 00 00 00 70 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 4D A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [10:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:12:47]wFMCommunicate OK [10:12:47]requested_item fd.num is exist - process it [10:12:47]SAM_PROTO_GetFieldsCounters [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 13 00 00 [10:12:47]Write to MH i2c: E2 08 00 4E A9 80 13 00 00 00 00 00 00 73 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 62 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 62 00 4E A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_GetFieldsCounters done [10:12:47]requested_item shift.num is exist - process it [10:12:47]requested_item shift.opened is exist - process it [10:12:47]req_shift_opened [10:12:47]FM_GetShiftState [10:12:47]SAM_PROTO_GetShiftState [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 13 01 00 [10:12:47]Write to MH i2c: E2 08 00 4F A9 80 13 01 00 00 00 00 00 75 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0E 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0E 00 4F A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C8 [10:12:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_GetShiftState done [10:12:47]FM_GetShiftState done [10:12:47]req_shift_opened done [10:12:47]requested_item shift.open_date is exist - process it [10:12:47]req_shift_open_date [10:12:47]req_shift_open_date done [10:12:47]produce_requested_data done [10:12:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166324,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:12:47]process_action_free close_receipt [10:12:47]json_value_free [10:12:47]json_value_free done [10:12:47]process_json_proto returns [10:12:47]Send response to host [10:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166324,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:12:47]free response buf [10:12:47]execute_script done [10:12:47]execute_script returns [10:12:47]free content buf [10:12:47]Sock 6.Close socket [10:12:47]Sock 6.Thread stoped [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:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:54]accept exits with 5 [10:15:54]New connection [10:15:54]New thread 3066776932 created [10:15:54]Thread 3066920292 joined [10:15:54]Waiting for new connection... [10:15:54] Sock 5.Parse request [10:15:54]Sock 5.Check first char [10:15:54]Sock 5.First char is OK [10:15:54]request: POST /json_proto HTTP/1.0 [10:15:54]Method: POST [10:15:54]URL: /json_proto [10:15:54]Method is POST - this is cgi request [10:15:54]url: /json_proto [10:15:54]query_string will be loaded in cgi processing [10:15:54]execute_cgi json_proto POST (null) [10:15:54]execute_cgi path=json_proto method=POST [10:15:54]POST find Content-Length [10:15:54]Host: 172.17.53.195:8080 [10:15:54]Content-Length: 678 [10:15:54]Content-Type: application/json [10:15:54] [10:15:54]POST finish read [10:15:54]Found Content-Length = 678 [10:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:54]execute_script... [10:15:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:54]POST & json_proto [10:15:54]process_json_proto [10:15:54]json parsed OK: [10:15:54]protocol is kg_v1.0 [10:15:54]action value=close_receipt [10:15:54]process_action close_receipt [10:15:54]cmd_close_receipt [10:15:54]MH_GetDate [10:15:54]Write to MH i2c: F0 00 00 50 A9 E8 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 09 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: F0 09 00 50 A9 00 71 7B 17 67 21 48 4A 65 73 [10:15:54]GetLastDocTimeStamp 1729591987 [10:15:54]current date 1729592177 [10:15:54]FM_GetShiftState [10:15:54]SAM_PROTO_GetShiftState [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 01 00 [10:15:54]Write to MH i2c: E2 08 00 51 A9 80 13 01 00 00 00 00 00 77 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 51 A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CA [10:15:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetShiftState done [10:15:54]FM_GetShiftState done [10:15:54]opened in 1729557463 [10:15:54]opened+sec_in_day 1729643863 [10:15:54]quantity*price = 80012 [10:15:54]sum+1 = 80013 [10:15:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 80 22.10.2024 10:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166325 ФПД: 19642870466437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101617&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166325&fm=19642870466437&tin=02508201610067®Number=0000000000091764&sum=80000 [10:15:55]StoreToDocumentArchive [10:15:55]shift 536 fd 166325 [10:15:55]save to /storage/0536/doc_00166325 [10:15:55]save last doc name /storage/0536/doc_00166325 to /storage/kkm_last_doc_name [10:15:55]save OK [10:15:55]Clear old archive folders... [10:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:55]tlvbuf is 01D21AF0 [10:15:55]SAM_PROTO_ClearQueue [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 09 00 00 [10:15:55]Write to MH i2c: E2 08 00 5E A9 80 09 00 00 00 00 00 00 79 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 5E A9 00 90 00 7B [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_ClearQueue done [10:15:55]KKMCreateOFDPacket [10:15:55]OFDProtocolAddRootSTLVToBuf [10:15:55]FM_MakeSignedData [10:15:55]FM_MakeSignedData [10:15:55]SAM_PROTO_SignData [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 01 02 [10:15:55]Write to MH i2c: E2 08 00 5F A9 80 0D 01 02 00 00 00 00 81 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 5F A9 00 90 00 7C [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]wFMCommunicate request_size=255 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 71 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 89 02 00 35 04 06 00 11 [10:15:55]Write to MH i2c: E2 02 01 60 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 71 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 89 02 00 35 04 06 00 11 00 00 28 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 60 A9 00 90 00 7D [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]wFMCommunicate request_size=10 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 02 02 05 DD 76 51 07 85 [10:15:55]Write to MH i2c: E2 0D 00 61 A9 80 0D 02 02 05 00 DD 76 51 07 85 00 00 BE [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 03 00 61 A9 00 90 00 7E [10:15:55]RAPDU: 90 00 [10:15:55]wFMCommunicate OK [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 0D 03 02 [10:15:55]Write to MH i2c: E2 08 00 62 A9 80 0D 03 02 00 00 00 00 86 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0B 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0B 00 62 A9 00 0D 6E BB 25 2E DE 27 B3 90 00 C8 [10:15:55]RAPDU: 0D 6E BB 25 2E DE 27 B3 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_SignData done [10:15:55]FM_MakeSignedData done [10:15:55]CreateOFDProtocolMessage [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 11 00 00 [10:15:55]Write to MH i2c: E2 08 00 63 A9 80 11 00 00 00 00 00 00 86 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 17 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 17 00 63 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [10:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:15:55]wFMCommunicate OK [10:15:55]CreateOFDProtocolMessage done [10:15:55]OFDSenderStorePacket 166325 [10:15:55]StoreOFDPacket docnum=166325 [10:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 7C 07 01 74 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 71 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 89 02 00 35 04 06 00 11 DD 76 51 07 85 0D 6E BB 25 2E DE 27 B3 [10:15:55]CheckFolder [10:15:55]dirname=/storage/ofd_packets [10:15:55]CheckFolder done [10:15:55]ProducePacketName [10:15:55]name=ofd_packets/00166325 [10:15:55]NVStorageSaveData ofd_packets/00166325 [10:15:55]File name is /storage/ofd_packets/00166325 [10:15:55]Write 301 bytes [10:15:55]NVStorageSaveData done [10:15:55]OFDSenderStorePacket done [10:15:55]KKMCreateOFDPacket done [10:15:55]NVStorageSaveData kkm_last_timestamp [10:15:55]File name is /storage/kkm_last_timestamp [10:15:55]Write 4 bytes [10:15:55]NVStorageSaveData done [10:15:55]ExternCall_PrintAddStr [10:15:55]wPrintStart [10:15:55]Write to MH i2c: 01 00 00 64 A9 0D [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 64 A9 00 00 00 00 00 FF 0F 22 [10:15:55]RasterBufferAndPrint [10:15:55]line Счет N : (1)220901 [10:15:55]line ИНН: 02508201610067 [10:15:55]line Контрольно-Кассовый Чек [10:15:55]line ПРОДАЖА [10:15:55]line ТРК (МРК, ГНК) : 33 [10:15:55]line Товар: 2710124130 [10:15:55]line Аи-92-К-5 [10:15:55]line 11.960 * 66.90 [10:15:55]line = 800.12 [10:15:55]line НДС 12% НСП 1% [10:15:55]line > о реализуемом товаре [10:15:55]line ОКРУГЛЕНИЕ: -0.12 [10:15:55]line ИТОГО: 800.00 [10:15:55]line Внесено: 800.00 [10:15:55]line СДАЧА: 0.00 [10:15:55]line НСП 1% : 7.08 [10:15:55]line НДС 12% : 84.97 [10:15:55]line Наличными: 800.00 [10:15:55]line Безнал.: 0.00 [10:15:55]line Место: АЗС № 161 "Партнер Нефть" [10:15:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:15:55]line СНО: Общий режим [10:15:55]line Чек 80 22.10.2024 10:16 [10:15:55]line Смена: 536 ФФД: 1.0 [10:15:55]line ЗНМ: 0300000104 [10:15:55]line РНМ: 0000000000091764 [10:15:55]line Версия ККМ: 001 [10:15:55]line ФМ: 0000000000871759 [10:15:56]line ФД: 166325 [10:15:56]line ФПД: 19642870466437 [10:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101617&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166325&fm=19642870466437&tin=02508201610067®Number=0000000000091764&sum=80000 [10:15:56]OFD Sender: Processing packet 166325 [packets to send 48, broken 47] [10:15:56]ProducePacketName [10:15:56]name=ofd_packets/00166325 [10:15:56]OFD Sender: To server: pG, [10:15:56]CommunicateWithHost lk.salyk.kg:30040 [10:15:56]ConnectInit lk.salyk.kg [10:15:56]written 0, free lines is 4095 [10:15:56]Connected sock=7 [10:15:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F1 7C 07 01 74 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 71 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 89 02 00 35 04 06 00 11 DD 76 51 07 85 0D 6E BB 25 2E DE 27 B3 [10:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 DD 47 00 01 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 89 02 00 F4 03 04 00 DD 21 17 67 B6 04 01 00 00 56 0A 51 CF 74 07 10 AD [10:15:56]CommunicateWithHost err = 0 [10:15:56]CheckOFDResponse [10:15:56]1017 (14) - 77093643461234 [10:15:56]1041 (16) - 0000000000871759 [10:15:56]1040 (4) - 166325 [10:15:56]1012 (4) - 22.10.2024 03:54 [10:15:56]1206 (1) - 0 [10:15:56]OFD Sender: Remove packet 166325 [10:15:56]ProducePacketName [10:15:56]name=ofd_packets/00166325 [10:15:56]NVStorageDeleteData [10:15:56]Write to MH i2c: 01 00 00 8F A9 38 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 8F A9 00 00 00 00 00 CE 0C 19 [10:15:56]RasterBufferAndPrint [10:15:56]line [10:15:56]line [10:15:56]line [10:15:56]line [10:15:56]line [10:15:56]written 0, free lines is 3285 [10:15:56]MH_Cut [10:15:56]Write to MH i2c: D1 01 00 96 A9 01 11 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: D1 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: D1 01 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: D1 01 00 96 A9 00 10 [10:15:56]Write to MH i2c: 01 00 00 97 A9 40 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:57]OFD Sender: No OFD packet to send [10:15:57]*** Cut start [10:15:57]*** Partial cut [10:15:57]*** CUTSNS_PIN = 1 [10:15:57]*** CUTSNS_PIN = 0 [10:15:57]*** Brake cut motor [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]*** Stop cut motor [10:15:58]*** Cut end [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 97 A9 00 00 00 00 00 FF 0F 55 [10:15:58]process_action close_receipt done [10:15:58]requested_data is exist [10:15:58]produce_requested_data [10:15:58]requested_item fm.sn is exist - process it [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 11 00 00 [10:15:58]Write to MH i2c: E2 08 00 98 A9 80 11 00 00 00 00 00 00 BB [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 98 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [10:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:15:58]wFMCommunicate OK [10:15:58]requested_item fd.num is exist - process it [10:15:58]SAM_PROTO_GetFieldsCounters [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 13 00 00 [10:15:58]Write to MH i2c: E2 08 00 99 A9 80 13 00 00 00 00 00 00 BE [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 62 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 62 00 99 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:15:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_GetFieldsCounters done [10:15:58]requested_item shift.num is exist - process it [10:15:58]requested_item shift.opened is exist - process it [10:15:58]req_shift_opened [10:15:58]FM_GetShiftState [10:15:58]SAM_PROTO_GetShiftState [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 13 01 00 [10:15:58]Write to MH i2c: E2 08 00 9A A9 80 13 01 00 00 00 00 00 C0 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0E 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0E 00 9A A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 13 [10:15:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_GetShiftState done [10:15:58]FM_GetShiftState done [10:15:58]req_shift_opened done [10:15:58]requested_item shift.open_date is exist - process it [10:15:58]req_shift_open_date [10:15:58]req_shift_open_date done [10:15:58]produce_requested_data done [10:15:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166325,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:15:58]process_action_free close_receipt [10:15:58]json_value_free [10:15:58]json_value_free done [10:15:58]process_json_proto returns [10:15:58]Send response to host [10:15:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166325,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:15:58]free response buf [10:15:58]execute_script done [10:15:58]execute_script returns [10:15:58]free content buf [10:15:58]Sock 5.Close socket [10:15:58]Sock 5.Thread stoped [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:48]accept exits with 6 [10:16:48]New connection [10:16:48]New thread 3066920292 created [10:16:48]Thread 3066776932 joined [10:16:48]Waiting for new connection... [10:16:48] Sock 6.Parse request [10:16:48]Sock 6.Check first char [10:16:48]Sock 6.First char is OK [10:16:48]request: POST /json_proto HTTP/1.0 [10:16:48]Method: POST [10:16:48]URL: /json_proto [10:16:48]Method is POST - this is cgi request [10:16:48]url: /json_proto [10:16:48]query_string will be loaded in cgi processing [10:16:48]execute_cgi json_proto POST (null) [10:16:48]execute_cgi path=json_proto method=POST [10:16:48]POST find Content-Length [10:16:48]Host: 172.17.53.195:8080 [10:16:48]Content-Length: 677 [10:16:48]Content-Type: application/json [10:16:48] [10:16:48]POST finish read [10:16:48]Found Content-Length = 677 [10:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:48]execute_script... [10:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:48]POST & json_proto [10:16:48]process_json_proto [10:16:48]json parsed OK: [10:16:48]protocol is kg_v1.0 [10:16:48]action value=close_receipt [10:16:48]process_action close_receipt [10:16:48]cmd_close_receipt [10:16:48]MH_GetDate [10:16:48]Write to MH i2c: F0 00 00 9B A9 33 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 09 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: F0 09 00 9B A9 00 A7 7B 17 67 21 48 4A 65 F4 [10:16:48]GetLastDocTimeStamp 1729592177 [10:16:48]current date 1729592231 [10:16:48]FM_GetShiftState [10:16:48]SAM_PROTO_GetShiftState [10:16:48]wFMCommunicate request_size=4 [10:16:48]MH_SAM_APDU [10:16:48]CAPDU: 80 13 01 00 [10:16:48]Write to MH i2c: E2 08 00 9C A9 80 13 01 00 00 00 00 00 C2 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:48]Read from MH i2c: E2 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 0E 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 0E 00 9C A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 15 [10:16:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:16:48]wFMCommunicate OK [10:16:48]SAM_PROTO_GetShiftState done [10:16:48]FM_GetShiftState done [10:16:48]opened in 1729557463 [10:16:48]opened+sec_in_day 1729643863 [10:16:48]quantity*price = 50010 [10:16:48]sum+1 = 50012 [10:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 81 22.10.2024 10:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166326 ФПД: 138530925755450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101711&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166326&fm=138530925755450&tin=02508201610067®Number=0000000000091764&sum=50000 [10:16:49]StoreToDocumentArchive [10:16:49]shift 536 fd 166326 [10:16:49]save to /storage/0536/doc_00166326 [10:16:49]save last doc name /storage/0536/doc_00166326 to /storage/kkm_last_doc_name [10:16:49]save OK [10:16:49]Clear old archive folders... [10:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:49]tlvbuf is 01A8C400 [10:16:49]SAM_PROTO_ClearQueue [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 09 00 00 [10:16:49]Write to MH i2c: E2 08 00 A9 A9 80 09 00 00 00 00 00 00 C4 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 A9 A9 00 90 00 C6 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_ClearQueue done [10:16:49]KKMCreateOFDPacket [10:16:49]OFDProtocolAddRootSTLVToBuf [10:16:49]FM_MakeSignedData [10:16:49]FM_MakeSignedData [10:16:49]SAM_PROTO_SignData [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 01 02 [10:16:49]Write to MH i2c: E2 08 00 AA A9 80 0D 01 02 00 00 00 00 CC [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 AA A9 00 90 00 C7 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=255 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A7 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 89 02 00 35 04 06 00 7D [10:16:49]Write to MH i2c: E2 02 01 AB A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A7 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 89 02 00 35 04 06 00 7D 00 00 03 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 AB A9 00 90 00 C8 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=10 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 02 02 05 FE 3E 9E BC 3A [10:16:49]Write to MH i2c: E2 0D 00 AC A9 80 0D 02 02 05 00 FE 3E 9E BC 3A 00 00 A9 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 AC A9 00 90 00 C9 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 03 02 [10:16:49]Write to MH i2c: E2 08 00 AD A9 80 0D 03 02 00 00 00 00 D1 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:50]Read from MH i2c: E2 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 0B 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 0B 00 AD A9 00 67 4C B5 33 00 94 5E 3B 90 00 9A [10:16:50]RAPDU: 67 4C B5 33 00 94 5E 3B 90 00 [10:16:50]wFMCommunicate OK [10:16:50]SAM_PROTO_SignData done [10:16:50]FM_MakeSignedData done [10:16:50]CreateOFDProtocolMessage [10:16:50]wFMCommunicate request_size=4 [10:16:50]MH_SAM_APDU [10:16:50]CAPDU: 80 11 00 00 [10:16:50]Write to MH i2c: E2 08 00 AE A9 80 11 00 00 00 00 00 00 D1 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:50]Read from MH i2c: E2 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 17 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: E2 17 00 AE A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [10:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:16:50]wFMCommunicate OK [10:16:50]CreateOFDProtocolMessage done [10:16:50]OFDSenderStorePacket 166326 [10:16:50]StoreOFDPacket docnum=166326 [10:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 87 07 01 CF 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A7 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 89 02 00 35 04 06 00 7D FE 3E 9E BC 3A 67 4C B5 33 00 94 5E 3B [10:16:50]CheckFolder [10:16:50]dirname=/storage/ofd_packets [10:16:50]CheckFolder done [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00166326 [10:16:50]NVStorageSaveData ofd_packets/00166326 [10:16:50]File name is /storage/ofd_packets/00166326 [10:16:50]Write 301 bytes [10:16:50]NVStorageSaveData done [10:16:50]OFDSenderStorePacket done [10:16:50]KKMCreateOFDPacket done [10:16:50]NVStorageSaveData kkm_last_timestamp [10:16:50]File name is /storage/kkm_last_timestamp [10:16:50]Write 4 bytes [10:16:50]NVStorageSaveData done [10:16:50]ExternCall_PrintAddStr [10:16:50]wPrintStart [10:16:50]Write to MH i2c: 01 00 00 AF A9 58 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 AF A9 00 00 00 00 00 FF 0F 6D [10:16:50]RasterBufferAndPrint [10:16:50]line Счет N : (1)220902 [10:16:50]line ИНН: 02508201610067 [10:16:50]line Контрольно-Кассовый Чек [10:16:50]line ПРОДАЖА [10:16:50]line ТРК (МРК, ГНК) : 44 [10:16:50]line Товар: 2710124500 [10:16:50]line Аи-95-К-5 [10:16:50]line 6.740 * 74.20 [10:16:50]line = 500.11 [10:16:50]line НДС 12% НСП 1% [10:16:50]line > о реализуемом товаре [10:16:50]line ОКРУГЛЕНИЕ: -0.11 [10:16:50]line ИТОГО: 500.00 [10:16:50]line Внесено: 500.00 [10:16:50]line СДАЧА: 0.00 [10:16:50]line НСП 1% : 4.43 [10:16:50]line НДС 12% : 53.11 [10:16:50]line Наличными: 500.00 [10:16:50]line Безнал.: 0.00 [10:16:50]line Место: АЗС № 161 "Партнер Нефть" [10:16:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:16:50]line СНО: Общий режим [10:16:50]line Чек 81 22.10.2024 10:17 [10:16:50]line Смена: 536 ФФД: 1.0 [10:16:50]line ЗНМ: 0300000104 [10:16:50]line РНМ: 0000000000091764 [10:16:50]line Версия ККМ: 001 [10:16:50]line ФМ: 0000000000871759 [10:16:50]line ФД: 166326 [10:16:50]line ФПД: 138530925755450 [10:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101711&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166326&fm=138530925755450&tin=02508201610067®Number=0000000000091764&sum=50000 [10:16:50]OFD Sender: Processing packet 166326 [packets to send 48, broken 47] [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00166326 [10:16:50]OFD Sender: To server: pG, [10:16:50]CommunicateWithHost lk.salyk.kg:30040 [10:16:50]ConnectInit lk.salyk.kg [10:16:50]written 0, free lines is 4095 [10:16:50]Connected sock=7 [10:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 87 07 01 CF 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A7 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 89 02 00 35 04 06 00 7D FE 3E 9E BC 3A 67 4C B5 33 00 94 5E 3B [10:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 09 47 00 54 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 89 02 00 F4 03 04 00 13 22 17 67 B6 04 01 00 00 52 A6 69 F0 F5 FA 11 1C [10:16:50]CommunicateWithHost err = 0 [10:16:50]CheckOFDResponse [10:16:50]1017 (14) - 77093643461234 [10:16:50]1041 (16) - 0000000000871759 [10:16:50]1040 (4) - 166326 [10:16:50]1012 (4) - 22.10.2024 03:54 [10:16:50]1206 (1) - 0 [10:16:50]OFD Sender: Remove packet 166326 [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00166326 [10:16:50]NVStorageDeleteData [10:16:50]Write to MH i2c: 01 00 00 DA A9 83 [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: 01 07 00 DA A9 00 00 00 00 00 BB 0C 51 [10:16:50]RasterBufferAndPrint [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]line [10:16:50]written 0, free lines is 3266 [10:16:50]MH_Cut [10:16:50]Write to MH i2c: D1 01 00 E1 A9 01 5C [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 01 00 [10:16:50]MH_I2C_Read... [10:16:50]Read from MH i2c: D1 01 00 E1 A9 00 5B [10:16:50]Write to MH i2c: 01 00 00 E2 A9 8B [10:16:50]Write i2c OK [10:16:50]MH_I2C_Read... [10:16:51]OFD Sender: No OFD packet to send [10:16:51]*** Cut start [10:16:51]*** Partial cut [10:16:51]*** CUTSNS_PIN = 1 [10:16:51]*** CUTSNS_PIN = 0 [10:16:51]*** Brake cut motor [10:16:52]Read from MH i2c: 01 [10:16:52]MH_I2C_Read... [10:16:52]*** Stop cut motor [10:16:52]*** Cut end [10:16:52]Read from MH i2c: 01 07 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: 01 07 00 E2 A9 00 00 00 00 00 FF 0F A0 [10:16:52]process_action close_receipt done [10:16:52]requested_data is exist [10:16:52]produce_requested_data [10:16:52]requested_item fm.sn is exist - process it [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 11 00 00 [10:16:52]Write to MH i2c: E2 08 00 E3 A9 80 11 00 00 00 00 00 00 06 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 17 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 17 00 E3 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [10:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:16:52]wFMCommunicate OK [10:16:52]requested_item fd.num is exist - process it [10:16:52]SAM_PROTO_GetFieldsCounters [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 13 00 00 [10:16:52]Write to MH i2c: E2 08 00 E4 A9 80 13 00 00 00 00 00 00 09 [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 62 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 62 00 E4 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [10:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_GetFieldsCounters done [10:16:52]requested_item shift.num is exist - process it [10:16:52]requested_item shift.opened is exist - process it [10:16:52]req_shift_opened [10:16:52]FM_GetShiftState [10:16:52]SAM_PROTO_GetShiftState [10:16:52]wFMCommunicate request_size=4 [10:16:52]MH_SAM_APDU [10:16:52]CAPDU: 80 13 01 00 [10:16:52]Write to MH i2c: E2 08 00 E5 A9 80 13 01 00 00 00 00 00 0B [10:16:52]Write i2c OK [10:16:52]MH_I2C_Read... [10:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 E5 A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5E [10:16:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_GetShiftState done [10:16:52]FM_GetShiftState done [10:16:52]req_shift_opened done [10:16:52]requested_item shift.open_date is exist - process it [10:16:52]req_shift_open_date [10:16:52]req_shift_open_date done [10:16:52]produce_requested_data done [10:16:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166326,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:16:52]process_action_free close_receipt [10:16:52]json_value_free [10:16:52]json_value_free done [10:16:52]process_json_proto returns [10:16:52]Send response to host [10:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166326,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:16:52]free response buf [10:16:52]execute_script done [10:16:52]execute_script returns [10:16:52]free content buf [10:16:52]Sock 6.Close socket [10:16:52]Sock 6.Thread stoped [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:32]accept exits with 5 [10:17:32]New connection [10:17:32]New thread 3066776932 created [10:17:32]Thread 3066920292 joined [10:17:32]Waiting for new connection... [10:17:32] Sock 5.Parse request [10:17:32]Sock 5.Check first char [10:17:32]Sock 5.First char is OK [10:17:32]request: POST /json_proto HTTP/1.0 [10:17:32]Method: POST [10:17:32]URL: /json_proto [10:17:32]Method is POST - this is cgi request [10:17:32]url: /json_proto [10:17:32]query_string will be loaded in cgi processing [10:17:32]execute_cgi json_proto POST (null) [10:17:32]execute_cgi path=json_proto method=POST [10:17:32]POST find Content-Length [10:17:32]Host: 172.17.53.195:8080 [10:17:32]Content-Length: 769 [10:17:32]Content-Type: application/json [10:17:32] [10:17:32]POST finish read [10:17:32]Found Content-Length = 769 [10:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:32]execute_script... [10:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:32]POST & json_proto [10:17:32]process_json_proto [10:17:32]json parsed OK: [10:17:32]protocol is kg_v1.0 [10:17:32]action value=close_receipt [10:17:32]process_action close_receipt [10:17:32]cmd_close_receipt [10:17:32]MH_GetDate [10:17:32]Write to MH i2c: F0 00 00 E6 A9 7E [10:17:32]Write i2c OK [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: F0 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: F0 09 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: F0 09 00 E6 A9 00 D4 7B 17 67 21 48 4A 65 6C [10:17:32]GetLastDocTimeStamp 1729592231 [10:17:32]current date 1729592276 [10:17:32]FM_GetShiftState [10:17:32]SAM_PROTO_GetShiftState [10:17:32]wFMCommunicate request_size=4 [10:17:32]MH_SAM_APDU [10:17:32]CAPDU: 80 13 01 00 [10:17:32]Write to MH i2c: E2 08 00 E7 A9 80 13 01 00 00 00 00 00 0D [10:17:32]Write i2c OK [10:17:32]MH_I2C_Read... [10:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:32]Read from MH i2c: E2 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 0E 00 [10:17:32]MH_I2C_Read... [10:17:32]Read from MH i2c: E2 0E 00 E7 A9 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 60 [10:17:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:17:32]wFMCommunicate OK [10:17:32]SAM_PROTO_GetShiftState done [10:17:32]FM_GetShiftState done [10:17:32]opened in 1729557463 [10:17:32]opened+sec_in_day 1729643863 [10:17:32]quantity*price = 100021 [10:17:32]sum+1 = 100023 [10:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 82 22.10.2024 10:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166327 ФПД: 3018179696255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166327&fm=3018179696255&tin=02508201610067®Number=0000000000091764&sum=100022 [10:17:33]StoreToDocumentArchive [10:17:33]shift 536 fd 166327 [10:17:33]save to /storage/0536/doc_00166327 [10:17:33]save last doc name /storage/0536/doc_00166327 to /storage/kkm_last_doc_name [10:17:33]save OK [10:17:33]Clear old archive folders... [10:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:33]tlvbuf is 01891FC0 [10:17:33]SAM_PROTO_ClearQueue [10:17:33]wFMCommunicate request_size=4 [10:17:33]MH_SAM_APDU [10:17:33]CAPDU: 80 09 00 00 [10:17:33]Write to MH i2c: E2 08 00 F4 A9 80 09 00 00 00 00 00 00 0F [10:17:33]Write i2c OK [10:17:33]MH_I2C_Read... [10:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:33]Read from MH i2c: E2 [10:17:33]MH_I2C_Read... [10:17:33]Read from MH i2c: E2 03 00 [10:17:33]MH_I2C_Read... [10:17:33]Read from MH i2c: E2 03 00 F4 A9 00 90 00 11 [10:17:33]RAPDU: 90 00 [10:17:33]wFMCommunicate OK [10:17:33]SAM_PROTO_ClearQueue done [10:17:33]KKMCreateOFDPacket [10:17:33]OFDProtocolAddRootSTLVToBuf [10:17:33]FM_MakeSignedData [10:17:33]FM_MakeSignedData [10:17:33]SAM_PROTO_SignData [10:17:33]wFMCommunicate request_size=4 [10:17:33]MH_SAM_APDU [10:17:33]CAPDU: 80 0D 01 02 [10:17:33]Write to MH i2c: E2 08 00 F5 A9 80 0D 01 02 00 00 00 00 17 [10:17:33]Write i2c OK [10:17:33]MH_I2C_Read... [10:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:33]Read from MH i2c: E2 [10:17:33]MH_I2C_Read... [10:17:33]Read from MH i2c: E2 03 00 [10:17:33]MH_I2C_Read... [10:17:33]Read from MH i2c: E2 03 00 F5 A9 00 90 00 12 [10:17:33]RAPDU: 90 00 [10:17:33]wFMCommunicate OK [10:17:33]wFMCommunicate request_size=255 [10:17:33]MH_SAM_APDU [10:17:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D4 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 89 02 00 35 04 06 00 02 [10:17:33]Write to MH i2c: E2 02 01 F6 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D4 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 89 02 00 35 04 06 00 02 00 00 73 [10:17:33]Write i2c OK [10:17:33]MH_I2C_Read... [10:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:34]Read from MH i2c: E2 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 03 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 03 00 F6 A9 00 90 00 13 [10:17:34]RAPDU: 90 00 [10:17:34]wFMCommunicate OK [10:17:34]wFMCommunicate request_size=10 [10:17:34]MH_SAM_APDU [10:17:34]CAPDU: 80 0D 02 02 05 BE B9 87 56 7F [10:17:34]Write to MH i2c: E2 0D 00 F7 A9 80 0D 02 02 05 00 BE B9 87 56 7F 00 00 F7 [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:34]Read from MH i2c: E2 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 03 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 03 00 F7 A9 00 90 00 14 [10:17:34]RAPDU: 90 00 [10:17:34]wFMCommunicate OK [10:17:34]wFMCommunicate request_size=4 [10:17:34]MH_SAM_APDU [10:17:34]CAPDU: 80 0D 03 02 [10:17:34]Write to MH i2c: E2 08 00 F8 A9 80 0D 03 02 00 00 00 00 1C [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:34]Read from MH i2c: E2 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 0B 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 0B 00 F8 A9 00 26 9B F2 0A 03 BE 74 54 90 00 63 [10:17:34]RAPDU: 26 9B F2 0A 03 BE 74 54 90 00 [10:17:34]wFMCommunicate OK [10:17:34]SAM_PROTO_SignData done [10:17:34]FM_MakeSignedData done [10:17:34]CreateOFDProtocolMessage [10:17:34]wFMCommunicate request_size=4 [10:17:34]MH_SAM_APDU [10:17:34]CAPDU: 80 11 00 00 [10:17:34]Write to MH i2c: E2 08 00 F9 A9 80 11 00 00 00 00 00 00 1C [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:34]Read from MH i2c: E2 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 17 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: E2 17 00 F9 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [10:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:17:34]wFMCommunicate OK [10:17:34]CreateOFDProtocolMessage done [10:17:34]OFDSenderStorePacket 166327 [10:17:34]StoreOFDPacket docnum=166327 [10:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 02 07 01 64 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D4 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 89 02 00 35 04 06 00 02 BE B9 87 56 7F 26 9B F2 0A 03 BE 74 54 [10:17:34]CheckFolder [10:17:34]dirname=/storage/ofd_packets [10:17:34]CheckFolder done [10:17:34]ProducePacketName [10:17:34]name=ofd_packets/00166327 [10:17:34]NVStorageSaveData ofd_packets/00166327 [10:17:34]File name is /storage/ofd_packets/00166327 [10:17:34]Write 301 bytes [10:17:34]NVStorageSaveData done [10:17:34]OFDSenderStorePacket done [10:17:34]KKMCreateOFDPacket done [10:17:34]NVStorageSaveData kkm_last_timestamp [10:17:34]File name is /storage/kkm_last_timestamp [10:17:34]Write 4 bytes [10:17:34]NVStorageSaveData done [10:17:34]ExternCall_PrintAddStr [10:17:34]wPrintStart [10:17:34]Write to MH i2c: 01 00 00 FA A9 A3 [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 07 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 07 00 FA A9 00 00 00 00 00 FF 0F B8 [10:17:34]RasterBufferAndPrint [10:17:34]line Счет N : (1)220904 [10:17:34]line ИНН: 02508201610067 [10:17:34]line Контрольно-Кассовый Чек [10:17:34]line ПРОДАЖА [10:17:34]line ТРК (МРК, ГНК) : 24 [10:17:34]line Товар: 2710124500 [10:17:34]line Аи-95-К-5 [10:17:34]line 13.480 * 74.20 [10:17:34]line = 1000.22 [10:17:34]line НДС 12% НСП 1% [10:17:34]line > о реализуемом товаре [10:17:34]line ИТОГО: 1000.22 [10:17:34]line НСП 1% : 8.85 [10:17:34]line НДС 12% : 106.22 [10:17:34]line Наличными: 0.00 [10:17:34]line Безнал.: 1000.22 [10:17:34]line Место: АЗС № 161 "Партнер Нефть" [10:17:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:17:34]line СНО: Общий режим [10:17:34]line Чек 82 22.10.2024 10:17 [10:17:34]line Смена: 536 ФФД: 1.0 [10:17:34]line ЗНМ: 0300000104 [10:17:34]line РНМ: 0000000000091764 [10:17:34]line Версия ККМ: 001 [10:17:34]line Платежная система: Mbank [10:17:34]line ФМ: 0000000000871759 [10:17:34]line ФД: 166327 [10:17:34]line ФПД: 3018179696255 [10:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166327&fm=3018179696255&tin=02508201610067®Number=0000000000091764&sum=100022 [10:17:34]written 0, free lines is 4095 [10:17:34]OFD Sender: Processing packet 166327 [packets to send 48, broken 47] [10:17:34]ProducePacketName [10:17:34]name=ofd_packets/00166327 [10:17:34]OFD Sender: To server: pG, [10:17:34]CommunicateWithHost lk.salyk.kg:30040 [10:17:34]ConnectInit lk.salyk.kg [10:17:34]Connected sock=7 [10:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7C 02 07 01 64 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D4 7B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 89 02 00 35 04 06 00 02 BE B9 87 56 7F 26 9B F2 0A 03 BE 74 54 [10:17:34]Write to MH i2c: 01 00 00 23 AA CD [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 07 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: 01 07 00 23 AA 00 00 00 00 00 ED 0C CD [10:17:34]RasterBufferAndPrint [10:17:34]line [10:17:34]line [10:17:34]line [10:17:34]line [10:17:34]line [10:17:34]written 0, free lines is 3318 [10:17:34]MH_Cut [10:17:34]Write to MH i2c: D1 01 00 2A AA 01 A6 [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: D1 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: D1 01 00 [10:17:34]MH_I2C_Read... [10:17:34]Read from MH i2c: D1 01 00 2A AA 00 A5 [10:17:34]Write to MH i2c: 01 00 00 2B AA D5 [10:17:34]Write i2c OK [10:17:34]MH_I2C_Read... [10:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 47 47 00 64 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 89 02 00 F4 03 04 00 3F 22 17 67 B6 04 01 00 00 C8 63 0F 0B 79 57 B2 A8 [10:17:35]CommunicateWithHost err = 0 [10:17:35]CheckOFDResponse [10:17:35]1017 (14) - 77093643461234 [10:17:35]1041 (16) - 0000000000871759 [10:17:35]1040 (4) - 166327 [10:17:35]1012 (4) - 22.10.2024 03:55 [10:17:35]1206 (1) - 0 [10:17:35]OFD Sender: Remove packet 166327 [10:17:35]ProducePacketName [10:17:35]name=ofd_packets/00166327 [10:17:35]NVStorageDeleteData [10:17:35]OFD Sender: No OFD packet to send [10:17:35]*** Cut start [10:17:35]*** Partial cut [10:17:35]*** CUTSNS_PIN = 1 [10:17:35]*** CUTSNS_PIN = 0 [10:17:35]*** Brake cut motor [10:17:36]Read from MH i2c: 01 [10:17:36]MH_I2C_Read... [10:17:36]*** Stop cut motor [10:17:36]*** Cut end [10:17:36]Read from MH i2c: 01 07 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: 01 07 00 2B AA 00 00 00 00 00 FF 0F EA [10:17:36]process_action close_receipt done [10:17:36]requested_data is exist [10:17:36]produce_requested_data [10:17:36]requested_item fm.sn is exist - process it [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 11 00 00 [10:17:36]Write to MH i2c: E2 08 00 2C AA 80 11 00 00 00 00 00 00 50 [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 17 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 17 00 2C AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [10:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:17:36]wFMCommunicate OK [10:17:36]requested_item fd.num is exist - process it [10:17:36]SAM_PROTO_GetFieldsCounters [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 13 00 00 [10:17:36]Write to MH i2c: E2 08 00 2D AA 80 13 00 00 00 00 00 00 53 [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 62 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 62 00 2D AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:36]wFMCommunicate OK [10:17:36]SAM_PROTO_GetFieldsCounters done [10:17:36]requested_item shift.num is exist - process it [10:17:36]requested_item shift.opened is exist - process it [10:17:36]req_shift_opened [10:17:36]FM_GetShiftState [10:17:36]SAM_PROTO_GetShiftState [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 13 01 00 [10:17:36]Write to MH i2c: E2 08 00 2E AA 80 13 01 00 00 00 00 00 55 [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 2E AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A8 [10:17:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:17:36]wFMCommunicate OK [10:17:36]SAM_PROTO_GetShiftState done [10:17:36]FM_GetShiftState done [10:17:36]req_shift_opened done [10:17:36]requested_item shift.open_date is exist - process it [10:17:36]req_shift_open_date [10:17:36]req_shift_open_date done [10:17:36]produce_requested_data done [10:17:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166327,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:17:36]process_action_free close_receipt [10:17:36]json_value_free [10:17:36]json_value_free done [10:17:36]process_json_proto returns [10:17:36]Send response to host [10:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166327,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:17:36]free response buf [10:17:36]execute_script done [10:17:36]execute_script returns [10:17:36]free content buf [10:17:36]Sock 5.Close socket [10:17:36]Sock 5.Thread stoped [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:32]accept exits with 6 [10:18:32]New connection [10:18:32]New thread 3066920292 created [10:18:32]Thread 3066776932 joined [10:18:32]Waiting for new connection... [10:18:32] Sock 6.Parse request [10:18:32]Sock 6.Check first char [10:18:32]Sock 6.First char is OK [10:18:32]request: POST /json_proto HTTP/1.0 [10:18:32]Method: POST [10:18:32]URL: /json_proto [10:18:32]Method is POST - this is cgi request [10:18:32]url: /json_proto [10:18:32]query_string will be loaded in cgi processing [10:18:32]execute_cgi json_proto POST (null) [10:18:32]execute_cgi path=json_proto method=POST [10:18:32]POST find Content-Length [10:18:32]Host: 172.17.53.195:8080 [10:18:32]Content-Length: 763 [10:18:32]Content-Type: application/json [10:18:32] [10:18:32]POST finish read [10:18:32]Found Content-Length = 763 [10:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:32]execute_script... [10:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:32]POST & json_proto [10:18:32]process_json_proto [10:18:32]json parsed OK: [10:18:32]protocol is kg_v1.0 [10:18:32]action value=close_receipt [10:18:32]process_action close_receipt [10:18:32]cmd_close_receipt [10:18:32]MH_GetDate [10:18:32]Write to MH i2c: F0 00 00 2F AA C8 [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: F0 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: F0 09 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: F0 09 00 2F AA 00 0F 7C 17 67 21 48 4A 65 F2 [10:18:32]GetLastDocTimeStamp 1729592276 [10:18:32]current date 1729592335 [10:18:32]FM_GetShiftState [10:18:32]SAM_PROTO_GetShiftState [10:18:32]wFMCommunicate request_size=4 [10:18:32]MH_SAM_APDU [10:18:32]CAPDU: 80 13 01 00 [10:18:32]Write to MH i2c: E2 08 00 30 AA 80 13 01 00 00 00 00 00 57 [10:18:32]Write i2c OK [10:18:32]MH_I2C_Read... [10:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:32]Read from MH i2c: E2 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 0E 00 [10:18:32]MH_I2C_Read... [10:18:32]Read from MH i2c: E2 0E 00 30 AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AA [10:18:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:18:32]wFMCommunicate OK [10:18:32]SAM_PROTO_GetShiftState done [10:18:32]FM_GetShiftState done [10:18:32]opened in 1729557463 [10:18:32]opened+sec_in_day 1729643863 [10:18:32]quantity*price = 50063 [10:18:32]sum+1 = 50064 [10:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 83 22.10.2024 10:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166328 ФПД: 216793262464183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166328&fm=216793262464183&tin=02508201610067®Number=0000000000091764&sum=50063 [10:18:33]StoreToDocumentArchive [10:18:33]shift 536 fd 166328 [10:18:33]save to /storage/0536/doc_00166328 [10:18:33]save last doc name /storage/0536/doc_00166328 to /storage/kkm_last_doc_name [10:18:33]save OK [10:18:33]Clear old archive folders... [10:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:18:33]tlvbuf is 01891950 [10:18:33]SAM_PROTO_ClearQueue [10:18:33]wFMCommunicate request_size=4 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 09 00 00 [10:18:33]Write to MH i2c: E2 08 00 3D AA 80 09 00 00 00 00 00 00 59 [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 3D AA 00 90 00 5B [10:18:33]RAPDU: 90 00 [10:18:33]wFMCommunicate OK [10:18:33]SAM_PROTO_ClearQueue done [10:18:33]KKMCreateOFDPacket [10:18:33]OFDProtocolAddRootSTLVToBuf [10:18:33]FM_MakeSignedData [10:18:33]FM_MakeSignedData [10:18:33]SAM_PROTO_SignData [10:18:33]wFMCommunicate request_size=4 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 0D 01 02 [10:18:33]Write to MH i2c: E2 08 00 3E AA 80 0D 01 02 00 00 00 00 61 [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 3E AA 00 90 00 5C [10:18:33]RAPDU: 90 00 [10:18:33]wFMCommunicate OK [10:18:33]wFMCommunicate request_size=255 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0F 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 89 02 00 35 04 06 00 C5 2C 1D 66 [10:18:33]Write to MH i2c: E2 02 01 3F AA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0F 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 89 02 00 35 04 06 00 C5 2C 1D 66 00 00 20 [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 3F AA 00 90 00 5D [10:18:33]RAPDU: 90 00 [10:18:33]wFMCommunicate OK [10:18:33]wFMCommunicate request_size=7 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 0D 02 02 02 1C B7 [10:18:33]Write to MH i2c: E2 0A 00 40 AA 80 0D 02 02 02 00 1C B7 00 00 3B [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 03 00 40 AA 00 90 00 5E [10:18:33]RAPDU: 90 00 [10:18:33]wFMCommunicate OK [10:18:33]wFMCommunicate request_size=4 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 0D 03 02 [10:18:33]Write to MH i2c: E2 08 00 41 AA 80 0D 03 02 00 00 00 00 66 [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 0B 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 0B 00 41 AA 00 DA FB E4 61 0D 4D 75 FD 90 00 4D [10:18:33]RAPDU: DA FB E4 61 0D 4D 75 FD 90 00 [10:18:33]wFMCommunicate OK [10:18:33]SAM_PROTO_SignData done [10:18:33]FM_MakeSignedData done [10:18:33]CreateOFDProtocolMessage [10:18:33]wFMCommunicate request_size=4 [10:18:33]MH_SAM_APDU [10:18:33]CAPDU: 80 11 00 00 [10:18:33]Write to MH i2c: E2 08 00 42 AA 80 11 00 00 00 00 00 00 66 [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:33]Read from MH i2c: E2 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 17 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: E2 17 00 42 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [10:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:18:33]wFMCommunicate OK [10:18:33]CreateOFDProtocolMessage done [10:18:33]OFDSenderStorePacket 166328 [10:18:33]StoreOFDPacket docnum=166328 [10:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A A4 04 01 CF 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0F 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 89 02 00 35 04 06 00 C5 2C 1D 66 1C B7 DA FB E4 61 0D 4D 75 FD [10:18:33]CheckFolder [10:18:33]dirname=/storage/ofd_packets [10:18:33]CheckFolder done [10:18:33]ProducePacketName [10:18:33]name=ofd_packets/00166328 [10:18:33]NVStorageSaveData ofd_packets/00166328 [10:18:33]File name is /storage/ofd_packets/00166328 [10:18:33]Write 298 bytes [10:18:33]NVStorageSaveData done [10:18:33]OFDSenderStorePacket done [10:18:33]KKMCreateOFDPacket done [10:18:33]NVStorageSaveData kkm_last_timestamp [10:18:33]File name is /storage/kkm_last_timestamp [10:18:33]Write 4 bytes [10:18:33]NVStorageSaveData done [10:18:33]ExternCall_PrintAddStr [10:18:33]wPrintStart [10:18:33]Write to MH i2c: 01 00 00 43 AA ED [10:18:33]Write i2c OK [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: 01 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: 01 07 00 [10:18:33]MH_I2C_Read... [10:18:33]Read from MH i2c: 01 07 00 43 AA 00 00 00 00 00 FF 0F 02 [10:18:34]RasterBufferAndPrint [10:18:34]line Счет N : (1)220905 [10:18:34]line ИНН: 02508201610067 [10:18:34]line Контрольно-Кассовый Чек [10:18:34]line ПРОДАЖА [10:18:34]line ТРК (МРК, ГНК) : 11 [10:18:34]line Товар: 2710194210 [10:18:34]line ДТ-К-5 [10:18:34]line 6.570 * 76.20 [10:18:34]line = 500.63 [10:18:34]line НДС 12% НСП 1% [10:18:34]line > о реализуемом товаре [10:18:34]line ИТОГО: 500.63 [10:18:34]line НСП 1% : 4.43 [10:18:34]line НДС 12% : 53.16 [10:18:34]line Наличными: 0.00 [10:18:34]line Безнал.: 500.63 [10:18:34]line Место: АЗС № 161 "Партнер Нефть" [10:18:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:18:34]line СНО: Общий режим [10:18:34]line Чек 83 22.10.2024 10:18 [10:18:34]line Смена: 536 ФФД: 1.0 [10:18:34]line ЗНМ: 0300000104 [10:18:34]line РНМ: 0000000000091764 [10:18:34]line Версия ККМ: 001 [10:18:34]line Платежная система: Mbank [10:18:34]line ФМ: 0000000000871759 [10:18:34]line ФД: 166328 [10:18:34]line ФПД: 216793262464183 [10:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166328&fm=216793262464183&tin=02508201610067®Number=0000000000091764&sum=50063 [10:18:34]OFD Sender: Processing packet 166328 [packets to send 48, broken 47] [10:18:34]ProducePacketName [10:18:34]name=ofd_packets/00166328 [10:18:34]OFD Sender: To server: pG, [10:18:34]CommunicateWithHost lk.salyk.kg:30040 [10:18:34]ConnectInit lk.salyk.kg [10:18:34]written 0, free lines is 4095 [10:18:34]Connected sock=7 [10:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1A A4 04 01 CF 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0F 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 89 02 00 35 04 06 00 C5 2C 1D 66 1C B7 DA FB E4 61 0D 4D 75 FD [10:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 50 47 00 F6 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 89 02 00 F4 03 04 00 7B 22 17 67 B6 04 01 00 00 1E 36 18 74 8F 63 56 55 [10:18:34]CommunicateWithHost err = 0 [10:18:34]CheckOFDResponse [10:18:34]1017 (14) - 77093643461234 [10:18:34]1041 (16) - 0000000000871759 [10:18:34]1040 (4) - 166328 [10:18:34]1012 (4) - 22.10.2024 03:56 [10:18:34]1206 (1) - 0 [10:18:34]OFD Sender: Remove packet 166328 [10:18:34]ProducePacketName [10:18:34]name=ofd_packets/00166328 [10:18:34]NVStorageDeleteData [10:18:34]Write to MH i2c: 01 00 00 6C AA 16 [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: 01 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: 01 07 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: 01 07 00 6C AA 00 00 00 00 00 E8 0C 11 [10:18:34]RasterBufferAndPrint [10:18:34]line [10:18:34]line [10:18:34]line [10:18:34]line [10:18:34]line [10:18:34]written 0, free lines is 3311 [10:18:34]MH_Cut [10:18:34]Write to MH i2c: D1 01 00 73 AA 01 EF [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: D1 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: D1 01 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: D1 01 00 73 AA 00 EE [10:18:34]Write to MH i2c: 01 00 00 74 AA 1E [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:35]OFD Sender: No OFD packet to send [10:18:35]*** Cut start [10:18:35]*** Partial cut [10:18:35]*** CUTSNS_PIN = 1 [10:18:35]*** CUTSNS_PIN = 0 [10:18:35]*** Brake cut motor [10:18:36]Read from MH i2c: 01 [10:18:36]MH_I2C_Read... [10:18:36]*** Stop cut motor [10:18:36]*** Cut end [10:18:36]Read from MH i2c: 01 07 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 07 00 74 AA 00 00 00 00 00 FF 0F 33 [10:18:36]process_action close_receipt done [10:18:36]requested_data is exist [10:18:36]produce_requested_data [10:18:36]requested_item fm.sn is exist - process it [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 11 00 00 [10:18:36]Write to MH i2c: E2 08 00 75 AA 80 11 00 00 00 00 00 00 99 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 75 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [10:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:18:36]wFMCommunicate OK [10:18:36]requested_item fd.num is exist - process it [10:18:36]SAM_PROTO_GetFieldsCounters [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 13 00 00 [10:18:36]Write to MH i2c: E2 08 00 76 AA 80 13 00 00 00 00 00 00 9C [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 62 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 62 00 76 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:18:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:36]wFMCommunicate OK [10:18:36]SAM_PROTO_GetFieldsCounters done [10:18:36]requested_item shift.num is exist - process it [10:18:36]requested_item shift.opened is exist - process it [10:18:36]req_shift_opened [10:18:36]FM_GetShiftState [10:18:36]SAM_PROTO_GetShiftState [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 13 01 00 [10:18:36]Write to MH i2c: E2 08 00 77 AA 80 13 01 00 00 00 00 00 9E [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 0E 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 0E 00 77 AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F1 [10:18:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:18:36]wFMCommunicate OK [10:18:36]SAM_PROTO_GetShiftState done [10:18:36]FM_GetShiftState done [10:18:36]req_shift_opened done [10:18:36]requested_item shift.open_date is exist - process it [10:18:36]req_shift_open_date [10:18:36]req_shift_open_date done [10:18:36]produce_requested_data done [10:18:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166328,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:18:36]process_action_free close_receipt [10:18:36]json_value_free [10:18:36]json_value_free done [10:18:36]process_json_proto returns [10:18:36]Send response to host [10:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166328,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:18:36]free response buf [10:18:36]execute_script done [10:18:36]execute_script returns [10:18:36]free content buf [10:18:36]Sock 6.Close socket [10:18:36]Sock 6.Thread stoped [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:13]accept exits with 5 [10:22:13]New connection [10:22:13]New thread 3066776932 created [10:22:13]Thread 3066920292 joined [10:22:13]Waiting for new connection... [10:22:13] Sock 5.Parse request [10:22:13]Sock 5.Check first char [10:22:13]Sock 5.First char is OK [10:22:13]request: POST /json_proto HTTP/1.0 [10:22:13]Method: POST [10:22:13]URL: /json_proto [10:22:13]Method is POST - this is cgi request [10:22:13]url: /json_proto [10:22:13]query_string will be loaded in cgi processing [10:22:13]execute_cgi json_proto POST (null) [10:22:13]execute_cgi path=json_proto method=POST [10:22:13]POST find Content-Length [10:22:13]Host: 172.17.53.195:8080 [10:22:13]Content-Length: 766 [10:22:13]Content-Type: application/json [10:22:13] [10:22:13]POST finish read [10:22:13]Found Content-Length = 766 [10:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:13]execute_script... [10:22:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:13]POST & json_proto [10:22:13]process_json_proto [10:22:13]json parsed OK: [10:22:13]protocol is kg_v1.0 [10:22:13]action value=close_receipt [10:22:13]process_action close_receipt [10:22:13]cmd_close_receipt [10:22:13]MH_GetDate [10:22:13]Write to MH i2c: F0 00 00 78 AA 11 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 09 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: F0 09 00 78 AA 00 ED 7C 17 67 21 48 4A 65 19 [10:22:13]GetLastDocTimeStamp 1729592335 [10:22:13]current date 1729592557 [10:22:13]FM_GetShiftState [10:22:13]SAM_PROTO_GetShiftState [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 01 00 [10:22:13]Write to MH i2c: E2 08 00 79 AA 80 13 01 00 00 00 00 00 A0 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 79 AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F3 [10:22:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetShiftState done [10:22:13]FM_GetShiftState done [10:22:13]opened in 1729557463 [10:22:13]opened+sec_in_day 1729643863 [10:22:13]quantity*price = 50041 [10:22:13]sum+1 = 50042 [10:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 84 22.10.2024 10:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166329 ФПД: 25675660066082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166329&fm=25675660066082&tin=02508201610067®Number=0000000000091764&sum=50041 [10:22:14]StoreToDocumentArchive [10:22:14]shift 536 fd 166329 [10:22:14]save to /storage/0536/doc_00166329 [10:22:14]save last doc name /storage/0536/doc_00166329 to /storage/kkm_last_doc_name [10:22:14]save OK [10:22:14]Clear old archive folders... [10:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:14]tlvbuf is 019710F0 [10:22:14]SAM_PROTO_ClearQueue [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 09 00 00 [10:22:14]Write to MH i2c: E2 08 00 86 AA 80 09 00 00 00 00 00 00 A2 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 86 AA 00 90 00 A4 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_ClearQueue done [10:22:14]KKMCreateOFDPacket [10:22:14]OFDProtocolAddRootSTLVToBuf [10:22:14]FM_MakeSignedData [10:22:14]FM_MakeSignedData [10:22:14]SAM_PROTO_SignData [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 01 02 [10:22:14]Write to MH i2c: E2 08 00 87 AA 80 0D 01 02 00 00 00 00 AA [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 87 AA 00 90 00 A5 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=255 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 89 02 00 35 04 06 00 17 [10:22:14]Write to MH i2c: E2 02 01 88 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 89 02 00 35 04 06 00 17 00 00 42 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 88 AA 00 90 00 A6 [10:22:15]RAPDU: 90 00 [10:22:15]wFMCommunicate OK [10:22:15]wFMCommunicate request_size=10 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 0D 02 02 05 5A 14 98 FD 22 [10:22:15]Write to MH i2c: E2 0D 00 89 AA 80 0D 02 02 05 00 5A 14 98 FD 22 00 00 DC [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 89 AA 00 90 00 A7 [10:22:15]RAPDU: 90 00 [10:22:15]wFMCommunicate OK [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 0D 03 02 [10:22:15]Write to MH i2c: E2 08 00 8A AA 80 0D 03 02 00 00 00 00 AF [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0B 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0B 00 8A AA 00 39 DD B9 87 76 FC 4D 6E 90 00 33 [10:22:15]RAPDU: 39 DD B9 87 76 FC 4D 6E 90 00 [10:22:15]wFMCommunicate OK [10:22:15]SAM_PROTO_SignData done [10:22:15]FM_MakeSignedData done [10:22:15]CreateOFDProtocolMessage [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 11 00 00 [10:22:15]Write to MH i2c: E2 08 00 8B AA 80 11 00 00 00 00 00 00 AF [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 17 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 17 00 8B AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [10:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:15]wFMCommunicate OK [10:22:15]CreateOFDProtocolMessage done [10:22:15]OFDSenderStorePacket 166329 [10:22:15]StoreOFDPacket docnum=166329 [10:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC BB 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 89 02 00 35 04 06 00 17 5A 14 98 FD 22 39 DD B9 87 76 FC 4D 6E [10:22:15]CheckFolder [10:22:15]dirname=/storage/ofd_packets [10:22:15]CheckFolder done [10:22:15]ProducePacketName [10:22:15]name=ofd_packets/00166329 [10:22:15]NVStorageSaveData ofd_packets/00166329 [10:22:15]File name is /storage/ofd_packets/00166329 [10:22:15]Write 301 bytes [10:22:15]NVStorageSaveData done [10:22:15]OFDSenderStorePacket done [10:22:15]KKMCreateOFDPacket done [10:22:15]NVStorageSaveData kkm_last_timestamp [10:22:15]File name is /storage/kkm_last_timestamp [10:22:15]Write 4 bytes [10:22:15]NVStorageSaveData done [10:22:15]ExternCall_PrintAddStr [10:22:15]wPrintStart [10:22:15]Write to MH i2c: 01 00 00 8C AA 36 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 8C AA 00 00 00 00 00 FF 0F 4B [10:22:15]RasterBufferAndPrint [10:22:15]line Счет N : (1)220907 [10:22:15]line ИНН: 02508201610067 [10:22:15]line Контрольно-Кассовый Чек [10:22:15]line ПРОДАЖА [10:22:15]line ТРК (МРК, ГНК) : 23 [10:22:15]line Товар: 2710124130 [10:22:15]line Аи-92-К-5 [10:22:15]line 7.480 * 66.90 [10:22:15]line = 500.41 [10:22:15]line НДС 12% НСП 1% [10:22:15]line > о реализуемом товаре [10:22:15]line ИТОГО: 500.41 [10:22:15]line НСП 1% : 4.43 [10:22:15]line НДС 12% : 53.14 [10:22:15]line Наличными: 0.00 [10:22:15]line Безнал.: 500.41 [10:22:15]line Место: АЗС № 161 "Партнер Нефть" [10:22:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:22:15]line СНО: Общий режим [10:22:15]line Чек 84 22.10.2024 10:22 [10:22:15]line Смена: 536 ФФД: 1.0 [10:22:15]line ЗНМ: 0300000104 [10:22:15]line РНМ: 0000000000091764 [10:22:15]line Версия ККМ: 001 [10:22:15]line Платежная система: Mbank [10:22:15]line ФМ: 0000000000871759 [10:22:15]line ФД: 166329 [10:22:15]line ФПД: 25675660066082 [10:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102237&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166329&fm=25675660066082&tin=02508201610067®Number=0000000000091764&sum=50041 [10:22:15]written 0, free lines is 4095 [10:22:15]OFD Sender: Processing packet 166329 [packets to send 48, broken 47] [10:22:15]ProducePacketName [10:22:15]name=ofd_packets/00166329 [10:22:15]OFD Sender: To server: pG, [10:22:15]CommunicateWithHost lk.salyk.kg:30040 [10:22:15]ConnectInit lk.salyk.kg [10:22:15]Connected sock=7 [10:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC BB 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 89 02 00 35 04 06 00 17 5A 14 98 FD 22 39 DD B9 87 76 FC 4D 6E [10:22:15]Write to MH i2c: 01 00 00 B5 AA 5F [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 B5 AA 00 00 00 00 00 ED 0C 5F [10:22:15]RasterBufferAndPrint [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]written 0, free lines is 3318 [10:22:15]MH_Cut [10:22:15]Write to MH i2c: D1 01 00 BC AA 01 38 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 BC AA 00 37 [10:22:15]Write to MH i2c: 01 00 00 BD AA 67 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9E 0D 47 00 97 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 89 02 00 F4 03 04 00 58 23 17 67 B6 04 01 00 00 99 33 BA 52 52 30 9D BC [10:22:16]CommunicateWithHost err = 0 [10:22:16]CheckOFDResponse [10:22:16]1017 (14) - 77093643461234 [10:22:16]1041 (16) - 0000000000871759 [10:22:16]1040 (4) - 166329 [10:22:16]1012 (4) - 22.10.2024 04:00 [10:22:16]1206 (1) - 0 [10:22:16]OFD Sender: Remove packet 166329 [10:22:16]ProducePacketName [10:22:16]name=ofd_packets/00166329 [10:22:16]NVStorageDeleteData [10:22:16]OFD Sender: No OFD packet to send [10:22:16]*** Cut start [10:22:16]*** Partial cut [10:22:16]*** CUTSNS_PIN = 1 [10:22:16]*** CUTSNS_PIN = 0 [10:22:16]*** Brake cut motor [10:22:17]Read from MH i2c: 01 [10:22:17]MH_I2C_Read... [10:22:17]*** Stop cut motor [10:22:17]*** Cut end [10:22:17]Read from MH i2c: 01 07 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 BD AA 00 00 00 00 00 FF 0F 7C [10:22:17]process_action close_receipt done [10:22:17]requested_data is exist [10:22:17]produce_requested_data [10:22:17]requested_item fm.sn is exist - process it [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 11 00 00 [10:22:17]Write to MH i2c: E2 08 00 BE AA 80 11 00 00 00 00 00 00 E2 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 17 00 BE AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [10:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:17]wFMCommunicate OK [10:22:17]requested_item fd.num is exist - process it [10:22:17]SAM_PROTO_GetFieldsCounters [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 13 00 00 [10:22:17]Write to MH i2c: E2 08 00 BF AA 80 13 00 00 00 00 00 00 E5 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 62 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 62 00 BF AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_GetFieldsCounters done [10:22:17]requested_item shift.num is exist - process it [10:22:17]requested_item shift.opened is exist - process it [10:22:17]req_shift_opened [10:22:17]FM_GetShiftState [10:22:17]SAM_PROTO_GetShiftState [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 13 01 00 [10:22:17]Write to MH i2c: E2 08 00 C0 AA 80 13 01 00 00 00 00 00 E7 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 C0 AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3A [10:22:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_GetShiftState done [10:22:17]FM_GetShiftState done [10:22:17]req_shift_opened done [10:22:17]requested_item shift.open_date is exist - process it [10:22:17]req_shift_open_date [10:22:17]req_shift_open_date done [10:22:17]produce_requested_data done [10:22:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166329,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:22:17]process_action_free close_receipt [10:22:17]json_value_free [10:22:17]json_value_free done [10:22:17]process_json_proto returns [10:22:17]Send response to host [10:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166329,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:22:17]free response buf [10:22:17]execute_script done [10:22:17]execute_script returns [10:22:17]free content buf [10:22:17]Sock 5.Close socket [10:22:17]Sock 5.Thread stoped [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:29]accept exits with 6 [10:22:29]New connection [10:22:29]New thread 3066920292 created [10:22:29]Thread 3066776932 joined [10:22:29]Waiting for new connection... [10:22:29] Sock 6.Parse request [10:22:29]Sock 6.Check first char [10:22:29]Sock 6.First char is OK [10:22:29]request: POST /json_proto HTTP/1.0 [10:22:29]Method: POST [10:22:29]URL: /json_proto [10:22:29]Method is POST - this is cgi request [10:22:29]url: /json_proto [10:22:29]query_string will be loaded in cgi processing [10:22:29]execute_cgi json_proto POST (null) [10:22:29]execute_cgi path=json_proto method=POST [10:22:29]POST find Content-Length [10:22:29]Host: 172.17.53.195:8080 [10:22:29]Content-Length: 769 [10:22:29]Content-Type: application/json [10:22:29] [10:22:29]POST finish read [10:22:29]Found Content-Length = 769 [10:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:29]execute_script... [10:22:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:29]POST & json_proto [10:22:29]process_json_proto [10:22:29]json parsed OK: [10:22:29]protocol is kg_v1.0 [10:22:29]action value=close_receipt [10:22:29]process_action close_receipt [10:22:29]cmd_close_receipt [10:22:29]MH_GetDate [10:22:29]Write to MH i2c: F0 00 00 C1 AA 5A [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: F0 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: F0 09 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: F0 09 00 C1 AA 00 FC 7C 17 67 21 48 4A 65 71 [10:22:29]GetLastDocTimeStamp 1729592557 [10:22:29]current date 1729592572 [10:22:29]FM_GetShiftState [10:22:29]SAM_PROTO_GetShiftState [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 13 01 00 [10:22:29]Write to MH i2c: E2 08 00 C2 AA 80 13 01 00 00 00 00 00 E9 [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0E 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 0E 00 C2 AA 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3C [10:22:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_GetShiftState done [10:22:29]FM_GetShiftState done [10:22:29]opened in 1729557463 [10:22:29]opened+sec_in_day 1729643863 [10:22:29]quantity*price = 100021 [10:22:29]sum+1 = 100023 [10:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 85 22.10.2024 10:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166330 ФПД: 185883814773507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166330&fm=185883814773507&tin=02508201610067®Number=0000000000091764&sum=100022 [10:22:30]StoreToDocumentArchive [10:22:30]shift 536 fd 166330 [10:22:30]save to /storage/0536/doc_00166330 [10:22:30]save last doc name /storage/0536/doc_00166330 to /storage/kkm_last_doc_name [10:22:30]save OK [10:22:30]Clear old archive folders... [10:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:30]tlvbuf is 01445630 [10:22:30]SAM_PROTO_ClearQueue [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 09 00 00 [10:22:30]Write to MH i2c: E2 08 00 CF AA 80 09 00 00 00 00 00 00 EB [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 CF AA 00 90 00 ED [10:22:30]RAPDU: 90 00 [10:22:30]wFMCommunicate OK [10:22:30]SAM_PROTO_ClearQueue done [10:22:30]KKMCreateOFDPacket [10:22:30]OFDProtocolAddRootSTLVToBuf [10:22:30]FM_MakeSignedData [10:22:30]FM_MakeSignedData [10:22:30]SAM_PROTO_SignData [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 0D 01 02 [10:22:30]Write to MH i2c: E2 08 00 D0 AA 80 0D 01 02 00 00 00 00 F3 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 D0 AA 00 90 00 EE [10:22:30]RAPDU: 90 00 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=255 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FC 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 89 02 00 35 04 06 00 A9 [10:22:30]Write to MH i2c: E2 02 01 D1 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FC 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 89 02 00 35 04 06 00 A9 00 00 25 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 D1 AA 00 90 00 EF [10:22:30]RAPDU: 90 00 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=10 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 0D 02 02 05 0F 72 BF C3 03 [10:22:30]Write to MH i2c: E2 0D 00 D2 AA 80 0D 02 02 05 00 0F 72 BF C3 03 00 00 06 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 03 00 D2 AA 00 90 00 F0 [10:22:30]RAPDU: 90 00 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 0D 03 02 [10:22:30]Write to MH i2c: E2 08 00 D3 AA 80 0D 03 02 00 00 00 00 F8 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 0B 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 0B 00 D3 AA 00 F3 32 2A BD 00 AF 3D FE 90 00 EF [10:22:30]RAPDU: F3 32 2A BD 00 AF 3D FE 90 00 [10:22:30]wFMCommunicate OK [10:22:30]SAM_PROTO_SignData done [10:22:30]FM_MakeSignedData done [10:22:30]CreateOFDProtocolMessage [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 11 00 00 [10:22:30]Write to MH i2c: E2 08 00 D4 AA 80 11 00 00 00 00 00 00 F8 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 17 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 17 00 D4 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [10:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:30]wFMCommunicate OK [10:22:30]CreateOFDProtocolMessage done [10:22:30]OFDSenderStorePacket 166330 [10:22:30]StoreOFDPacket docnum=166330 [10:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 74 07 01 7E 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FC 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 89 02 00 35 04 06 00 A9 0F 72 BF C3 03 F3 32 2A BD 00 AF 3D FE [10:22:30]CheckFolder [10:22:30]dirname=/storage/ofd_packets [10:22:30]CheckFolder done [10:22:30]ProducePacketName [10:22:30]name=ofd_packets/00166330 [10:22:30]NVStorageSaveData ofd_packets/00166330 [10:22:30]File name is /storage/ofd_packets/00166330 [10:22:30]Write 301 bytes [10:22:30]NVStorageSaveData done [10:22:30]OFDSenderStorePacket done [10:22:30]KKMCreateOFDPacket done [10:22:30]NVStorageSaveData kkm_last_timestamp [10:22:30]File name is /storage/kkm_last_timestamp [10:22:30]Write 4 bytes [10:22:30]NVStorageSaveData done [10:22:30]ExternCall_PrintAddStr [10:22:30]wPrintStart [10:22:30]Write to MH i2c: 01 00 00 D5 AA 7F [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 D5 AA 00 00 00 00 00 FF 0F 94 [10:22:30]RasterBufferAndPrint [10:22:30]line Счет N : (1)220906 [10:22:30]line ИНН: 02508201610067 [10:22:30]line Контрольно-Кассовый Чек [10:22:30]line ПРОДАЖА [10:22:30]line ТРК (МРК, ГНК) : 44 [10:22:30]line Товар: 2710124500 [10:22:30]line Аи-95-К-5 [10:22:30]line 13.480 * 74.20 [10:22:30]line = 1000.22 [10:22:30]line НДС 12% НСП 1% [10:22:30]line > о реализуемом товаре [10:22:30]line ИТОГО: 1000.22 [10:22:30]line НСП 1% : 8.85 [10:22:30]line НДС 12% : 106.22 [10:22:30]line Наличными: 0.00 [10:22:30]line Безнал.: 1000.22 [10:22:30]line Место: АЗС № 161 "Партнер Нефть" [10:22:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:22:30]line СНО: Общий режим [10:22:30]line Чек 85 22.10.2024 10:22 [10:22:30]line Смена: 536 ФФД: 1.0 [10:22:30]line ЗНМ: 0300000104 [10:22:30]line РНМ: 0000000000091764 [10:22:30]line Версия ККМ: 001 [10:22:30]line Платежная система: Mbank [10:22:30]line ФМ: 0000000000871759 [10:22:30]line ФД: 166330 [10:22:30]line ФПД: 185883814773507 [10:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166330&fm=185883814773507&tin=02508201610067®Number=0000000000091764&sum=100022 [10:22:31]OFD Sender: Processing packet 166330 [packets to send 48, broken 47] [10:22:31]ProducePacketName [10:22:31]name=ofd_packets/00166330 [10:22:31]OFD Sender: To server: pG, [10:22:31]CommunicateWithHost lk.salyk.kg:30040 [10:22:31]ConnectInit lk.salyk.kg [10:22:31]written 0, free lines is 4095 [10:22:31]Connected sock=7 [10:22:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 63 74 07 01 7E 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FC 7C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 89 02 00 35 04 06 00 A9 0F 72 BF C3 03 F3 32 2A BD 00 AF 3D FE [10:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0A E8 47 00 01 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 89 02 00 F4 03 04 00 68 23 17 67 B6 04 01 00 00 15 04 10 52 23 42 13 50 [10:22:31]CommunicateWithHost err = 0 [10:22:31]CheckOFDResponse [10:22:31]1017 (14) - 77093643461234 [10:22:31]1041 (16) - 0000000000871759 [10:22:31]1040 (4) - 166330 [10:22:31]1012 (4) - 22.10.2024 04:00 [10:22:31]1206 (1) - 0 [10:22:31]OFD Sender: Remove packet 166330 [10:22:31]ProducePacketName [10:22:31]name=ofd_packets/00166330 [10:22:31]NVStorageDeleteData [10:22:31]Write to MH i2c: 01 00 00 FE AA A8 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: 01 07 00 FE AA 00 00 00 00 00 F4 0C AF [10:22:31]RasterBufferAndPrint [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]line [10:22:31]written 0, free lines is 3323 [10:22:31]MH_Cut [10:22:31]Write to MH i2c: D1 01 00 05 AB 01 82 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 01 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: D1 01 00 05 AB 00 81 [10:22:31]Write to MH i2c: 01 00 00 06 AB B1 [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:32]OFD Sender: No OFD packet to send [10:22:32]*** Cut start [10:22:32]*** Partial cut [10:22:32]*** CUTSNS_PIN = 1 [10:22:32]*** CUTSNS_PIN = 0 [10:22:32]*** Brake cut motor [10:22:33]Read from MH i2c: 01 [10:22:33]MH_I2C_Read... [10:22:33]*** Stop cut motor [10:22:33]*** Cut end [10:22:33]Read from MH i2c: 01 07 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: 01 07 00 06 AB 00 00 00 00 00 FF 0F C6 [10:22:33]process_action close_receipt done [10:22:33]requested_data is exist [10:22:33]produce_requested_data [10:22:33]requested_item fm.sn is exist - process it [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 11 00 00 [10:22:33]Write to MH i2c: E2 08 00 07 AB 80 11 00 00 00 00 00 00 2C [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 07 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [10:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:22:33]wFMCommunicate OK [10:22:33]requested_item fd.num is exist - process it [10:22:33]SAM_PROTO_GetFieldsCounters [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 00 00 [10:22:33]Write to MH i2c: E2 08 00 08 AB 80 13 00 00 00 00 00 00 2F [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 62 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 62 00 08 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetFieldsCounters done [10:22:33]requested_item shift.num is exist - process it [10:22:33]requested_item shift.opened is exist - process it [10:22:33]req_shift_opened [10:22:33]FM_GetShiftState [10:22:33]SAM_PROTO_GetShiftState [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 01 00 [10:22:33]Write to MH i2c: E2 08 00 09 AB 80 13 01 00 00 00 00 00 31 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 09 AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 84 [10:22:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetShiftState done [10:22:33]FM_GetShiftState done [10:22:33]req_shift_opened done [10:22:33]requested_item shift.open_date is exist - process it [10:22:33]req_shift_open_date [10:22:33]req_shift_open_date done [10:22:33]produce_requested_data done [10:22:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166330,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:22:33]process_action_free close_receipt [10:22:33]json_value_free [10:22:33]json_value_free done [10:22:33]process_json_proto returns [10:22:33]Send response to host [10:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166330,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:22:33]free response buf [10:22:33]execute_script done [10:22:33]execute_script returns [10:22:33]free content buf [10:22:33]Sock 6.Close socket [10:22:33]Sock 6.Thread stoped [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:53]accept exits with 5 [10:25:53]New connection [10:25:53]New thread 3066776932 created [10:25:53]Thread 3066920292 joined [10:25:53]Waiting for new connection... [10:25:53] Sock 5.Parse request [10:25:53]Sock 5.Check first char [10:25:53]Sock 5.First char is OK [10:25:53]request: POST /json_proto HTTP/1.0 [10:25:53]Method: POST [10:25:53]URL: /json_proto [10:25:53]Method is POST - this is cgi request [10:25:53]url: /json_proto [10:25:53]query_string will be loaded in cgi processing [10:25:53]execute_cgi json_proto POST (null) [10:25:53]execute_cgi path=json_proto method=POST [10:25:53]POST find Content-Length [10:25:53]Host: 172.17.53.195:8080 [10:25:53]Content-Length: 677 [10:25:53]Content-Type: application/json [10:25:53] [10:25:53]POST finish read [10:25:53]Found Content-Length = 677 [10:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:53]execute_script... [10:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:53]POST & json_proto [10:25:53]process_json_proto [10:25:53]json parsed OK: [10:25:53]protocol is kg_v1.0 [10:25:53]action value=close_receipt [10:25:53]process_action close_receipt [10:25:53]cmd_close_receipt [10:25:53]MH_GetDate [10:25:53]Write to MH i2c: F0 00 00 0A AB A4 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 09 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 09 00 0A AB 00 C8 7D 17 67 21 48 4A 65 88 [10:25:53]GetLastDocTimeStamp 1729592572 [10:25:53]current date 1729592776 [10:25:53]FM_GetShiftState [10:25:53]SAM_PROTO_GetShiftState [10:25:53]wFMCommunicate request_size=4 [10:25:53]MH_SAM_APDU [10:25:53]CAPDU: 80 13 01 00 [10:25:53]Write to MH i2c: E2 08 00 0B AB 80 13 01 00 00 00 00 00 33 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:53]Read from MH i2c: E2 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 0E 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 0E 00 0B AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [10:25:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:25:53]wFMCommunicate OK [10:25:53]SAM_PROTO_GetShiftState done [10:25:53]FM_GetShiftState done [10:25:53]opened in 1729557463 [10:25:53]opened+sec_in_day 1729643863 [10:25:53]quantity*price = 70044 [10:25:53]sum+1 = 70046 [10:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 86 22.10.2024 10:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166331 ФПД: 26353576729733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102616&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166331&fm=26353576729733&tin=02508201610067®Number=0000000000091764&sum=70000 [10:25:54]StoreToDocumentArchive [10:25:54]shift 536 fd 166331 [10:25:54]save to /storage/0536/doc_00166331 [10:25:54]save last doc name /storage/0536/doc_00166331 to /storage/kkm_last_doc_name [10:25:54]save OK [10:25:54]Clear old archive folders... [10:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:54]tlvbuf is 01D9CC70 [10:25:54]SAM_PROTO_ClearQueue [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 09 00 00 [10:25:54]Write to MH i2c: E2 08 00 18 AB 80 09 00 00 00 00 00 00 35 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 18 AB 00 90 00 37 [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_ClearQueue done [10:25:54]KKMCreateOFDPacket [10:25:54]OFDProtocolAddRootSTLVToBuf [10:25:54]FM_MakeSignedData [10:25:54]FM_MakeSignedData [10:25:54]SAM_PROTO_SignData [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 01 02 [10:25:54]Write to MH i2c: E2 08 00 19 AB 80 0D 01 02 00 00 00 00 3D [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 19 AB 00 90 00 38 [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=255 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 C8 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 89 02 00 35 04 06 00 17 [10:25:54]Write to MH i2c: E2 02 01 1A AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 C8 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 89 02 00 35 04 06 00 17 00 00 4A [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 1A AB 00 90 00 39 [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=10 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 02 02 05 F7 EB 94 5C 85 [10:25:54]Write to MH i2c: E2 0D 00 1B AB 80 0D 02 02 05 00 F7 EB 94 5C 85 00 00 A1 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 1B AB 00 90 00 3A [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 03 02 [10:25:54]Write to MH i2c: E2 08 00 1C AB 80 0D 03 02 00 00 00 00 42 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 1C AB 00 75 C5 AD 68 0F 5D A3 B9 90 00 5A [10:25:54]RAPDU: 75 C5 AD 68 0F 5D A3 B9 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_SignData done [10:25:54]FM_MakeSignedData done [10:25:54]CreateOFDProtocolMessage [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 11 00 00 [10:25:54]Write to MH i2c: E2 08 00 1D AB 80 11 00 00 00 00 00 00 42 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 1D AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [10:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:25:54]wFMCommunicate OK [10:25:54]CreateOFDProtocolMessage done [10:25:54]OFDSenderStorePacket 166331 [10:25:54]StoreOFDPacket docnum=166331 [10:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E5 BA 07 01 F6 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 C8 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 89 02 00 35 04 06 00 17 F7 EB 94 5C 85 75 C5 AD 68 0F 5D A3 B9 [10:25:54]CheckFolder [10:25:54]dirname=/storage/ofd_packets [10:25:54]CheckFolder done [10:25:54]ProducePacketName [10:25:54]name=ofd_packets/00166331 [10:25:54]NVStorageSaveData ofd_packets/00166331 [10:25:54]File name is /storage/ofd_packets/00166331 [10:25:54]Write 301 bytes [10:25:54]NVStorageSaveData done [10:25:54]OFDSenderStorePacket done [10:25:54]KKMCreateOFDPacket done [10:25:54]NVStorageSaveData kkm_last_timestamp [10:25:54]File name is /storage/kkm_last_timestamp [10:25:54]Write 4 bytes [10:25:54]NVStorageSaveData done [10:25:54]ExternCall_PrintAddStr [10:25:54]wPrintStart [10:25:54]Write to MH i2c: 01 00 00 1E AB C9 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 1E AB 00 00 00 00 00 FF 0F DE [10:25:54]RasterBufferAndPrint [10:25:54]line Счет N : (1)220908 [10:25:54]line ИНН: 02508201610067 [10:25:54]line Контрольно-Кассовый Чек [10:25:54]line ПРОДАЖА [10:25:54]line ТРК (МРК, ГНК) : 44 [10:25:54]line Товар: 2710124500 [10:25:54]line Аи-95-К-5 [10:25:54]line 9.440 * 74.20 [10:25:54]line = 700.45 [10:25:54]line НДС 12% НСП 1% [10:25:54]line > о реализуемом товаре [10:25:54]line ОКРУГЛЕНИЕ: -0.45 [10:25:54]line ИТОГО: 700.00 [10:25:54]line Внесено: 700.00 [10:25:54]line СДАЧА: 0.00 [10:25:54]line НСП 1% : 6.20 [10:25:54]line НДС 12% : 74.38 [10:25:54]line Наличными: 700.00 [10:25:54]line Безнал.: 0.00 [10:25:54]line Место: АЗС № 161 "Партнер Нефть" [10:25:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:25:54]line СНО: Общий режим [10:25:54]line Чек 86 22.10.2024 10:26 [10:25:54]line Смена: 536 ФФД: 1.0 [10:25:54]line ЗНМ: 0300000104 [10:25:54]line РНМ: 0000000000091764 [10:25:54]line Версия ККМ: 001 [10:25:54]line ФМ: 0000000000871759 [10:25:54]line ФД: 166331 [10:25:54]line ФПД: 26353576729733 [10:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102616&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166331&fm=26353576729733&tin=02508201610067®Number=0000000000091764&sum=70000 [10:25:55]OFD Sender: Processing packet 166331 [packets to send 48, broken 47] [10:25:55]ProducePacketName [10:25:55]name=ofd_packets/00166331 [10:25:55]OFD Sender: To server: pG, [10:25:55]CommunicateWithHost lk.salyk.kg:30040 [10:25:55]ConnectInit lk.salyk.kg [10:25:55]written 0, free lines is 4095 [10:25:55]Connected sock=6 [10:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E5 BA 07 01 F6 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 C8 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 89 02 00 35 04 06 00 17 F7 EB 94 5C 85 75 C5 AD 68 0F 5D A3 B9 [10:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 82 47 00 58 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 89 02 00 F4 03 04 00 33 24 17 67 B6 04 01 00 00 9B A3 76 51 9E 7D 56 79 [10:25:55]CommunicateWithHost err = 0 [10:25:55]CheckOFDResponse [10:25:55]1017 (14) - 77093643461234 [10:25:55]1041 (16) - 0000000000871759 [10:25:55]1040 (4) - 166331 [10:25:55]1012 (4) - 22.10.2024 04:04 [10:25:55]1206 (1) - 0 [10:25:55]OFD Sender: Remove packet 166331 [10:25:55]ProducePacketName [10:25:55]name=ofd_packets/00166331 [10:25:55]NVStorageDeleteData [10:25:55]Write to MH i2c: 01 00 00 49 AB F4 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 49 AB 00 00 00 00 00 CD 0C D4 [10:25:55]RasterBufferAndPrint [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]written 0, free lines is 3286 [10:25:55]MH_Cut [10:25:55]Write to MH i2c: D1 01 00 50 AB 01 CD [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 50 AB 00 CC [10:25:55]Write to MH i2c: 01 00 00 51 AB FC [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]OFD Sender: No OFD packet to send [10:25:56]*** Cut start [10:25:56]*** Partial cut [10:25:56]*** CUTSNS_PIN = 1 [10:25:56]*** CUTSNS_PIN = 0 [10:25:56]*** Brake cut motor [10:25:56]Read from MH i2c: 01 [10:25:57]MH_I2C_Read... [10:25:57]*** Stop cut motor [10:25:57]*** Cut end [10:25:57]Read from MH i2c: 01 07 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: 01 07 00 51 AB 00 00 00 00 00 FF 0F 11 [10:25:57]process_action close_receipt done [10:25:57]requested_data is exist [10:25:57]produce_requested_data [10:25:57]requested_item fm.sn is exist - process it [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 11 00 00 [10:25:57]Write to MH i2c: E2 08 00 52 AB 80 11 00 00 00 00 00 00 77 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 17 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 17 00 52 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [10:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:25:57]wFMCommunicate OK [10:25:57]requested_item fd.num is exist - process it [10:25:57]SAM_PROTO_GetFieldsCounters [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 13 00 00 [10:25:57]Write to MH i2c: E2 08 00 53 AB 80 13 00 00 00 00 00 00 7A [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 62 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 62 00 53 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_GetFieldsCounters done [10:25:57]requested_item shift.num is exist - process it [10:25:57]requested_item shift.opened is exist - process it [10:25:57]req_shift_opened [10:25:57]FM_GetShiftState [10:25:57]SAM_PROTO_GetShiftState [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 13 01 00 [10:25:57]Write to MH i2c: E2 08 00 54 AB 80 13 01 00 00 00 00 00 7C [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 54 AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CF [10:25:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_GetShiftState done [10:25:57]FM_GetShiftState done [10:25:57]req_shift_opened done [10:25:57]requested_item shift.open_date is exist - process it [10:25:57]req_shift_open_date [10:25:57]req_shift_open_date done [10:25:57]produce_requested_data done [10:25:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166331,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:25:57]process_action_free close_receipt [10:25:57]json_value_free [10:25:57]json_value_free done [10:25:57]process_json_proto returns [10:25:57]Send response to host [10:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166331,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:25:57]free response buf [10:25:57]execute_script done [10:25:57]execute_script returns [10:25:57]free content buf [10:25:57]Sock 5.Close socket [10:25:57]Sock 5.Thread stoped [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:28]accept exits with 7 [10:26:28]New connection [10:26:28]New thread 3066920292 created [10:26:28]Thread 3066776932 joined [10:26:28]Waiting for new connection... [10:26:28] Sock 7.Parse request [10:26:28]Sock 7.Check first char [10:26:28]Sock 7.First char is OK [10:26:28]request: POST /json_proto HTTP/1.0 [10:26:28]Method: POST [10:26:28]URL: /json_proto [10:26:28]Method is POST - this is cgi request [10:26:28]url: /json_proto [10:26:28]query_string will be loaded in cgi processing [10:26:28]execute_cgi json_proto POST (null) [10:26:28]execute_cgi path=json_proto method=POST [10:26:28]POST find Content-Length [10:26:28]Host: 172.17.53.195:8080 [10:26:28]Content-Length: 766 [10:26:28]Content-Type: application/json [10:26:28] [10:26:28]POST finish read [10:26:28]Found Content-Length = 766 [10:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:28]execute_script... [10:26:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:28]POST & json_proto [10:26:28]process_json_proto [10:26:28]json parsed OK: [10:26:28]protocol is kg_v1.0 [10:26:28]action value=close_receipt [10:26:28]process_action close_receipt [10:26:28]cmd_close_receipt [10:26:28]MH_GetDate [10:26:28]Write to MH i2c: F0 00 00 55 AB EF [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 09 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 09 00 55 AB 00 EC 7D 17 67 21 48 4A 65 F7 [10:26:28]GetLastDocTimeStamp 1729592776 [10:26:28]current date 1729592812 [10:26:28]FM_GetShiftState [10:26:28]SAM_PROTO_GetShiftState [10:26:28]wFMCommunicate request_size=4 [10:26:28]MH_SAM_APDU [10:26:28]CAPDU: 80 13 01 00 [10:26:28]Write to MH i2c: E2 08 00 56 AB 80 13 01 00 00 00 00 00 7E [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:29]Read from MH i2c: E2 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 0E 00 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 0E 00 56 AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [10:26:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:26:29]wFMCommunicate OK [10:26:29]SAM_PROTO_GetShiftState done [10:26:29]FM_GetShiftState done [10:26:29]opened in 1729557463 [10:26:29]opened+sec_in_day 1729643863 [10:26:29]quantity*price = 50041 [10:26:29]sum+1 = 50042 [10:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 87 22.10.2024 10:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166332 ФПД: 222601245320629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166332&fm=222601245320629&tin=02508201610067®Number=0000000000091764&sum=50041 [10:26:30]StoreToDocumentArchive [10:26:30]shift 536 fd 166332 [10:26:30]save to /storage/0536/doc_00166332 [10:26:30]save last doc name /storage/0536/doc_00166332 to /storage/kkm_last_doc_name [10:26:30]save OK [10:26:30]Clear old archive folders... [10:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:30]tlvbuf is 0147B8A0 [10:26:30]SAM_PROTO_ClearQueue [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 09 00 00 [10:26:30]Write to MH i2c: E2 08 00 63 AB 80 09 00 00 00 00 00 00 80 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 63 AB 00 90 00 82 [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]SAM_PROTO_ClearQueue done [10:26:30]KKMCreateOFDPacket [10:26:30]OFDProtocolAddRootSTLVToBuf [10:26:30]FM_MakeSignedData [10:26:30]FM_MakeSignedData [10:26:30]SAM_PROTO_SignData [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 01 02 [10:26:30]Write to MH i2c: E2 08 00 64 AB 80 0D 01 02 00 00 00 00 88 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 64 AB 00 90 00 83 [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]wFMCommunicate request_size=255 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EC 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 89 02 00 35 04 06 00 CA [10:26:30]Write to MH i2c: E2 02 01 65 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EC 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 89 02 00 35 04 06 00 CA 00 00 D9 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 65 AB 00 90 00 84 [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]wFMCommunicate request_size=10 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 02 02 05 74 64 27 65 B5 [10:26:30]Write to MH i2c: E2 0D 00 66 AB 80 0D 02 02 05 00 74 64 27 65 B5 00 00 AE [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 66 AB 00 90 00 85 [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 03 02 [10:26:30]Write to MH i2c: E2 08 00 67 AB 80 0D 03 02 00 00 00 00 8D [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 0B 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 0B 00 67 AB 00 C5 8F 0E EE 3C E4 8D 20 90 00 AB [10:26:30]RAPDU: C5 8F 0E EE 3C E4 8D 20 90 00 [10:26:30]wFMCommunicate OK [10:26:30]SAM_PROTO_SignData done [10:26:30]FM_MakeSignedData done [10:26:30]CreateOFDProtocolMessage [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 11 00 00 [10:26:30]Write to MH i2c: E2 08 00 68 AB 80 11 00 00 00 00 00 00 8D [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 17 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 17 00 68 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [10:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:26:30]wFMCommunicate OK [10:26:30]CreateOFDProtocolMessage done [10:26:30]OFDSenderStorePacket 166332 [10:26:30]StoreOFDPacket docnum=166332 [10:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 12 07 01 C1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EC 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 89 02 00 35 04 06 00 CA 74 64 27 65 B5 C5 8F 0E EE 3C E4 8D 20 [10:26:30]CheckFolder [10:26:30]dirname=/storage/ofd_packets [10:26:30]CheckFolder done [10:26:30]ProducePacketName [10:26:30]name=ofd_packets/00166332 [10:26:30]NVStorageSaveData ofd_packets/00166332 [10:26:30]File name is /storage/ofd_packets/00166332 [10:26:30]Write 301 bytes [10:26:30]NVStorageSaveData done [10:26:30]OFDSenderStorePacket done [10:26:30]KKMCreateOFDPacket done [10:26:30]NVStorageSaveData kkm_last_timestamp [10:26:30]File name is /storage/kkm_last_timestamp [10:26:30]Write 4 bytes [10:26:30]NVStorageSaveData done [10:26:30]ExternCall_PrintAddStr [10:26:30]wPrintStart [10:26:30]Write to MH i2c: 01 00 00 69 AB 14 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 07 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 07 00 69 AB 00 00 00 00 00 FF 0F 29 [10:26:30]RasterBufferAndPrint [10:26:30]line Счет N : (1)220909 [10:26:30]line ИНН: 02508201610067 [10:26:30]line Контрольно-Кассовый Чек [10:26:30]line ПРОДАЖА [10:26:30]line ТРК (МРК, ГНК) : 33 [10:26:30]line Товар: 2710124130 [10:26:30]line Аи-92-К-5 [10:26:30]line 7.480 * 66.90 [10:26:30]line = 500.41 [10:26:30]line НДС 12% НСП 1% [10:26:30]line > о реализуемом товаре [10:26:30]line ИТОГО: 500.41 [10:26:30]line НСП 1% : 4.43 [10:26:30]line НДС 12% : 53.14 [10:26:30]line Наличными: 0.00 [10:26:30]line Безнал.: 500.41 [10:26:30]line Место: АЗС № 161 "Партнер Нефть" [10:26:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:26:30]line СНО: Общий режим [10:26:30]line Чек 87 22.10.2024 10:26 [10:26:30]line Смена: 536 ФФД: 1.0 [10:26:30]line ЗНМ: 0300000104 [10:26:30]line РНМ: 0000000000091764 [10:26:30]line Версия ККМ: 001 [10:26:30]line Платежная система: Mbank [10:26:30]line ФМ: 0000000000871759 [10:26:30]line ФД: 166332 [10:26:30]line ФПД: 222601245320629 [10:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166332&fm=222601245320629&tin=02508201610067®Number=0000000000091764&sum=50041 [10:26:30]OFD Sender: Processing packet 166332 [packets to send 48, broken 47] [10:26:30]ProducePacketName [10:26:30]name=ofd_packets/00166332 [10:26:30]OFD Sender: To server: pG, [10:26:30]CommunicateWithHost lk.salyk.kg:30040 [10:26:30]ConnectInit lk.salyk.kg [10:26:30]written 0, free lines is 4095 [10:26:31]Connected sock=6 [10:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 12 07 01 C1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EC 7D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 89 02 00 35 04 06 00 CA 74 64 27 65 B5 C5 8F 0E EE 3C E4 8D 20 [10:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD 5D 47 00 22 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 89 02 00 F4 03 04 00 57 24 17 67 B6 04 01 00 00 D0 5E 03 22 A7 B7 D3 42 [10:26:31]CommunicateWithHost err = 0 [10:26:31]CheckOFDResponse [10:26:31]1017 (14) - 77093643461234 [10:26:31]1041 (16) - 0000000000871759 [10:26:31]1040 (4) - 166332 [10:26:31]1012 (4) - 22.10.2024 04:04 [10:26:31]1206 (1) - 0 [10:26:31]OFD Sender: Remove packet 166332 [10:26:31]ProducePacketName [10:26:31]name=ofd_packets/00166332 [10:26:31]NVStorageDeleteData [10:26:31]Write to MH i2c: 01 00 00 92 AB 3D [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 07 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 07 00 92 AB 00 00 00 00 00 EB 0C 3B [10:26:31]RasterBufferAndPrint [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]written 0, free lines is 3313 [10:26:31]MH_Cut [10:26:31]Write to MH i2c: D1 01 00 99 AB 01 16 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 01 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 01 00 99 AB 00 15 [10:26:31]Write to MH i2c: 01 00 00 9A AB 45 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]OFD Sender: No OFD packet to send [10:26:32]*** Cut start [10:26:32]*** Partial cut [10:26:32]*** CUTSNS_PIN = 1 [10:26:32]*** CUTSNS_PIN = 0 [10:26:32]*** Brake cut motor [10:26:32]Read from MH i2c: 01 [10:26:32]MH_I2C_Read... [10:26:32]*** Stop cut motor [10:26:32]*** Cut end [10:26:32]Read from MH i2c: 01 07 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: 01 07 00 9A AB 00 00 00 00 00 FF 0F 5A [10:26:32]process_action close_receipt done [10:26:32]requested_data is exist [10:26:32]produce_requested_data [10:26:32]requested_item fm.sn is exist - process it [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 11 00 00 [10:26:32]Write to MH i2c: E2 08 00 9B AB 80 11 00 00 00 00 00 00 C0 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 17 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 17 00 9B AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [10:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:26:32]wFMCommunicate OK [10:26:32]requested_item fd.num is exist - process it [10:26:32]SAM_PROTO_GetFieldsCounters [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 13 00 00 [10:26:32]Write to MH i2c: E2 08 00 9C AB 80 13 00 00 00 00 00 00 C3 [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 62 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 62 00 9C AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:33]wFMCommunicate OK [10:26:33]SAM_PROTO_GetFieldsCounters done [10:26:33]requested_item shift.num is exist - process it [10:26:33]requested_item shift.opened is exist - process it [10:26:33]req_shift_opened [10:26:33]FM_GetShiftState [10:26:33]SAM_PROTO_GetShiftState [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 13 01 00 [10:26:33]Write to MH i2c: E2 08 00 9D AB 80 13 01 00 00 00 00 00 C5 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0E 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0E 00 9D AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 18 [10:26:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:26:33]wFMCommunicate OK [10:26:33]SAM_PROTO_GetShiftState done [10:26:33]FM_GetShiftState done [10:26:33]req_shift_opened done [10:26:33]requested_item shift.open_date is exist - process it [10:26:33]req_shift_open_date [10:26:33]req_shift_open_date done [10:26:33]produce_requested_data done [10:26:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166332,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:26:33]process_action_free close_receipt [10:26:33]json_value_free [10:26:33]json_value_free done [10:26:33]process_json_proto returns [10:26:33]Send response to host [10:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166332,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:26:33]free response buf [10:26:33]execute_script done [10:26:33]execute_script returns [10:26:33]free content buf [10:26:33]Sock 7.Close socket [10:26:33]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:02]accept exits with 5 [10:32:02]New connection [10:32:02]New thread 3066776932 created [10:32:02]Thread 3066920292 joined [10:32:02]Waiting for new connection... [10:32:02] Sock 5.Parse request [10:32:02]Sock 5.Check first char [10:32:02]Sock 5.First char is OK [10:32:02]request: POST /json_proto HTTP/1.0 [10:32:02]Method: POST [10:32:02]URL: /json_proto [10:32:02]Method is POST - this is cgi request [10:32:02]url: /json_proto [10:32:02]query_string will be loaded in cgi processing [10:32:02]execute_cgi json_proto POST (null) [10:32:02]execute_cgi path=json_proto method=POST [10:32:02]POST find Content-Length [10:32:02]Host: 172.17.53.195:8080 [10:32:02]Content-Length: 677 [10:32:02]Content-Type: application/json [10:32:02] [10:32:02]POST finish read [10:32:02]Found Content-Length = 677 [10:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:02]execute_script... [10:32:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:02]POST & json_proto [10:32:02]process_json_proto [10:32:02]json parsed OK: [10:32:02]protocol is kg_v1.0 [10:32:02]action value=close_receipt [10:32:02]process_action close_receipt [10:32:02]cmd_close_receipt [10:32:02]MH_GetDate [10:32:02]Write to MH i2c: F0 00 00 9E AB 38 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 09 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: F0 09 00 9E AB 00 3A 7F 17 67 21 48 4A 65 90 [10:32:02]GetLastDocTimeStamp 1729592812 [10:32:02]current date 1729593146 [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 9F AB 80 13 01 00 00 00 00 00 C7 [10:32:02]Write i2c OK [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 [10:32:02]MH_I2C_Read... [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 9F AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1A [10:32:02]RAPDU: 09 00 01 D7 F3 16 67 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]opened in 1729557463 [10:32:02]opened+sec_in_day 1729643863 [10:32:02]quantity*price = 50041 [10:32:02]sum+1 = 50042 [10:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 88 22.10.2024 10:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166333 ФПД: 94856919918441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103226&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166333&fm=94856919918441&tin=02508201610067®Number=0000000000091764&sum=50000 [10:32:03]StoreToDocumentArchive [10:32:03]shift 536 fd 166333 [10:32:03]save to /storage/0536/doc_00166333 [10:32:03]save last doc name /storage/0536/doc_00166333 to /storage/kkm_last_doc_name [10:32:03]save OK [10:32:03]Clear old archive folders... [10:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:03]tlvbuf is 01970F70 [10:32:03]SAM_PROTO_ClearQueue [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 09 00 00 [10:32:03]Write to MH i2c: E2 08 00 AC AB 80 09 00 00 00 00 00 00 C9 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 AC AB 00 90 00 CB [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]SAM_PROTO_ClearQueue done [10:32:03]KKMCreateOFDPacket [10:32:03]OFDProtocolAddRootSTLVToBuf [10:32:03]FM_MakeSignedData [10:32:03]FM_MakeSignedData [10:32:03]SAM_PROTO_SignData [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 01 02 [10:32:03]Write to MH i2c: E2 08 00 AD AB 80 0D 01 02 00 00 00 00 D1 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 03 00 AD AB 00 90 00 CC [10:32:03]RAPDU: 90 00 [10:32:03]wFMCommunicate OK [10:32:03]wFMCommunicate request_size=255 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3A 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 89 02 00 35 04 06 00 56 [10:32:03]Write to MH i2c: E2 02 01 AE AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3A 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 89 02 00 35 04 06 00 56 00 00 AE [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 AE AB 00 90 00 CD [10:32:04]RAPDU: 90 00 [10:32:04]wFMCommunicate OK [10:32:04]wFMCommunicate request_size=10 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 0D 02 02 05 45 99 04 27 69 [10:32:04]Write to MH i2c: E2 0D 00 AF AB 80 0D 02 02 05 00 45 99 04 27 69 00 00 50 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 03 00 AF AB 00 90 00 CE [10:32:04]RAPDU: 90 00 [10:32:04]wFMCommunicate OK [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 0D 03 02 [10:32:04]Write to MH i2c: E2 08 00 B0 AB 80 0D 03 02 00 00 00 00 D6 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0B 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0B 00 B0 AB 00 3E 48 B1 C2 8C 34 46 06 90 00 DC [10:32:04]RAPDU: 3E 48 B1 C2 8C 34 46 06 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_SignData done [10:32:04]FM_MakeSignedData done [10:32:04]CreateOFDProtocolMessage [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 11 00 00 [10:32:04]Write to MH i2c: E2 08 00 B1 AB 80 11 00 00 00 00 00 00 D6 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 B1 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [10:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:32:04]wFMCommunicate OK [10:32:04]CreateOFDProtocolMessage done [10:32:04]OFDSenderStorePacket 166333 [10:32:04]StoreOFDPacket docnum=166333 [10:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D DC 07 01 CA 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3A 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 89 02 00 35 04 06 00 56 45 99 04 27 69 3E 48 B1 C2 8C 34 46 06 [10:32:04]CheckFolder [10:32:04]dirname=/storage/ofd_packets [10:32:04]CheckFolder done [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00166333 [10:32:04]NVStorageSaveData ofd_packets/00166333 [10:32:04]File name is /storage/ofd_packets/00166333 [10:32:04]Write 301 bytes [10:32:04]NVStorageSaveData done [10:32:04]OFDSenderStorePacket done [10:32:04]KKMCreateOFDPacket done [10:32:04]NVStorageSaveData kkm_last_timestamp [10:32:04]File name is /storage/kkm_last_timestamp [10:32:04]Write 4 bytes [10:32:04]NVStorageSaveData done [10:32:04]ExternCall_PrintAddStr [10:32:04]wPrintStart [10:32:04]Write to MH i2c: 01 00 00 B2 AB 5D [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 B2 AB 00 00 00 00 00 FF 0F 72 [10:32:04]RasterBufferAndPrint [10:32:04]line Счет N : (1)220910 [10:32:04]line ИНН: 02508201610067 [10:32:04]line Контрольно-Кассовый Чек [10:32:04]line ПРОДАЖА [10:32:04]line ТРК (МРК, ГНК) : 13 [10:32:04]line Товар: 2710124130 [10:32:04]line Аи-92-К-5 [10:32:04]line 7.480 * 66.90 [10:32:04]line = 500.41 [10:32:04]line НДС 12% НСП 1% [10:32:04]line > о реализуемом товаре [10:32:04]line ОКРУГЛЕНИЕ: -0.41 [10:32:04]line ИТОГО: 500.00 [10:32:04]line Внесено: 500.00 [10:32:04]line СДАЧА: 0.00 [10:32:04]line НСП 1% : 4.43 [10:32:04]line НДС 12% : 53.14 [10:32:04]line Наличными: 500.00 [10:32:04]line Безнал.: 0.00 [10:32:04]line Место: АЗС № 161 "Партнер Нефть" [10:32:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:32:04]line СНО: Общий режим [10:32:04]line Чек 88 22.10.2024 10:32 [10:32:04]line Смена: 536 ФФД: 1.0 [10:32:04]line ЗНМ: 0300000104 [10:32:04]line РНМ: 0000000000091764 [10:32:04]line Версия ККМ: 001 [10:32:04]line ФМ: 0000000000871759 [10:32:04]line ФД: 166333 [10:32:04]line ФПД: 94856919918441 [10:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103226&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166333&fm=94856919918441&tin=02508201610067®Number=0000000000091764&sum=50000 [10:32:04]OFD Sender: Processing packet 166333 [packets to send 48, broken 47] [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00166333 [10:32:04]OFD Sender: To server: pG, [10:32:04]CommunicateWithHost lk.salyk.kg:30040 [10:32:04]ConnectInit lk.salyk.kg [10:32:04]written 0, free lines is 4095 [10:32:04]Connected sock=7 [10:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D DC 07 01 CA 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3A 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 89 02 00 35 04 06 00 56 45 99 04 27 69 3E 48 B1 C2 8C 34 46 06 [10:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C 17 47 00 1F F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 89 02 00 F4 03 04 00 A5 25 17 67 B6 04 01 00 00 9F 05 76 0F 30 D2 A1 6D [10:32:04]CommunicateWithHost err = 0 [10:32:04]CheckOFDResponse [10:32:04]1017 (14) - 77093643461234 [10:32:04]1041 (16) - 0000000000871759 [10:32:04]1040 (4) - 166333 [10:32:04]1012 (4) - 22.10.2024 04:10 [10:32:04]1206 (1) - 0 [10:32:04]OFD Sender: Remove packet 166333 [10:32:04]ProducePacketName [10:32:04]name=ofd_packets/00166333 [10:32:04]NVStorageDeleteData [10:32:05]Write to MH i2c: 01 00 00 DD AB 88 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 DD AB 00 00 00 00 00 BE 0C 59 [10:32:05]RasterBufferAndPrint [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]line [10:32:05]written 0, free lines is 3268 [10:32:05]MH_Cut [10:32:05]Write to MH i2c: D1 01 00 E4 AB 01 61 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: D1 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: D1 01 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: D1 01 00 E4 AB 00 60 [10:32:05]Write to MH i2c: 01 00 00 E5 AB 90 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]OFD Sender: No OFD packet to send [10:32:05]*** Cut start [10:32:05]*** Partial cut [10:32:05]*** CUTSNS_PIN = 1 [10:32:05]*** CUTSNS_PIN = 0 [10:32:06]*** Brake cut motor [10:32:06]Read from MH i2c: 01 [10:32:06]MH_I2C_Read... [10:32:06]*** Stop cut motor [10:32:06]*** Cut end [10:32:06]Read from MH i2c: 01 07 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 E5 AB 00 00 00 00 00 FF 0F A5 [10:32:06]process_action close_receipt done [10:32:06]requested_data is exist [10:32:06]produce_requested_data [10:32:06]requested_item fm.sn is exist - process it [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 11 00 00 [10:32:06]Write to MH i2c: E2 08 00 E6 AB 80 11 00 00 00 00 00 00 0B [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 E6 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [10:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:32:06]wFMCommunicate OK [10:32:06]requested_item fd.num is exist - process it [10:32:06]SAM_PROTO_GetFieldsCounters [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 13 00 00 [10:32:06]Write to MH i2c: E2 08 00 E7 AB 80 13 00 00 00 00 00 00 0E [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 62 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 62 00 E7 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetFieldsCounters done [10:32:06]requested_item shift.num is exist - process it [10:32:06]requested_item shift.opened is exist - process it [10:32:06]req_shift_opened [10:32:06]FM_GetShiftState [10:32:06]SAM_PROTO_GetShiftState [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 13 01 00 [10:32:06]Write to MH i2c: E2 08 00 E8 AB 80 13 01 00 00 00 00 00 10 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 E8 AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 63 [10:32:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetShiftState done [10:32:06]FM_GetShiftState done [10:32:06]req_shift_opened done [10:32:06]requested_item shift.open_date is exist - process it [10:32:06]req_shift_open_date [10:32:06]req_shift_open_date done [10:32:06]produce_requested_data done [10:32:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166333,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:32:06]process_action_free close_receipt [10:32:06]json_value_free [10:32:06]json_value_free done [10:32:06]process_json_proto returns [10:32:06]Send response to host [10:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166333,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:32:06]free response buf [10:32:06]execute_script done [10:32:06]execute_script returns [10:32:06]free content buf [10:32:06]Sock 5.Close socket [10:32:06]Sock 5.Thread stoped [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:46]accept exits with 6 [10:33:46]New connection [10:33:46]New thread 3066920292 created [10:33:46]Thread 3066776932 joined [10:33:46]Waiting for new connection... [10:33:46] Sock 6.Parse request [10:33:46]Sock 6.Check first char [10:33:46]Sock 6.First char is OK [10:33:46]request: POST /json_proto HTTP/1.0 [10:33:46]Method: POST [10:33:46]URL: /json_proto [10:33:46]Method is POST - this is cgi request [10:33:46]url: /json_proto [10:33:46]query_string will be loaded in cgi processing [10:33:46]execute_cgi json_proto POST (null) [10:33:46]execute_cgi path=json_proto method=POST [10:33:46]POST find Content-Length [10:33:46]Host: 172.17.53.195:8080 [10:33:46]Content-Length: 682 [10:33:46]Content-Type: application/json [10:33:46] [10:33:46]POST finish read [10:33:46]Found Content-Length = 682 [10:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:46]execute_script... [10:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:46]POST & json_proto [10:33:46]process_json_proto [10:33:46]json parsed OK: [10:33:46]protocol is kg_v1.0 [10:33:46]action value=close_receipt [10:33:46]process_action close_receipt [10:33:46]cmd_close_receipt [10:33:46]MH_GetDate [10:33:46]Write to MH i2c: F0 00 00 E9 AB 83 [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: F0 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: F0 09 00 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: F0 09 00 E9 AB 00 A2 7F 17 67 21 48 4A 65 43 [10:33:46]GetLastDocTimeStamp 1729593146 [10:33:46]current date 1729593250 [10:33:46]FM_GetShiftState [10:33:46]SAM_PROTO_GetShiftState [10:33:46]wFMCommunicate request_size=4 [10:33:46]MH_SAM_APDU [10:33:46]CAPDU: 80 13 01 00 [10:33:46]Write to MH i2c: E2 08 00 EA AB 80 13 01 00 00 00 00 00 12 [10:33:46]Write i2c OK [10:33:46]MH_I2C_Read... [10:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:46]Read from MH i2c: E2 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: E2 0E 00 [10:33:46]MH_I2C_Read... [10:33:46]Read from MH i2c: E2 0E 00 EA AB 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 65 [10:33:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:33:46]wFMCommunicate OK [10:33:46]SAM_PROTO_GetShiftState done [10:33:46]FM_GetShiftState done [10:33:46]opened in 1729557463 [10:33:46]opened+sec_in_day 1729643863 [10:33:46]quantity*price = 100015 [10:33:46]sum+1 = 100017 [10:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 89 22.10.2024 10:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166334 ФПД: 246536835053176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103410&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166334&fm=246536835053176&tin=02508201610067®Number=0000000000091764&sum=100000 [10:33:47]StoreToDocumentArchive [10:33:47]shift 536 fd 166334 [10:33:47]save to /storage/0536/doc_00166334 [10:33:47]save last doc name /storage/0536/doc_00166334 to /storage/kkm_last_doc_name [10:33:47]save OK [10:33:47]Clear old archive folders... [10:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:47]tlvbuf is 0179A2A0 [10:33:47]SAM_PROTO_ClearQueue [10:33:47]wFMCommunicate request_size=4 [10:33:47]MH_SAM_APDU [10:33:47]CAPDU: 80 09 00 00 [10:33:47]Write to MH i2c: E2 08 00 F7 AB 80 09 00 00 00 00 00 00 14 [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:47]Read from MH i2c: E2 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 03 00 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 03 00 F7 AB 00 90 00 16 [10:33:47]RAPDU: 90 00 [10:33:47]wFMCommunicate OK [10:33:47]SAM_PROTO_ClearQueue done [10:33:47]KKMCreateOFDPacket [10:33:47]OFDProtocolAddRootSTLVToBuf [10:33:47]FM_MakeSignedData [10:33:47]FM_MakeSignedData [10:33:47]SAM_PROTO_SignData [10:33:47]wFMCommunicate request_size=4 [10:33:47]MH_SAM_APDU [10:33:47]CAPDU: 80 0D 01 02 [10:33:47]Write to MH i2c: E2 08 00 F8 AB 80 0D 01 02 00 00 00 00 1C [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 F8 AB 00 90 00 17 [10:33:48]RAPDU: 90 00 [10:33:48]wFMCommunicate OK [10:33:48]wFMCommunicate request_size=255 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 89 02 00 35 04 06 00 E0 [10:33:48]Write to MH i2c: E2 02 01 F9 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 89 02 00 35 04 06 00 E0 00 00 E7 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 F9 AB 00 90 00 18 [10:33:48]RAPDU: 90 00 [10:33:48]wFMCommunicate OK [10:33:48]wFMCommunicate request_size=10 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 0D 02 02 05 39 54 7A 36 78 [10:33:48]Write to MH i2c: E2 0D 00 FA AB 80 0D 02 02 05 00 39 54 7A 36 78 00 00 DE [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 FA AB 00 90 00 19 [10:33:48]RAPDU: 90 00 [10:33:48]wFMCommunicate OK [10:33:48]wFMCommunicate request_size=4 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 0D 03 02 [10:33:48]Write to MH i2c: E2 08 00 FB AB 80 0D 03 02 00 00 00 00 21 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 0B 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 0B 00 FB AB 00 C8 3F B3 34 20 06 28 59 90 00 B7 [10:33:48]RAPDU: C8 3F B3 34 20 06 28 59 90 00 [10:33:48]wFMCommunicate OK [10:33:48]SAM_PROTO_SignData done [10:33:48]FM_MakeSignedData done [10:33:48]CreateOFDProtocolMessage [10:33:48]wFMCommunicate request_size=4 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 11 00 00 [10:33:48]Write to MH i2c: E2 08 00 FC AB 80 11 00 00 00 00 00 00 21 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 17 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 17 00 FC AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [10:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:33:48]wFMCommunicate OK [10:33:48]CreateOFDProtocolMessage done [10:33:48]OFDSenderStorePacket 166334 [10:33:48]StoreOFDPacket docnum=166334 [10:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 69 C5 07 01 DC 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 89 02 00 35 04 06 00 E0 39 54 7A 36 78 C8 3F B3 34 20 06 28 59 [10:33:48]CheckFolder [10:33:48]dirname=/storage/ofd_packets [10:33:48]CheckFolder done [10:33:48]ProducePacketName [10:33:48]name=ofd_packets/00166334 [10:33:48]NVStorageSaveData ofd_packets/00166334 [10:33:48]File name is /storage/ofd_packets/00166334 [10:33:48]Write 301 bytes [10:33:48]NVStorageSaveData done [10:33:48]OFDSenderStorePacket done [10:33:48]KKMCreateOFDPacket done [10:33:48]NVStorageSaveData kkm_last_timestamp [10:33:48]File name is /storage/kkm_last_timestamp [10:33:48]Write 4 bytes [10:33:48]NVStorageSaveData done [10:33:48]ExternCall_PrintAddStr [10:33:48]wPrintStart [10:33:48]Write to MH i2c: 01 00 00 FD AB A8 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: 01 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: 01 07 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: 01 07 00 FD AB 00 00 00 00 00 FF 0F BD [10:33:48]RasterBufferAndPrint [10:33:48]line Счет N : (1)220911 [10:33:48]line ИНН: 02508201610067 [10:33:48]line Контрольно-Кассовый Чек [10:33:48]line ПРОДАЖА [10:33:48]line ТРК (МРК, ГНК) : 33 [10:33:48]line Товар: 2710124130 [10:33:48]line Аи-92-К-5 [10:33:48]line 14.950 * 66.90 [10:33:48]line = 1000.16 [10:33:48]line НДС 12% НСП 1% [10:33:48]line > о реализуемом товаре [10:33:48]line ОКРУГЛЕНИЕ: -0.16 [10:33:48]line ИТОГО: 1000.00 [10:33:48]line Внесено: 1000.00 [10:33:48]line СДАЧА: 0.00 [10:33:48]line НСП 1% : 8.85 [10:33:48]line НДС 12% : 106.21 [10:33:48]line Наличными: 1000.00 [10:33:48]line Безнал.: 0.00 [10:33:48]line Место: АЗС № 161 "Партнер Нефть" [10:33:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:33:48]line СНО: Общий режим [10:33:48]line Чек 89 22.10.2024 10:34 [10:33:48]line Смена: 536 ФФД: 1.0 [10:33:48]line ЗНМ: 0300000104 [10:33:48]line РНМ: 0000000000091764 [10:33:48]line Версия ККМ: 001 [10:33:48]line ФМ: 0000000000871759 [10:33:48]line ФД: 166334 [10:33:48]line ФПД: 246536835053176 [10:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103410&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166334&fm=246536835053176&tin=02508201610067®Number=0000000000091764&sum=100000 [10:33:48]OFD Sender: Processing packet 166334 [packets to send 48, broken 47] [10:33:48]ProducePacketName [10:33:48]name=ofd_packets/00166334 [10:33:48]OFD Sender: To server: pG, [10:33:48]CommunicateWithHost lk.salyk.kg:30040 [10:33:48]ConnectInit lk.salyk.kg [10:33:48]written 0, free lines is 4095 [10:33:48]Connected sock=7 [10:33:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 69 C5 07 01 DC 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 A2 7F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 89 02 00 35 04 06 00 E0 39 54 7A 36 78 C8 3F B3 34 20 06 28 59 [10:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AE AD 47 00 82 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 89 02 00 F4 03 04 00 0D 26 17 67 B6 04 01 00 00 54 BD FE B2 3C BB 33 F2 [10:33:49]CommunicateWithHost err = 0 [10:33:49]CheckOFDResponse [10:33:49]1017 (14) - 77093643461234 [10:33:49]1041 (16) - 0000000000871759 [10:33:49]1040 (4) - 166334 [10:33:49]1012 (4) - 22.10.2024 04:11 [10:33:49]1206 (1) - 0 [10:33:49]OFD Sender: Remove packet 166334 [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00166334 [10:33:49]NVStorageDeleteData [10:33:49]Write to MH i2c: 01 00 00 28 AC D4 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 28 AC 00 00 00 00 00 C8 0C AF [10:33:49]RasterBufferAndPrint [10:33:49]line [10:33:49]line [10:33:49]line [10:33:49]line [10:33:49]line [10:33:49]written 0, free lines is 3277 [10:33:49]MH_Cut [10:33:49]Write to MH i2c: D1 01 00 2F AC 01 AD [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: D1 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: D1 01 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: D1 01 00 2F AC 00 AC [10:33:49]Write to MH i2c: 01 00 00 30 AC DC [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]OFD Sender: No OFD packet to send [10:33:50]*** Cut start [10:33:50]*** Partial cut [10:33:50]*** CUTSNS_PIN = 1 [10:33:50]*** CUTSNS_PIN = 0 [10:33:50]*** Brake cut motor [10:33:50]Read from MH i2c: 01 [10:33:50]MH_I2C_Read... [10:33:50]*** Stop cut motor [10:33:50]*** Cut end [10:33:50]Read from MH i2c: 01 07 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 30 AC 00 00 00 00 00 FF 0F F1 [10:33:50]process_action close_receipt done [10:33:50]requested_data is exist [10:33:50]produce_requested_data [10:33:50]requested_item fm.sn is exist - process it [10:33:50]wFMCommunicate request_size=4 [10:33:50]MH_SAM_APDU [10:33:50]CAPDU: 80 11 00 00 [10:33:50]Write to MH i2c: E2 08 00 31 AC 80 11 00 00 00 00 00 00 57 [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:50]Read from MH i2c: E2 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 17 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 17 00 31 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [10:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:33:50]wFMCommunicate OK [10:33:50]requested_item fd.num is exist - process it [10:33:50]SAM_PROTO_GetFieldsCounters [10:33:50]wFMCommunicate request_size=4 [10:33:50]MH_SAM_APDU [10:33:50]CAPDU: 80 13 00 00 [10:33:50]Write to MH i2c: E2 08 00 32 AC 80 13 00 00 00 00 00 00 5A [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:50]Read from MH i2c: E2 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 62 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 62 00 32 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [10:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:50]wFMCommunicate OK [10:33:50]SAM_PROTO_GetFieldsCounters done [10:33:50]requested_item shift.num is exist - process it [10:33:50]requested_item shift.opened is exist - process it [10:33:50]req_shift_opened [10:33:50]FM_GetShiftState [10:33:50]SAM_PROTO_GetShiftState [10:33:50]wFMCommunicate request_size=4 [10:33:50]MH_SAM_APDU [10:33:50]CAPDU: 80 13 01 00 [10:33:50]Write to MH i2c: E2 08 00 33 AC 80 13 01 00 00 00 00 00 5C [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:50]Read from MH i2c: E2 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 0E 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: E2 0E 00 33 AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AF [10:33:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:33:50]wFMCommunicate OK [10:33:50]SAM_PROTO_GetShiftState done [10:33:50]FM_GetShiftState done [10:33:50]req_shift_opened done [10:33:50]requested_item shift.open_date is exist - process it [10:33:50]req_shift_open_date [10:33:50]req_shift_open_date done [10:33:50]produce_requested_data done [10:33:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166334,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:33:50]process_action_free close_receipt [10:33:50]json_value_free [10:33:50]json_value_free done [10:33:50]process_json_proto returns [10:33:50]Send response to host [10:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166334,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:33:50]free response buf [10:33:50]execute_script done [10:33:50]execute_script returns [10:33:50]free content buf [10:33:50]Sock 6.Close socket [10:33:50]Sock 6.Thread stoped [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:31]recv_with_timeout no data received [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:17]accept exits with 5 [10:38:17]New connection [10:38:17]New thread 3066776932 created [10:38:17]Thread 3066920292 joined [10:38:17]Waiting for new connection... [10:38:17] Sock 5.Parse request [10:38:17]Sock 5.Check first char [10:38:17]Sock 5.First char is OK [10:38:17]request: POST /json_proto HTTP/1.0 [10:38:17]Method: POST [10:38:17]URL: /json_proto [10:38:17]Method is POST - this is cgi request [10:38:17]url: /json_proto [10:38:17]query_string will be loaded in cgi processing [10:38:17]execute_cgi json_proto POST (null) [10:38:17]execute_cgi path=json_proto method=POST [10:38:17]POST find Content-Length [10:38:17]Host: 172.17.53.195:8080 [10:38:17]Content-Length: 676 [10:38:17]Content-Type: application/json [10:38:17] [10:38:17]POST finish read [10:38:17]Found Content-Length = 676 [10:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]execute_script... [10:38:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]POST & json_proto [10:38:17]process_json_proto [10:38:17]json parsed OK: [10:38:17]protocol is kg_v1.0 [10:38:17]action value=close_receipt [10:38:17]process_action close_receipt [10:38:17]cmd_close_receipt [10:38:17]MH_GetDate [10:38:17]Write to MH i2c: F0 00 00 34 AC CF [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 34 AC 00 B1 80 17 67 21 48 4A 65 9F [10:38:17]GetLastDocTimeStamp 1729593250 [10:38:17]current date 1729593521 [10:38:17]FM_GetShiftState [10:38:17]SAM_PROTO_GetShiftState [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 13 01 00 [10:38:17]Write to MH i2c: E2 08 00 35 AC 80 13 01 00 00 00 00 00 5E [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 35 AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B1 [10:38:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_GetShiftState done [10:38:17]FM_GetShiftState done [10:38:17]opened in 1729557463 [10:38:17]opened+sec_in_day 1729643863 [10:38:17]quantity*price = 99974 [10:38:17]sum+1 = 99975 [10:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 90 22.10.2024 10:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166335 ФПД: 71202469733055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166335&fm=71202469733055&tin=02508201610067®Number=0000000000091764&sum=99900 [10:38:18]StoreToDocumentArchive [10:38:18]shift 536 fd 166335 [10:38:18]save to /storage/0536/doc_00166335 [10:38:18]save last doc name /storage/0536/doc_00166335 to /storage/kkm_last_doc_name [10:38:18]save OK [10:38:18]Clear old archive folders... [10:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:18]tlvbuf is 01599CA0 [10:38:18]SAM_PROTO_ClearQueue [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 09 00 00 [10:38:18]Write to MH i2c: E2 08 00 42 AC 80 09 00 00 00 00 00 00 60 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 42 AC 00 90 00 62 [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]SAM_PROTO_ClearQueue done [10:38:18]KKMCreateOFDPacket [10:38:18]OFDProtocolAddRootSTLVToBuf [10:38:18]FM_MakeSignedData [10:38:18]FM_MakeSignedData [10:38:18]SAM_PROTO_SignData [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 01 02 [10:38:18]Write to MH i2c: E2 08 00 43 AC 80 0D 01 02 00 00 00 00 68 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 43 AC 00 90 00 63 [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]wFMCommunicate request_size=255 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B1 80 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 89 02 00 35 04 06 00 40 C2 1D EA [10:38:18]Write to MH i2c: E2 02 01 44 AC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B1 80 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 89 02 00 35 04 06 00 40 C2 1D EA 00 00 43 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 44 AC 00 90 00 64 [10:38:19]RAPDU: 90 00 [10:38:19]wFMCommunicate OK [10:38:19]wFMCommunicate request_size=7 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 0D 02 02 02 62 BF [10:38:19]Write to MH i2c: E2 0A 00 45 AC 80 0D 02 02 02 00 62 BF 00 00 90 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 03 00 45 AC 00 90 00 65 [10:38:19]RAPDU: 90 00 [10:38:19]wFMCommunicate OK [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 0D 03 02 [10:38:19]Write to MH i2c: E2 08 00 46 AC 80 0D 03 02 00 00 00 00 6D [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0B 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0B 00 46 AC 00 6C 7A 62 7F F6 1B BA 90 90 00 90 [10:38:19]RAPDU: 6C 7A 62 7F F6 1B BA 90 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_SignData done [10:38:19]FM_MakeSignedData done [10:38:19]CreateOFDProtocolMessage [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 11 00 00 [10:38:19]Write to MH i2c: E2 08 00 47 AC 80 11 00 00 00 00 00 00 6D [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 47 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [10:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:19]wFMCommunicate OK [10:38:19]CreateOFDProtocolMessage done [10:38:19]OFDSenderStorePacket 166335 [10:38:19]StoreOFDPacket docnum=166335 [10:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 85 7C 04 01 1A C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B1 80 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 89 02 00 35 04 06 00 40 C2 1D EA 62 BF 6C 7A 62 7F F6 1B BA 90 [10:38:19]CheckFolder [10:38:19]dirname=/storage/ofd_packets [10:38:19]CheckFolder done [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00166335 [10:38:19]NVStorageSaveData ofd_packets/00166335 [10:38:19]File name is /storage/ofd_packets/00166335 [10:38:19]Write 298 bytes [10:38:19]NVStorageSaveData done [10:38:19]OFDSenderStorePacket done [10:38:19]KKMCreateOFDPacket done [10:38:19]NVStorageSaveData kkm_last_timestamp [10:38:19]File name is /storage/kkm_last_timestamp [10:38:19]Write 4 bytes [10:38:19]NVStorageSaveData done [10:38:19]ExternCall_PrintAddStr [10:38:19]wPrintStart [10:38:19]Write to MH i2c: 01 00 00 48 AC F4 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 48 AC 00 00 00 00 00 FF 0F 09 [10:38:19]RasterBufferAndPrint [10:38:19]line Счет N : (1)220912 [10:38:19]line ИНН: 02508201610067 [10:38:19]line Контрольно-Кассовый Чек [10:38:19]line ПРОДАЖА [10:38:19]line ТРК (МРК, ГНК) : 11 [10:38:19]line Товар: 2710194210 [10:38:19]line ДТ-К-5 [10:38:19]line 13.120 * 76.20 [10:38:19]line = 999.74 [10:38:19]line НДС 12% НСП 1% [10:38:19]line > о реализуемом товаре [10:38:19]line ОКРУГЛЕНИЕ: -0.74 [10:38:19]line ИТОГО: 999.00 [10:38:19]line Внесено: 1000.00 [10:38:19]line СДАЧА: 1.00 [10:38:19]line НСП 1% : 8.85 [10:38:19]line НДС 12% : 106.17 [10:38:19]line Наличными: 999.00 [10:38:19]line Безнал.: 0.00 [10:38:19]line Место: АЗС № 161 "Партнер Нефть" [10:38:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:38:19]line СНО: Общий режим [10:38:19]line Чек 90 22.10.2024 10:38 [10:38:19]line Смена: 536 ФФД: 1.0 [10:38:19]line ЗНМ: 0300000104 [10:38:19]line РНМ: 0000000000091764 [10:38:19]line Версия ККМ: 001 [10:38:19]line ФМ: 0000000000871759 [10:38:19]line ФД: 166335 [10:38:19]line ФПД: 71202469733055 [10:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166335&fm=71202469733055&tin=02508201610067®Number=0000000000091764&sum=99900 [10:38:19]OFD Sender: Processing packet 166335 [packets to send 48, broken 47] [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00166335 [10:38:19]OFD Sender: To server: pG, [10:38:19]CommunicateWithHost lk.salyk.kg:30040 [10:38:19]ConnectInit lk.salyk.kg [10:38:19]written 0, free lines is 4095 [10:38:19]Connected sock=7 [10:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 85 7C 04 01 1A C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B1 80 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 89 02 00 35 04 06 00 40 C2 1D EA 62 BF 6C 7A 62 7F F6 1B BA 90 [10:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 98 D5 47 00 1F F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 89 02 00 F4 03 04 00 1C 27 17 67 B6 04 01 00 00 FA DB C9 1B EA 11 5A 51 [10:38:19]CommunicateWithHost err = 0 [10:38:19]CheckOFDResponse [10:38:19]1017 (14) - 77093643461234 [10:38:19]1041 (16) - 0000000000871759 [10:38:19]1040 (4) - 166335 [10:38:19]1012 (4) - 22.10.2024 04:16 [10:38:19]1206 (1) - 0 [10:38:19]OFD Sender: Remove packet 166335 [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00166335 [10:38:19]NVStorageDeleteData [10:38:20]Write to MH i2c: 01 00 00 73 AC 1F [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 07 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 07 00 73 AC 00 00 00 00 00 CB 0C FD [10:38:20]RasterBufferAndPrint [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]line [10:38:20]written 0, free lines is 3281 [10:38:20]MH_Cut [10:38:20]Write to MH i2c: D1 01 00 7A AC 01 F8 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 01 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: D1 01 00 7A AC 00 F7 [10:38:20]Write to MH i2c: 01 00 00 7B AC 27 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]OFD Sender: No OFD packet to send [10:38:20]*** Cut start [10:38:20]*** Partial cut [10:38:20]*** CUTSNS_PIN = 1 [10:38:20]*** CUTSNS_PIN = 0 [10:38:21]*** Brake cut motor [10:38:21]Read from MH i2c: 01 [10:38:21]MH_I2C_Read... [10:38:21]*** Stop cut motor [10:38:21]*** Cut end [10:38:21]Read from MH i2c: 01 07 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: 01 07 00 7B AC 00 00 00 00 00 FF 0F 3C [10:38:21]process_action close_receipt done [10:38:21]requested_data is exist [10:38:21]produce_requested_data [10:38:21]requested_item fm.sn is exist - process it [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 11 00 00 [10:38:21]Write to MH i2c: E2 08 00 7C AC 80 11 00 00 00 00 00 00 A2 [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 17 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 17 00 7C AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [10:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:21]wFMCommunicate OK [10:38:21]requested_item fd.num is exist - process it [10:38:21]SAM_PROTO_GetFieldsCounters [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 13 00 00 [10:38:21]Write to MH i2c: E2 08 00 7D AC 80 13 00 00 00 00 00 00 A5 [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 62 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 62 00 7D AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [10:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:21]wFMCommunicate OK [10:38:21]SAM_PROTO_GetFieldsCounters done [10:38:21]requested_item shift.num is exist - process it [10:38:21]requested_item shift.opened is exist - process it [10:38:21]req_shift_opened [10:38:21]FM_GetShiftState [10:38:21]SAM_PROTO_GetShiftState [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 13 01 00 [10:38:21]Write to MH i2c: E2 08 00 7E AC 80 13 01 00 00 00 00 00 A7 [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 0E 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 0E 00 7E AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FA [10:38:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:38:21]wFMCommunicate OK [10:38:21]SAM_PROTO_GetShiftState done [10:38:21]FM_GetShiftState done [10:38:21]req_shift_opened done [10:38:21]requested_item shift.open_date is exist - process it [10:38:21]req_shift_open_date [10:38:21]req_shift_open_date done [10:38:21]produce_requested_data done [10:38:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166335,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:38:21]process_action_free close_receipt [10:38:21]json_value_free [10:38:21]json_value_free done [10:38:21]process_json_proto returns [10:38:21]Send response to host [10:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166335,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:38:21]free response buf [10:38:21]execute_script done [10:38:21]execute_script returns [10:38:21]free content buf [10:38:21]Sock 5.Close socket [10:38:21]Sock 5.Thread stoped [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:46]accept exits with 6 [10:43:46]New connection [10:43:46]New thread 3066920292 created [10:43:46]Thread 3066776932 joined [10:43:46]Waiting for new connection... [10:43:46] Sock 6.Parse request [10:43:46]Sock 6.Check first char [10:43:46]Sock 6.First char is OK [10:43:46]request: POST /json_proto HTTP/1.0 [10:43:46]Method: POST [10:43:46]URL: /json_proto [10:43:46]Method is POST - this is cgi request [10:43:46]url: /json_proto [10:43:46]query_string will be loaded in cgi processing [10:43:46]execute_cgi json_proto POST (null) [10:43:46]execute_cgi path=json_proto method=POST [10:43:46]POST find Content-Length [10:43:46]Host: 172.17.53.195:8080 [10:43:46]Content-Length: 682 [10:43:46]Content-Type: application/json [10:43:46] [10:43:46]POST finish read [10:43:46]Found Content-Length = 682 [10:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:46]execute_script... [10:43:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:46]POST & json_proto [10:43:46]process_json_proto [10:43:46]json parsed OK: [10:43:46]protocol is kg_v1.0 [10:43:46]action value=close_receipt [10:43:46]process_action close_receipt [10:43:46]cmd_close_receipt [10:43:46]MH_GetDate [10:43:46]Write to MH i2c: F0 00 00 7F AC 1A [10:43:46]Write i2c OK [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: F0 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: F0 09 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: F0 09 00 7F AC 00 F9 81 17 67 21 48 4A 65 33 [10:43:46]GetLastDocTimeStamp 1729593521 [10:43:46]current date 1729593849 [10:43:46]FM_GetShiftState [10:43:46]SAM_PROTO_GetShiftState [10:43:46]wFMCommunicate request_size=4 [10:43:46]MH_SAM_APDU [10:43:46]CAPDU: 80 13 01 00 [10:43:46]Write to MH i2c: E2 08 00 80 AC 80 13 01 00 00 00 00 00 A9 [10:43:46]Write i2c OK [10:43:46]MH_I2C_Read... [10:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:46]Read from MH i2c: E2 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 0E 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 0E 00 80 AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FC [10:43:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:43:46]wFMCommunicate OK [10:43:46]SAM_PROTO_GetShiftState done [10:43:46]FM_GetShiftState done [10:43:46]opened in 1729557463 [10:43:46]opened+sec_in_day 1729643863 [10:43:46]quantity*price = 200043 [10:43:46]sum+1 = 200044 [10:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 91 22.10.2024 10:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166336 ФПД: 44702357857693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104409&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166336&fm=44702357857693&tin=02508201610067®Number=0000000000091764&sum=200000 [10:43:47]StoreToDocumentArchive [10:43:47]shift 536 fd 166336 [10:43:47]save to /storage/0536/doc_00166336 [10:43:47]save last doc name /storage/0536/doc_00166336 to /storage/kkm_last_doc_name [10:43:47]save OK [10:43:47]Clear old archive folders... [10:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:47]tlvbuf is 015FC710 [10:43:47]SAM_PROTO_ClearQueue [10:43:47]wFMCommunicate request_size=4 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 09 00 00 [10:43:47]Write to MH i2c: E2 08 00 8D AC 80 09 00 00 00 00 00 00 AB [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 8D AC 00 90 00 AD [10:43:47]RAPDU: 90 00 [10:43:47]wFMCommunicate OK [10:43:47]SAM_PROTO_ClearQueue done [10:43:47]KKMCreateOFDPacket [10:43:47]OFDProtocolAddRootSTLVToBuf [10:43:47]FM_MakeSignedData [10:43:47]FM_MakeSignedData [10:43:47]SAM_PROTO_SignData [10:43:47]wFMCommunicate request_size=4 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 0D 01 02 [10:43:47]Write to MH i2c: E2 08 00 8E AC 80 0D 01 02 00 00 00 00 B3 [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 8E AC 00 90 00 AE [10:43:47]RAPDU: 90 00 [10:43:47]wFMCommunicate OK [10:43:47]wFMCommunicate request_size=255 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F9 81 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 89 02 00 35 04 06 00 28 [10:43:47]Write to MH i2c: E2 02 01 8F AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F9 81 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 89 02 00 35 04 06 00 28 00 00 D1 [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 8F AC 00 90 00 AF [10:43:47]RAPDU: 90 00 [10:43:47]wFMCommunicate OK [10:43:47]wFMCommunicate request_size=10 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 0D 02 02 05 A8 14 29 25 9D [10:43:47]Write to MH i2c: E2 0D 00 90 AC 80 0D 02 02 05 00 A8 14 29 25 9D 00 00 67 [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 03 00 90 AC 00 90 00 B0 [10:43:47]RAPDU: 90 00 [10:43:47]wFMCommunicate OK [10:43:47]wFMCommunicate request_size=4 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 0D 03 02 [10:43:47]Write to MH i2c: E2 08 00 91 AC 80 0D 03 02 00 00 00 00 B8 [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 0B 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 0B 00 91 AC 00 9A AF 93 86 8F 93 D2 39 90 00 48 [10:43:47]RAPDU: 9A AF 93 86 8F 93 D2 39 90 00 [10:43:47]wFMCommunicate OK [10:43:47]SAM_PROTO_SignData done [10:43:47]FM_MakeSignedData done [10:43:47]CreateOFDProtocolMessage [10:43:47]wFMCommunicate request_size=4 [10:43:47]MH_SAM_APDU [10:43:47]CAPDU: 80 11 00 00 [10:43:47]Write to MH i2c: E2 08 00 92 AC 80 11 00 00 00 00 00 00 B8 [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:47]Read from MH i2c: E2 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 17 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: E2 17 00 92 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [10:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:43:47]wFMCommunicate OK [10:43:47]CreateOFDProtocolMessage done [10:43:47]OFDSenderStorePacket 166336 [10:43:47]StoreOFDPacket docnum=166336 [10:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF 59 07 01 42 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F9 81 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 89 02 00 35 04 06 00 28 A8 14 29 25 9D 9A AF 93 86 8F 93 D2 39 [10:43:47]CheckFolder [10:43:47]dirname=/storage/ofd_packets [10:43:47]CheckFolder done [10:43:47]ProducePacketName [10:43:47]name=ofd_packets/00166336 [10:43:47]NVStorageSaveData ofd_packets/00166336 [10:43:47]File name is /storage/ofd_packets/00166336 [10:43:47]Write 301 bytes [10:43:47]NVStorageSaveData done [10:43:47]OFDSenderStorePacket done [10:43:47]KKMCreateOFDPacket done [10:43:47]NVStorageSaveData kkm_last_timestamp [10:43:47]File name is /storage/kkm_last_timestamp [10:43:47]Write 4 bytes [10:43:47]NVStorageSaveData done [10:43:47]ExternCall_PrintAddStr [10:43:47]wPrintStart [10:43:47]Write to MH i2c: 01 00 00 93 AC 3F [10:43:47]Write i2c OK [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: 01 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: 01 07 00 [10:43:47]MH_I2C_Read... [10:43:47]Read from MH i2c: 01 07 00 93 AC 00 00 00 00 00 FF 0F 54 [10:43:47]RasterBufferAndPrint [10:43:47]line Счет N : (1)220914 [10:43:47]line ИНН: 02508201610067 [10:43:47]line Контрольно-Кассовый Чек [10:43:47]line ПРОДАЖА [10:43:47]line ТРК (МРК, ГНК) : 14 [10:43:47]line Товар: 2710124500 [10:43:47]line Аи-95-К-5 [10:43:47]line 26.960 * 74.20 [10:43:47]line = 2000.43 [10:43:47]line НДС 12% НСП 1% [10:43:47]line > о реализуемом товаре [10:43:47]line ОКРУГЛЕНИЕ: -0.43 [10:43:47]line ИТОГО: 2000.00 [10:43:47]line Внесено: 2000.00 [10:43:47]line СДАЧА: 0.00 [10:43:47]line НСП 1% : 17.70 [10:43:47]line НДС 12% : 212.43 [10:43:47]line Наличными: 2000.00 [10:43:47]line Безнал.: 0.00 [10:43:47]line Место: АЗС № 161 "Партнер Нефть" [10:43:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:43:47]line СНО: Общий режим [10:43:47]line Чек 91 22.10.2024 10:44 [10:43:47]line Смена: 536 ФФД: 1.0 [10:43:47]line ЗНМ: 0300000104 [10:43:47]line РНМ: 0000000000091764 [10:43:47]line Версия ККМ: 001 [10:43:47]line ФМ: 0000000000871759 [10:43:47]line ФД: 166336 [10:43:47]line ФПД: 44702357857693 [10:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104409&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166336&fm=44702357857693&tin=02508201610067®Number=0000000000091764&sum=200000 [10:43:48]OFD Sender: Processing packet 166336 [packets to send 48, broken 47] [10:43:48]ProducePacketName [10:43:48]name=ofd_packets/00166336 [10:43:48]OFD Sender: To server: pG, [10:43:48]CommunicateWithHost lk.salyk.kg:30040 [10:43:48]ConnectInit lk.salyk.kg [10:43:48]written 0, free lines is 4095 [10:43:48]Connected sock=7 [10:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FF 59 07 01 42 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F9 81 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 89 02 00 35 04 06 00 28 A8 14 29 25 9D 9A AF 93 86 8F 93 D2 39 [10:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC 12 47 00 E6 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 89 02 00 F4 03 04 00 64 28 17 67 B6 04 01 00 00 FC 81 D9 77 86 32 68 30 [10:43:48]CommunicateWithHost err = 0 [10:43:48]CheckOFDResponse [10:43:48]1017 (14) - 77093643461234 [10:43:48]1041 (16) - 0000000000871759 [10:43:48]1040 (4) - 166336 [10:43:48]1012 (4) - 22.10.2024 04:21 [10:43:48]1206 (1) - 0 [10:43:48]OFD Sender: Remove packet 166336 [10:43:48]ProducePacketName [10:43:48]name=ofd_packets/00166336 [10:43:48]NVStorageDeleteData [10:43:48]Write to MH i2c: 01 00 00 BE AC 6A [10:43:48]Write i2c OK [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: 01 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: 01 07 00 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: 01 07 00 BE AC 00 00 00 00 00 CF 0C 4C [10:43:48]RasterBufferAndPrint [10:43:48]line [10:43:48]line [10:43:48]line [10:43:48]line [10:43:48]line [10:43:48]written 0, free lines is 3286 [10:43:48]MH_Cut [10:43:48]Write to MH i2c: D1 01 00 C5 AC 01 43 [10:43:48]Write i2c OK [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: D1 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: D1 01 00 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: D1 01 00 C5 AC 00 42 [10:43:48]Write to MH i2c: 01 00 00 C6 AC 72 [10:43:48]Write i2c OK [10:43:48]MH_I2C_Read... [10:43:48]OFD Sender: No OFD packet to send [10:43:49]*** Cut start [10:43:49]*** Partial cut [10:43:49]*** CUTSNS_PIN = 1 [10:43:49]*** CUTSNS_PIN = 0 [10:43:49]*** Brake cut motor [10:43:49]Read from MH i2c: 01 [10:43:49]MH_I2C_Read... [10:43:49]*** Stop cut motor [10:43:49]*** Cut end [10:43:49]Read from MH i2c: 01 07 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: 01 07 00 C6 AC 00 00 00 00 00 FF 0F 87 [10:43:49]process_action close_receipt done [10:43:49]requested_data is exist [10:43:49]produce_requested_data [10:43:49]requested_item fm.sn is exist - process it [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 11 00 00 [10:43:49]Write to MH i2c: E2 08 00 C7 AC 80 11 00 00 00 00 00 00 ED [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:50]Read from MH i2c: E2 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 17 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 17 00 C7 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [10:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:43:50]wFMCommunicate OK [10:43:50]requested_item fd.num is exist - process it [10:43:50]SAM_PROTO_GetFieldsCounters [10:43:50]wFMCommunicate request_size=4 [10:43:50]MH_SAM_APDU [10:43:50]CAPDU: 80 13 00 00 [10:43:50]Write to MH i2c: E2 08 00 C8 AC 80 13 00 00 00 00 00 00 F0 [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:50]Read from MH i2c: E2 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 62 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 62 00 C8 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [10:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:50]wFMCommunicate OK [10:43:50]SAM_PROTO_GetFieldsCounters done [10:43:50]requested_item shift.num is exist - process it [10:43:50]requested_item shift.opened is exist - process it [10:43:50]req_shift_opened [10:43:50]FM_GetShiftState [10:43:50]SAM_PROTO_GetShiftState [10:43:50]wFMCommunicate request_size=4 [10:43:50]MH_SAM_APDU [10:43:50]CAPDU: 80 13 01 00 [10:43:50]Write to MH i2c: E2 08 00 C9 AC 80 13 01 00 00 00 00 00 F2 [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:50]Read from MH i2c: E2 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 0E 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 0E 00 C9 AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 45 [10:43:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:43:50]wFMCommunicate OK [10:43:50]SAM_PROTO_GetShiftState done [10:43:50]FM_GetShiftState done [10:43:50]req_shift_opened done [10:43:50]requested_item shift.open_date is exist - process it [10:43:50]req_shift_open_date [10:43:50]req_shift_open_date done [10:43:50]produce_requested_data done [10:43:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166336,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:43:50]process_action_free close_receipt [10:43:50]json_value_free [10:43:50]json_value_free done [10:43:50]process_json_proto returns [10:43:50]Send response to host [10:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166336,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:43:50]free response buf [10:43:50]execute_script done [10:43:50]execute_script returns [10:43:50]free content buf [10:43:50]Sock 6.Close socket [10:43:50]Sock 6.Thread stoped [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:34]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:05]ConnectInit Can't connect to host [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:21]accept exits with 5 [10:49:21]New connection [10:49:21]New thread 3066776932 created [10:49:21]Thread 3066920292 joined [10:49:21]Waiting for new connection... [10:49:21] Sock 5.Parse request [10:49:21]Sock 5.Check first char [10:49:21]Sock 5.First char is OK [10:49:21]request: POST /json_proto HTTP/1.0 [10:49:21]Method: POST [10:49:21]URL: /json_proto [10:49:21]Method is POST - this is cgi request [10:49:21]url: /json_proto [10:49:21]query_string will be loaded in cgi processing [10:49:21]execute_cgi json_proto POST (null) [10:49:21]execute_cgi path=json_proto method=POST [10:49:21]POST find Content-Length [10:49:21]Host: 172.17.53.195:8080 [10:49:21]Content-Length: 677 [10:49:21]Content-Type: application/json [10:49:21] [10:49:21]POST finish read [10:49:21]Found Content-Length = 677 [10:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:21]execute_script... [10:49:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:21]POST & json_proto [10:49:21]process_json_proto [10:49:21]json parsed OK: [10:49:21]protocol is kg_v1.0 [10:49:21]action value=close_receipt [10:49:21]process_action close_receipt [10:49:21]cmd_close_receipt [10:49:21]MH_GetDate [10:49:21]Write to MH i2c: F0 00 00 CA AC 65 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: F0 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: F0 09 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: F0 09 00 CA AC 00 49 83 17 67 21 48 4A 65 D0 [10:49:21]GetLastDocTimeStamp 1729593849 [10:49:21]current date 1729594185 [10:49:21]FM_GetShiftState [10:49:21]SAM_PROTO_GetShiftState [10:49:21]wFMCommunicate request_size=4 [10:49:21]MH_SAM_APDU [10:49:21]CAPDU: 80 13 01 00 [10:49:21]Write to MH i2c: E2 08 00 CB AC 80 13 01 00 00 00 00 00 F4 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:21]Read from MH i2c: E2 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: E2 0E 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: E2 0E 00 CB AC 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 47 [10:49:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:49:21]wFMCommunicate OK [10:49:21]SAM_PROTO_GetShiftState done [10:49:21]FM_GetShiftState done [10:49:21]opened in 1729557463 [10:49:21]opened+sec_in_day 1729643863 [10:49:21]quantity*price = 30038 [10:49:21]sum+1 = 30039 [10:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 92 22.10.2024 10:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166337 ФПД: 5259859000291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166337&fm=5259859000291&tin=02508201610067®Number=0000000000091764&sum=30000 [10:49:22]StoreToDocumentArchive [10:49:22]shift 536 fd 166337 [10:49:22]save to /storage/0536/doc_00166337 [10:49:22]save last doc name /storage/0536/doc_00166337 to /storage/kkm_last_doc_name [10:49:22]save OK [10:49:22]Clear old archive folders... [10:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:22]tlvbuf is 01512F60 [10:49:22]SAM_PROTO_ClearQueue [10:49:22]wFMCommunicate request_size=4 [10:49:22]MH_SAM_APDU [10:49:22]CAPDU: 80 09 00 00 [10:49:22]Write to MH i2c: E2 08 00 D8 AC 80 09 00 00 00 00 00 00 F6 [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 D8 AC 00 90 00 F8 [10:49:23]RAPDU: 90 00 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_ClearQueue done [10:49:23]KKMCreateOFDPacket [10:49:23]OFDProtocolAddRootSTLVToBuf [10:49:23]FM_MakeSignedData [10:49:23]FM_MakeSignedData [10:49:23]SAM_PROTO_SignData [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 0D 01 02 [10:49:23]Write to MH i2c: E2 08 00 D9 AC 80 0D 01 02 00 00 00 00 FE [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 D9 AC 00 90 00 F9 [10:49:23]RAPDU: 90 00 [10:49:23]wFMCommunicate OK [10:49:23]wFMCommunicate request_size=255 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 49 83 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 89 02 00 35 04 06 00 04 [10:49:23]Write to MH i2c: E2 02 01 DA AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 49 83 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 89 02 00 35 04 06 00 04 00 00 98 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 DA AC 00 90 00 FA [10:49:23]RAPDU: 90 00 [10:49:23]wFMCommunicate OK [10:49:23]wFMCommunicate request_size=10 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 0D 02 02 05 C8 A8 06 FB E3 [10:49:23]Write to MH i2c: E2 0D 00 DB AC 80 0D 02 02 05 00 C8 A8 06 FB E3 00 00 5F [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 03 00 DB AC 00 90 00 FB [10:49:23]RAPDU: 90 00 [10:49:23]wFMCommunicate OK [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 0D 03 02 [10:49:23]Write to MH i2c: E2 08 00 DC AC 80 0D 03 02 00 00 00 00 03 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0B 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0B 00 DC AC 00 A1 4B 70 C9 B5 B0 86 AF 90 00 C3 [10:49:23]RAPDU: A1 4B 70 C9 B5 B0 86 AF 90 00 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_SignData done [10:49:23]FM_MakeSignedData done [10:49:23]CreateOFDProtocolMessage [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 11 00 00 [10:49:23]Write to MH i2c: E2 08 00 DD AC 80 11 00 00 00 00 00 00 03 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 DD AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [10:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:49:23]wFMCommunicate OK [10:49:23]CreateOFDProtocolMessage done [10:49:23]OFDSenderStorePacket 166337 [10:49:23]StoreOFDPacket docnum=166337 [10:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 3C 07 01 87 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 49 83 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 89 02 00 35 04 06 00 04 C8 A8 06 FB E3 A1 4B 70 C9 B5 B0 86 AF [10:49:23]CheckFolder [10:49:23]dirname=/storage/ofd_packets [10:49:23]CheckFolder done [10:49:23]ProducePacketName [10:49:23]name=ofd_packets/00166337 [10:49:23]NVStorageSaveData ofd_packets/00166337 [10:49:23]File name is /storage/ofd_packets/00166337 [10:49:23]Write 301 bytes [10:49:23]NVStorageSaveData done [10:49:23]OFDSenderStorePacket done [10:49:23]KKMCreateOFDPacket done [10:49:23]NVStorageSaveData kkm_last_timestamp [10:49:23]File name is /storage/kkm_last_timestamp [10:49:23]Write 4 bytes [10:49:23]NVStorageSaveData done [10:49:23]ExternCall_PrintAddStr [10:49:23]wPrintStart [10:49:23]Write to MH i2c: 01 00 00 DE AC 8A [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: 01 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: 01 07 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: 01 07 00 DE AC 00 00 00 00 00 FF 0F 9F [10:49:23]RasterBufferAndPrint [10:49:23]line Счет N : (1)220915 [10:49:23]line ИНН: 02508201610067 [10:49:23]line Контрольно-Кассовый Чек [10:49:23]line ПРОДАЖА [10:49:23]line ТРК (МРК, ГНК) : 23 [10:49:23]line Товар: 2710124130 [10:49:23]line Аи-92-К-5 [10:49:23]line 4.490 * 66.90 [10:49:23]line = 300.38 [10:49:23]line НДС 12% НСП 1% [10:49:23]line > о реализуемом товаре [10:49:23]line ОКРУГЛЕНИЕ: -0.38 [10:49:23]line ИТОГО: 300.00 [10:49:23]line Внесено: 300.00 [10:49:23]line СДАЧА: 0.00 [10:49:23]line НСП 1% : 2.66 [10:49:23]line НДС 12% : 31.90 [10:49:23]line Наличными: 300.00 [10:49:23]line Безнал.: 0.00 [10:49:23]line Место: АЗС № 161 "Партнер Нефть" [10:49:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:49:23]line СНО: Общий режим [10:49:23]line Чек 92 22.10.2024 10:49 [10:49:23]line Смена: 536 ФФД: 1.0 [10:49:23]line ЗНМ: 0300000104 [10:49:23]line РНМ: 0000000000091764 [10:49:23]line Версия ККМ: 001 [10:49:23]line ФМ: 0000000000871759 [10:49:23]line ФД: 166337 [10:49:23]line ФПД: 5259859000291 [10:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166337&fm=5259859000291&tin=02508201610067®Number=0000000000091764&sum=30000 [10:49:23]OFD Sender: Processing packet 166337 [packets to send 48, broken 47] [10:49:23]ProducePacketName [10:49:23]name=ofd_packets/00166337 [10:49:23]OFD Sender: To server: pG, [10:49:23]CommunicateWithHost lk.salyk.kg:30040 [10:49:23]ConnectInit lk.salyk.kg [10:49:23]written 0, free lines is 4095 [10:49:23]Connected sock=7 [10:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 3C 07 01 87 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 49 83 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 89 02 00 35 04 06 00 04 C8 A8 06 FB E3 A1 4B 70 C9 B5 B0 86 AF [10:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F6 AC 47 00 2C B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 89 02 00 F4 03 04 00 B4 29 17 67 B6 04 01 00 00 7F 22 A8 1D B3 FB FC 17 [10:49:24]CommunicateWithHost err = 0 [10:49:24]CheckOFDResponse [10:49:24]1017 (14) - 77093643461234 [10:49:24]1041 (16) - 0000000000871759 [10:49:24]1040 (4) - 166337 [10:49:24]1012 (4) - 22.10.2024 04:27 [10:49:24]1206 (1) - 0 [10:49:24]OFD Sender: Remove packet 166337 [10:49:24]ProducePacketName [10:49:24]name=ofd_packets/00166337 [10:49:24]NVStorageDeleteData [10:49:24]Write to MH i2c: 01 00 00 09 AD B6 [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: 01 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: 01 07 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: 01 07 00 09 AD 00 00 00 00 00 C6 0C 8F [10:49:24]RasterBufferAndPrint [10:49:24]line [10:49:24]line [10:49:24]line [10:49:24]line [10:49:24]line [10:49:24]written 0, free lines is 3279 [10:49:24]MH_Cut [10:49:24]Write to MH i2c: D1 01 00 10 AD 01 8F [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: D1 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: D1 01 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: D1 01 00 10 AD 00 8E [10:49:24]Write to MH i2c: 01 00 00 11 AD BE [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]OFD Sender: No OFD packet to send [10:49:25]*** Cut start [10:49:25]*** Partial cut [10:49:25]*** CUTSNS_PIN = 1 [10:49:25]*** CUTSNS_PIN = 0 [10:49:25]*** Brake cut motor [10:49:25]Read from MH i2c: 01 [10:49:25]MH_I2C_Read... [10:49:25]*** Stop cut motor [10:49:25]*** Cut end [10:49:25]Read from MH i2c: 01 07 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: 01 07 00 11 AD 00 00 00 00 00 FF 0F D3 [10:49:25]process_action close_receipt done [10:49:25]requested_data is exist [10:49:25]produce_requested_data [10:49:25]requested_item fm.sn is exist - process it [10:49:25]wFMCommunicate request_size=4 [10:49:25]MH_SAM_APDU [10:49:25]CAPDU: 80 11 00 00 [10:49:25]Write to MH i2c: E2 08 00 12 AD 80 11 00 00 00 00 00 00 39 [10:49:25]Write i2c OK [10:49:25]MH_I2C_Read... [10:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:25]Read from MH i2c: E2 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 17 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 17 00 12 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [10:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:49:25]wFMCommunicate OK [10:49:25]requested_item fd.num is exist - process it [10:49:25]SAM_PROTO_GetFieldsCounters [10:49:25]wFMCommunicate request_size=4 [10:49:25]MH_SAM_APDU [10:49:25]CAPDU: 80 13 00 00 [10:49:25]Write to MH i2c: E2 08 00 13 AD 80 13 00 00 00 00 00 00 3C [10:49:25]Write i2c OK [10:49:25]MH_I2C_Read... [10:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:25]Read from MH i2c: E2 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 62 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 62 00 13 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:25]wFMCommunicate OK [10:49:25]SAM_PROTO_GetFieldsCounters done [10:49:25]requested_item shift.num is exist - process it [10:49:25]requested_item shift.opened is exist - process it [10:49:25]req_shift_opened [10:49:25]FM_GetShiftState [10:49:25]SAM_PROTO_GetShiftState [10:49:25]wFMCommunicate request_size=4 [10:49:25]MH_SAM_APDU [10:49:25]CAPDU: 80 13 01 00 [10:49:25]Write to MH i2c: E2 08 00 14 AD 80 13 01 00 00 00 00 00 3E [10:49:25]Write i2c OK [10:49:25]MH_I2C_Read... [10:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:25]Read from MH i2c: E2 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 0E 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 0E 00 14 AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [10:49:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:49:25]wFMCommunicate OK [10:49:25]SAM_PROTO_GetShiftState done [10:49:25]FM_GetShiftState done [10:49:25]req_shift_opened done [10:49:25]requested_item shift.open_date is exist - process it [10:49:25]req_shift_open_date [10:49:25]req_shift_open_date done [10:49:25]produce_requested_data done [10:49:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166337,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:49:25]process_action_free close_receipt [10:49:25]json_value_free [10:49:25]json_value_free done [10:49:25]process_json_proto returns [10:49:25]Send response to host [10:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166337,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:49:25]free response buf [10:49:25]execute_script done [10:49:25]execute_script returns [10:49:25]free content buf [10:49:25]Sock 5.Close socket [10:49:25]Sock 5.Thread stoped [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:13]accept exits with 6 [10:53:13]New connection [10:53:13]New thread 3066920292 created [10:53:13]Thread 3066776932 joined [10:53:13]Waiting for new connection... [10:53:13] Sock 6.Parse request [10:53:13]Sock 6.Check first char [10:53:13]Sock 6.First char is OK [10:53:13]request: POST /json_proto HTTP/1.0 [10:53:13]Method: POST [10:53:13]URL: /json_proto [10:53:13]Method is POST - this is cgi request [10:53:13]url: /json_proto [10:53:13]query_string will be loaded in cgi processing [10:53:13]execute_cgi json_proto POST (null) [10:53:13]execute_cgi path=json_proto method=POST [10:53:13]POST find Content-Length [10:53:13]Host: 172.17.53.195:8080 [10:53:13]Content-Length: 679 [10:53:13]Content-Type: application/json [10:53:13] [10:53:13]POST finish read [10:53:13]Found Content-Length = 679 [10:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:13]execute_script... [10:53:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:13]POST & json_proto [10:53:13]process_json_proto [10:53:13]json parsed OK: [10:53:13]protocol is kg_v1.0 [10:53:13]action value=close_receipt [10:53:13]process_action close_receipt [10:53:13]cmd_close_receipt [10:53:13]MH_GetDate [10:53:13]Write to MH i2c: F0 00 00 15 AD B1 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 09 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 09 00 15 AD 00 31 84 17 67 21 48 4A 65 05 [10:53:13]GetLastDocTimeStamp 1729594185 [10:53:13]current date 1729594417 [10:53:13]FM_GetShiftState [10:53:13]SAM_PROTO_GetShiftState [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 13 01 00 [10:53:13]Write to MH i2c: E2 08 00 16 AD 80 13 01 00 00 00 00 00 40 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0E 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0E 00 16 AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 93 [10:53:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_GetShiftState done [10:53:13]FM_GetShiftState done [10:53:13]opened in 1729557463 [10:53:13]opened+sec_in_day 1729643863 [10:53:13]quantity*price = 100050 [10:53:13]sum+1 = 100052 [10:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 93 22.10.2024 10:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166338 ФПД: 192239292723184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166338&fm=192239292723184&tin=02508201610067®Number=0000000000091764&sum=100000 [10:53:14]StoreToDocumentArchive [10:53:14]shift 536 fd 166338 [10:53:14]save to /storage/0536/doc_00166338 [10:53:14]save last doc name /storage/0536/doc_00166338 to /storage/kkm_last_doc_name [10:53:14]save OK [10:53:14]Clear old archive folders... [10:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:53:14]tlvbuf is 01599F80 [10:53:14]SAM_PROTO_ClearQueue [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 09 00 00 [10:53:14]Write to MH i2c: E2 08 00 23 AD 80 09 00 00 00 00 00 00 42 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 23 AD 00 90 00 44 [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_ClearQueue done [10:53:14]KKMCreateOFDPacket [10:53:14]OFDProtocolAddRootSTLVToBuf [10:53:14]FM_MakeSignedData [10:53:14]FM_MakeSignedData [10:53:14]SAM_PROTO_SignData [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 0D 01 02 [10:53:14]Write to MH i2c: E2 08 00 24 AD 80 0D 01 02 00 00 00 00 4A [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:14]OFD Sender: No OFD packet to send [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 24 AD 00 90 00 45 [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]wFMCommunicate request_size=255 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 31 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 89 02 00 35 04 06 00 AE D7 32 C1 [10:53:14]Write to MH i2c: E2 02 01 25 AD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 31 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 89 02 00 35 04 06 00 AE D7 32 C1 00 00 45 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 25 AD 00 90 00 46 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]wFMCommunicate request_size=7 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 0D 02 02 02 2F F0 [10:53:15]Write to MH i2c: E2 0A 00 26 AD 80 0D 02 02 02 00 2F F0 00 00 70 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 03 00 26 AD 00 90 00 47 [10:53:15]RAPDU: 90 00 [10:53:15]wFMCommunicate OK [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 0D 03 02 [10:53:15]Write to MH i2c: E2 08 00 27 AD 80 0D 03 02 00 00 00 00 4F [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 27 AD 00 34 48 0B D2 0A B9 48 63 90 00 17 [10:53:15]RAPDU: 34 48 0B D2 0A B9 48 63 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_SignData done [10:53:15]FM_MakeSignedData done [10:53:15]CreateOFDProtocolMessage [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 11 00 00 [10:53:15]Write to MH i2c: E2 08 00 28 AD 80 11 00 00 00 00 00 00 4F [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 28 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [10:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:53:15]wFMCommunicate OK [10:53:15]CreateOFDProtocolMessage done [10:53:15]OFDSenderStorePacket 166338 [10:53:15]StoreOFDPacket docnum=166338 [10:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 09 6A 04 01 04 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 31 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 89 02 00 35 04 06 00 AE D7 32 C1 2F F0 34 48 0B D2 0A B9 48 63 [10:53:15]CheckFolder [10:53:15]dirname=/storage/ofd_packets [10:53:15]CheckFolder done [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00166338 [10:53:15]NVStorageSaveData ofd_packets/00166338 [10:53:15]File name is /storage/ofd_packets/00166338 [10:53:15]Write 298 bytes [10:53:15]NVStorageSaveData done [10:53:15]OFDSenderStorePacket done [10:53:15]KKMCreateOFDPacket done [10:53:15]NVStorageSaveData kkm_last_timestamp [10:53:15]File name is /storage/kkm_last_timestamp [10:53:15]Write 4 bytes [10:53:15]NVStorageSaveData done [10:53:15]ExternCall_PrintAddStr [10:53:15]wPrintStart [10:53:15]Write to MH i2c: 01 00 00 29 AD D6 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 29 AD 00 00 00 00 00 FF 0F EB [10:53:15]RasterBufferAndPrint [10:53:15]line Счет N : (1)220916 [10:53:15]line ИНН: 02508201610067 [10:53:15]line Контрольно-Кассовый Чек [10:53:15]line ПРОДАЖА [10:53:15]line ТРК (МРК, ГНК) : 11 [10:53:15]line Товар: 2710194210 [10:53:15]line ДТ-К-5 [10:53:15]line 13.130 * 76.20 [10:53:15]line = 1000.51 [10:53:15]line НДС 12% НСП 1% [10:53:15]line > о реализуемом товаре [10:53:15]line ОКРУГЛЕНИЕ: -0.51 [10:53:15]line ИТОГО: 1000.00 [10:53:15]line Внесено: 1000.00 [10:53:15]line СДАЧА: 0.00 [10:53:15]line НСП 1% : 8.85 [10:53:15]line НДС 12% : 106.25 [10:53:15]line Наличными: 1000.00 [10:53:15]line Безнал.: 0.00 [10:53:15]line Место: АЗС № 161 "Партнер Нефть" [10:53:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:53:15]line СНО: Общий режим [10:53:15]line Чек 93 22.10.2024 10:53 [10:53:15]line Смена: 536 ФФД: 1.0 [10:53:15]line ЗНМ: 0300000104 [10:53:15]line РНМ: 0000000000091764 [10:53:15]line Версия ККМ: 001 [10:53:15]line ФМ: 0000000000871759 [10:53:15]line ФД: 166338 [10:53:15]line ФПД: 192239292723184 [10:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166338&fm=192239292723184&tin=02508201610067®Number=0000000000091764&sum=100000 [10:53:15]OFD Sender: Processing packet 166338 [packets to send 48, broken 47] [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00166338 [10:53:15]OFD Sender: To server: pG, [10:53:15]CommunicateWithHost lk.salyk.kg:30040 [10:53:15]ConnectInit lk.salyk.kg [10:53:15]written 0, free lines is 4095 [10:53:15]Connected sock=7 [10:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 09 6A 04 01 04 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 31 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 89 02 00 35 04 06 00 AE D7 32 C1 2F F0 34 48 0B D2 0A B9 48 63 [10:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 32 29 47 00 C7 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 89 02 00 F4 03 04 00 9C 2A 17 67 B6 04 01 00 00 DD 17 DC 97 B7 3B 8C 25 [10:53:15]CommunicateWithHost err = 0 [10:53:15]CheckOFDResponse [10:53:15]1017 (14) - 77093643461234 [10:53:15]1041 (16) - 0000000000871759 [10:53:15]1040 (4) - 166338 [10:53:15]1012 (4) - 22.10.2024 04:31 [10:53:15]1206 (1) - 0 [10:53:15]OFD Sender: Remove packet 166338 [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00166338 [10:53:15]NVStorageDeleteData [10:53:16]Write to MH i2c: 01 00 00 54 AD 01 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: 01 07 00 54 AD 00 00 00 00 00 D3 0C E7 [10:53:16]RasterBufferAndPrint [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]line [10:53:16]written 0, free lines is 3289 [10:53:16]MH_Cut [10:53:16]Write to MH i2c: D1 01 00 5B AD 01 DA [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 01 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: D1 01 00 5B AD 00 D9 [10:53:16]Write to MH i2c: 01 00 00 5C AD 09 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]OFD Sender: No OFD packet to send [10:53:16]*** Cut start [10:53:16]*** Partial cut [10:53:16]*** CUTSNS_PIN = 1 [10:53:16]*** CUTSNS_PIN = 0 [10:53:17]*** Brake cut motor [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]*** Stop cut motor [10:53:17]*** Cut end [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 5C AD 00 00 00 00 00 FF 0F 1E [10:53:17]process_action close_receipt done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item fm.sn is exist - process it [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 5D AD 80 11 00 00 00 00 00 00 84 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 5D AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:53:17]wFMCommunicate OK [10:53:17]requested_item fd.num is exist - process it [10:53:17]SAM_PROTO_GetFieldsCounters [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 00 00 [10:53:17]Write to MH i2c: E2 08 00 5E AD 80 13 00 00 00 00 00 00 87 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 5E AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetFieldsCounters done [10:53:17]requested_item shift.num is exist - process it [10:53:17]requested_item shift.opened is exist - process it [10:53:17]req_shift_opened [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 5F AD 80 13 01 00 00 00 00 00 89 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 5F AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DC [10:53:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]req_shift_opened done [10:53:17]requested_item shift.open_date is exist - process it [10:53:17]req_shift_open_date [10:53:17]req_shift_open_date done [10:53:17]produce_requested_data done [10:53:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166338,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:53:17]process_action_free close_receipt [10:53:17]json_value_free [10:53:17]json_value_free done [10:53:17]process_json_proto returns [10:53:17]Send response to host [10:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166338,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:53:17]free response buf [10:53:17]execute_script done [10:53:17]execute_script returns [10:53:17]free content buf [10:53:17]Sock 6.Close socket [10:53:17]Sock 6.Thread stoped [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:15]accept exits with 5 [10:54:15]New connection [10:54:15]New thread 3066776932 created [10:54:15]Thread 3066920292 joined [10:54:15]Waiting for new connection... [10:54:15] Sock 5.Parse request [10:54:15]Sock 5.Check first char [10:54:15]Sock 5.First char is OK [10:54:15]request: POST /json_proto HTTP/1.0 [10:54:15]Method: POST [10:54:15]URL: /json_proto [10:54:15]Method is POST - this is cgi request [10:54:15]url: /json_proto [10:54:15]query_string will be loaded in cgi processing [10:54:15]execute_cgi json_proto POST (null) [10:54:15]execute_cgi path=json_proto method=POST [10:54:15]POST find Content-Length [10:54:15]Host: 172.17.53.195:8080 [10:54:15]Content-Length: 682 [10:54:15]Content-Type: application/json [10:54:15] [10:54:15]POST finish read [10:54:15]Found Content-Length = 682 [10:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:15]execute_script... [10:54:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:15]POST & json_proto [10:54:15]process_json_proto [10:54:15]json parsed OK: [10:54:15]protocol is kg_v1.0 [10:54:15]action value=close_receipt [10:54:15]process_action close_receipt [10:54:15]cmd_close_receipt [10:54:15]MH_GetDate [10:54:15]Write to MH i2c: F0 00 00 60 AD FC [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: F0 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: F0 09 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: F0 09 00 60 AD 00 6E 84 17 67 21 48 4A 65 8D [10:54:15]GetLastDocTimeStamp 1729594417 [10:54:15]current date 1729594478 [10:54:15]FM_GetShiftState [10:54:15]SAM_PROTO_GetShiftState [10:54:15]wFMCommunicate request_size=4 [10:54:15]MH_SAM_APDU [10:54:15]CAPDU: 80 13 01 00 [10:54:15]Write to MH i2c: E2 08 00 61 AD 80 13 01 00 00 00 00 00 8B [10:54:15]Write i2c OK [10:54:15]MH_I2C_Read... [10:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:15]Read from MH i2c: E2 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 0E 00 [10:54:15]MH_I2C_Read... [10:54:15]Read from MH i2c: E2 0E 00 61 AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DE [10:54:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:54:15]wFMCommunicate OK [10:54:15]SAM_PROTO_GetShiftState done [10:54:15]FM_GetShiftState done [10:54:15]opened in 1729557463 [10:54:15]opened+sec_in_day 1729643863 [10:54:15]quantity*price = 150056 [10:54:15]sum+1 = 150058 [10:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 94 22.10.2024 10:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166339 ФПД: 89167054019782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105438&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166339&fm=89167054019782&tin=02508201610067®Number=0000000000091764&sum=150000 [10:54:16]StoreToDocumentArchive [10:54:16]shift 536 fd 166339 [10:54:16]save to /storage/0536/doc_00166339 [10:54:16]save last doc name /storage/0536/doc_00166339 to /storage/kkm_last_doc_name [10:54:16]save OK [10:54:16]Clear old archive folders... [10:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:16]tlvbuf is 0186B1C0 [10:54:16]SAM_PROTO_ClearQueue [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 09 00 00 [10:54:16]Write to MH i2c: E2 08 00 6E AD 80 09 00 00 00 00 00 00 8D [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 6E AD 00 90 00 8F [10:54:16]RAPDU: 90 00 [10:54:16]wFMCommunicate OK [10:54:16]SAM_PROTO_ClearQueue done [10:54:16]KKMCreateOFDPacket [10:54:16]OFDProtocolAddRootSTLVToBuf [10:54:16]FM_MakeSignedData [10:54:16]FM_MakeSignedData [10:54:16]SAM_PROTO_SignData [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 0D 01 02 [10:54:16]Write to MH i2c: E2 08 00 6F AD 80 0D 01 02 00 00 00 00 95 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 6F AD 00 90 00 90 [10:54:16]RAPDU: 90 00 [10:54:16]wFMCommunicate OK [10:54:16]wFMCommunicate request_size=255 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6E 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 89 02 00 35 04 06 00 51 [10:54:16]Write to MH i2c: E2 02 01 70 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6E 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 89 02 00 35 04 06 00 51 00 00 FB [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]OFD Sender: No OFD packet to send [10:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 70 AD 00 90 00 91 [10:54:16]RAPDU: 90 00 [10:54:16]wFMCommunicate OK [10:54:16]wFMCommunicate request_size=10 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 0D 02 02 05 18 D2 94 9C C6 [10:54:16]Write to MH i2c: E2 0D 00 71 AD 80 0D 02 02 05 00 18 D2 94 9C C6 00 00 82 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 03 00 71 AD 00 90 00 92 [10:54:16]RAPDU: 90 00 [10:54:16]wFMCommunicate OK [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 0D 03 02 [10:54:16]Write to MH i2c: E2 08 00 72 AD 80 0D 03 02 00 00 00 00 9A [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 0B 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 0B 00 72 AD 00 28 E5 A5 0B 13 41 21 8D 90 00 5A [10:54:16]RAPDU: 28 E5 A5 0B 13 41 21 8D 90 00 [10:54:16]wFMCommunicate OK [10:54:16]SAM_PROTO_SignData done [10:54:16]FM_MakeSignedData done [10:54:16]CreateOFDProtocolMessage [10:54:16]wFMCommunicate request_size=4 [10:54:16]MH_SAM_APDU [10:54:16]CAPDU: 80 11 00 00 [10:54:16]Write to MH i2c: E2 08 00 73 AD 80 11 00 00 00 00 00 00 9A [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:16]Read from MH i2c: E2 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 17 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: E2 17 00 73 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [10:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:16]wFMCommunicate OK [10:54:16]CreateOFDProtocolMessage done [10:54:16]OFDSenderStorePacket 166339 [10:54:16]StoreOFDPacket docnum=166339 [10:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 55 07 01 9C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6E 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 89 02 00 35 04 06 00 51 18 D2 94 9C C6 28 E5 A5 0B 13 41 21 8D [10:54:16]CheckFolder [10:54:16]dirname=/storage/ofd_packets [10:54:16]CheckFolder done [10:54:16]ProducePacketName [10:54:16]name=ofd_packets/00166339 [10:54:16]NVStorageSaveData ofd_packets/00166339 [10:54:16]File name is /storage/ofd_packets/00166339 [10:54:16]Write 301 bytes [10:54:16]NVStorageSaveData done [10:54:16]OFDSenderStorePacket done [10:54:16]KKMCreateOFDPacket done [10:54:16]NVStorageSaveData kkm_last_timestamp [10:54:16]File name is /storage/kkm_last_timestamp [10:54:16]Write 4 bytes [10:54:16]NVStorageSaveData done [10:54:16]ExternCall_PrintAddStr [10:54:16]wPrintStart [10:54:16]Write to MH i2c: 01 00 00 74 AD 21 [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 74 AD 00 00 00 00 00 FF 0F 36 [10:54:16]RasterBufferAndPrint [10:54:16]line Счет N : (1)220917 [10:54:16]line ИНН: 02508201610067 [10:54:16]line Контрольно-Кассовый Чек [10:54:16]line ПРОДАЖА [10:54:16]line ТРК (МРК, ГНК) : 33 [10:54:16]line Товар: 2710124130 [10:54:16]line Аи-92-К-5 [10:54:16]line 22.430 * 66.90 [10:54:16]line = 1500.57 [10:54:16]line НДС 12% НСП 1% [10:54:16]line > о реализуемом товаре [10:54:16]line ОКРУГЛЕНИЕ: -0.57 [10:54:16]line ИТОГО: 1500.00 [10:54:16]line Внесено: 1500.00 [10:54:16]line СДАЧА: 0.00 [10:54:16]line НСП 1% : 13.28 [10:54:16]line НДС 12% : 159.35 [10:54:16]line Наличными: 1500.00 [10:54:16]line Безнал.: 0.00 [10:54:16]line Место: АЗС № 161 "Партнер Нефть" [10:54:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:54:16]line СНО: Общий режим [10:54:16]line Чек 94 22.10.2024 10:54 [10:54:16]line Смена: 536 ФФД: 1.0 [10:54:16]line ЗНМ: 0300000104 [10:54:16]line РНМ: 0000000000091764 [10:54:16]line Версия ККМ: 001 [10:54:16]line ФМ: 0000000000871759 [10:54:16]line ФД: 166339 [10:54:16]line ФПД: 89167054019782 [10:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105438&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166339&fm=89167054019782&tin=02508201610067®Number=0000000000091764&sum=150000 [10:54:17]OFD Sender: Processing packet 166339 [packets to send 48, broken 47] [10:54:17]ProducePacketName [10:54:17]name=ofd_packets/00166339 [10:54:17]OFD Sender: To server: pG, [10:54:17]CommunicateWithHost lk.salyk.kg:30040 [10:54:17]ConnectInit lk.salyk.kg [10:54:17]written 0, free lines is 4095 [10:54:17]Connected sock=7 [10:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 42 55 07 01 9C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6E 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 89 02 00 35 04 06 00 51 18 D2 94 9C C6 28 E5 A5 0B 13 41 21 8D [10:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5C BD 47 00 21 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 89 02 00 F4 03 04 00 DA 2A 17 67 B6 04 01 00 00 59 8B C0 D7 0A 2F CC 0F [10:54:17]CommunicateWithHost err = 0 [10:54:17]CheckOFDResponse [10:54:17]1017 (14) - 77093643461234 [10:54:17]1041 (16) - 0000000000871759 [10:54:17]1040 (4) - 166339 [10:54:17]1012 (4) - 22.10.2024 04:32 [10:54:17]1206 (1) - 0 [10:54:17]OFD Sender: Remove packet 166339 [10:54:17]ProducePacketName [10:54:17]name=ofd_packets/00166339 [10:54:17]NVStorageDeleteData [10:54:17]Write to MH i2c: 01 00 00 9F AD 4C [10:54:17]Write i2c OK [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: 01 [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: 01 07 00 [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: 01 07 00 9F AD 00 00 00 00 00 CC 0C 2B [10:54:17]RasterBufferAndPrint [10:54:17]line [10:54:17]line [10:54:17]line [10:54:17]line [10:54:17]line [10:54:17]written 0, free lines is 3282 [10:54:17]MH_Cut [10:54:17]Write to MH i2c: D1 01 00 A6 AD 01 25 [10:54:17]Write i2c OK [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: D1 [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: D1 01 00 [10:54:17]MH_I2C_Read... [10:54:17]Read from MH i2c: D1 01 00 A6 AD 00 24 [10:54:17]Write to MH i2c: 01 00 00 A7 AD 54 [10:54:17]Write i2c OK [10:54:17]MH_I2C_Read... [10:54:17]OFD Sender: No OFD packet to send [10:54:18]*** Cut start [10:54:18]*** Partial cut [10:54:18]*** CUTSNS_PIN = 1 [10:54:18]*** CUTSNS_PIN = 0 [10:54:18]*** Brake cut motor [10:54:19]Read from MH i2c: 01 [10:54:19]MH_I2C_Read... [10:54:19]*** Stop cut motor [10:54:19]*** Cut end [10:54:19]Read from MH i2c: 01 07 00 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: 01 07 00 A7 AD 00 00 00 00 00 FF 0F 69 [10:54:19]process_action close_receipt done [10:54:19]requested_data is exist [10:54:19]produce_requested_data [10:54:19]requested_item fm.sn is exist - process it [10:54:19]wFMCommunicate request_size=4 [10:54:19]MH_SAM_APDU [10:54:19]CAPDU: 80 11 00 00 [10:54:19]Write to MH i2c: E2 08 00 A8 AD 80 11 00 00 00 00 00 00 CF [10:54:19]Write i2c OK [10:54:19]MH_I2C_Read... [10:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:19]Read from MH i2c: E2 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 17 00 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 17 00 A8 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [10:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:19]wFMCommunicate OK [10:54:19]requested_item fd.num is exist - process it [10:54:19]SAM_PROTO_GetFieldsCounters [10:54:19]wFMCommunicate request_size=4 [10:54:19]MH_SAM_APDU [10:54:19]CAPDU: 80 13 00 00 [10:54:19]Write to MH i2c: E2 08 00 A9 AD 80 13 00 00 00 00 00 00 D2 [10:54:19]Write i2c OK [10:54:19]MH_I2C_Read... [10:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:19]Read from MH i2c: E2 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 62 00 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 62 00 A9 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:54:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:19]wFMCommunicate OK [10:54:19]SAM_PROTO_GetFieldsCounters done [10:54:19]requested_item shift.num is exist - process it [10:54:19]requested_item shift.opened is exist - process it [10:54:19]req_shift_opened [10:54:19]FM_GetShiftState [10:54:19]SAM_PROTO_GetShiftState [10:54:19]wFMCommunicate request_size=4 [10:54:19]MH_SAM_APDU [10:54:19]CAPDU: 80 13 01 00 [10:54:19]Write to MH i2c: E2 08 00 AA AD 80 13 01 00 00 00 00 00 D4 [10:54:19]Write i2c OK [10:54:19]MH_I2C_Read... [10:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:19]Read from MH i2c: E2 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 0E 00 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 0E 00 AA AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 27 [10:54:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:54:19]wFMCommunicate OK [10:54:19]SAM_PROTO_GetShiftState done [10:54:19]FM_GetShiftState done [10:54:19]req_shift_opened done [10:54:19]requested_item shift.open_date is exist - process it [10:54:19]req_shift_open_date [10:54:19]req_shift_open_date done [10:54:19]produce_requested_data done [10:54:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166339,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:54:19]process_action_free close_receipt [10:54:19]json_value_free [10:54:19]json_value_free done [10:54:19]process_json_proto returns [10:54:19]Send response to host [10:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166339,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:54:19]free response buf [10:54:19]execute_script done [10:54:19]execute_script returns [10:54:19]free content buf [10:54:19]Sock 5.Close socket [10:54:19]Sock 5.Thread stoped [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:10]accept exits with 6 [10:55:10]New connection [10:55:10]New thread 3066920292 created [10:55:10]Thread 3066776932 joined [10:55:10]Waiting for new connection... [10:55:10] Sock 6.Parse request [10:55:10]Sock 6.Check first char [10:55:10]Sock 6.First char is OK [10:55:10]request: POST /json_proto HTTP/1.0 [10:55:10]Method: POST [10:55:10]URL: /json_proto [10:55:10]Method is POST - this is cgi request [10:55:10]url: /json_proto [10:55:10]query_string will be loaded in cgi processing [10:55:10]execute_cgi json_proto POST (null) [10:55:10]execute_cgi path=json_proto method=POST [10:55:10]POST find Content-Length [10:55:10]Host: 172.17.53.195:8080 [10:55:10]Content-Length: 800 [10:55:10]Content-Type: application/json [10:55:10] [10:55:10]POST finish read [10:55:10]Found Content-Length = 800 [10:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949451", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:10]execute_script... [10:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949451", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:10]POST & json_proto [10:55:10]process_json_proto [10:55:10]json parsed OK: [10:55:10]protocol is kg_v1.0 [10:55:10]action value=close_receipt [10:55:10]process_action close_receipt [10:55:10]cmd_close_receipt [10:55:10]MH_GetDate [10:55:10]Write to MH i2c: F0 00 00 AB AD 47 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: F0 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: F0 09 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: F0 09 00 AB AD 00 A6 84 17 67 21 48 4A 65 10 [10:55:10]GetLastDocTimeStamp 1729594478 [10:55:10]current date 1729594534 [10:55:10]FM_GetShiftState [10:55:10]SAM_PROTO_GetShiftState [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 13 01 00 [10:55:10]Write to MH i2c: E2 08 00 AC AD 80 13 01 00 00 00 00 00 D6 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 0E 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 0E 00 AC AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 29 [10:55:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:55:10]wFMCommunicate OK [10:55:10]SAM_PROTO_GetShiftState done [10:55:10]FM_GetShiftState done [10:55:10]opened in 1729557463 [10:55:10]opened+sec_in_day 1729643863 [10:55:10]quantity*price = 0 [10:55:10]sum+1 = 1 [10:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 95 22.10.2024 10:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 3949451 ФМ: 0000000000871759 ФД: 166340 ФПД: 172869676922516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166340&fm=172869676922516&tin=02508201610067®Number=0000000000091764&sum=0 [10:55:11]StoreToDocumentArchive [10:55:11]shift 536 fd 166340 [10:55:11]save to /storage/0536/doc_00166340 [10:55:11]save last doc name /storage/0536/doc_00166340 to /storage/kkm_last_doc_name [10:55:11]save OK [10:55:11]Clear old archive folders... [10:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:11]tlvbuf is 015226D0 [10:55:11]SAM_PROTO_ClearQueue [10:55:11]wFMCommunicate request_size=4 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 09 00 00 [10:55:11]Write to MH i2c: E2 08 00 B9 AD 80 09 00 00 00 00 00 00 D8 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 B9 AD 00 90 00 DA [10:55:11]RAPDU: 90 00 [10:55:11]wFMCommunicate OK [10:55:11]SAM_PROTO_ClearQueue done [10:55:11]KKMCreateOFDPacket [10:55:11]OFDProtocolAddRootSTLVToBuf [10:55:11]FM_MakeSignedData [10:55:11]FM_MakeSignedData [10:55:11]SAM_PROTO_SignData [10:55:11]wFMCommunicate request_size=4 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 0D 01 02 [10:55:11]Write to MH i2c: E2 08 00 BA AD 80 0D 01 02 00 00 00 00 E0 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 BA AD 00 90 00 DB [10:55:11]RAPDU: 90 00 [10:55:11]wFMCommunicate OK [10:55:11]wFMCommunicate request_size=255 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 89 02 00 35 04 06 00 9D [10:55:11]Write to MH i2c: E2 02 01 BB AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 89 02 00 35 04 06 00 9D 00 00 6C [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 BB AD 00 90 00 DC [10:55:12]RAPDU: 90 00 [10:55:12]wFMCommunicate OK [10:55:12]wFMCommunicate request_size=10 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 0D 02 02 05 39 5B AF 76 94 [10:55:12]Write to MH i2c: E2 0D 00 BC AD 80 0D 02 02 05 00 39 5B AF 76 94 00 00 3A [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 03 00 BC AD 00 90 00 DD [10:55:12]RAPDU: 90 00 [10:55:12]wFMCommunicate OK [10:55:12]wFMCommunicate request_size=4 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 0D 03 02 [10:55:12]Write to MH i2c: E2 08 00 BD AD 80 0D 03 02 00 00 00 00 E5 [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 0B 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 0B 00 BD AD 00 E3 2F FD A0 C0 F0 AB 62 90 00 52 [10:55:12]RAPDU: E3 2F FD A0 C0 F0 AB 62 90 00 [10:55:12]wFMCommunicate OK [10:55:12]SAM_PROTO_SignData done [10:55:12]FM_MakeSignedData done [10:55:12]CreateOFDProtocolMessage [10:55:12]wFMCommunicate request_size=4 [10:55:12]MH_SAM_APDU [10:55:12]CAPDU: 80 11 00 00 [10:55:12]Write to MH i2c: E2 08 00 BE AD 80 11 00 00 00 00 00 00 E5 [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:12]Read from MH i2c: E2 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 17 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: E2 17 00 BE AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [10:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:55:12]wFMCommunicate OK [10:55:12]CreateOFDProtocolMessage done [10:55:12]OFDSenderStorePacket 166340 [10:55:12]StoreOFDPacket docnum=166340 [10:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 35 07 01 FE 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 89 02 00 35 04 06 00 9D 39 5B AF 76 94 E3 2F FD A0 C0 F0 AB 62 [10:55:12]CheckFolder [10:55:12]dirname=/storage/ofd_packets [10:55:12]CheckFolder done [10:55:12]ProducePacketName [10:55:12]name=ofd_packets/00166340 [10:55:12]NVStorageSaveData ofd_packets/00166340 [10:55:12]File name is /storage/ofd_packets/00166340 [10:55:12]Write 301 bytes [10:55:12]NVStorageSaveData done [10:55:12]OFDSenderStorePacket done [10:55:12]KKMCreateOFDPacket done [10:55:12]NVStorageSaveData kkm_last_timestamp [10:55:12]File name is /storage/kkm_last_timestamp [10:55:12]Write 4 bytes [10:55:12]NVStorageSaveData done [10:55:12]ExternCall_PrintAddStr [10:55:12]wPrintStart [10:55:12]Write to MH i2c: 01 00 00 BF AD 6C [10:55:12]Write i2c OK [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: 01 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: 01 07 00 [10:55:12]MH_I2C_Read... [10:55:12]Read from MH i2c: 01 07 00 BF AD 00 00 00 00 00 FF 0F 81 [10:55:12]RasterBufferAndPrint [10:55:12]line Счет N : (1)220918 [10:55:12]line ИНН: 02508201610067 [10:55:12]line Контрольно-Кассовый Чек [10:55:12]line ПРОДАЖА [10:55:12]line ТРК (МРК, ГНК) : 23 [10:55:12]line Товар: 2710124130 [10:55:12]line Аи-92-К-5 [10:55:12]line 20.000 * 0.00 [10:55:12]line = 0.00 [10:55:12]line НДС 12% НСП 1% [10:55:12]line > о реализуемом товаре [10:55:12]line ИТОГО: 0.00 [10:55:12]line НСП 1% : 0.00 [10:55:12]line НДС 12% : 0.00 [10:55:12]line Наличными: 0.00 [10:55:12]line Безнал.: 0.00 [10:55:12]line Место: АЗС № 161 "Партнер Нефть" [10:55:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:55:12]line СНО: Общий режим [10:55:12]line Чек 95 22.10.2024 10:55 [10:55:12]line Смена: 536 ФФД: 1.0 [10:55:12]line ЗНМ: 0300000104 [10:55:12]line РНМ: 0000000000091764 [10:55:12]line Версия ККМ: 001 [10:55:12]line Талоны: Топливные Талоны [10:55:12]line 3949451 [10:55:12]line ФМ: 0000000000871759 [10:55:12]line ФД: 166340 [10:55:12]line ФПД: 172869676922516 [10:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105534&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166340&fm=172869676922516&tin=02508201610067®Number=0000000000091764&sum=0 [10:55:12]written 0, free lines is 4095 [10:55:12]OFD Sender: Processing packet 166340 [packets to send 48, broken 47] [10:55:12]ProducePacketName [10:55:12]name=ofd_packets/00166340 [10:55:12]OFD Sender: To server: pG, [10:55:12]CommunicateWithHost lk.salyk.kg:30040 [10:55:12]ConnectInit lk.salyk.kg [10:55:13]Write to MH i2c: 01 00 00 E9 AD 96 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 E9 AD 00 00 00 00 00 D1 0C 7A [10:55:13]RasterBufferAndPrint [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]line [10:55:13]written 0, free lines is 3287 [10:55:13]MH_Cut [10:55:13]Write to MH i2c: D1 01 00 F0 AD 01 6F [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 01 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: D1 01 00 F0 AD 00 6E [10:55:13]Write to MH i2c: 01 00 00 F1 AD 9E [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** Cut start [10:55:13]*** Partial cut [10:55:13]*** CUTSNS_PIN = 1 [10:55:13]*** CUTSNS_PIN = 0 [10:55:14]*** Brake cut motor [10:55:14]Read from MH i2c: 01 [10:55:14]MH_I2C_Read... [10:55:14]*** Stop cut motor [10:55:14]*** Cut end [10:55:14]Read from MH i2c: 01 07 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: 01 07 00 F1 AD 00 00 00 00 00 FF 0F B3 [10:55:14]process_action close_receipt done [10:55:14]requested_data is exist [10:55:14]produce_requested_data [10:55:14]requested_item fm.sn is exist - process it [10:55:14]wFMCommunicate request_size=4 [10:55:14]MH_SAM_APDU [10:55:14]CAPDU: 80 11 00 00 [10:55:14]Write to MH i2c: E2 08 00 F2 AD 80 11 00 00 00 00 00 00 19 [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:14]Read from MH i2c: E2 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 17 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 17 00 F2 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [10:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:55:14]wFMCommunicate OK [10:55:14]requested_item fd.num is exist - process it [10:55:14]SAM_PROTO_GetFieldsCounters [10:55:14]wFMCommunicate request_size=4 [10:55:14]MH_SAM_APDU [10:55:14]CAPDU: 80 13 00 00 [10:55:14]Write to MH i2c: E2 08 00 F3 AD 80 13 00 00 00 00 00 00 1C [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:14]Read from MH i2c: E2 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 62 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 62 00 F3 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:14]wFMCommunicate OK [10:55:14]SAM_PROTO_GetFieldsCounters done [10:55:14]requested_item shift.num is exist - process it [10:55:14]requested_item shift.opened is exist - process it [10:55:14]req_shift_opened [10:55:14]FM_GetShiftState [10:55:14]SAM_PROTO_GetShiftState [10:55:14]wFMCommunicate request_size=4 [10:55:14]MH_SAM_APDU [10:55:14]CAPDU: 80 13 01 00 [10:55:14]Write to MH i2c: E2 08 00 F4 AD 80 13 01 00 00 00 00 00 1E [10:55:14]Write i2c OK [10:55:14]MH_I2C_Read... [10:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:14]Read from MH i2c: E2 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 0E 00 [10:55:14]MH_I2C_Read... [10:55:14]Read from MH i2c: E2 0E 00 F4 AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 71 [10:55:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:55:14]wFMCommunicate OK [10:55:14]SAM_PROTO_GetShiftState done [10:55:14]FM_GetShiftState done [10:55:14]req_shift_opened done [10:55:14]requested_item shift.open_date is exist - process it [10:55:14]req_shift_open_date [10:55:14]req_shift_open_date done [10:55:14]produce_requested_data done [10:55:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166340,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:55:14]process_action_free close_receipt [10:55:14]json_value_free [10:55:14]json_value_free done [10:55:14]process_json_proto returns [10:55:14]Send response to host [10:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166340,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:55:14]free response buf [10:55:14]execute_script done [10:55:14]execute_script returns [10:55:14]free content buf [10:55:14]Sock 6.Close socket [10:55:14]Sock 6.Thread stoped [10:55:17]ConnectInit Can't take IP for lk.salyk.kg [10:55:17]CommunicateWithHost connect error [10:55:17]CommunicateWithHost err = -1 [10:55:17]OFD Sender: Server communicate error [10:55:22]OFD Sender: Processing packet 166340 [packets to send 48, broken 47] [10:55:22]ProducePacketName [10:55:22]name=ofd_packets/00166340 [10:55:22]OFD Sender: To server: pG, [10:55:22]CommunicateWithHost lk.salyk.kg:30040 [10:55:22]ConnectInit lk.salyk.kg [10:55:27]ConnectInit Can't take IP for lk.salyk.kg [10:55:27]CommunicateWithHost connect error [10:55:27]CommunicateWithHost err = -1 [10:55:27]OFD Sender: Server communicate error [10:55:32]OFD Sender: Processing packet 166340 [packets to send 48, broken 47] [10:55:32]ProducePacketName [10:55:32]name=ofd_packets/00166340 [10:55:32]OFD Sender: To server: pG, [10:55:32]CommunicateWithHost lk.salyk.kg:30040 [10:55:32]ConnectInit lk.salyk.kg [10:55:37]ConnectInit Can't take IP for lk.salyk.kg [10:55:37]CommunicateWithHost connect error [10:55:37]CommunicateWithHost err = -1 [10:55:37]OFD Sender: Server communicate error [10:55:42]OFD Sender: Processing packet 166340 [packets to send 48, broken 47] [10:55:42]ProducePacketName [10:55:42]name=ofd_packets/00166340 [10:55:42]OFD Sender: To server: pG, [10:55:42]CommunicateWithHost lk.salyk.kg:30040 [10:55:42]ConnectInit lk.salyk.kg [10:55:47]ConnectInit Can't take IP for lk.salyk.kg [10:55:47]CommunicateWithHost connect error [10:55:47]CommunicateWithHost err = -1 [10:55:47]OFD Sender: Server communicate error [10:55:52]OFD Sender: Processing packet 166340 [packets to send 48, broken 47] [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00166340 [10:55:52]OFD Sender: To server: pG, [10:55:52]CommunicateWithHost lk.salyk.kg:30040 [10:55:52]ConnectInit lk.salyk.kg [10:55:52]Connected sock=5 [10:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 35 07 01 FE 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 84 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 89 02 00 35 04 06 00 9D 39 5B AF 76 94 E3 2F FD A0 C0 F0 AB 62 [10:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 F5 47 00 A4 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 89 02 00 F4 03 04 00 39 2B 17 67 B6 04 01 00 00 ED DB 0C 3D A9 1F F5 78 [10:55:52]CommunicateWithHost err = 0 [10:55:52]CheckOFDResponse [10:55:52]1017 (14) - 77093643461234 [10:55:52]1041 (16) - 0000000000871759 [10:55:52]1040 (4) - 166340 [10:55:52]1012 (4) - 22.10.2024 04:34 [10:55:52]1206 (1) - 0 [10:55:52]OFD Sender: Remove packet 166340 [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00166340 [10:55:52]NVStorageDeleteData [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:00]accept exits with 7 [10:58:00]New connection [10:58:00]New thread 3066776932 created [10:58:00]Thread 3066920292 joined [10:58:00]Waiting for new connection... [10:58:00] Sock 7.Parse request [10:58:00]Sock 7.Check first char [10:58:00]Sock 7.First char is OK [10:58:00]request: POST /json_proto HTTP/1.0 [10:58:00]Method: POST [10:58:00]URL: /json_proto [10:58:00]Method is POST - this is cgi request [10:58:00]url: /json_proto [10:58:00]query_string will be loaded in cgi processing [10:58:00]execute_cgi json_proto POST (null) [10:58:00]execute_cgi path=json_proto method=POST [10:58:00]POST find Content-Length [10:58:00]Host: 172.17.53.195:8080 [10:58:00]Content-Length: 677 [10:58:00]Content-Type: application/json [10:58:00] [10:58:00]POST finish read [10:58:00]Found Content-Length = 677 [10:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:00]execute_script... [10:58:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:00]POST & json_proto [10:58:00]process_json_proto [10:58:00]json parsed OK: [10:58:00]protocol is kg_v1.0 [10:58:00]action value=close_receipt [10:58:00]process_action close_receipt [10:58:00]cmd_close_receipt [10:58:00]MH_GetDate [10:58:00]Write to MH i2c: F0 00 00 F5 AD 91 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: F0 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: F0 09 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: F0 09 00 F5 AD 00 50 85 17 67 21 48 4A 65 05 [10:58:00]GetLastDocTimeStamp 1729594534 [10:58:00]current date 1729594704 [10:58:00]FM_GetShiftState [10:58:00]SAM_PROTO_GetShiftState [10:58:00]wFMCommunicate request_size=4 [10:58:00]MH_SAM_APDU [10:58:00]CAPDU: 80 13 01 00 [10:58:00]Write to MH i2c: E2 08 00 F6 AD 80 13 01 00 00 00 00 00 20 [10:58:00]Write i2c OK [10:58:00]MH_I2C_Read... [10:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:00]Read from MH i2c: E2 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 0E 00 [10:58:00]MH_I2C_Read... [10:58:00]Read from MH i2c: E2 0E 00 F6 AD 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 73 [10:58:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:00]wFMCommunicate OK [10:58:00]SAM_PROTO_GetShiftState done [10:58:00]FM_GetShiftState done [10:58:00]opened in 1729557463 [10:58:00]opened+sec_in_day 1729643863 [10:58:00]quantity*price = 20003 [10:58:00]sum+1 = 20004 [10:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 96 22.10.2024 10:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166341 ФПД: 37216317694771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166341&fm=37216317694771&tin=02508201610067®Number=0000000000091764&sum=20000 [10:58:02]StoreToDocumentArchive [10:58:02]shift 536 fd 166341 [10:58:02]save to /storage/0536/doc_00166341 [10:58:02]save last doc name /storage/0536/doc_00166341 to /storage/kkm_last_doc_name [10:58:02]save OK [10:58:02]Clear old archive folders... [10:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:02]tlvbuf is 019A6280 [10:58:02]SAM_PROTO_ClearQueue [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 09 00 00 [10:58:02]Write to MH i2c: E2 08 00 03 AE 80 09 00 00 00 00 00 00 23 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 03 AE 00 90 00 25 [10:58:02]RAPDU: 90 00 [10:58:02]wFMCommunicate OK [10:58:02]SAM_PROTO_ClearQueue done [10:58:02]KKMCreateOFDPacket [10:58:02]OFDProtocolAddRootSTLVToBuf [10:58:02]FM_MakeSignedData [10:58:02]FM_MakeSignedData [10:58:02]SAM_PROTO_SignData [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 0D 01 02 [10:58:02]Write to MH i2c: E2 08 00 04 AE 80 0D 01 02 00 00 00 00 2B [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 04 AE 00 90 00 26 [10:58:02]RAPDU: 90 00 [10:58:02]wFMCommunicate OK [10:58:02]wFMCommunicate request_size=255 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 89 02 00 35 04 06 00 21 [10:58:02]Write to MH i2c: E2 02 01 05 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 89 02 00 35 04 06 00 21 00 00 C1 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 05 AE 00 90 00 27 [10:58:02]RAPDU: 90 00 [10:58:02]wFMCommunicate OK [10:58:02]wFMCommunicate request_size=10 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 0D 02 02 05 D9 19 65 63 33 [10:58:02]Write to MH i2c: E2 0D 00 06 AE 80 0D 02 02 05 00 D9 19 65 63 33 00 00 25 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 03 00 06 AE 00 90 00 28 [10:58:02]RAPDU: 90 00 [10:58:02]wFMCommunicate OK [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 0D 03 02 [10:58:02]Write to MH i2c: E2 08 00 07 AE 80 0D 03 02 00 00 00 00 30 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0B 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0B 00 07 AE 00 17 D2 1C 90 8D EC 90 3C 90 00 0B [10:58:02]RAPDU: 17 D2 1C 90 8D EC 90 3C 90 00 [10:58:02]wFMCommunicate OK [10:58:02]SAM_PROTO_SignData done [10:58:02]FM_MakeSignedData done [10:58:02]CreateOFDProtocolMessage [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 11 00 00 [10:58:02]Write to MH i2c: E2 08 00 08 AE 80 11 00 00 00 00 00 00 30 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 17 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 17 00 08 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [10:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:02]wFMCommunicate OK [10:58:02]CreateOFDProtocolMessage done [10:58:02]OFDSenderStorePacket 166341 [10:58:02]StoreOFDPacket docnum=166341 [10:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD C8 07 01 0C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 89 02 00 35 04 06 00 21 D9 19 65 63 33 17 D2 1C 90 8D EC 90 3C [10:58:02]CheckFolder [10:58:02]dirname=/storage/ofd_packets [10:58:02]CheckFolder done [10:58:02]ProducePacketName [10:58:02]name=ofd_packets/00166341 [10:58:02]NVStorageSaveData ofd_packets/00166341 [10:58:02]File name is /storage/ofd_packets/00166341 [10:58:02]Write 301 bytes [10:58:02]NVStorageSaveData done [10:58:02]OFDSenderStorePacket done [10:58:02]KKMCreateOFDPacket done [10:58:02]NVStorageSaveData kkm_last_timestamp [10:58:02]File name is /storage/kkm_last_timestamp [10:58:02]Write 4 bytes [10:58:02]NVStorageSaveData done [10:58:02]ExternCall_PrintAddStr [10:58:02]wPrintStart [10:58:02]Write to MH i2c: 01 00 00 09 AE B7 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 07 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 07 00 09 AE 00 00 00 00 00 FF 0F CC [10:58:02]RasterBufferAndPrint [10:58:02]line Счет N : (1)220920 [10:58:02]line ИНН: 02508201610067 [10:58:02]line Контрольно-Кассовый Чек [10:58:02]line ПРОДАЖА [10:58:02]line ТРК (МРК, ГНК) : 13 [10:58:02]line Товар: 2710124130 [10:58:02]line Аи-92-К-5 [10:58:02]line 2.990 * 66.90 [10:58:02]line = 200.03 [10:58:02]line НДС 12% НСП 1% [10:58:02]line > о реализуемом товаре [10:58:02]line ОКРУГЛЕНИЕ: -0.03 [10:58:02]line ИТОГО: 200.00 [10:58:02]line Внесено: 200.00 [10:58:02]line СДАЧА: 0.00 [10:58:02]line НСП 1% : 1.77 [10:58:02]line НДС 12% : 21.24 [10:58:02]line Наличными: 200.00 [10:58:02]line Безнал.: 0.00 [10:58:02]line Место: АЗС № 161 "Партнер Нефть" [10:58:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:02]line СНО: Общий режим [10:58:02]line Чек 96 22.10.2024 10:58 [10:58:02]line Смена: 536 ФФД: 1.0 [10:58:02]line ЗНМ: 0300000104 [10:58:02]line РНМ: 0000000000091764 [10:58:02]line Версия ККМ: 001 [10:58:02]line ФМ: 0000000000871759 [10:58:02]line ФД: 166341 [10:58:02]line ФПД: 37216317694771 [10:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166341&fm=37216317694771&tin=02508201610067®Number=0000000000091764&sum=20000 [10:58:02]OFD Sender: Processing packet 166341 [packets to send 48, broken 47] [10:58:02]ProducePacketName [10:58:02]name=ofd_packets/00166341 [10:58:02]OFD Sender: To server: pG, [10:58:02]CommunicateWithHost lk.salyk.kg:30040 [10:58:02]ConnectInit lk.salyk.kg [10:58:02]written 0, free lines is 4095 [10:58:03]Write to MH i2c: 01 00 00 34 AE E2 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 34 AE 00 00 00 00 00 BE 0C B3 [10:58:03]RasterBufferAndPrint [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]written 0, free lines is 3269 [10:58:03]MH_Cut [10:58:03]Write to MH i2c: D1 01 00 3B AE 01 BB [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 01 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 01 00 3B AE 00 BA [10:58:03]Write to MH i2c: 01 00 00 3C AE EA [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:04]*** Cut start [10:58:04]*** Partial cut [10:58:04]*** CUTSNS_PIN = 1 [10:58:04]*** CUTSNS_PIN = 0 [10:58:04]*** Brake cut motor [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]*** Stop cut motor [10:58:04]*** Cut end [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 3C AE 00 00 00 00 00 FF 0F FF [10:58:04]process_action close_receipt done [10:58:04]requested_data is exist [10:58:04]produce_requested_data [10:58:04]requested_item fm.sn is exist - process it [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 11 00 00 [10:58:04]Write to MH i2c: E2 08 00 3D AE 80 11 00 00 00 00 00 00 65 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 3D AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [10:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:04]wFMCommunicate OK [10:58:04]requested_item fd.num is exist - process it [10:58:04]SAM_PROTO_GetFieldsCounters [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 13 00 00 [10:58:04]Write to MH i2c: E2 08 00 3E AE 80 13 00 00 00 00 00 00 68 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 62 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 62 00 3E AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:04]wFMCommunicate OK [10:58:04]SAM_PROTO_GetFieldsCounters done [10:58:04]requested_item shift.num is exist - process it [10:58:04]requested_item shift.opened is exist - process it [10:58:04]req_shift_opened [10:58:04]FM_GetShiftState [10:58:04]SAM_PROTO_GetShiftState [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 13 01 00 [10:58:04]Write to MH i2c: E2 08 00 3F AE 80 13 01 00 00 00 00 00 6A [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 3F AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BD [10:58:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetShiftState done [10:58:05]FM_GetShiftState done [10:58:05]req_shift_opened done [10:58:05]requested_item shift.open_date is exist - process it [10:58:05]req_shift_open_date [10:58:05]req_shift_open_date done [10:58:05]produce_requested_data done [10:58:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166341,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:58:05]process_action_free close_receipt [10:58:05]json_value_free [10:58:05]json_value_free done [10:58:05]process_json_proto returns [10:58:05]Send response to host [10:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166341,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:58:05]free response buf [10:58:05]execute_script done [10:58:05]execute_script returns [10:58:05]free content buf [10:58:05]Sock 7.Close socket [10:58:05]Sock 7.Thread stoped [10:58:05]accept exits with 5 [10:58:05]New connection [10:58:05]New thread 3066920292 created [10:58:05]Thread 3066776932 joined [10:58:05]Waiting for new connection... [10:58:05] Sock 5.Parse request [10:58:05]Sock 5.Check first char [10:58:05]Sock 5.First char is OK [10:58:05]request: POST /json_proto HTTP/1.0 [10:58:05]Method: POST [10:58:05]URL: /json_proto [10:58:05]Method is POST - this is cgi request [10:58:05]url: /json_proto [10:58:05]query_string will be loaded in cgi processing [10:58:05]execute_cgi json_proto POST (null) [10:58:05]execute_cgi path=json_proto method=POST [10:58:05]POST find Content-Length [10:58:05]Host: 172.17.53.195:8080 [10:58:05]Content-Length: 679 [10:58:05]Content-Type: application/json [10:58:05] [10:58:05]POST finish read [10:58:05]Found Content-Length = 679 [10:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.370, "sum" : 1399.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1399.00, "payments": [ { "type": 0, "sum" : 1399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]execute_script... [10:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.370, "sum" : 1399.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1399.00, "payments": [ { "type": 0, "sum" : 1399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]POST & json_proto [10:58:05]process_json_proto [10:58:05]json parsed OK: [10:58:05]protocol is kg_v1.0 [10:58:05]action value=close_receipt [10:58:05]process_action close_receipt [10:58:05]cmd_close_receipt [10:58:05]MH_GetDate [10:58:05]Write to MH i2c: F0 00 00 40 AE DD [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 40 AE 00 55 85 17 67 21 48 4A 65 56 [10:58:05]GetLastDocTimeStamp 1729594704 [10:58:05]current date 1729594709 [10:58:05]FM_GetShiftState [10:58:05]SAM_PROTO_GetShiftState [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 13 01 00 [10:58:05]Write to MH i2c: E2 08 00 41 AE 80 13 01 00 00 00 00 00 6C [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 41 AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BF [10:58:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetShiftState done [10:58:05]FM_GetShiftState done [10:58:05]opened in 1729557463 [10:58:05]opened+sec_in_day 1729643863 [10:58:05]quantity*price = 139979 [10:58:05]sum+1 = 139980 [10:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 1399.00 Внесено: 1400.00 СДАЧА: 1.00 НСП 1% : 12.39 НДС 12% : 148.65 Наличными: 1399.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 97 22.10.2024 10:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166342 ФПД: 134008585224935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166342&fm=134008585224935&tin=02508201610067®Number=0000000000091764&sum=139900 [10:58:07]StoreToDocumentArchive [10:58:07]shift 536 fd 166342 [10:58:07]save to /storage/0536/doc_00166342 [10:58:07]save last doc name /storage/0536/doc_00166342 to /storage/kkm_last_doc_name [10:58:07]save OK [10:58:07]Clear old archive folders... [10:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:58:07]tlvbuf is 014CAEB0 [10:58:07]SAM_PROTO_ClearQueue [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 09 00 00 [10:58:07]Write to MH i2c: E2 08 00 4E AE 80 09 00 00 00 00 00 00 6E [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 4E AE 00 90 00 70 [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_ClearQueue done [10:58:07]KKMCreateOFDPacket [10:58:07]OFDProtocolAddRootSTLVToBuf [10:58:07]FM_MakeSignedData [10:58:07]FM_MakeSignedData [10:58:07]SAM_PROTO_SignData [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 01 02 [10:58:07]Write to MH i2c: E2 08 00 4F AE 80 0D 01 02 00 00 00 00 76 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 4F AE 00 90 00 71 [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=255 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 11 3A 00 00 00 00 07 04 06 00 7C 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 61 00 00 00 F4 03 04 00 55 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 89 02 00 35 04 06 00 79 E1 4E 1E [10:58:07]Write to MH i2c: E2 02 01 50 AE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 11 3A 00 00 00 00 07 04 06 00 7C 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 61 00 00 00 F4 03 04 00 55 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 89 02 00 35 04 06 00 79 E1 4E 1E 00 00 03 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 50 AE 00 90 00 72 [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=7 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 02 02 02 82 E7 [10:58:07]Write to MH i2c: E2 0A 00 51 AE 80 0D 02 02 02 00 82 E7 00 00 E6 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 51 AE 00 90 00 73 [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 03 02 [10:58:07]Write to MH i2c: E2 08 00 52 AE 80 0D 03 02 00 00 00 00 7B [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 52 AE 00 8B D3 0E 6E BE 94 5A 40 90 00 42 [10:58:07]RAPDU: 8B D3 0E 6E BE 94 5A 40 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_SignData done [10:58:07]FM_MakeSignedData done [10:58:07]CreateOFDProtocolMessage [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 11 00 00 [10:58:07]Write to MH i2c: E2 08 00 53 AE 80 11 00 00 00 00 00 00 7B [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 53 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [10:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:07]wFMCommunicate OK [10:58:07]CreateOFDProtocolMessage done [10:58:07]OFDSenderStorePacket 166342 [10:58:07]StoreOFDPacket docnum=166342 [10:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4B 99 04 01 F3 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 11 3A 00 00 00 00 07 04 06 00 7C 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 61 00 00 00 F4 03 04 00 55 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 89 02 00 35 04 06 00 79 E1 4E 1E 82 E7 8B D3 0E 6E BE 94 5A 40 [10:58:07]CheckFolder [10:58:07]dirname=/storage/ofd_packets [10:58:07]CheckFolder done [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00166342 [10:58:07]NVStorageSaveData ofd_packets/00166342 [10:58:07]File name is /storage/ofd_packets/00166342 [10:58:07]Write 298 bytes [10:58:07]NVStorageSaveData done [10:58:07]OFDSenderStorePacket done [10:58:07]KKMCreateOFDPacket done [10:58:07]NVStorageSaveData kkm_last_timestamp [10:58:07]File name is /storage/kkm_last_timestamp [10:58:07]Write 4 bytes [10:58:07]NVStorageSaveData done [10:58:07]ExternCall_PrintAddStr [10:58:07]wPrintStart [10:58:07]Write to MH i2c: 01 00 00 54 AE 02 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 54 AE 00 00 00 00 00 FF 0F 17 [10:58:07]RasterBufferAndPrint [10:58:07]line Счет N : (1)220919 [10:58:07]line ИНН: 02508201610067 [10:58:07]line Контрольно-Кассовый Чек [10:58:07]line ПРОДАЖА [10:58:07]line ТРК (МРК, ГНК) : 41 [10:58:07]line Товар: 2710194210 [10:58:07]line ДТ-К-5 [10:58:07]line 18.370 * 76.20 [10:58:07]line = 1399.79 [10:58:07]line НДС 12% НСП 1% [10:58:07]line > о реализуемом товаре [10:58:07]line ОКРУГЛЕНИЕ: -0.79 [10:58:07]line ИТОГО: 1399.00 [10:58:07]line Внесено: 1400.00 [10:58:07]line СДАЧА: 1.00 [10:58:07]line НСП 1% : 12.39 [10:58:07]line НДС 12% : 148.65 [10:58:07]line Наличными: 1399.00 [10:58:07]line Безнал.: 0.00 [10:58:07]line Место: АЗС № 161 "Партнер Нефть" [10:58:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:08]line СНО: Общий режим [10:58:08]line Чек 97 22.10.2024 10:58 [10:58:08]line Смена: 536 ФФД: 1.0 [10:58:08]line ЗНМ: 0300000104 [10:58:08]line РНМ: 0000000000091764 [10:58:08]line Версия ККМ: 001 [10:58:08]line ФМ: 0000000000871759 [10:58:08]line ФД: 166342 [10:58:08]line ФПД: 134008585224935 [10:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166342&fm=134008585224935&tin=02508201610067®Number=0000000000091764&sum=139900 [10:58:08]written 0, free lines is 4095 [10:58:08]Write to MH i2c: 01 00 00 7F AE 2D [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 7F AE 00 00 00 00 00 CB 0C 0B [10:58:08]RasterBufferAndPrint [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]written 0, free lines is 3284 [10:58:08]MH_Cut [10:58:08]Write to MH i2c: D1 01 00 86 AE 01 06 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 86 AE 00 05 [10:58:08]Write to MH i2c: 01 00 00 87 AE 35 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:09]*** Cut start [10:58:09]*** Partial cut [10:58:09]*** CUTSNS_PIN = 1 [10:58:09]*** CUTSNS_PIN = 0 [10:58:09]*** Brake cut motor [10:58:10]Read from MH i2c: 01 [10:58:10]MH_I2C_Read... [10:58:10]*** Stop cut motor [10:58:10]*** Cut end [10:58:10]Read from MH i2c: 01 07 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: 01 07 00 87 AE 00 00 00 00 00 FF 0F 4A [10:58:10]process_action close_receipt done [10:58:10]requested_data is exist [10:58:10]produce_requested_data [10:58:10]requested_item fm.sn is exist - process it [10:58:10]wFMCommunicate request_size=4 [10:58:10]MH_SAM_APDU [10:58:10]CAPDU: 80 11 00 00 [10:58:10]Write to MH i2c: E2 08 00 88 AE 80 11 00 00 00 00 00 00 B0 [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:10]Read from MH i2c: E2 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 17 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 17 00 88 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [10:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:10]wFMCommunicate OK [10:58:10]requested_item fd.num is exist - process it [10:58:10]SAM_PROTO_GetFieldsCounters [10:58:10]wFMCommunicate request_size=4 [10:58:10]MH_SAM_APDU [10:58:10]CAPDU: 80 13 00 00 [10:58:10]Write to MH i2c: E2 08 00 89 AE 80 13 00 00 00 00 00 00 B3 [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:10]Read from MH i2c: E2 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 62 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 62 00 89 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:10]wFMCommunicate OK [10:58:10]SAM_PROTO_GetFieldsCounters done [10:58:10]requested_item shift.num is exist - process it [10:58:10]requested_item shift.opened is exist - process it [10:58:10]req_shift_opened [10:58:10]FM_GetShiftState [10:58:10]SAM_PROTO_GetShiftState [10:58:10]wFMCommunicate request_size=4 [10:58:10]MH_SAM_APDU [10:58:10]CAPDU: 80 13 01 00 [10:58:10]Write to MH i2c: E2 08 00 8A AE 80 13 01 00 00 00 00 00 B5 [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:10]Read from MH i2c: E2 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 0E 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: E2 0E 00 8A AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 08 [10:58:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:10]wFMCommunicate OK [10:58:10]SAM_PROTO_GetShiftState done [10:58:10]FM_GetShiftState done [10:58:10]req_shift_opened done [10:58:10]requested_item shift.open_date is exist - process it [10:58:10]req_shift_open_date [10:58:10]req_shift_open_date done [10:58:10]produce_requested_data done [10:58:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166342,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:58:10]process_action_free close_receipt [10:58:10]json_value_free [10:58:10]json_value_free done [10:58:10]process_json_proto returns [10:58:10]Send response to host [10:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166342,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:58:10]free response buf [10:58:10]execute_script done [10:58:10]execute_script returns [10:58:10]free content buf [10:58:10]Sock 5.Close socket [10:58:10]Sock 5.Thread stoped [10:58:45]accept exits with 7 [10:58:45]New connection [10:58:45]New thread 3066776932 created [10:58:45]Thread 3066920292 joined [10:58:45]Waiting for new connection... [10:58:45] Sock 7.Parse request [10:58:45]Sock 7.Check first char [10:58:45]Sock 7.First char is OK [10:58:45]request: POST /json_proto HTTP/1.0 [10:58:45]Method: POST [10:58:45]URL: /json_proto [10:58:45]Method is POST - this is cgi request [10:58:45]url: /json_proto [10:58:45]query_string will be loaded in cgi processing [10:58:45]execute_cgi json_proto POST (null) [10:58:45]execute_cgi path=json_proto method=POST [10:58:45]POST find Content-Length [10:58:45]Host: 172.17.53.195:8080 [10:58:45]Content-Length: 677 [10:58:45]Content-Type: application/json [10:58:45] [10:58:45]POST finish read [10:58:45]Found Content-Length = 677 [10:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:45]execute_script... [10:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:45]POST & json_proto [10:58:45]process_json_proto [10:58:45]json parsed OK: [10:58:45]protocol is kg_v1.0 [10:58:45]action value=close_receipt [10:58:45]process_action close_receipt [10:58:45]cmd_close_receipt [10:58:45]MH_GetDate [10:58:45]Write to MH i2c: F0 00 00 8B AE 28 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 09 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 09 00 8B AE 00 7D 85 17 67 21 48 4A 65 C9 [10:58:45]GetLastDocTimeStamp 1729594709 [10:58:45]current date 1729594749 [10:58:45]FM_GetShiftState [10:58:45]SAM_PROTO_GetShiftState [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 01 00 [10:58:45]Write to MH i2c: E2 08 00 8C AE 80 13 01 00 00 00 00 00 B7 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 8C AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0A [10:58:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetShiftState done [10:58:45]FM_GetShiftState done [10:58:45]opened in 1729557463 [10:58:45]opened+sec_in_day 1729643863 [10:58:45]quantity*price = 50041 [10:58:45]sum+1 = 50042 [10:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 98 22.10.2024 10:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166343 ФПД: 103656634654004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105909&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166343&fm=103656634654004&tin=02508201610067®Number=0000000000091764&sum=50000 [10:58:46]StoreToDocumentArchive [10:58:46]shift 536 fd 166343 [10:58:46]save to /storage/0536/doc_00166343 [10:58:46]save last doc name /storage/0536/doc_00166343 to /storage/kkm_last_doc_name [10:58:46]save OK [10:58:46]Clear old archive folders... [10:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:46]tlvbuf is 019A5E50 [10:58:46]SAM_PROTO_ClearQueue [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 09 00 00 [10:58:46]Write to MH i2c: E2 08 00 99 AE 80 09 00 00 00 00 00 00 B9 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 99 AE 00 90 00 BB [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]SAM_PROTO_ClearQueue done [10:58:46]KKMCreateOFDPacket [10:58:46]OFDProtocolAddRootSTLVToBuf [10:58:46]FM_MakeSignedData [10:58:46]FM_MakeSignedData [10:58:46]SAM_PROTO_SignData [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 01 02 [10:58:46]Write to MH i2c: E2 08 00 9A AE 80 0D 01 02 00 00 00 00 C1 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 9A AE 00 90 00 BC [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]wFMCommunicate request_size=255 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7D 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 89 02 00 35 04 06 00 5E [10:58:46]Write to MH i2c: E2 02 01 9B AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7D 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 89 02 00 35 04 06 00 5E 00 00 03 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 9B AE 00 90 00 BD [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]wFMCommunicate request_size=10 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 02 02 05 46 70 E3 1D 34 [10:58:47]Write to MH i2c: E2 0D 00 9C AE 80 0D 02 02 05 00 46 70 E3 1D 34 00 00 B8 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 9C AE 00 90 00 BE [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 03 02 [10:58:47]Write to MH i2c: E2 08 00 9D AE 80 0D 03 02 00 00 00 00 C6 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0B 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0B 00 9D AE 00 C4 E6 1B D6 9D A3 89 B4 90 00 DF [10:58:47]RAPDU: C4 E6 1B D6 9D A3 89 B4 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_SignData done [10:58:47]FM_MakeSignedData done [10:58:47]CreateOFDProtocolMessage [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 11 00 00 [10:58:47]Write to MH i2c: E2 08 00 9E AE 80 11 00 00 00 00 00 00 C6 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 9E AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [10:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:47]wFMCommunicate OK [10:58:47]CreateOFDProtocolMessage done [10:58:47]OFDSenderStorePacket 166343 [10:58:47]StoreOFDPacket docnum=166343 [10:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 34 07 01 A9 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7D 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 89 02 00 35 04 06 00 5E 46 70 E3 1D 34 C4 E6 1B D6 9D A3 89 B4 [10:58:47]CheckFolder [10:58:47]dirname=/storage/ofd_packets [10:58:47]CheckFolder done [10:58:47]ProducePacketName [10:58:47]name=ofd_packets/00166343 [10:58:47]NVStorageSaveData ofd_packets/00166343 [10:58:47]File name is /storage/ofd_packets/00166343 [10:58:47]Write 301 bytes [10:58:47]NVStorageSaveData done [10:58:47]OFDSenderStorePacket done [10:58:47]KKMCreateOFDPacket done [10:58:47]NVStorageSaveData kkm_last_timestamp [10:58:47]File name is /storage/kkm_last_timestamp [10:58:47]Write 4 bytes [10:58:47]NVStorageSaveData done [10:58:47]ExternCall_PrintAddStr [10:58:47]wPrintStart [10:58:47]Write to MH i2c: 01 00 00 9F AE 4D [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 9F AE 00 00 00 00 00 FF 0F 62 [10:58:47]RasterBufferAndPrint [10:58:47]line Счет N : (1)220921 [10:58:47]line ИНН: 02508201610067 [10:58:47]line Контрольно-Кассовый Чек [10:58:47]line ПРОДАЖА [10:58:47]line ТРК (МРК, ГНК) : 33 [10:58:47]line Товар: 2710124130 [10:58:47]line Аи-92-К-5 [10:58:47]line 7.480 * 66.90 [10:58:47]line = 500.41 [10:58:47]line НДС 12% НСП 1% [10:58:47]line > о реализуемом товаре [10:58:47]line ОКРУГЛЕНИЕ: -0.41 [10:58:47]line ИТОГО: 500.00 [10:58:47]line Внесено: 500.00 [10:58:47]line СДАЧА: 0.00 [10:58:47]line НСП 1% : 4.43 [10:58:47]line НДС 12% : 53.14 [10:58:47]line Наличными: 500.00 [10:58:47]line Безнал.: 0.00 [10:58:47]line Место: АЗС № 161 "Партнер Нефть" [10:58:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:47]line СНО: Общий режим [10:58:47]line Чек 98 22.10.2024 10:59 [10:58:47]line Смена: 536 ФФД: 1.0 [10:58:47]line ЗНМ: 0300000104 [10:58:47]line РНМ: 0000000000091764 [10:58:47]line Версия ККМ: 001 [10:58:47]line ФМ: 0000000000871759 [10:58:47]line ФД: 166343 [10:58:47]line ФПД: 103656634654004 [10:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105909&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166343&fm=103656634654004&tin=02508201610067®Number=0000000000091764&sum=50000 [10:58:47]written 0, free lines is 4095 [10:58:48]Write to MH i2c: 01 00 00 CA AE 78 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 CA AE 00 00 00 00 00 C3 0C 4E [10:58:48]RasterBufferAndPrint [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]written 0, free lines is 3272 [10:58:48]MH_Cut [10:58:48]Write to MH i2c: D1 01 00 D1 AE 01 51 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 01 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 01 00 D1 AE 00 50 [10:58:48]Write to MH i2c: 01 00 00 D2 AE 80 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** Cut start [10:58:48]*** Partial cut [10:58:48]*** CUTSNS_PIN = 1 [10:58:48]*** CUTSNS_PIN = 0 [10:58:49]*** Brake cut motor [10:58:49]Read from MH i2c: 01 [10:58:49]MH_I2C_Read... [10:58:49]*** Stop cut motor [10:58:49]*** Cut end [10:58:49]Read from MH i2c: 01 07 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: 01 07 00 D2 AE 00 00 00 00 00 FF 0F 95 [10:58:49]process_action close_receipt done [10:58:49]requested_data is exist [10:58:49]produce_requested_data [10:58:49]requested_item fm.sn is exist - process it [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 11 00 00 [10:58:49]Write to MH i2c: E2 08 00 D3 AE 80 11 00 00 00 00 00 00 FB [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 17 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 17 00 D3 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [10:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:49]wFMCommunicate OK [10:58:49]requested_item fd.num is exist - process it [10:58:49]SAM_PROTO_GetFieldsCounters [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 13 00 00 [10:58:49]Write to MH i2c: E2 08 00 D4 AE 80 13 00 00 00 00 00 00 FE [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 62 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 62 00 D4 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:49]wFMCommunicate OK [10:58:49]SAM_PROTO_GetFieldsCounters done [10:58:49]requested_item shift.num is exist - process it [10:58:49]requested_item shift.opened is exist - process it [10:58:49]req_shift_opened [10:58:49]FM_GetShiftState [10:58:49]SAM_PROTO_GetShiftState [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 13 01 00 [10:58:49]Write to MH i2c: E2 08 00 D5 AE 80 13 01 00 00 00 00 00 00 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 0E 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 0E 00 D5 AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 53 [10:58:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [10:58:49]wFMCommunicate OK [10:58:49]SAM_PROTO_GetShiftState done [10:58:49]FM_GetShiftState done [10:58:49]req_shift_opened done [10:58:49]requested_item shift.open_date is exist - process it [10:58:49]req_shift_open_date [10:58:49]req_shift_open_date done [10:58:49]produce_requested_data done [10:58:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166343,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [10:58:49]process_action_free close_receipt [10:58:49]json_value_free [10:58:49]json_value_free done [10:58:49]process_json_proto returns [10:58:49]Send response to host [10:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166343,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [10:58:49]free response buf [10:58:49]execute_script done [10:58:49]execute_script returns [10:58:49]free content buf [10:58:49]Sock 7.Close socket [10:58:49]Sock 7.Thread stoped [11:00:17]ConnectInit Can't connect to host [11:00:17]CommunicateWithHost connect error [11:00:17]CommunicateWithHost err = -1 [11:00:17]OFD Sender: Server communicate error [11:00:17]OFD Sender: Processing packet 166341 [packets to send 50, broken 47] [11:00:17]ProducePacketName [11:00:17]name=ofd_packets/00166341 [11:00:17]OFD Sender: To server: pG, [11:00:17]CommunicateWithHost lk.salyk.kg:30040 [11:00:17]ConnectInit lk.salyk.kg [11:00:17]Connected sock=6 [11:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD C8 07 01 0C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 89 02 00 35 04 06 00 21 D9 19 65 63 33 17 D2 1C 90 8D EC 90 3C [11:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4F 62 47 00 4F 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 89 02 00 F4 03 04 00 42 2C 17 67 B6 04 01 00 00 53 53 B8 08 66 AC 0C B5 [11:00:17]CommunicateWithHost err = 0 [11:00:17]CheckOFDResponse [11:00:17]1017 (14) - 77093643461234 [11:00:17]1041 (16) - 0000000000871759 [11:00:17]1040 (4) - 166341 [11:00:17]1012 (4) - 22.10.2024 04:38 [11:00:17]1206 (1) - 0 [11:00:17]OFD Sender: Remove packet 166341 [11:00:17]ProducePacketName [11:00:17]name=ofd_packets/00166341 [11:00:17]NVStorageDeleteData [11:00:18]OFD Sender: Processing packet 166342 [packets to send 49, broken 47] [11:00:18]ProducePacketName [11:00:18]name=ofd_packets/00166342 [11:00:18]OFD Sender: To server: pG, [11:00:18]CommunicateWithHost lk.salyk.kg:30040 [11:00:18]ConnectInit lk.salyk.kg [11:00:18]Connected sock=6 [11:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4B 99 04 01 F3 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CB 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 11 3A 00 00 00 00 07 04 06 00 7C 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 61 00 00 00 F4 03 04 00 55 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 89 02 00 35 04 06 00 79 E1 4E 1E 82 E7 8B D3 0E 6E BE 94 5A 40 [11:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C0 F3 47 00 04 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 89 02 00 F4 03 04 00 43 2C 17 67 B6 04 01 00 00 9D DB F1 75 32 EF C4 B0 [11:00:18]CommunicateWithHost err = 0 [11:00:18]CheckOFDResponse [11:00:18]1017 (14) - 77093643461234 [11:00:18]1041 (16) - 0000000000871759 [11:00:18]1040 (4) - 166342 [11:00:18]1012 (4) - 22.10.2024 04:38 [11:00:18]1206 (1) - 0 [11:00:18]OFD Sender: Remove packet 166342 [11:00:18]ProducePacketName [11:00:18]name=ofd_packets/00166342 [11:00:18]NVStorageDeleteData [11:00:18]OFD Sender: Processing packet 166343 [packets to send 48, broken 47] [11:00:18]ProducePacketName [11:00:18]name=ofd_packets/00166343 [11:00:18]OFD Sender: To server: pG, [11:00:18]CommunicateWithHost lk.salyk.kg:30040 [11:00:18]ConnectInit lk.salyk.kg [11:00:19]Connected sock=6 [11:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 34 07 01 A9 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7D 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 89 02 00 35 04 06 00 5E 46 70 E3 1D 34 C4 E6 1B D6 9D A3 89 B4 [11:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 87 47 00 69 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 89 02 00 F4 03 04 00 43 2C 17 67 B6 04 01 00 00 09 9F 86 0D DD 98 AF 0A [11:00:19]CommunicateWithHost err = 0 [11:00:19]CheckOFDResponse [11:00:19]1017 (14) - 77093643461234 [11:00:19]1041 (16) - 0000000000871759 [11:00:19]1040 (4) - 166343 [11:00:19]1012 (4) - 22.10.2024 04:38 [11:00:19]1206 (1) - 0 [11:00:19]OFD Sender: Remove packet 166343 [11:00:19]ProducePacketName [11:00:19]name=ofd_packets/00166343 [11:00:19]NVStorageDeleteData [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]accept exits with 5 [11:00:29]New connection [11:00:29]New thread 3066920292 created [11:00:29]Thread 3066776932 joined [11:00:29]Waiting for new connection... [11:00:29] Sock 5.Parse request [11:00:29]Sock 5.Check first char [11:00:29]Sock 5.First char is OK [11:00:29]request: POST /json_proto HTTP/1.0 [11:00:29]Method: POST [11:00:29]URL: /json_proto [11:00:29]Method is POST - this is cgi request [11:00:29]url: /json_proto [11:00:29]query_string will be loaded in cgi processing [11:00:29]execute_cgi json_proto POST (null) [11:00:29]execute_cgi path=json_proto method=POST [11:00:29]POST find Content-Length [11:00:29]Host: 172.17.53.195:8080 [11:00:29]Content-Length: 676 [11:00:29]Content-Type: application/json [11:00:29] [11:00:29]POST finish read [11:00:29]Found Content-Length = 676 [11:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:29]execute_script... [11:00:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:29]POST & json_proto [11:00:29]process_json_proto [11:00:29]json parsed OK: [11:00:29]protocol is kg_v1.0 [11:00:29]action value=close_receipt [11:00:29]process_action close_receipt [11:00:29]cmd_close_receipt [11:00:29]MH_GetDate [11:00:29]Write to MH i2c: F0 00 00 D6 AE 73 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 09 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: F0 09 00 D6 AE 00 E5 85 17 67 21 48 4A 65 7C [11:00:29]GetLastDocTimeStamp 1729594749 [11:00:29]current date 1729594853 [11:00:29]FM_GetShiftState [11:00:29]SAM_PROTO_GetShiftState [11:00:29]wFMCommunicate request_size=4 [11:00:29]MH_SAM_APDU [11:00:29]CAPDU: 80 13 01 00 [11:00:29]Write to MH i2c: E2 08 00 D7 AE 80 13 01 00 00 00 00 00 02 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:29]Read from MH i2c: E2 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 D7 AE 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 55 [11:00:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:00:29]wFMCommunicate OK [11:00:29]SAM_PROTO_GetShiftState done [11:00:29]FM_GetShiftState done [11:00:29]opened in 1729557463 [11:00:29]opened+sec_in_day 1729643863 [11:00:29]quantity*price = 99974 [11:00:29]sum+1 = 99975 [11:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 99 22.10.2024 11:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166344 ФПД: 72778705658178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110053&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166344&fm=72778705658178&tin=02508201610067®Number=0000000000091764&sum=99900 [11:00:30]StoreToDocumentArchive [11:00:30]shift 536 fd 166344 [11:00:30]save to /storage/0536/doc_00166344 [11:00:30]save last doc name /storage/0536/doc_00166344 to /storage/kkm_last_doc_name [11:00:30]save OK [11:00:30]Clear old archive folders... [11:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:30]tlvbuf is 0186B110 [11:00:30]SAM_PROTO_ClearQueue [11:00:30]wFMCommunicate request_size=4 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 09 00 00 [11:00:30]Write to MH i2c: E2 08 00 E4 AE 80 09 00 00 00 00 00 00 04 [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:30]Read from MH i2c: E2 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 03 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 03 00 E4 AE 00 90 00 06 [11:00:30]RAPDU: 90 00 [11:00:30]wFMCommunicate OK [11:00:30]SAM_PROTO_ClearQueue done [11:00:30]KKMCreateOFDPacket [11:00:30]OFDProtocolAddRootSTLVToBuf [11:00:30]FM_MakeSignedData [11:00:30]FM_MakeSignedData [11:00:30]SAM_PROTO_SignData [11:00:30]wFMCommunicate request_size=4 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 0D 01 02 [11:00:30]Write to MH i2c: E2 08 00 E5 AE 80 0D 01 02 00 00 00 00 0C [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:30]Read from MH i2c: E2 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 03 00 [11:00:30]MH_I2C_Read... [11:00:30]Read from MH i2c: E2 03 00 E5 AE 00 90 00 07 [11:00:30]RAPDU: 90 00 [11:00:30]wFMCommunicate OK [11:00:30]wFMCommunicate request_size=255 [11:00:30]MH_SAM_APDU [11:00:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 89 02 00 35 04 06 00 42 31 1C E5 [11:00:30]Write to MH i2c: E2 02 01 E6 AE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 89 02 00 35 04 06 00 42 31 1C E5 00 00 9D [11:00:30]Write i2c OK [11:00:30]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 E6 AE 00 90 00 08 [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]wFMCommunicate request_size=7 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 02 02 02 E1 42 [11:00:31]Write to MH i2c: E2 0A 00 E7 AE 80 0D 02 02 02 00 E1 42 00 00 36 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 03 00 E7 AE 00 90 00 09 [11:00:31]RAPDU: 90 00 [11:00:31]wFMCommunicate OK [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 0D 03 02 [11:00:31]Write to MH i2c: E2 08 00 E8 AE 80 0D 03 02 00 00 00 00 11 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0B 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 0B 00 E8 AE 00 08 DC 16 63 C1 76 A8 5E 90 00 AC [11:00:31]RAPDU: 08 DC 16 63 C1 76 A8 5E 90 00 [11:00:31]wFMCommunicate OK [11:00:31]SAM_PROTO_SignData done [11:00:31]FM_MakeSignedData done [11:00:31]CreateOFDProtocolMessage [11:00:31]wFMCommunicate request_size=4 [11:00:31]MH_SAM_APDU [11:00:31]CAPDU: 80 11 00 00 [11:00:31]Write to MH i2c: E2 08 00 E9 AE 80 11 00 00 00 00 00 00 11 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:31]Read from MH i2c: E2 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 17 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: E2 17 00 E9 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [11:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:00:31]wFMCommunicate OK [11:00:31]CreateOFDProtocolMessage done [11:00:31]OFDSenderStorePacket 166344 [11:00:31]StoreOFDPacket docnum=166344 [11:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 AB 04 01 0D 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 89 02 00 35 04 06 00 42 31 1C E5 E1 42 08 DC 16 63 C1 76 A8 5E [11:00:31]CheckFolder [11:00:31]dirname=/storage/ofd_packets [11:00:31]CheckFolder done [11:00:31]ProducePacketName [11:00:31]name=ofd_packets/00166344 [11:00:31]NVStorageSaveData ofd_packets/00166344 [11:00:31]File name is /storage/ofd_packets/00166344 [11:00:31]Write 298 bytes [11:00:31]NVStorageSaveData done [11:00:31]OFDSenderStorePacket done [11:00:31]KKMCreateOFDPacket done [11:00:31]NVStorageSaveData kkm_last_timestamp [11:00:31]File name is /storage/kkm_last_timestamp [11:00:31]Write 4 bytes [11:00:31]NVStorageSaveData done [11:00:31]ExternCall_PrintAddStr [11:00:31]wPrintStart [11:00:31]Write to MH i2c: 01 00 00 EA AE 98 [11:00:31]Write i2c OK [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 07 00 [11:00:31]MH_I2C_Read... [11:00:31]Read from MH i2c: 01 07 00 EA AE 00 00 00 00 00 FF 0F AD [11:00:31]RasterBufferAndPrint [11:00:31]line Счет N : (1)220923 [11:00:31]line ИНН: 02508201610067 [11:00:31]line Контрольно-Кассовый Чек [11:00:31]line ПРОДАЖА [11:00:31]line ТРК (МРК, ГНК) : 11 [11:00:31]line Товар: 2710194210 [11:00:31]line ДТ-К-5 [11:00:31]line 13.120 * 76.20 [11:00:31]line = 999.74 [11:00:31]line НДС 12% НСП 1% [11:00:31]line > о реализуемом товаре [11:00:31]line ОКРУГЛЕНИЕ: -0.74 [11:00:31]line ИТОГО: 999.00 [11:00:31]line Внесено: 1000.00 [11:00:31]line СДАЧА: 1.00 [11:00:31]line НСП 1% : 8.85 [11:00:31]line НДС 12% : 106.17 [11:00:31]line Наличными: 999.00 [11:00:31]line Безнал.: 0.00 [11:00:31]line Место: АЗС № 161 "Партнер Нефть" [11:00:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:00:31]line СНО: Общий режим [11:00:31]line Чек 99 22.10.2024 11:00 [11:00:31]line Смена: 536 ФФД: 1.0 [11:00:31]line ЗНМ: 0300000104 [11:00:31]line РНМ: 0000000000091764 [11:00:31]line Версия ККМ: 001 [11:00:31]line ФМ: 0000000000871759 [11:00:31]line ФД: 166344 [11:00:31]line ФПД: 72778705658178 [11:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110053&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166344&fm=72778705658178&tin=02508201610067®Number=0000000000091764&sum=99900 [11:00:31]OFD Sender: Processing packet 166344 [packets to send 48, broken 47] [11:00:31]ProducePacketName [11:00:31]name=ofd_packets/00166344 [11:00:31]OFD Sender: To server: pG, [11:00:31]CommunicateWithHost lk.salyk.kg:30040 [11:00:31]ConnectInit lk.salyk.kg [11:00:31]written 0, free lines is 4095 [11:00:31]Connected sock=7 [11:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E6 AB 04 01 0D 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 85 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 89 02 00 35 04 06 00 42 31 1C E5 E1 42 08 DC 16 63 C1 76 A8 5E [11:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 3D 47 00 3D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 89 02 00 F4 03 04 00 50 2C 17 67 B6 04 01 00 00 9F AB CE 06 AA 67 7A E9 [11:00:31]CommunicateWithHost err = 0 [11:00:31]CheckOFDResponse [11:00:31]1017 (14) - 77093643461234 [11:00:31]1041 (16) - 0000000000871759 [11:00:31]1040 (4) - 166344 [11:00:31]1012 (4) - 22.10.2024 04:38 [11:00:31]1206 (1) - 0 [11:00:31]OFD Sender: Remove packet 166344 [11:00:31]ProducePacketName [11:00:31]name=ofd_packets/00166344 [11:00:31]NVStorageDeleteData [11:00:32]Write to MH i2c: 01 00 00 15 AF C4 [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 07 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: 01 07 00 15 AF 00 00 00 00 00 CB 0C A2 [11:00:32]RasterBufferAndPrint [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]line [11:00:32]written 0, free lines is 3280 [11:00:32]MH_Cut [11:00:32]Write to MH i2c: D1 01 00 1C AF 01 9D [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 01 00 [11:00:32]MH_I2C_Read... [11:00:32]Read from MH i2c: D1 01 00 1C AF 00 9C [11:00:32]Write to MH i2c: 01 00 00 1D AF CC [11:00:32]Write i2c OK [11:00:32]MH_I2C_Read... [11:00:32]OFD Sender: No OFD packet to send [11:00:32]*** Cut start [11:00:32]*** Partial cut [11:00:32]*** CUTSNS_PIN = 1 [11:00:32]*** CUTSNS_PIN = 0 [11:00:33]*** Brake cut motor [11:00:33]Read from MH i2c: 01 [11:00:33]MH_I2C_Read... [11:00:33]*** Stop cut motor [11:00:33]*** Cut end [11:00:33]Read from MH i2c: 01 07 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: 01 07 00 1D AF 00 00 00 00 00 FF 0F E1 [11:00:33]process_action close_receipt done [11:00:33]requested_data is exist [11:00:33]produce_requested_data [11:00:33]requested_item fm.sn is exist - process it [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 11 00 00 [11:00:33]Write to MH i2c: E2 08 00 1E AF 80 11 00 00 00 00 00 00 47 [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 17 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 17 00 1E AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [11:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:00:33]wFMCommunicate OK [11:00:33]requested_item fd.num is exist - process it [11:00:33]SAM_PROTO_GetFieldsCounters [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 13 00 00 [11:00:33]Write to MH i2c: E2 08 00 1F AF 80 13 00 00 00 00 00 00 4A [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 62 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 62 00 1F AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:33]wFMCommunicate OK [11:00:33]SAM_PROTO_GetFieldsCounters done [11:00:33]requested_item shift.num is exist - process it [11:00:33]requested_item shift.opened is exist - process it [11:00:33]req_shift_opened [11:00:33]FM_GetShiftState [11:00:33]SAM_PROTO_GetShiftState [11:00:33]wFMCommunicate request_size=4 [11:00:33]MH_SAM_APDU [11:00:33]CAPDU: 80 13 01 00 [11:00:33]Write to MH i2c: E2 08 00 20 AF 80 13 01 00 00 00 00 00 4C [11:00:33]Write i2c OK [11:00:33]MH_I2C_Read... [11:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:33]Read from MH i2c: E2 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 0E 00 [11:00:33]MH_I2C_Read... [11:00:33]Read from MH i2c: E2 0E 00 20 AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9F [11:00:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:00:33]wFMCommunicate OK [11:00:33]SAM_PROTO_GetShiftState done [11:00:33]FM_GetShiftState done [11:00:33]req_shift_opened done [11:00:33]requested_item shift.open_date is exist - process it [11:00:33]req_shift_open_date [11:00:33]req_shift_open_date done [11:00:33]produce_requested_data done [11:00:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166344,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:00:33]process_action_free close_receipt [11:00:33]json_value_free [11:00:33]json_value_free done [11:00:33]process_json_proto returns [11:00:33]Send response to host [11:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166344,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:00:33]free response buf [11:00:33]execute_script done [11:00:33]execute_script returns [11:00:33]free content buf [11:00:33]Sock 5.Close socket [11:00:33]Sock 5.Thread stoped [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:30]accept exits with 6 [11:01:30]New connection [11:01:30]New thread 3066776932 created [11:01:30]Thread 3066920292 joined [11:01:30]Waiting for new connection... [11:01:30] Sock 6.Parse request [11:01:30]Sock 6.Check first char [11:01:30]Sock 6.First char is OK [11:01:30]request: POST /json_proto HTTP/1.0 [11:01:30]Method: POST [11:01:30]URL: /json_proto [11:01:30]Method is POST - this is cgi request [11:01:30]url: /json_proto [11:01:30]query_string will be loaded in cgi processing [11:01:30]execute_cgi json_proto POST (null) [11:01:30]execute_cgi path=json_proto method=POST [11:01:30]POST find Content-Length [11:01:30]Host: 172.17.53.195:8080 [11:01:30]Content-Length: 790 [11:01:30]Content-Type: application/json [11:01:30] [11:01:30]POST finish read [11:01:30]Found Content-Length = 790 [11:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02691", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:30]execute_script... [11:01:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02691", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:30]POST & json_proto [11:01:30]process_json_proto [11:01:30]json parsed OK: [11:01:30]protocol is kg_v1.0 [11:01:30]action value=close_receipt [11:01:30]process_action close_receipt [11:01:30]cmd_close_receipt [11:01:30]MH_GetDate [11:01:30]Write to MH i2c: F0 00 00 21 AF BF [11:01:30]Write i2c OK [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 09 00 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: F0 09 00 21 AF 00 22 86 17 67 21 48 4A 65 06 [11:01:30]GetLastDocTimeStamp 1729594853 [11:01:30]current date 1729594914 [11:01:30]FM_GetShiftState [11:01:30]SAM_PROTO_GetShiftState [11:01:30]wFMCommunicate request_size=4 [11:01:30]MH_SAM_APDU [11:01:30]CAPDU: 80 13 01 00 [11:01:30]Write to MH i2c: E2 08 00 22 AF 80 13 01 00 00 00 00 00 4E [11:01:30]Write i2c OK [11:01:30]MH_I2C_Read... [11:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:30]Read from MH i2c: E2 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 22 AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A1 [11:01:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:01:30]wFMCommunicate OK [11:01:30]SAM_PROTO_GetShiftState done [11:01:30]FM_GetShiftState done [11:01:30]opened in 1729557463 [11:01:30]opened+sec_in_day 1729643863 [11:01:30]quantity*price = 0 [11:01:30]sum+1 = 1 [11:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 100 22.10.2024 11:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 02691 ФМ: 0000000000871759 ФД: 166345 ФПД: 204110088928134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110154&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166345&fm=204110088928134&tin=02508201610067®Number=0000000000091764&sum=0 [11:01:31]StoreToDocumentArchive [11:01:31]shift 536 fd 166345 [11:01:31]save to /storage/0536/doc_00166345 [11:01:31]save last doc name /storage/0536/doc_00166345 to /storage/kkm_last_doc_name [11:01:31]save OK [11:01:31]Clear old archive folders... [11:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:31]tlvbuf is 01D9CCB0 [11:01:31]SAM_PROTO_ClearQueue [11:01:31]wFMCommunicate request_size=4 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 09 00 00 [11:01:31]Write to MH i2c: E2 08 00 2F AF 80 09 00 00 00 00 00 00 50 [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:31]Read from MH i2c: E2 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 2F AF 00 90 00 52 [11:01:31]RAPDU: 90 00 [11:01:31]wFMCommunicate OK [11:01:31]SAM_PROTO_ClearQueue done [11:01:31]KKMCreateOFDPacket [11:01:31]OFDProtocolAddRootSTLVToBuf [11:01:31]FM_MakeSignedData [11:01:31]FM_MakeSignedData [11:01:31]SAM_PROTO_SignData [11:01:31]wFMCommunicate request_size=4 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 0D 01 02 [11:01:31]Write to MH i2c: E2 08 00 30 AF 80 0D 01 02 00 00 00 00 58 [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:31]Read from MH i2c: E2 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 [11:01:31]MH_I2C_Read... [11:01:31]Read from MH i2c: E2 03 00 30 AF 00 90 00 53 [11:01:31]RAPDU: 90 00 [11:01:31]wFMCommunicate OK [11:01:31]wFMCommunicate request_size=255 [11:01:31]MH_SAM_APDU [11:01:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 22 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 89 02 00 35 04 06 00 B9 A3 15 58 [11:01:31]Write to MH i2c: E2 02 01 31 AF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 22 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 89 02 00 35 04 06 00 B9 A3 15 58 00 00 A4 [11:01:31]Write i2c OK [11:01:31]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 31 AF 00 90 00 54 [11:01:32]RAPDU: 90 00 [11:01:32]wFMCommunicate OK [11:01:32]wFMCommunicate request_size=7 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 0D 02 02 02 7B 86 [11:01:32]Write to MH i2c: E2 0A 00 32 AF 80 0D 02 02 02 00 7B 86 00 00 60 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 03 00 32 AF 00 90 00 55 [11:01:32]RAPDU: 90 00 [11:01:32]wFMCommunicate OK [11:01:32]wFMCommunicate request_size=4 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 0D 03 02 [11:01:32]Write to MH i2c: E2 08 00 33 AF 80 0D 03 02 00 00 00 00 5D [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0B 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0B 00 33 AF 00 9D 93 C8 D0 E6 F4 6A 45 90 00 AF [11:01:32]RAPDU: 9D 93 C8 D0 E6 F4 6A 45 90 00 [11:01:32]wFMCommunicate OK [11:01:32]SAM_PROTO_SignData done [11:01:32]FM_MakeSignedData done [11:01:32]CreateOFDProtocolMessage [11:01:32]wFMCommunicate request_size=4 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 11 00 00 [11:01:32]Write to MH i2c: E2 08 00 34 AF 80 11 00 00 00 00 00 00 5D [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 17 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 17 00 34 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [11:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:01:32]wFMCommunicate OK [11:01:32]CreateOFDProtocolMessage done [11:01:32]OFDSenderStorePacket 166345 [11:01:32]StoreOFDPacket docnum=166345 [11:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 72 4D 04 01 B6 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 22 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 89 02 00 35 04 06 00 B9 A3 15 58 7B 86 9D 93 C8 D0 E6 F4 6A 45 [11:01:32]CheckFolder [11:01:32]dirname=/storage/ofd_packets [11:01:32]CheckFolder done [11:01:32]ProducePacketName [11:01:32]name=ofd_packets/00166345 [11:01:32]NVStorageSaveData ofd_packets/00166345 [11:01:32]File name is /storage/ofd_packets/00166345 [11:01:32]Write 298 bytes [11:01:32]NVStorageSaveData done [11:01:32]OFDSenderStorePacket done [11:01:32]KKMCreateOFDPacket done [11:01:32]NVStorageSaveData kkm_last_timestamp [11:01:32]File name is /storage/kkm_last_timestamp [11:01:32]Write 4 bytes [11:01:32]NVStorageSaveData done [11:01:32]ExternCall_PrintAddStr [11:01:32]wPrintStart [11:01:32]Write to MH i2c: 01 00 00 35 AF E4 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 07 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: 01 07 00 35 AF 00 00 00 00 00 FF 0F F9 [11:01:32]RasterBufferAndPrint [11:01:32]line Счет N : (1)220922 [11:01:32]line ИНН: 02508201610067 [11:01:32]line Контрольно-Кассовый Чек [11:01:32]line ПРОДАЖА [11:01:32]line ТРК (МРК, ГНК) : 21 [11:01:32]line Товар: 2710194210 [11:01:32]line ДТ-К-5 [11:01:32]line 100.000 * 0.00 [11:01:32]line = 0.00 [11:01:32]line НДС 12% НСП 1% [11:01:32]line > о реализуемом товаре [11:01:32]line ИТОГО: 0.00 [11:01:32]line НСП 1% : 0.00 [11:01:32]line НДС 12% : 0.00 [11:01:32]line Наличными: 0.00 [11:01:32]line Безнал.: 0.00 [11:01:32]line Место: АЗС № 161 "Партнер Нефть" [11:01:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:01:32]line СНО: Общий режим [11:01:32]line Чек 100 22.10.2024 11:01 [11:01:32]line Смена: 536 ФФД: 1.0 [11:01:32]line ЗНМ: 0300000104 [11:01:32]line РНМ: 0000000000091764 [11:01:32]line Версия ККМ: 001 [11:01:32]line Талоны: Топливная Карта [11:01:32]line 02691 [11:01:32]line ФМ: 0000000000871759 [11:01:32]line ФД: 166345 [11:01:32]line ФПД: 204110088928134 [11:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110154&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166345&fm=204110088928134&tin=02508201610067®Number=0000000000091764&sum=0 [11:01:32]OFD Sender: Processing packet 166345 [packets to send 48, broken 47] [11:01:32]ProducePacketName [11:01:32]name=ofd_packets/00166345 [11:01:32]OFD Sender: To server: pG, [11:01:32]CommunicateWithHost lk.salyk.kg:30040 [11:01:32]ConnectInit lk.salyk.kg [11:01:32]written 0, free lines is 4095 [11:01:32]Connected sock=7 [11:01:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 72 4D 04 01 B6 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 22 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 89 02 00 35 04 06 00 B9 A3 15 58 7B 86 9D 93 C8 D0 E6 F4 6A 45 [11:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 E1 47 00 88 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 89 02 00 F4 03 04 00 8D 2C 17 67 B6 04 01 00 00 F3 DD 7A D6 0E 2F 63 14 [11:01:32]CommunicateWithHost err = 0 [11:01:32]CheckOFDResponse [11:01:32]1017 (14) - 77093643461234 [11:01:32]1041 (16) - 0000000000871759 [11:01:32]1040 (4) - 166345 [11:01:32]1012 (4) - 22.10.2024 04:39 [11:01:32]1206 (1) - 0 [11:01:32]OFD Sender: Remove packet 166345 [11:01:32]ProducePacketName [11:01:32]name=ofd_packets/00166345 [11:01:32]NVStorageDeleteData [11:01:33]Write to MH i2c: 01 00 00 5F AF 0E [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 07 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: 01 07 00 5F AF 00 00 00 00 00 CE 0C EF [11:01:33]RasterBufferAndPrint [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]line [11:01:33]written 0, free lines is 3287 [11:01:33]MH_Cut [11:01:33]Write to MH i2c: D1 01 00 66 AF 01 E7 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 01 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: D1 01 00 66 AF 00 E6 [11:01:33]Write to MH i2c: 01 00 00 67 AF 16 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]OFD Sender: No OFD packet to send [11:01:33]*** Cut start [11:01:33]*** Partial cut [11:01:33]*** CUTSNS_PIN = 1 [11:01:33]*** CUTSNS_PIN = 0 [11:01:34]*** Brake cut motor [11:01:34]Read from MH i2c: 01 [11:01:34]MH_I2C_Read... [11:01:34]*** Stop cut motor [11:01:34]*** Cut end [11:01:34]Read from MH i2c: 01 07 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 67 AF 00 00 00 00 00 FF 0F 2B [11:01:34]process_action close_receipt done [11:01:34]requested_data is exist [11:01:34]produce_requested_data [11:01:34]requested_item fm.sn is exist - process it [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 11 00 00 [11:01:34]Write to MH i2c: E2 08 00 68 AF 80 11 00 00 00 00 00 00 91 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 68 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [11:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:01:34]wFMCommunicate OK [11:01:34]requested_item fd.num is exist - process it [11:01:34]SAM_PROTO_GetFieldsCounters [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 13 00 00 [11:01:34]Write to MH i2c: E2 08 00 69 AF 80 13 00 00 00 00 00 00 94 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 62 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 62 00 69 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_GetFieldsCounters done [11:01:34]requested_item shift.num is exist - process it [11:01:34]requested_item shift.opened is exist - process it [11:01:34]req_shift_opened [11:01:34]FM_GetShiftState [11:01:34]SAM_PROTO_GetShiftState [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 13 01 00 [11:01:34]Write to MH i2c: E2 08 00 6A AF 80 13 01 00 00 00 00 00 96 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 6A AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E9 [11:01:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_GetShiftState done [11:01:34]FM_GetShiftState done [11:01:34]req_shift_opened done [11:01:34]requested_item shift.open_date is exist - process it [11:01:34]req_shift_open_date [11:01:34]req_shift_open_date done [11:01:34]produce_requested_data done [11:01:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166345,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:01:34]process_action_free close_receipt [11:01:34]json_value_free [11:01:34]json_value_free done [11:01:34]process_json_proto returns [11:01:34]Send response to host [11:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166345,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:01:34]free response buf [11:01:34]execute_script done [11:01:34]execute_script returns [11:01:34]free content buf [11:01:34]Sock 6.Close socket [11:01:34]Sock 6.Thread stoped [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:31]accept exits with 5 [11:04:31]New connection [11:04:31]New thread 3066920292 created [11:04:31]Thread 3066776932 joined [11:04:31]Waiting for new connection... [11:04:31] Sock 5.Parse request [11:04:31]Sock 5.Check first char [11:04:31]Sock 5.First char is OK [11:04:31]request: POST /json_proto HTTP/1.0 [11:04:31]Method: POST [11:04:31]URL: /json_proto [11:04:31]Method is POST - this is cgi request [11:04:31]url: /json_proto [11:04:31]query_string will be loaded in cgi processing [11:04:31]execute_cgi json_proto POST (null) [11:04:31]execute_cgi path=json_proto method=POST [11:04:31]POST find Content-Length [11:04:31]Host: 172.17.53.195:8080 [11:04:31]Content-Length: 679 [11:04:31]Content-Type: application/json [11:04:31] [11:04:31]POST finish read [11:04:31]Found Content-Length = 679 [11:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 25.200, "sum" : 1920.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]execute_script... [11:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 25.200, "sum" : 1920.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]POST & json_proto [11:04:31]process_json_proto [11:04:31]json parsed OK: [11:04:31]protocol is kg_v1.0 [11:04:31]action value=close_receipt [11:04:31]process_action close_receipt [11:04:31]cmd_close_receipt [11:04:31]MH_GetDate [11:04:31]Write to MH i2c: F0 00 00 6B AF 09 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 6B AF 00 D7 86 17 67 21 48 4A 65 05 [11:04:31]GetLastDocTimeStamp 1729594914 [11:04:31]current date 1729595095 [11:04:31]FM_GetShiftState [11:04:31]SAM_PROTO_GetShiftState [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 13 01 00 [11:04:31]Write to MH i2c: E2 08 00 6C AF 80 13 01 00 00 00 00 00 98 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 6C AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EB [11:04:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:04:31]wFMCommunicate OK [11:04:31]SAM_PROTO_GetShiftState done [11:04:31]FM_GetShiftState done [11:04:31]opened in 1729557463 [11:04:31]opened+sec_in_day 1729643863 [11:04:31]quantity*price = 192024 [11:04:31]sum+1 = 192025 [11:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1920.00 Внесено: 1920.00 СДАЧА: 0.00 НСП 1% : 16.99 НДС 12% : 203.92 Наличными: 1920.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 101 22.10.2024 11:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166346 ФПД: 146851884070981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110455&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166346&fm=146851884070981&tin=02508201610067®Number=0000000000091764&sum=192000 [11:04:33]StoreToDocumentArchive [11:04:33]shift 536 fd 166346 [11:04:33]save to /storage/0536/doc_00166346 [11:04:33]save last doc name /storage/0536/doc_00166346 to /storage/kkm_last_doc_name [11:04:33]save OK [11:04:33]Clear old archive folders... [11:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:33]tlvbuf is 0165D690 [11:04:33]SAM_PROTO_ClearQueue [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 09 00 00 [11:04:33]Write to MH i2c: E2 08 00 79 AF 80 09 00 00 00 00 00 00 9A [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 79 AF 00 90 00 9C [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_ClearQueue done [11:04:33]KKMCreateOFDPacket [11:04:33]OFDProtocolAddRootSTLVToBuf [11:04:33]FM_MakeSignedData [11:04:33]FM_MakeSignedData [11:04:33]SAM_PROTO_SignData [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 01 02 [11:04:33]Write to MH i2c: E2 08 00 7A AF 80 0D 01 02 00 00 00 00 A2 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 7A AF 00 90 00 9D [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=255 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D7 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 89 02 00 35 04 06 00 85 8F 9E 62 [11:04:33]Write to MH i2c: E2 02 01 7B AF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D7 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 89 02 00 35 04 06 00 85 8F 9E 62 00 00 04 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 7B AF 00 90 00 9E [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=7 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 02 02 02 78 45 [11:04:33]Write to MH i2c: E2 0A 00 7C AF 80 0D 02 02 02 00 78 45 00 00 66 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 7C AF 00 90 00 9F [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 03 02 [11:04:33]Write to MH i2c: E2 08 00 7D AF 80 0D 03 02 00 00 00 00 A7 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0B 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0B 00 7D AF 00 75 FE 20 D3 2F 9F 33 E9 90 00 F8 [11:04:33]RAPDU: 75 FE 20 D3 2F 9F 33 E9 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_SignData done [11:04:33]FM_MakeSignedData done [11:04:33]CreateOFDProtocolMessage [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 11 00 00 [11:04:33]Write to MH i2c: E2 08 00 7E AF 80 11 00 00 00 00 00 00 A7 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 7E AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [11:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:04:33]wFMCommunicate OK [11:04:33]CreateOFDProtocolMessage done [11:04:33]OFDSenderStorePacket 166346 [11:04:33]StoreOFDPacket docnum=166346 [11:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 61 04 01 81 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D7 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 89 02 00 35 04 06 00 85 8F 9E 62 78 45 75 FE 20 D3 2F 9F 33 E9 [11:04:33]CheckFolder [11:04:33]dirname=/storage/ofd_packets [11:04:33]CheckFolder done [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00166346 [11:04:33]NVStorageSaveData ofd_packets/00166346 [11:04:33]File name is /storage/ofd_packets/00166346 [11:04:33]Write 298 bytes [11:04:33]NVStorageSaveData done [11:04:33]OFDSenderStorePacket done [11:04:33]KKMCreateOFDPacket done [11:04:33]NVStorageSaveData kkm_last_timestamp [11:04:33]File name is /storage/kkm_last_timestamp [11:04:33]Write 4 bytes [11:04:33]NVStorageSaveData done [11:04:33]ExternCall_PrintAddStr [11:04:33]wPrintStart [11:04:33]Write to MH i2c: 01 00 00 7F AF 2E [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 7F AF 00 00 00 00 00 FF 0F 43 [11:04:33]RasterBufferAndPrint [11:04:33]line Счет N : (1)220924 [11:04:33]line ИНН: 02508201610067 [11:04:33]line Контрольно-Кассовый Чек [11:04:33]line ПРОДАЖА [11:04:33]line ТРК (МРК, ГНК) : 21 [11:04:33]line Товар: 2710194210 [11:04:33]line ДТ-К-5 [11:04:33]line 25.200 * 76.20 [11:04:33]line = 1920.24 [11:04:33]line НДС 12% НСП 1% [11:04:33]line > о реализуемом товаре [11:04:33]line ОКРУГЛЕНИЕ: -0.24 [11:04:33]line ИТОГО: 1920.00 [11:04:33]line Внесено: 1920.00 [11:04:33]line СДАЧА: 0.00 [11:04:33]line НСП 1% : 16.99 [11:04:33]line НДС 12% : 203.92 [11:04:33]line Наличными: 1920.00 [11:04:33]line Безнал.: 0.00 [11:04:33]line Место: АЗС № 161 "Партнер Нефть" [11:04:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:04:33]line СНО: Общий режим [11:04:33]line Чек 101 22.10.2024 11:04 [11:04:33]line Смена: 536 ФФД: 1.0 [11:04:33]line ЗНМ: 0300000104 [11:04:33]line РНМ: 0000000000091764 [11:04:33]line Версия ККМ: 001 [11:04:33]line ФМ: 0000000000871759 [11:04:33]line ФД: 166346 [11:04:33]line ФПД: 146851884070981 [11:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110455&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166346&fm=146851884070981&tin=02508201610067®Number=0000000000091764&sum=192000 [11:04:33]OFD Sender: Processing packet 166346 [packets to send 48, broken 47] [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00166346 [11:04:33]OFD Sender: To server: pG, [11:04:33]CommunicateWithHost lk.salyk.kg:30040 [11:04:33]ConnectInit lk.salyk.kg [11:04:33]written 0, free lines is 4095 [11:04:33]Connected sock=9 [11:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 61 04 01 81 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D7 86 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 89 02 00 35 04 06 00 85 8F 9E 62 78 45 75 FE 20 D3 2F 9F 33 E9 [11:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 B3 47 00 58 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 89 02 00 F4 03 04 00 42 2D 17 67 B6 04 01 00 00 B4 F0 E6 D8 F1 05 D0 C2 [11:04:34]CommunicateWithHost err = 0 [11:04:34]CheckOFDResponse [11:04:34]1017 (14) - 77093643461234 [11:04:34]1041 (16) - 0000000000871759 [11:04:34]1040 (4) - 166346 [11:04:34]1012 (4) - 22.10.2024 04:42 [11:04:34]1206 (1) - 0 [11:04:34]OFD Sender: Remove packet 166346 [11:04:34]ProducePacketName [11:04:34]name=ofd_packets/00166346 [11:04:34]NVStorageDeleteData [11:04:34]Write to MH i2c: 01 00 00 AA AF 59 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: 01 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: 01 07 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: 01 07 00 AA AF 00 00 00 00 00 CB 0C 37 [11:04:34]RasterBufferAndPrint [11:04:34]line [11:04:34]line [11:04:34]line [11:04:34]line [11:04:34]line [11:04:34]written 0, free lines is 3279 [11:04:34]MH_Cut [11:04:34]Write to MH i2c: D1 01 00 B1 AF 01 32 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: D1 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: D1 01 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: D1 01 00 B1 AF 00 31 [11:04:34]Write to MH i2c: 01 00 00 B2 AF 61 [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]OFD Sender: No OFD packet to send [11:04:35]*** Cut start [11:04:35]*** Partial cut [11:04:35]*** CUTSNS_PIN = 1 [11:04:35]*** CUTSNS_PIN = 0 [11:04:35]*** Brake cut motor [11:04:35]Read from MH i2c: 01 [11:04:35]MH_I2C_Read... [11:04:35]*** Stop cut motor [11:04:35]*** Cut end [11:04:35]Read from MH i2c: 01 07 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: 01 07 00 B2 AF 00 00 00 00 00 FF 0F 76 [11:04:35]process_action close_receipt done [11:04:35]requested_data is exist [11:04:35]produce_requested_data [11:04:35]requested_item fm.sn is exist - process it [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 11 00 00 [11:04:35]Write to MH i2c: E2 08 00 B3 AF 80 11 00 00 00 00 00 00 DC [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 17 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 17 00 B3 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [11:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:04:35]wFMCommunicate OK [11:04:35]requested_item fd.num is exist - process it [11:04:35]SAM_PROTO_GetFieldsCounters [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 13 00 00 [11:04:35]Write to MH i2c: E2 08 00 B4 AF 80 13 00 00 00 00 00 00 DF [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 62 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 62 00 B4 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_GetFieldsCounters done [11:04:36]requested_item shift.num is exist - process it [11:04:36]requested_item shift.opened is exist - process it [11:04:36]req_shift_opened [11:04:36]FM_GetShiftState [11:04:36]SAM_PROTO_GetShiftState [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 13 01 00 [11:04:36]Write to MH i2c: E2 08 00 B5 AF 80 13 01 00 00 00 00 00 E1 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 B5 AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 34 [11:04:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_GetShiftState done [11:04:36]FM_GetShiftState done [11:04:36]req_shift_opened done [11:04:36]requested_item shift.open_date is exist - process it [11:04:36]req_shift_open_date [11:04:36]req_shift_open_date done [11:04:36]produce_requested_data done [11:04:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166346,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:04:36]process_action_free close_receipt [11:04:36]json_value_free [11:04:36]json_value_free done [11:04:36]process_json_proto returns [11:04:36]Send response to host [11:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166346,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:04:36]free response buf [11:04:36]execute_script done [11:04:36]execute_script returns [11:04:36]free content buf [11:04:36]Sock 5.Close socket [11:04:36]Sock 5.Thread stoped [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:57]accept exits with 6 [11:06:57]New connection [11:06:57]New thread 3066776932 created [11:06:57]Thread 3066920292 joined [11:06:57]Waiting for new connection... [11:06:57] Sock 6.Parse request [11:06:57]Sock 6.Check first char [11:06:57]Sock 6.First char is OK [11:06:57]request: POST /json_proto HTTP/1.0 [11:06:57]Method: POST [11:06:57]URL: /json_proto [11:06:57]Method is POST - this is cgi request [11:06:57]url: /json_proto [11:06:57]query_string will be loaded in cgi processing [11:06:57]execute_cgi json_proto POST (null) [11:06:57]execute_cgi path=json_proto method=POST [11:06:57]POST find Content-Length [11:06:57]Host: 172.17.53.195:8080 [11:06:57]Content-Length: 674 [11:06:57]Content-Type: application/json [11:06:57] [11:06:57]POST finish read [11:06:57]Found Content-Length = 674 [11:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:57]execute_script... [11:06:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:57]POST & json_proto [11:06:57]process_json_proto [11:06:57]json parsed OK: [11:06:57]protocol is kg_v1.0 [11:06:57]action value=close_receipt [11:06:57]process_action close_receipt [11:06:57]cmd_close_receipt [11:06:57]MH_GetDate [11:06:57]Write to MH i2c: F0 00 00 B6 AF 54 [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: F0 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: F0 09 00 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: F0 09 00 B6 AF 00 69 87 17 67 21 48 4A 65 E3 [11:06:57]GetLastDocTimeStamp 1729595095 [11:06:57]current date 1729595241 [11:06:57]FM_GetShiftState [11:06:57]SAM_PROTO_GetShiftState [11:06:57]wFMCommunicate request_size=4 [11:06:57]MH_SAM_APDU [11:06:57]CAPDU: 80 13 01 00 [11:06:57]Write to MH i2c: E2 08 00 B7 AF 80 13 01 00 00 00 00 00 E3 [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:57]Read from MH i2c: E2 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 0E 00 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 0E 00 B7 AF 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [11:06:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:06:57]wFMCommunicate OK [11:06:57]SAM_PROTO_GetShiftState done [11:06:57]FM_GetShiftState done [11:06:57]opened in 1729557463 [11:06:57]opened+sec_in_day 1729643863 [11:06:57]quantity*price = 60045 [11:06:57]sum+1 = 60047 [11:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 102 22.10.2024 11:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166347 ФПД: 87237681058808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166347&fm=87237681058808&tin=02508201610067®Number=0000000000091764&sum=60000 [11:06:58]StoreToDocumentArchive [11:06:58]shift 536 fd 166347 [11:06:58]save to /storage/0536/doc_00166347 [11:06:58]save last doc name /storage/0536/doc_00166347 to /storage/kkm_last_doc_name [11:06:58]save OK [11:06:58]Clear old archive folders... [11:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:06:58]tlvbuf is 01DB7150 [11:06:58]SAM_PROTO_ClearQueue [11:06:58]wFMCommunicate request_size=4 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 09 00 00 [11:06:58]Write to MH i2c: E2 08 00 C4 AF 80 09 00 00 00 00 00 00 E5 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 C4 AF 00 90 00 E7 [11:06:58]RAPDU: 90 00 [11:06:58]wFMCommunicate OK [11:06:58]SAM_PROTO_ClearQueue done [11:06:58]KKMCreateOFDPacket [11:06:58]OFDProtocolAddRootSTLVToBuf [11:06:58]FM_MakeSignedData [11:06:58]FM_MakeSignedData [11:06:58]SAM_PROTO_SignData [11:06:58]wFMCommunicate request_size=4 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 0D 01 02 [11:06:58]Write to MH i2c: E2 08 00 C5 AF 80 0D 01 02 00 00 00 00 ED [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 C5 AF 00 90 00 E8 [11:06:58]RAPDU: 90 00 [11:06:58]wFMCommunicate OK [11:06:58]wFMCommunicate request_size=255 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 89 02 00 35 04 06 00 4F 57 9A FD [11:06:58]Write to MH i2c: E2 02 01 C6 AF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 89 02 00 35 04 06 00 4F 57 9A FD 00 00 BB [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 C6 AF 00 90 00 E9 [11:06:59]RAPDU: 90 00 [11:06:59]wFMCommunicate OK [11:06:59]wFMCommunicate request_size=7 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 0D 02 02 02 93 F8 [11:06:59]Write to MH i2c: E2 0A 00 C7 AF 80 0D 02 02 02 00 93 F8 00 00 7F [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 C7 AF 00 90 00 EA [11:06:59]RAPDU: 90 00 [11:06:59]wFMCommunicate OK [11:06:59]wFMCommunicate request_size=4 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 0D 03 02 [11:06:59]Write to MH i2c: E2 08 00 C8 AF 80 0D 03 02 00 00 00 00 F2 [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 0B 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 0B 00 C8 AF 00 E2 0B 58 5E A6 74 92 D8 90 00 1A [11:06:59]RAPDU: E2 0B 58 5E A6 74 92 D8 90 00 [11:06:59]wFMCommunicate OK [11:06:59]SAM_PROTO_SignData done [11:06:59]FM_MakeSignedData done [11:06:59]CreateOFDProtocolMessage [11:06:59]wFMCommunicate request_size=4 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 11 00 00 [11:06:59]Write to MH i2c: E2 08 00 C9 AF 80 11 00 00 00 00 00 00 F2 [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 17 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 17 00 C9 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [11:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:06:59]wFMCommunicate OK [11:06:59]CreateOFDProtocolMessage done [11:06:59]OFDSenderStorePacket 166347 [11:06:59]StoreOFDPacket docnum=166347 [11:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2F A1 04 01 1D E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 89 02 00 35 04 06 00 4F 57 9A FD 93 F8 E2 0B 58 5E A6 74 92 D8 [11:06:59]CheckFolder [11:06:59]dirname=/storage/ofd_packets [11:06:59]CheckFolder done [11:06:59]ProducePacketName [11:06:59]name=ofd_packets/00166347 [11:06:59]NVStorageSaveData ofd_packets/00166347 [11:06:59]File name is /storage/ofd_packets/00166347 [11:06:59]Write 298 bytes [11:06:59]NVStorageSaveData done [11:06:59]OFDSenderStorePacket done [11:06:59]KKMCreateOFDPacket done [11:06:59]NVStorageSaveData kkm_last_timestamp [11:06:59]File name is /storage/kkm_last_timestamp [11:06:59]Write 4 bytes [11:06:59]NVStorageSaveData done [11:06:59]ExternCall_PrintAddStr [11:06:59]wPrintStart [11:06:59]Write to MH i2c: 01 00 00 CA AF 79 [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: 01 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: 01 07 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: 01 07 00 CA AF 00 00 00 00 00 FF 0F 8E [11:06:59]RasterBufferAndPrint [11:06:59]line Счет N : (1)220925 [11:06:59]line ИНН: 02508201610067 [11:06:59]line Контрольно-Кассовый Чек [11:06:59]line ПРОДАЖА [11:06:59]line ТРК (МРК, ГНК) : 11 [11:06:59]line Товар: 2710194210 [11:06:59]line ДТ-К-5 [11:06:59]line 7.880 * 76.20 [11:06:59]line = 600.46 [11:06:59]line НДС 12% НСП 1% [11:06:59]line > о реализуемом товаре [11:06:59]line ОКРУГЛЕНИЕ: -0.46 [11:06:59]line ИТОГО: 600.00 [11:06:59]line Внесено: 600.00 [11:06:59]line СДАЧА: 0.00 [11:06:59]line НСП 1% : 5.31 [11:06:59]line НДС 12% : 63.77 [11:06:59]line Наличными: 600.00 [11:06:59]line Безнал.: 0.00 [11:06:59]line Место: АЗС № 161 "Партнер Нефть" [11:06:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:06:59]line СНО: Общий режим [11:06:59]line Чек 102 22.10.2024 11:07 [11:06:59]line Смена: 536 ФФД: 1.0 [11:06:59]line ЗНМ: 0300000104 [11:06:59]line РНМ: 0000000000091764 [11:06:59]line Версия ККМ: 001 [11:06:59]line ФМ: 0000000000871759 [11:06:59]line ФД: 166347 [11:06:59]line ФПД: 87237681058808 [11:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166347&fm=87237681058808&tin=02508201610067®Number=0000000000091764&sum=60000 [11:06:59]OFD Sender: Processing packet 166347 [packets to send 48, broken 47] [11:06:59]ProducePacketName [11:06:59]name=ofd_packets/00166347 [11:06:59]OFD Sender: To server: pG, [11:06:59]CommunicateWithHost lk.salyk.kg:30040 [11:06:59]ConnectInit lk.salyk.kg [11:06:59]written 0, free lines is 4095 [11:06:59]Connected sock=7 [11:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2F A1 04 01 1D E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 89 02 00 35 04 06 00 4F 57 9A FD 93 F8 E2 0B 58 5E A6 74 92 D8 [11:06:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB DB 47 00 55 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 89 02 00 F4 03 04 00 D4 2D 17 67 B6 04 01 00 00 93 1A 1E C2 C1 58 AE AF [11:06:59]CommunicateWithHost err = 0 [11:06:59]CheckOFDResponse [11:06:59]1017 (14) - 77093643461234 [11:06:59]1041 (16) - 0000000000871759 [11:06:59]1040 (4) - 166347 [11:06:59]1012 (4) - 22.10.2024 04:45 [11:06:59]1206 (1) - 0 [11:06:59]OFD Sender: Remove packet 166347 [11:06:59]ProducePacketName [11:06:59]name=ofd_packets/00166347 [11:06:59]NVStorageDeleteData [11:07:00]Write to MH i2c: 01 00 00 F5 AF A4 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 F5 AF 00 00 00 00 00 D1 0C 88 [11:07:00]RasterBufferAndPrint [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]written 0, free lines is 3287 [11:07:00]MH_Cut [11:07:00]Write to MH i2c: D1 01 00 FC AF 01 7D [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 01 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 01 00 FC AF 00 7C [11:07:00]Write to MH i2c: 01 00 00 FD AF AC [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]OFD Sender: No OFD packet to send [11:07:00]*** Cut start [11:07:00]*** Partial cut [11:07:00]*** CUTSNS_PIN = 1 [11:07:00]*** CUTSNS_PIN = 0 [11:07:01]*** Brake cut motor [11:07:01]Read from MH i2c: 01 [11:07:01]MH_I2C_Read... [11:07:01]*** Stop cut motor [11:07:01]*** Cut end [11:07:01]Read from MH i2c: 01 07 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: 01 07 00 FD AF 00 00 00 00 00 FF 0F C1 [11:07:01]process_action close_receipt done [11:07:01]requested_data is exist [11:07:01]produce_requested_data [11:07:01]requested_item fm.sn is exist - process it [11:07:01]wFMCommunicate request_size=4 [11:07:01]MH_SAM_APDU [11:07:01]CAPDU: 80 11 00 00 [11:07:01]Write to MH i2c: E2 08 00 FE AF 80 11 00 00 00 00 00 00 27 [11:07:01]Write i2c OK [11:07:01]MH_I2C_Read... [11:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:01]Read from MH i2c: E2 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 17 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 17 00 FE AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [11:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:07:01]wFMCommunicate OK [11:07:01]requested_item fd.num is exist - process it [11:07:01]SAM_PROTO_GetFieldsCounters [11:07:01]wFMCommunicate request_size=4 [11:07:01]MH_SAM_APDU [11:07:01]CAPDU: 80 13 00 00 [11:07:01]Write to MH i2c: E2 08 00 FF AF 80 13 00 00 00 00 00 00 2A [11:07:01]Write i2c OK [11:07:01]MH_I2C_Read... [11:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:01]Read from MH i2c: E2 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 62 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 62 00 FF AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:01]wFMCommunicate OK [11:07:01]SAM_PROTO_GetFieldsCounters done [11:07:01]requested_item shift.num is exist - process it [11:07:01]requested_item shift.opened is exist - process it [11:07:01]req_shift_opened [11:07:01]FM_GetShiftState [11:07:01]SAM_PROTO_GetShiftState [11:07:01]wFMCommunicate request_size=4 [11:07:01]MH_SAM_APDU [11:07:01]CAPDU: 80 13 01 00 [11:07:01]Write to MH i2c: E2 08 00 00 B0 80 13 01 00 00 00 00 00 2D [11:07:01]Write i2c OK [11:07:01]MH_I2C_Read... [11:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:01]Read from MH i2c: E2 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 0E 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 0E 00 00 B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 80 [11:07:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:07:01]wFMCommunicate OK [11:07:01]SAM_PROTO_GetShiftState done [11:07:01]FM_GetShiftState done [11:07:01]req_shift_opened done [11:07:01]requested_item shift.open_date is exist - process it [11:07:01]req_shift_open_date [11:07:01]req_shift_open_date done [11:07:01]produce_requested_data done [11:07:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166347,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:07:01]process_action_free close_receipt [11:07:01]json_value_free [11:07:01]json_value_free done [11:07:01]process_json_proto returns [11:07:01]Send response to host [11:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166347,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:07:01]free response buf [11:07:01]execute_script done [11:07:01]execute_script returns [11:07:01]free content buf [11:07:01]Sock 6.Close socket [11:07:01]Sock 6.Thread stoped [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:21]accept exits with 5 [11:09:21]New connection [11:09:21]New thread 3066920292 created [11:09:21]Thread 3066776932 joined [11:09:21]Waiting for new connection... [11:09:21] Sock 5.Parse request [11:09:21]Sock 5.Check first char [11:09:21]Sock 5.First char is OK [11:09:21]request: POST /json_proto HTTP/1.0 [11:09:21]Method: POST [11:09:21]URL: /json_proto [11:09:21]Method is POST - this is cgi request [11:09:21]url: /json_proto [11:09:21]query_string will be loaded in cgi processing [11:09:21]execute_cgi json_proto POST (null) [11:09:21]execute_cgi path=json_proto method=POST [11:09:21]POST find Content-Length [11:09:21]Host: 172.17.53.195:8080 [11:09:21]Content-Length: 679 [11:09:21]Content-Type: application/json [11:09:21] [11:09:21]POST finish read [11:09:21]Found Content-Length = 679 [11:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.060, "sum" : 1299.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1299.00, "payments": [ { "type": 0, "sum" : 1299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]execute_script... [11:09:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.060, "sum" : 1299.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1299.00, "payments": [ { "type": 0, "sum" : 1299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]POST & json_proto [11:09:21]process_json_proto [11:09:21]json parsed OK: [11:09:21]protocol is kg_v1.0 [11:09:21]action value=close_receipt [11:09:21]process_action close_receipt [11:09:21]cmd_close_receipt [11:09:21]MH_GetDate [11:09:21]Write to MH i2c: F0 00 00 01 B0 A0 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 01 B0 00 F9 87 17 67 21 48 4A 65 BF [11:09:21]GetLastDocTimeStamp 1729595241 [11:09:21]current date 1729595385 [11:09:21]FM_GetShiftState [11:09:21]SAM_PROTO_GetShiftState [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 01 00 [11:09:21]Write to MH i2c: E2 08 00 02 B0 80 13 01 00 00 00 00 00 2F [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 02 B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 82 [11:09:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetShiftState done [11:09:21]FM_GetShiftState done [11:09:21]opened in 1729557463 [11:09:21]opened+sec_in_day 1729643863 [11:09:21]quantity*price = 129997 [11:09:21]sum+1 = 129998 [11:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 1299.00 Внесено: 1300.00 СДАЧА: 1.00 НСП 1% : 11.50 НДС 12% : 138.05 Наличными: 1299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 103 22.10.2024 11:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166348 ФПД: 213826051833786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166348&fm=213826051833786&tin=02508201610067®Number=0000000000091764&sum=129900 [11:09:22]StoreToDocumentArchive [11:09:22]shift 536 fd 166348 [11:09:22]save to /storage/0536/doc_00166348 [11:09:22]save last doc name /storage/0536/doc_00166348 to /storage/kkm_last_doc_name [11:09:22]save OK [11:09:22]Clear old archive folders... [11:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:09:22]tlvbuf is 01D8A980 [11:09:22]SAM_PROTO_ClearQueue [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 09 00 00 [11:09:22]Write to MH i2c: E2 08 00 0F B0 80 09 00 00 00 00 00 00 31 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 0F B0 00 90 00 33 [11:09:22]RAPDU: 90 00 [11:09:22]wFMCommunicate OK [11:09:22]SAM_PROTO_ClearQueue done [11:09:22]KKMCreateOFDPacket [11:09:22]OFDProtocolAddRootSTLVToBuf [11:09:22]FM_MakeSignedData [11:09:22]FM_MakeSignedData [11:09:22]SAM_PROTO_SignData [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 0D 01 02 [11:09:22]Write to MH i2c: E2 08 00 10 B0 80 0D 01 02 00 00 00 00 39 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 10 B0 00 90 00 34 [11:09:22]RAPDU: 90 00 [11:09:22]wFMCommunicate OK [11:09:22]wFMCommunicate request_size=255 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F9 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 89 02 00 35 04 06 00 C2 79 41 DC [11:09:22]Write to MH i2c: E2 02 01 11 B0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F9 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 89 02 00 35 04 06 00 C2 79 41 DC 00 00 CF [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 11 B0 00 90 00 35 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=7 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 02 02 02 FF BA [11:09:23]Write to MH i2c: E2 0A 00 12 B0 80 0D 02 02 02 00 FF BA 00 00 F9 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 12 B0 00 90 00 36 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 03 02 [11:09:23]Write to MH i2c: E2 08 00 13 B0 80 0D 03 02 00 00 00 00 3E [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 13 B0 00 C3 90 EA 22 60 B2 D2 AE 90 00 30 [11:09:23]RAPDU: C3 90 EA 22 60 B2 D2 AE 90 00 [11:09:23]wFMCommunicate OK [11:09:23]SAM_PROTO_SignData done [11:09:23]FM_MakeSignedData done [11:09:23]CreateOFDProtocolMessage [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 11 00 00 [11:09:23]Write to MH i2c: E2 08 00 14 B0 80 11 00 00 00 00 00 00 3E [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 14 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [11:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:23]wFMCommunicate OK [11:09:23]CreateOFDProtocolMessage done [11:09:23]OFDSenderStorePacket 166348 [11:09:23]StoreOFDPacket docnum=166348 [11:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A2 4F 04 01 DA 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F9 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 89 02 00 35 04 06 00 C2 79 41 DC FF BA C3 90 EA 22 60 B2 D2 AE [11:09:23]CheckFolder [11:09:23]dirname=/storage/ofd_packets [11:09:23]CheckFolder done [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00166348 [11:09:23]NVStorageSaveData ofd_packets/00166348 [11:09:23]File name is /storage/ofd_packets/00166348 [11:09:23]Write 298 bytes [11:09:23]NVStorageSaveData done [11:09:23]OFDSenderStorePacket done [11:09:23]KKMCreateOFDPacket done [11:09:23]NVStorageSaveData kkm_last_timestamp [11:09:23]File name is /storage/kkm_last_timestamp [11:09:23]Write 4 bytes [11:09:23]NVStorageSaveData done [11:09:23]ExternCall_PrintAddStr [11:09:23]wPrintStart [11:09:23]Write to MH i2c: 01 00 00 15 B0 C5 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 15 B0 00 00 00 00 00 FF 0F DA [11:09:23]RasterBufferAndPrint [11:09:23]line Счет N : (1)220926 [11:09:23]line ИНН: 02508201610067 [11:09:23]line Контрольно-Кассовый Чек [11:09:23]line ПРОДАЖА [11:09:23]line ТРК (МРК, ГНК) : 11 [11:09:23]line Товар: 2710194210 [11:09:23]line ДТ-К-5 [11:09:23]line 17.060 * 76.20 [11:09:23]line = 1299.97 [11:09:23]line НДС 12% НСП 1% [11:09:23]line > о реализуемом товаре [11:09:23]line ОКРУГЛЕНИЕ: -0.97 [11:09:23]line ИТОГО: 1299.00 [11:09:23]line Внесено: 1300.00 [11:09:23]line СДАЧА: 1.00 [11:09:23]line НСП 1% : 11.50 [11:09:23]line НДС 12% : 138.05 [11:09:23]line Наличными: 1299.00 [11:09:23]line Безнал.: 0.00 [11:09:23]line Место: АЗС № 161 "Партнер Нефть" [11:09:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:09:23]line СНО: Общий режим [11:09:23]line Чек 103 22.10.2024 11:09 [11:09:23]line Смена: 536 ФФД: 1.0 [11:09:23]line ЗНМ: 0300000104 [11:09:23]line РНМ: 0000000000091764 [11:09:23]line Версия ККМ: 001 [11:09:23]line ФМ: 0000000000871759 [11:09:23]line ФД: 166348 [11:09:23]line ФПД: 213826051833786 [11:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166348&fm=213826051833786&tin=02508201610067®Number=0000000000091764&sum=129900 [11:09:23]OFD Sender: Processing packet 166348 [packets to send 48, broken 47] [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00166348 [11:09:23]OFD Sender: To server: pG, [11:09:23]CommunicateWithHost lk.salyk.kg:30040 [11:09:23]ConnectInit lk.salyk.kg [11:09:23]written 0, free lines is 4095 [11:09:23]Connected sock=7 [11:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A2 4F 04 01 DA 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 35 00 00 00 00 07 04 06 00 6C FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F9 87 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 89 02 00 35 04 06 00 C2 79 41 DC FF BA C3 90 EA 22 60 B2 D2 AE [11:09:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7F 38 47 00 33 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 89 02 00 F4 03 04 00 64 2E 17 67 B6 04 01 00 00 13 66 AE 69 11 FE A3 34 [11:09:23]CommunicateWithHost err = 0 [11:09:23]CheckOFDResponse [11:09:23]1017 (14) - 77093643461234 [11:09:23]1041 (16) - 0000000000871759 [11:09:23]1040 (4) - 166348 [11:09:23]1012 (4) - 22.10.2024 04:47 [11:09:23]1206 (1) - 0 [11:09:23]OFD Sender: Remove packet 166348 [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00166348 [11:09:23]NVStorageDeleteData [11:09:24]Write to MH i2c: 01 00 00 40 B0 F0 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 40 B0 00 00 00 00 00 C5 0C C8 [11:09:24]RasterBufferAndPrint [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]written 0, free lines is 3275 [11:09:24]MH_Cut [11:09:24]Write to MH i2c: D1 01 00 47 B0 01 C9 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 47 B0 00 C8 [11:09:24]Write to MH i2c: 01 00 00 48 B0 F8 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]OFD Sender: No OFD packet to send [11:09:24]*** Cut start [11:09:24]*** Partial cut [11:09:24]*** CUTSNS_PIN = 1 [11:09:24]*** CUTSNS_PIN = 0 [11:09:25]*** Brake cut motor [11:09:25]Read from MH i2c: 01 [11:09:25]MH_I2C_Read... [11:09:25]*** Stop cut motor [11:09:25]*** Cut end [11:09:25]Read from MH i2c: 01 07 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 07 00 48 B0 00 00 00 00 00 FF 0F 0D [11:09:25]process_action close_receipt done [11:09:25]requested_data is exist [11:09:25]produce_requested_data [11:09:25]requested_item fm.sn is exist - process it [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 11 00 00 [11:09:25]Write to MH i2c: E2 08 00 49 B0 80 11 00 00 00 00 00 00 73 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 49 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [11:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:25]wFMCommunicate OK [11:09:25]requested_item fd.num is exist - process it [11:09:25]SAM_PROTO_GetFieldsCounters [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 00 00 [11:09:25]Write to MH i2c: E2 08 00 4A B0 80 13 00 00 00 00 00 00 76 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 4A B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetFieldsCounters done [11:09:25]requested_item shift.num is exist - process it [11:09:25]requested_item shift.opened is exist - process it [11:09:25]req_shift_opened [11:09:25]FM_GetShiftState [11:09:25]SAM_PROTO_GetShiftState [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 01 00 [11:09:25]Write to MH i2c: E2 08 00 4B B0 80 13 01 00 00 00 00 00 78 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 4B B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CB [11:09:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetShiftState done [11:09:25]FM_GetShiftState done [11:09:25]req_shift_opened done [11:09:25]requested_item shift.open_date is exist - process it [11:09:25]req_shift_open_date [11:09:25]req_shift_open_date done [11:09:25]produce_requested_data done [11:09:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166348,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:09:25]process_action_free close_receipt [11:09:25]json_value_free [11:09:25]json_value_free done [11:09:25]process_json_proto returns [11:09:25]Send response to host [11:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166348,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:09:25]free response buf [11:09:25]execute_script done [11:09:25]execute_script returns [11:09:25]free content buf [11:09:25]Sock 5.Close socket [11:09:25]Sock 5.Thread stoped [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:21]accept exits with 6 [11:10:21]New connection [11:10:21]New thread 3066776932 created [11:10:21]Thread 3066920292 joined [11:10:21]Waiting for new connection... [11:10:21] Sock 6.Parse request [11:10:21]Sock 6.Check first char [11:10:21]Sock 6.First char is OK [11:10:21]request: POST /json_proto HTTP/1.0 [11:10:21]Method: POST [11:10:21]URL: /json_proto [11:10:21]Method is POST - this is cgi request [11:10:21]url: /json_proto [11:10:21]query_string will be loaded in cgi processing [11:10:21]execute_cgi json_proto POST (null) [11:10:21]execute_cgi path=json_proto method=POST [11:10:21]POST find Content-Length [11:10:21]Host: 172.17.53.195:8080 [11:10:21]Content-Length: 677 [11:10:21]Content-Type: application/json [11:10:21] [11:10:21]POST finish read [11:10:21]Found Content-Length = 677 [11:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:21]execute_script... [11:10:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:21]POST & json_proto [11:10:21]process_json_proto [11:10:21]json parsed OK: [11:10:21]protocol is kg_v1.0 [11:10:21]action value=close_receipt [11:10:21]process_action close_receipt [11:10:21]cmd_close_receipt [11:10:21]MH_GetDate [11:10:21]Write to MH i2c: F0 00 00 4C B0 EB [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: F0 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: F0 09 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: F0 09 00 4C B0 00 35 88 17 67 21 48 4A 65 47 [11:10:21]GetLastDocTimeStamp 1729595385 [11:10:21]current date 1729595445 [11:10:21]FM_GetShiftState [11:10:21]SAM_PROTO_GetShiftState [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 13 01 00 [11:10:21]Write to MH i2c: E2 08 00 4D B0 80 13 01 00 00 00 00 00 7A [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0E 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0E 00 4D B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CD [11:10:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_GetShiftState done [11:10:21]FM_GetShiftState done [11:10:21]opened in 1729557463 [11:10:21]opened+sec_in_day 1729643863 [11:10:21]quantity*price = 60009 [11:10:21]sum+1 = 60010 [11:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 104 22.10.2024 11:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166349 ФПД: 128417412407470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166349&fm=128417412407470&tin=02508201610067®Number=0000000000091764&sum=60000 [11:10:23]StoreToDocumentArchive [11:10:23]shift 536 fd 166349 [11:10:23]save to /storage/0536/doc_00166349 [11:10:23]save last doc name /storage/0536/doc_00166349 to /storage/kkm_last_doc_name [11:10:23]save OK [11:10:23]Clear old archive folders... [11:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:23]tlvbuf is 01B4D820 [11:10:23]SAM_PROTO_ClearQueue [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 09 00 00 [11:10:23]Write to MH i2c: E2 08 00 5A B0 80 09 00 00 00 00 00 00 7C [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 5A B0 00 90 00 7E [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_ClearQueue done [11:10:23]KKMCreateOFDPacket [11:10:23]OFDProtocolAddRootSTLVToBuf [11:10:23]FM_MakeSignedData [11:10:23]FM_MakeSignedData [11:10:23]SAM_PROTO_SignData [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 01 02 [11:10:23]Write to MH i2c: E2 08 00 5B B0 80 0D 01 02 00 00 00 00 84 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 5B B0 00 90 00 7F [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=255 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 35 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 89 02 00 35 04 06 00 74 [11:10:23]Write to MH i2c: E2 02 01 5C B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 35 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 89 02 00 35 04 06 00 74 00 00 80 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 5C B0 00 90 00 80 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=10 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 02 02 05 CB 82 3F E0 AE [11:10:23]Write to MH i2c: E2 0D 00 5D B0 80 0D 02 02 05 00 CB 82 3F E0 AE 00 00 AB [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 5D B0 00 90 00 81 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 03 02 [11:10:23]Write to MH i2c: E2 08 00 5E B0 80 0D 03 02 00 00 00 00 89 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 0B 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 0B 00 5E B0 00 A9 34 86 6A 7A AD 6D 57 90 00 42 [11:10:23]RAPDU: A9 34 86 6A 7A AD 6D 57 90 00 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_SignData done [11:10:23]FM_MakeSignedData done [11:10:23]CreateOFDProtocolMessage [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 11 00 00 [11:10:23]Write to MH i2c: E2 08 00 5F B0 80 11 00 00 00 00 00 00 89 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 17 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 17 00 5F B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [11:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:23]wFMCommunicate OK [11:10:23]CreateOFDProtocolMessage done [11:10:23]OFDSenderStorePacket 166349 [11:10:23]StoreOFDPacket docnum=166349 [11:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 D4 07 01 CB 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 35 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 89 02 00 35 04 06 00 74 CB 82 3F E0 AE A9 34 86 6A 7A AD 6D 57 [11:10:23]CheckFolder [11:10:23]dirname=/storage/ofd_packets [11:10:23]CheckFolder done [11:10:23]ProducePacketName [11:10:23]name=ofd_packets/00166349 [11:10:23]NVStorageSaveData ofd_packets/00166349 [11:10:23]File name is /storage/ofd_packets/00166349 [11:10:23]Write 301 bytes [11:10:23]NVStorageSaveData done [11:10:23]OFDSenderStorePacket done [11:10:23]KKMCreateOFDPacket done [11:10:23]NVStorageSaveData kkm_last_timestamp [11:10:23]File name is /storage/kkm_last_timestamp [11:10:23]Write 4 bytes [11:10:23]NVStorageSaveData done [11:10:23]ExternCall_PrintAddStr [11:10:23]wPrintStart [11:10:23]Write to MH i2c: 01 00 00 60 B0 10 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: 01 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: 01 07 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: 01 07 00 60 B0 00 00 00 00 00 FF 0F 25 [11:10:23]RasterBufferAndPrint [11:10:23]line Счет N : (1)220928 [11:10:23]line ИНН: 02508201610067 [11:10:23]line Контрольно-Кассовый Чек [11:10:23]line ПРОДАЖА [11:10:23]line ТРК (МРК, ГНК) : 43 [11:10:23]line Товар: 2710124130 [11:10:23]line Аи-92-К-5 [11:10:23]line 8.970 * 66.90 [11:10:23]line = 600.09 [11:10:23]line НДС 12% НСП 1% [11:10:23]line > о реализуемом товаре [11:10:23]line ОКРУГЛЕНИЕ: -0.09 [11:10:23]line ИТОГО: 600.00 [11:10:23]line Внесено: 600.00 [11:10:23]line СДАЧА: 0.00 [11:10:23]line НСП 1% : 5.31 [11:10:23]line НДС 12% : 63.73 [11:10:23]line Наличными: 600.00 [11:10:23]line Безнал.: 0.00 [11:10:23]line Место: АЗС № 161 "Партнер Нефть" [11:10:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:10:23]line СНО: Общий режим [11:10:23]line Чек 104 22.10.2024 11:10 [11:10:23]line Смена: 536 ФФД: 1.0 [11:10:23]line ЗНМ: 0300000104 [11:10:23]line РНМ: 0000000000091764 [11:10:23]line Версия ККМ: 001 [11:10:23]line ФМ: 0000000000871759 [11:10:23]line ФД: 166349 [11:10:23]line ФПД: 128417412407470 [11:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111045&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166349&fm=128417412407470&tin=02508201610067®Number=0000000000091764&sum=60000 [11:10:23]OFD Sender: Processing packet 166349 [packets to send 48, broken 47] [11:10:23]ProducePacketName [11:10:23]name=ofd_packets/00166349 [11:10:23]OFD Sender: To server: pG, [11:10:23]CommunicateWithHost lk.salyk.kg:30040 [11:10:23]ConnectInit lk.salyk.kg [11:10:23]written 0, free lines is 4095 [11:10:24]Connected sock=7 [11:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 D4 07 01 CB 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 35 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 89 02 00 35 04 06 00 74 CB 82 3F E0 AE A9 34 86 6A 7A AD 6D 57 [11:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7D 36 47 00 48 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 89 02 00 F4 03 04 00 A0 2E 17 67 B6 04 01 00 00 65 9B 4B 56 92 6F 61 B7 [11:10:24]CommunicateWithHost err = 0 [11:10:24]CheckOFDResponse [11:10:24]1017 (14) - 77093643461234 [11:10:24]1041 (16) - 0000000000871759 [11:10:24]1040 (4) - 166349 [11:10:24]1012 (4) - 22.10.2024 04:48 [11:10:24]1206 (1) - 0 [11:10:24]OFD Sender: Remove packet 166349 [11:10:24]ProducePacketName [11:10:24]name=ofd_packets/00166349 [11:10:24]NVStorageDeleteData [11:10:24]Write to MH i2c: 01 00 00 8B B0 3B [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 8B B0 00 00 00 00 00 CD 0C 1B [11:10:24]RasterBufferAndPrint [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]written 0, free lines is 3283 [11:10:24]MH_Cut [11:10:24]Write to MH i2c: D1 01 00 92 B0 01 14 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: D1 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: D1 01 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: D1 01 00 92 B0 00 13 [11:10:24]Write to MH i2c: 01 00 00 93 B0 43 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]OFD Sender: No OFD packet to send [11:10:25]*** Cut start [11:10:25]*** Partial cut [11:10:25]*** CUTSNS_PIN = 1 [11:10:25]*** CUTSNS_PIN = 0 [11:10:25]*** Brake cut motor [11:10:25]Read from MH i2c: 01 [11:10:25]MH_I2C_Read... [11:10:25]*** Stop cut motor [11:10:25]*** Cut end [11:10:25]Read from MH i2c: 01 07 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: 01 07 00 93 B0 00 00 00 00 00 FF 0F 58 [11:10:25]process_action close_receipt done [11:10:25]requested_data is exist [11:10:25]produce_requested_data [11:10:25]requested_item fm.sn is exist - process it [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 11 00 00 [11:10:25]Write to MH i2c: E2 08 00 94 B0 80 11 00 00 00 00 00 00 BE [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 17 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 17 00 94 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [11:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:25]wFMCommunicate OK [11:10:25]requested_item fd.num is exist - process it [11:10:25]SAM_PROTO_GetFieldsCounters [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 13 00 00 [11:10:25]Write to MH i2c: E2 08 00 95 B0 80 13 00 00 00 00 00 00 C1 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 62 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 62 00 95 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:26]wFMCommunicate OK [11:10:26]SAM_PROTO_GetFieldsCounters done [11:10:26]requested_item shift.num is exist - process it [11:10:26]requested_item shift.opened is exist - process it [11:10:26]req_shift_opened [11:10:26]FM_GetShiftState [11:10:26]SAM_PROTO_GetShiftState [11:10:26]wFMCommunicate request_size=4 [11:10:26]MH_SAM_APDU [11:10:26]CAPDU: 80 13 01 00 [11:10:26]Write to MH i2c: E2 08 00 96 B0 80 13 01 00 00 00 00 00 C3 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0E 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0E 00 96 B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 16 [11:10:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:10:26]wFMCommunicate OK [11:10:26]SAM_PROTO_GetShiftState done [11:10:26]FM_GetShiftState done [11:10:26]req_shift_opened done [11:10:26]requested_item shift.open_date is exist - process it [11:10:26]req_shift_open_date [11:10:26]req_shift_open_date done [11:10:26]produce_requested_data done [11:10:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166349,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:10:26]process_action_free close_receipt [11:10:26]json_value_free [11:10:26]json_value_free done [11:10:26]process_json_proto returns [11:10:26]Send response to host [11:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166349,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:10:26]free response buf [11:10:26]execute_script done [11:10:26]execute_script returns [11:10:26]free content buf [11:10:26]Sock 6.Close socket [11:10:26]Sock 6.Thread stoped [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:51]accept exits with 5 [11:10:51]New connection [11:10:51]New thread 3066920292 created [11:10:51]Thread 3066776932 joined [11:10:51]Waiting for new connection... [11:10:51] Sock 5.Parse request [11:10:51]Sock 5.Check first char [11:10:51]Sock 5.First char is OK [11:10:51]request: POST /json_proto HTTP/1.0 [11:10:51]Method: POST [11:10:51]URL: /json_proto [11:10:51]Method is POST - this is cgi request [11:10:51]url: /json_proto [11:10:51]query_string will be loaded in cgi processing [11:10:51]execute_cgi json_proto POST (null) [11:10:51]execute_cgi path=json_proto method=POST [11:10:51]POST find Content-Length [11:10:51]Host: 172.17.53.195:8080 [11:10:51]Content-Length: 769 [11:10:51]Content-Type: application/json [11:10:51] [11:10:51]POST finish read [11:10:51]Found Content-Length = 769 [11:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:51]execute_script... [11:10:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:51]POST & json_proto [11:10:51]process_json_proto [11:10:51]json parsed OK: [11:10:51]protocol is kg_v1.0 [11:10:51]action value=close_receipt [11:10:51]process_action close_receipt [11:10:51]cmd_close_receipt [11:10:51]MH_GetDate [11:10:51]Write to MH i2c: F0 00 00 97 B0 36 [11:10:51]Write i2c OK [11:10:51]MH_I2C_Read... [11:10:51]Read from MH i2c: F0 [11:10:51]MH_I2C_Read... [11:10:51]Read from MH i2c: F0 09 00 [11:10:51]MH_I2C_Read... [11:10:51]Read from MH i2c: F0 09 00 97 B0 00 53 88 17 67 21 48 4A 65 B0 [11:10:51]GetLastDocTimeStamp 1729595445 [11:10:51]current date 1729595475 [11:10:51]FM_GetShiftState [11:10:51]SAM_PROTO_GetShiftState [11:10:51]wFMCommunicate request_size=4 [11:10:51]MH_SAM_APDU [11:10:51]CAPDU: 80 13 01 00 [11:10:51]Write to MH i2c: E2 08 00 98 B0 80 13 01 00 00 00 00 00 C5 [11:10:51]Write i2c OK [11:10:51]MH_I2C_Read... [11:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:51]Read from MH i2c: E2 [11:10:51]MH_I2C_Read... [11:10:51]Read from MH i2c: E2 0E 00 [11:10:51]MH_I2C_Read... [11:10:51]Read from MH i2c: E2 0E 00 98 B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 18 [11:10:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:10:51]wFMCommunicate OK [11:10:51]SAM_PROTO_GetShiftState done [11:10:51]FM_GetShiftState done [11:10:51]opened in 1729557463 [11:10:51]opened+sec_in_day 1729643863 [11:10:51]quantity*price = 200031 [11:10:51]sum+1 = 200032 [11:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 105 22.10.2024 11:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166350 ФПД: 12634058750915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166350&fm=12634058750915&tin=02508201610067®Number=0000000000091764&sum=200031 [11:10:52]StoreToDocumentArchive [11:10:52]shift 536 fd 166350 [11:10:52]save to /storage/0536/doc_00166350 [11:10:52]save last doc name /storage/0536/doc_00166350 to /storage/kkm_last_doc_name [11:10:52]save OK [11:10:52]Clear old archive folders... [11:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:52]tlvbuf is 0163F8D0 [11:10:52]SAM_PROTO_ClearQueue [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 09 00 00 [11:10:52]Write to MH i2c: E2 08 00 A5 B0 80 09 00 00 00 00 00 00 C7 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 A5 B0 00 90 00 C9 [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_ClearQueue done [11:10:52]KKMCreateOFDPacket [11:10:52]OFDProtocolAddRootSTLVToBuf [11:10:52]FM_MakeSignedData [11:10:52]FM_MakeSignedData [11:10:52]SAM_PROTO_SignData [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 01 02 [11:10:52]Write to MH i2c: E2 08 00 A6 B0 80 0D 01 02 00 00 00 00 CF [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 A6 B0 00 90 00 CA [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]wFMCommunicate request_size=255 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 53 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 89 02 00 35 04 06 00 0B [11:10:52]Write to MH i2c: E2 02 01 A7 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 53 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 89 02 00 35 04 06 00 0B 00 00 25 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 A7 B0 00 90 00 CB [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]wFMCommunicate request_size=10 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 0D 02 02 05 7D 98 95 7B C3 [11:10:53]Write to MH i2c: E2 0D 00 A8 B0 80 0D 02 02 05 00 7D 98 95 7B C3 00 00 C4 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 A8 B0 00 90 00 CC [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 0D 03 02 [11:10:53]Write to MH i2c: E2 08 00 A9 B0 80 0D 03 02 00 00 00 00 D4 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 0B 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 0B 00 A9 B0 00 01 42 F1 10 31 2A 4E 8E 90 00 50 [11:10:53]RAPDU: 01 42 F1 10 31 2A 4E 8E 90 00 [11:10:53]wFMCommunicate OK [11:10:53]SAM_PROTO_SignData done [11:10:53]FM_MakeSignedData done [11:10:53]CreateOFDProtocolMessage [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 11 00 00 [11:10:53]Write to MH i2c: E2 08 00 AA B0 80 11 00 00 00 00 00 00 D4 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 17 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 17 00 AA B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [11:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:53]wFMCommunicate OK [11:10:53]CreateOFDProtocolMessage done [11:10:53]OFDSenderStorePacket 166350 [11:10:53]StoreOFDPacket docnum=166350 [11:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 A3 07 01 C9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 53 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 89 02 00 35 04 06 00 0B 7D 98 95 7B C3 01 42 F1 10 31 2A 4E 8E [11:10:53]CheckFolder [11:10:53]dirname=/storage/ofd_packets [11:10:53]CheckFolder done [11:10:53]ProducePacketName [11:10:53]name=ofd_packets/00166350 [11:10:53]NVStorageSaveData ofd_packets/00166350 [11:10:53]File name is /storage/ofd_packets/00166350 [11:10:53]Write 301 bytes [11:10:53]NVStorageSaveData done [11:10:53]OFDSenderStorePacket done [11:10:53]KKMCreateOFDPacket done [11:10:53]NVStorageSaveData kkm_last_timestamp [11:10:53]File name is /storage/kkm_last_timestamp [11:10:53]Write 4 bytes [11:10:53]NVStorageSaveData done [11:10:53]ExternCall_PrintAddStr [11:10:53]wPrintStart [11:10:53]Write to MH i2c: 01 00 00 AB B0 5B [11:10:53]OFD Sender: Processing packet 166350 [packets to send 48, broken 47] [11:10:53]ProducePacketName [11:10:53]name=ofd_packets/00166350 [11:10:53]OFD Sender: To server: pG, [11:10:53]CommunicateWithHost lk.salyk.kg:30040 [11:10:53]ConnectInit lk.salyk.kg [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 07 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 07 00 AB B0 00 00 00 00 00 FF 0F 70 [11:10:53]RasterBufferAndPrint [11:10:53]line Счет N : (1)220927 [11:10:53]line ИНН: 02508201610067 [11:10:53]line Контрольно-Кассовый Чек [11:10:53]line ПРОДАЖА [11:10:53]line ТРК (МРК, ГНК) : 33 [11:10:53]line Товар: 2710124130 [11:10:53]line Аи-92-К-5 [11:10:53]line 29.900 * 66.90 [11:10:53]line = 2000.31 [11:10:53]line НДС 12% НСП 1% [11:10:53]line > о реализуемом товаре [11:10:53]line ИТОГО: 2000.31 [11:10:53]line НСП 1% : 17.70 [11:10:53]line НДС 12% : 212.42 [11:10:53]line Наличными: 0.00 [11:10:53]line Безнал.: 2000.31 [11:10:53]line Место: АЗС № 161 "Партнер Нефть" [11:10:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:10:53]line СНО: Общий режим [11:10:53]line Чек 105 22.10.2024 11:11 [11:10:53]line Смена: 536 ФФД: 1.0 [11:10:53]line ЗНМ: 0300000104 [11:10:53]line РНМ: 0000000000091764 [11:10:53]line Версия ККМ: 001 [11:10:53]line Платежная система: Mbank [11:10:53]line ФМ: 0000000000871759 [11:10:53]line ФД: 166350 [11:10:53]line ФПД: 12634058750915 [11:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166350&fm=12634058750915&tin=02508201610067®Number=0000000000091764&sum=200031 [11:10:53]Connected sock=7 [11:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 A3 07 01 C9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 53 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 89 02 00 35 04 06 00 0B 7D 98 95 7B C3 01 42 F1 10 31 2A 4E 8E [11:10:53]written 0, free lines is 4095 [11:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 73 29 47 00 D5 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 89 02 00 F4 03 04 00 BE 2E 17 67 B6 04 01 00 00 43 5E D5 38 51 FF D2 F2 [11:10:53]CommunicateWithHost err = 0 [11:10:53]CheckOFDResponse [11:10:53]1017 (14) - 77093643461234 [11:10:53]1041 (16) - 0000000000871759 [11:10:53]1040 (4) - 166350 [11:10:53]1012 (4) - 22.10.2024 04:49 [11:10:53]1206 (1) - 0 [11:10:53]OFD Sender: Remove packet 166350 [11:10:53]ProducePacketName [11:10:53]name=ofd_packets/00166350 [11:10:53]NVStorageDeleteData [11:10:54]Write to MH i2c: 01 00 00 D4 B0 84 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 D4 B0 00 00 00 00 00 F1 0C 88 [11:10:54]RasterBufferAndPrint [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]written 0, free lines is 3319 [11:10:54]MH_Cut [11:10:54]Write to MH i2c: D1 01 00 DB B0 01 5D [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 01 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 01 00 DB B0 00 5C [11:10:54]Write to MH i2c: 01 00 00 DC B0 8C [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]OFD Sender: No OFD packet to send [11:10:54]*** Cut start [11:10:54]*** Partial cut [11:10:54]*** CUTSNS_PIN = 1 [11:10:54]*** CUTSNS_PIN = 0 [11:10:55]*** Brake cut motor [11:10:55]Read from MH i2c: 01 [11:10:55]MH_I2C_Read... [11:10:55]*** Stop cut motor [11:10:55]*** Cut end [11:10:55]Read from MH i2c: 01 07 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 07 00 DC B0 00 00 00 00 00 FF 0F A1 [11:10:55]process_action close_receipt done [11:10:55]requested_data is exist [11:10:55]produce_requested_data [11:10:55]requested_item fm.sn is exist - process it [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 11 00 00 [11:10:55]Write to MH i2c: E2 08 00 DD B0 80 11 00 00 00 00 00 00 07 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 17 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 17 00 DD B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [11:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:10:55]wFMCommunicate OK [11:10:55]requested_item fd.num is exist - process it [11:10:55]SAM_PROTO_GetFieldsCounters [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 13 00 00 [11:10:55]Write to MH i2c: E2 08 00 DE B0 80 13 00 00 00 00 00 00 0A [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 62 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 62 00 DE B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:55]wFMCommunicate OK [11:10:55]SAM_PROTO_GetFieldsCounters done [11:10:55]requested_item shift.num is exist - process it [11:10:55]requested_item shift.opened is exist - process it [11:10:55]req_shift_opened [11:10:55]FM_GetShiftState [11:10:55]SAM_PROTO_GetShiftState [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 13 01 00 [11:10:55]Write to MH i2c: E2 08 00 DF B0 80 13 01 00 00 00 00 00 0C [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0E 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0E 00 DF B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5F [11:10:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:10:55]wFMCommunicate OK [11:10:55]SAM_PROTO_GetShiftState done [11:10:55]FM_GetShiftState done [11:10:55]req_shift_opened done [11:10:55]requested_item shift.open_date is exist - process it [11:10:55]req_shift_open_date [11:10:55]req_shift_open_date done [11:10:55]produce_requested_data done [11:10:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166350,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:10:55]process_action_free close_receipt [11:10:55]json_value_free [11:10:55]json_value_free done [11:10:55]process_json_proto returns [11:10:55]Send response to host [11:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166350,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:10:55]free response buf [11:10:55]execute_script done [11:10:55]execute_script returns [11:10:55]free content buf [11:10:55]Sock 5.Close socket [11:10:55]Sock 5.Thread stoped [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]accept exits with 6 [11:11:24]New connection [11:11:24]New thread 3066776932 created [11:11:24]Thread 3066920292 joined [11:11:24]Waiting for new connection... [11:11:24] Sock 6.Parse request [11:11:24]Sock 6.Check first char [11:11:24]Sock 6.First char is OK [11:11:24]request: POST /json_proto HTTP/1.0 [11:11:24]Method: POST [11:11:24]URL: /json_proto [11:11:24]Method is POST - this is cgi request [11:11:24]url: /json_proto [11:11:24]query_string will be loaded in cgi processing [11:11:24]execute_cgi json_proto POST (null) [11:11:24]execute_cgi path=json_proto method=POST [11:11:24]POST find Content-Length [11:11:24]Host: 172.17.53.195:8080 [11:11:24]Content-Length: 677 [11:11:24]Content-Type: application/json [11:11:24] [11:11:24]POST finish read [11:11:24]Found Content-Length = 677 [11:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]execute_script... [11:11:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]POST & json_proto [11:11:24]process_json_proto [11:11:24]json parsed OK: [11:11:24]protocol is kg_v1.0 [11:11:24]action value=close_receipt [11:11:24]process_action close_receipt [11:11:24]cmd_close_receipt [11:11:24]MH_GetDate [11:11:24]Write to MH i2c: F0 00 00 E0 B0 7F [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 09 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 09 00 E0 B0 00 73 88 17 67 21 48 4A 65 19 [11:11:24]GetLastDocTimeStamp 1729595475 [11:11:24]current date 1729595507 [11:11:24]FM_GetShiftState [11:11:24]SAM_PROTO_GetShiftState [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 01 00 [11:11:24]Write to MH i2c: E2 08 00 E1 B0 80 13 01 00 00 00 00 00 0E [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 E1 B0 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 61 [11:11:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetShiftState done [11:11:24]FM_GetShiftState done [11:11:24]opened in 1729557463 [11:11:24]opened+sec_in_day 1729643863 [11:11:24]quantity*price = 29971 [11:11:24]sum+1 = 29972 [11:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 106 22.10.2024 11:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166351 ФПД: 245731349111094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111147&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166351&fm=245731349111094&tin=02508201610067®Number=0000000000091764&sum=29900 [11:11:25]StoreToDocumentArchive [11:11:25]shift 536 fd 166351 [11:11:25]save to /storage/0536/doc_00166351 [11:11:25]save last doc name /storage/0536/doc_00166351 to /storage/kkm_last_doc_name [11:11:25]save OK [11:11:25]Clear old archive folders... [11:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:25]tlvbuf is 01640100 [11:11:25]SAM_PROTO_ClearQueue [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 09 00 00 [11:11:25]Write to MH i2c: E2 08 00 EE B0 80 09 00 00 00 00 00 00 10 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 EE B0 00 90 00 12 [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_ClearQueue done [11:11:25]KKMCreateOFDPacket [11:11:25]OFDProtocolAddRootSTLVToBuf [11:11:25]FM_MakeSignedData [11:11:25]FM_MakeSignedData [11:11:25]SAM_PROTO_SignData [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 01 02 [11:11:25]Write to MH i2c: E2 08 00 EF B0 80 0D 01 02 00 00 00 00 18 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 EF B0 00 90 00 13 [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=255 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 89 02 00 35 04 06 00 DF [11:11:25]Write to MH i2c: E2 02 01 F0 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 89 02 00 35 04 06 00 DF 00 00 B9 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 F0 B0 00 90 00 14 [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=10 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 02 02 05 7D C9 C6 21 36 [11:11:25]Write to MH i2c: E2 0D 00 F1 B0 80 0D 02 02 05 00 7D C9 C6 21 36 00 00 88 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 F1 B0 00 90 00 15 [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 03 02 [11:11:25]Write to MH i2c: E2 08 00 F2 B0 80 0D 03 02 00 00 00 00 1D [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0B 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0B 00 F2 B0 00 19 DC 8B FA A0 F4 82 20 90 00 CE [11:11:25]RAPDU: 19 DC 8B FA A0 F4 82 20 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_SignData done [11:11:25]FM_MakeSignedData done [11:11:25]CreateOFDProtocolMessage [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 11 00 00 [11:11:25]Write to MH i2c: E2 08 00 F3 B0 80 11 00 00 00 00 00 00 1D [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 F3 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [11:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:11:25]wFMCommunicate OK [11:11:25]CreateOFDProtocolMessage done [11:11:25]OFDSenderStorePacket 166351 [11:11:25]StoreOFDPacket docnum=166351 [11:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 77 28 07 01 9C 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 89 02 00 35 04 06 00 DF 7D C9 C6 21 36 19 DC 8B FA A0 F4 82 20 [11:11:25]CheckFolder [11:11:25]dirname=/storage/ofd_packets [11:11:25]CheckFolder done [11:11:25]ProducePacketName [11:11:25]name=ofd_packets/00166351 [11:11:25]NVStorageSaveData ofd_packets/00166351 [11:11:25]File name is /storage/ofd_packets/00166351 [11:11:25]Write 301 bytes [11:11:25]NVStorageSaveData done [11:11:25]OFDSenderStorePacket done [11:11:25]KKMCreateOFDPacket done [11:11:25]NVStorageSaveData kkm_last_timestamp [11:11:25]File name is /storage/kkm_last_timestamp [11:11:25]Write 4 bytes [11:11:25]NVStorageSaveData done [11:11:25]ExternCall_PrintAddStr [11:11:25]wPrintStart [11:11:25]Write to MH i2c: 01 00 00 F4 B0 A4 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 F4 B0 00 00 00 00 00 FF 0F B9 [11:11:25]RasterBufferAndPrint [11:11:25]line Счет N : (1)220929 [11:11:25]line ИНН: 02508201610067 [11:11:25]line Контрольно-Кассовый Чек [11:11:25]line ПРОДАЖА [11:11:25]line ТРК (МРК, ГНК) : 13 [11:11:25]line Товар: 2710124130 [11:11:25]line Аи-92-К-5 [11:11:25]line 4.480 * 66.90 [11:11:25]line = 299.71 [11:11:25]line НДС 12% НСП 1% [11:11:25]line > о реализуемом товаре [11:11:25]line ОКРУГЛЕНИЕ: -0.71 [11:11:25]line ИТОГО: 299.00 [11:11:25]line Внесено: 300.00 [11:11:25]line СДАЧА: 1.00 [11:11:25]line НСП 1% : 2.65 [11:11:25]line НДС 12% : 31.83 [11:11:25]line Наличными: 299.00 [11:11:25]line Безнал.: 0.00 [11:11:25]line Место: АЗС № 161 "Партнер Нефть" [11:11:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:11:25]line СНО: Общий режим [11:11:25]line Чек 106 22.10.2024 11:11 [11:11:25]line Смена: 536 ФФД: 1.0 [11:11:25]line ЗНМ: 0300000104 [11:11:25]line РНМ: 0000000000091764 [11:11:25]line Версия ККМ: 001 [11:11:25]line ФМ: 0000000000871759 [11:11:25]line ФД: 166351 [11:11:25]line ФПД: 245731349111094 [11:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111147&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166351&fm=245731349111094&tin=02508201610067®Number=0000000000091764&sum=29900 [11:11:26]OFD Sender: Processing packet 166351 [packets to send 48, broken 47] [11:11:26]ProducePacketName [11:11:26]name=ofd_packets/00166351 [11:11:26]OFD Sender: To server: pG, [11:11:26]CommunicateWithHost lk.salyk.kg:30040 [11:11:26]ConnectInit lk.salyk.kg [11:11:26]written 0, free lines is 4095 [11:11:26]Connected sock=7 [11:11:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 77 28 07 01 9C 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 73 88 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 89 02 00 35 04 06 00 DF 7D C9 C6 21 36 19 DC 8B FA A0 F4 82 20 [11:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 44 47 00 2B 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 31 37 35 39 10 04 04 00 CF 89 02 00 F4 03 04 00 DF 2E 17 67 B6 04 01 00 00 38 6A 08 B9 0A 05 44 70 [11:11:26]CommunicateWithHost err = 0 [11:11:26]CheckOFDResponse [11:11:26]1017 (14) - 77093643461234 [11:11:26]1041 (16) - 0000000000871759 [11:11:26]1040 (4) - 166351 [11:11:26]1012 (4) - 22.10.2024 04:49 [11:11:26]1206 (1) - 0 [11:11:26]OFD Sender: Remove packet 166351 [11:11:26]ProducePacketName [11:11:26]name=ofd_packets/00166351 [11:11:26]NVStorageDeleteData [11:11:26]Write to MH i2c: 01 00 00 1F B1 D0 [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 07 00 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 07 00 1F B1 00 00 00 00 00 C7 0C AA [11:11:26]RasterBufferAndPrint [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]written 0, free lines is 3277 [11:11:26]MH_Cut [11:11:26]Write to MH i2c: D1 01 00 26 B1 01 A9 [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 01 00 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 01 00 26 B1 00 A8 [11:11:26]Write to MH i2c: 01 00 00 27 B1 D8 [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:27]OFD Sender: No OFD packet to send [11:11:27]*** Cut start [11:11:27]*** Partial cut [11:11:27]*** CUTSNS_PIN = 1 [11:11:27]*** CUTSNS_PIN = 0 [11:11:27]*** Brake cut motor [11:11:28]Read from MH i2c: 01 [11:11:28]MH_I2C_Read... [11:11:28]*** Stop cut motor [11:11:28]*** Cut end [11:11:28]Read from MH i2c: 01 07 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: 01 07 00 27 B1 00 00 00 00 00 FF 0F ED [11:11:28]process_action close_receipt done [11:11:28]requested_data is exist [11:11:28]produce_requested_data [11:11:28]requested_item fm.sn is exist - process it [11:11:28]wFMCommunicate request_size=4 [11:11:28]MH_SAM_APDU [11:11:28]CAPDU: 80 11 00 00 [11:11:28]Write to MH i2c: E2 08 00 28 B1 80 11 00 00 00 00 00 00 53 [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 17 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 17 00 28 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [11:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:11:28]wFMCommunicate OK [11:11:28]requested_item fd.num is exist - process it [11:11:28]SAM_PROTO_GetFieldsCounters [11:11:28]wFMCommunicate request_size=4 [11:11:28]MH_SAM_APDU [11:11:28]CAPDU: 80 13 00 00 [11:11:28]Write to MH i2c: E2 08 00 29 B1 80 13 00 00 00 00 00 00 56 [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 62 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 62 00 29 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:28]wFMCommunicate OK [11:11:28]SAM_PROTO_GetFieldsCounters done [11:11:28]requested_item shift.num is exist - process it [11:11:28]requested_item shift.opened is exist - process it [11:11:28]req_shift_opened [11:11:28]FM_GetShiftState [11:11:28]SAM_PROTO_GetShiftState [11:11:28]wFMCommunicate request_size=4 [11:11:28]MH_SAM_APDU [11:11:28]CAPDU: 80 13 01 00 [11:11:28]Write to MH i2c: E2 08 00 2A B1 80 13 01 00 00 00 00 00 58 [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 2A B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AB [11:11:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:11:28]wFMCommunicate OK [11:11:28]SAM_PROTO_GetShiftState done [11:11:28]FM_GetShiftState done [11:11:28]req_shift_opened done [11:11:28]requested_item shift.open_date is exist - process it [11:11:28]req_shift_open_date [11:11:28]req_shift_open_date done [11:11:28]produce_requested_data done [11:11:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166351,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:11:28]process_action_free close_receipt [11:11:28]json_value_free [11:11:28]json_value_free done [11:11:28]process_json_proto returns [11:11:28]Send response to host [11:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166351,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:11:28]free response buf [11:11:28]execute_script done [11:11:28]execute_script returns [11:11:28]free content buf [11:11:28]Sock 6.Close socket [11:11:28]Sock 6.Thread stoped [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [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:35]accept exits with 5 [11:15:35]New connection [11:15:35]New thread 3066920292 created [11:15:35]Thread 3066776932 joined [11:15:35]Waiting for new connection... [11:15:35] Sock 5.Parse request [11:15:35]Sock 5.Check first char [11:15:35]Sock 5.First char is OK [11:15:35]request: POST /json_proto HTTP/1.0 [11:15:35]Method: POST [11:15:35]URL: /json_proto [11:15:35]Method is POST - this is cgi request [11:15:35]url: /json_proto [11:15:35]query_string will be loaded in cgi processing [11:15:35]execute_cgi json_proto POST (null) [11:15:35]execute_cgi path=json_proto method=POST [11:15:35]POST find Content-Length [11:15:35]Host: 172.17.53.195:8080 [11:15:35]Content-Length: 677 [11:15:35]Content-Type: application/json [11:15:35] [11:15:35]POST finish read [11:15:35]Found Content-Length = 677 [11:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:35]execute_script... [11:15:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:35]POST & json_proto [11:15:35]process_json_proto [11:15:35]json parsed OK: [11:15:35]protocol is kg_v1.0 [11:15:35]action value=close_receipt [11:15:35]process_action close_receipt [11:15:35]cmd_close_receipt [11:15:35]MH_GetDate [11:15:35]Write to MH i2c: F0 00 00 2B B1 CB [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 2B B1 00 6F 89 17 67 21 48 4A 65 62 [11:15:35]GetLastDocTimeStamp 1729595507 [11:15:35]current date 1729595759 [11:15:35]FM_GetShiftState [11:15:35]SAM_PROTO_GetShiftState [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 13 01 00 [11:15:35]Write to MH i2c: E2 08 00 2C B1 80 13 01 00 00 00 00 00 5A [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 2C B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AD [11:15:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:15:35]wFMCommunicate OK [11:15:35]SAM_PROTO_GetShiftState done [11:15:35]FM_GetShiftState done [11:15:35]opened in 1729557463 [11:15:35]opened+sec_in_day 1729643863 [11:15:35]quantity*price = 30038 [11:15:35]sum+1 = 30039 [11:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 107 22.10.2024 11:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166352 ФПД: 63232783748252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166352&fm=63232783748252&tin=02508201610067®Number=0000000000091764&sum=30000 [11:15:36]StoreToDocumentArchive [11:15:36]shift 536 fd 166352 [11:15:36]save to /storage/0536/doc_00166352 [11:15:36]save last doc name /storage/0536/doc_00166352 to /storage/kkm_last_doc_name [11:15:36]save OK [11:15:36]Clear old archive folders... [11:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:36]tlvbuf is 01970F10 [11:15:36]SAM_PROTO_ClearQueue [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 09 00 00 [11:15:36]Write to MH i2c: E2 08 00 39 B1 80 09 00 00 00 00 00 00 5C [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 39 B1 00 90 00 5E [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]SAM_PROTO_ClearQueue done [11:15:36]KKMCreateOFDPacket [11:15:36]OFDProtocolAddRootSTLVToBuf [11:15:36]FM_MakeSignedData [11:15:36]FM_MakeSignedData [11:15:36]SAM_PROTO_SignData [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 01 02 [11:15:36]Write to MH i2c: E2 08 00 3A B1 80 0D 01 02 00 00 00 00 64 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 3A B1 00 90 00 5F [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]wFMCommunicate request_size=255 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6F 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 89 02 00 35 04 06 00 39 [11:15:36]Write to MH i2c: E2 02 01 3B B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6F 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 89 02 00 35 04 06 00 39 00 00 7D [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 3B B1 00 90 00 60 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=10 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 02 02 05 82 87 9D 0C 9C [11:15:37]Write to MH i2c: E2 0D 00 3C B1 80 0D 02 02 05 00 82 87 9D 0C 9C 00 00 BF [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 3C B1 00 90 00 61 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 03 02 [11:15:37]Write to MH i2c: E2 08 00 3D B1 80 0D 03 02 00 00 00 00 69 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 3D B1 00 3A AA 86 56 F4 2A 57 77 90 00 16 [11:15:37]RAPDU: 3A AA 86 56 F4 2A 57 77 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_SignData done [11:15:37]FM_MakeSignedData done [11:15:37]CreateOFDProtocolMessage [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 11 00 00 [11:15:37]Write to MH i2c: E2 08 00 3E B1 80 11 00 00 00 00 00 00 69 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 3E B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [11:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:15:37]wFMCommunicate OK [11:15:37]CreateOFDProtocolMessage done [11:15:37]OFDSenderStorePacket 166352 [11:15:37]StoreOFDPacket docnum=166352 [11:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D9 85 07 01 F6 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6F 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 89 02 00 35 04 06 00 39 82 87 9D 0C 9C 3A AA 86 56 F4 2A 57 77 [11:15:37]CheckFolder [11:15:37]dirname=/storage/ofd_packets [11:15:37]CheckFolder done [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00166352 [11:15:37]NVStorageSaveData ofd_packets/00166352 [11:15:37]File name is /storage/ofd_packets/00166352 [11:15:37]Write 301 bytes [11:15:37]NVStorageSaveData done [11:15:37]OFDSenderStorePacket done [11:15:37]KKMCreateOFDPacket done [11:15:37]NVStorageSaveData kkm_last_timestamp [11:15:37]File name is /storage/kkm_last_timestamp [11:15:37]Write 4 bytes [11:15:37]NVStorageSaveData done [11:15:37]ExternCall_PrintAddStr [11:15:37]wPrintStart [11:15:37]Write to MH i2c: 01 00 00 3F B1 F0 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 3F B1 00 00 00 00 00 FF 0F 05 [11:15:37]RasterBufferAndPrint [11:15:37]line Счет N : (1)220931 [11:15:37]line ИНН: 02508201610067 [11:15:37]line Контрольно-Кассовый Чек [11:15:37]line ПРОДАЖА [11:15:37]line ТРК (МРК, ГНК) : 13 [11:15:37]line Товар: 2710124130 [11:15:37]line Аи-92-К-5 [11:15:37]line 4.490 * 66.90 [11:15:37]line = 300.38 [11:15:37]line НДС 12% НСП 1% [11:15:37]line > о реализуемом товаре [11:15:37]line ОКРУГЛЕНИЕ: -0.38 [11:15:37]line ИТОГО: 300.00 [11:15:37]line Внесено: 300.00 [11:15:37]line СДАЧА: 0.00 [11:15:37]line НСП 1% : 2.66 [11:15:37]line НДС 12% : 31.90 [11:15:37]line Наличными: 300.00 [11:15:37]line Безнал.: 0.00 [11:15:37]line Место: АЗС № 161 "Партнер Нефть" [11:15:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:15:37]line СНО: Общий режим [11:15:37]line Чек 107 22.10.2024 11:15 [11:15:37]line Смена: 536 ФФД: 1.0 [11:15:37]line ЗНМ: 0300000104 [11:15:37]line РНМ: 0000000000091764 [11:15:37]line Версия ККМ: 001 [11:15:37]line ФМ: 0000000000871759 [11:15:37]line ФД: 166352 [11:15:37]line ФПД: 63232783748252 [11:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166352&fm=63232783748252&tin=02508201610067®Number=0000000000091764&sum=30000 [11:15:37]OFD Sender: Processing packet 166352 [packets to send 48, broken 47] [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00166352 [11:15:37]OFD Sender: To server: pG, [11:15:37]CommunicateWithHost lk.salyk.kg:30040 [11:15:37]ConnectInit lk.salyk.kg [11:15:37]written 0, free lines is 4095 [11:15:37]Connected sock=7 [11:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D9 85 07 01 F6 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6F 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 89 02 00 35 04 06 00 39 82 87 9D 0C 9C 3A AA 86 56 F4 2A 57 77 [11:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 86 47 00 91 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 89 02 00 F4 03 04 00 DA 2F 17 67 B6 04 01 00 00 11 62 5A D0 54 41 3C A6 [11:15:37]CommunicateWithHost err = 0 [11:15:37]CheckOFDResponse [11:15:37]1017 (14) - 77093643461234 [11:15:37]1041 (16) - 0000000000871759 [11:15:37]1040 (4) - 166352 [11:15:37]1012 (4) - 22.10.2024 04:53 [11:15:37]1206 (1) - 0 [11:15:37]OFD Sender: Remove packet 166352 [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00166352 [11:15:37]NVStorageDeleteData [11:15:38]Write to MH i2c: 01 00 00 6A B1 1B [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 6A B1 00 00 00 00 00 C2 0C F0 [11:15:38]RasterBufferAndPrint [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]written 0, free lines is 3274 [11:15:38]MH_Cut [11:15:38]Write to MH i2c: D1 01 00 71 B1 01 F4 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 71 B1 00 F3 [11:15:38]Write to MH i2c: 01 00 00 72 B1 23 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]OFD Sender: No OFD packet to send [11:15:38]*** Cut start [11:15:38]*** Partial cut [11:15:38]*** CUTSNS_PIN = 1 [11:15:38]*** CUTSNS_PIN = 0 [11:15:39]*** Brake cut motor [11:15:39]Read from MH i2c: 01 [11:15:39]MH_I2C_Read... [11:15:39]*** Stop cut motor [11:15:39]*** Cut end [11:15:39]Read from MH i2c: 01 07 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 72 B1 00 00 00 00 00 FF 0F 38 [11:15:39]process_action close_receipt done [11:15:39]requested_data is exist [11:15:39]produce_requested_data [11:15:39]requested_item fm.sn is exist - process it [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 11 00 00 [11:15:39]Write to MH i2c: E2 08 00 73 B1 80 11 00 00 00 00 00 00 9E [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:39]Read from MH i2c: E2 17 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 73 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [11:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:15:39]wFMCommunicate OK [11:15:39]requested_item fd.num is exist - process it [11:15:39]SAM_PROTO_GetFieldsCounters [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 13 00 00 [11:15:39]Write to MH i2c: E2 08 00 74 B1 80 13 00 00 00 00 00 00 A1 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 62 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 62 00 74 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [11:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_GetFieldsCounters done [11:15:39]requested_item shift.num is exist - process it [11:15:39]requested_item shift.opened is exist - process it [11:15:39]req_shift_opened [11:15:39]FM_GetShiftState [11:15:39]SAM_PROTO_GetShiftState [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 13 01 00 [11:15:39]Write to MH i2c: E2 08 00 75 B1 80 13 01 00 00 00 00 00 A3 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0E 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0E 00 75 B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F6 [11:15:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_GetShiftState done [11:15:39]FM_GetShiftState done [11:15:39]req_shift_opened done [11:15:39]requested_item shift.open_date is exist - process it [11:15:39]req_shift_open_date [11:15:39]req_shift_open_date done [11:15:39]produce_requested_data done [11:15:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166352,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:15:39]process_action_free close_receipt [11:15:39]json_value_free [11:15:39]json_value_free done [11:15:39]process_json_proto returns [11:15:39]Send response to host [11:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166352,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:15:39]free response buf [11:15:39]execute_script done [11:15:39]execute_script returns [11:15:39]free content buf [11:15:39]Sock 5.Close socket [11:15:39]Sock 5.Thread stoped [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:27]accept exits with 6 [11:17:27]New connection [11:17:27]New thread 3066776932 created [11:17:27]Thread 3066920292 joined [11:17:27]Waiting for new connection... [11:17:27] Sock 6.Parse request [11:17:27]Sock 6.Check first char [11:17:27]Sock 6.First char is OK [11:17:27]request: POST /json_proto HTTP/1.0 [11:17:27]Method: POST [11:17:27]URL: /json_proto [11:17:27]Method is POST - this is cgi request [11:17:27]url: /json_proto [11:17:27]query_string will be loaded in cgi processing [11:17:27]execute_cgi json_proto POST (null) [11:17:27]execute_cgi path=json_proto method=POST [11:17:27]POST find Content-Length [11:17:27]Host: 172.17.53.195:8080 [11:17:27]Content-Length: 682 [11:17:27]Content-Type: application/json [11:17:27] [11:17:27]POST finish read [11:17:27]Found Content-Length = 682 [11:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 42.220, "sum" : 2824.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2824.00, "payments": [ { "type": 0, "sum" : 2824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:27]execute_script... [11:17:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 42.220, "sum" : 2824.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2824.00, "payments": [ { "type": 0, "sum" : 2824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:27]POST & json_proto [11:17:27]process_json_proto [11:17:27]json parsed OK: [11:17:27]protocol is kg_v1.0 [11:17:27]action value=close_receipt [11:17:27]process_action close_receipt [11:17:27]cmd_close_receipt [11:17:27]MH_GetDate [11:17:27]Write to MH i2c: F0 00 00 76 B1 16 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: F0 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: F0 09 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: F0 09 00 76 B1 00 DF 89 17 67 21 48 4A 65 1D [11:17:27]GetLastDocTimeStamp 1729595759 [11:17:27]current date 1729595871 [11:17:27]FM_GetShiftState [11:17:27]SAM_PROTO_GetShiftState [11:17:27]wFMCommunicate request_size=4 [11:17:27]MH_SAM_APDU [11:17:27]CAPDU: 80 13 01 00 [11:17:27]Write to MH i2c: E2 08 00 77 B1 80 13 01 00 00 00 00 00 A5 [11:17:27]Write i2c OK [11:17:27]MH_I2C_Read... [11:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:27]Read from MH i2c: E2 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 0E 00 [11:17:27]MH_I2C_Read... [11:17:27]Read from MH i2c: E2 0E 00 77 B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F8 [11:17:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:17:27]wFMCommunicate OK [11:17:27]SAM_PROTO_GetShiftState done [11:17:27]FM_GetShiftState done [11:17:27]opened in 1729557463 [11:17:27]opened+sec_in_day 1729643863 [11:17:27]quantity*price = 282451 [11:17:27]sum+1 = 282453 [11:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2824.00 Внесено: 3000.00 СДАЧА: 176.00 НСП 1% : 25.00 НДС 12% : 299.95 Наличными: 2824.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 108 22.10.2024 11:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166353 ФПД: 153087105293391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166353&fm=153087105293391&tin=02508201610067®Number=0000000000091764&sum=282400 [11:17:29]StoreToDocumentArchive [11:17:29]shift 536 fd 166353 [11:17:29]save to /storage/0536/doc_00166353 [11:17:29]save last doc name /storage/0536/doc_00166353 to /storage/kkm_last_doc_name [11:17:29]save OK [11:17:29]Clear old archive folders... [11:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:29]tlvbuf is 01D8A3D0 [11:17:29]SAM_PROTO_ClearQueue [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 09 00 00 [11:17:29]Write to MH i2c: E2 08 00 84 B1 80 09 00 00 00 00 00 00 A7 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 84 B1 00 90 00 A9 [11:17:29]RAPDU: 90 00 [11:17:29]wFMCommunicate OK [11:17:29]SAM_PROTO_ClearQueue done [11:17:29]KKMCreateOFDPacket [11:17:29]OFDProtocolAddRootSTLVToBuf [11:17:29]FM_MakeSignedData [11:17:29]FM_MakeSignedData [11:17:29]SAM_PROTO_SignData [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 0D 01 02 [11:17:29]Write to MH i2c: E2 08 00 85 B1 80 0D 01 02 00 00 00 00 AF [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 85 B1 00 90 00 AA [11:17:29]RAPDU: 90 00 [11:17:29]wFMCommunicate OK [11:17:29]wFMCommunicate request_size=255 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DF 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 89 02 00 35 04 06 00 8B [11:17:29]Write to MH i2c: E2 02 01 86 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DF 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 89 02 00 35 04 06 00 8B 00 00 D9 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 86 B1 00 90 00 AB [11:17:29]RAPDU: 90 00 [11:17:29]wFMCommunicate OK [11:17:29]wFMCommunicate request_size=10 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 0D 02 02 05 3B 5E 87 DC 4F [11:17:29]Write to MH i2c: E2 0D 00 87 B1 80 0D 02 02 05 00 3B 5E 87 DC 4F 00 00 07 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 03 00 87 B1 00 90 00 AC [11:17:29]RAPDU: 90 00 [11:17:29]wFMCommunicate OK [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 0D 03 02 [11:17:29]Write to MH i2c: E2 08 00 88 B1 80 0D 03 02 00 00 00 00 B4 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 0B 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 0B 00 88 B1 00 00 87 50 78 0F F8 06 E8 90 00 F9 [11:17:29]RAPDU: 00 87 50 78 0F F8 06 E8 90 00 [11:17:29]wFMCommunicate OK [11:17:29]SAM_PROTO_SignData done [11:17:29]FM_MakeSignedData done [11:17:29]CreateOFDProtocolMessage [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 11 00 00 [11:17:29]Write to MH i2c: E2 08 00 89 B1 80 11 00 00 00 00 00 00 B4 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:29]Read from MH i2c: E2 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 17 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: E2 17 00 89 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [11:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:17:29]wFMCommunicate OK [11:17:29]CreateOFDProtocolMessage done [11:17:29]OFDSenderStorePacket 166353 [11:17:29]StoreOFDPacket docnum=166353 [11:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 8A 07 01 33 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DF 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 89 02 00 35 04 06 00 8B 3B 5E 87 DC 4F 00 87 50 78 0F F8 06 E8 [11:17:29]CheckFolder [11:17:29]dirname=/storage/ofd_packets [11:17:29]CheckFolder done [11:17:29]ProducePacketName [11:17:29]name=ofd_packets/00166353 [11:17:29]NVStorageSaveData ofd_packets/00166353 [11:17:29]File name is /storage/ofd_packets/00166353 [11:17:29]Write 301 bytes [11:17:29]NVStorageSaveData done [11:17:29]OFDSenderStorePacket done [11:17:29]KKMCreateOFDPacket done [11:17:29]NVStorageSaveData kkm_last_timestamp [11:17:29]File name is /storage/kkm_last_timestamp [11:17:29]Write 4 bytes [11:17:29]NVStorageSaveData done [11:17:29]ExternCall_PrintAddStr [11:17:29]wPrintStart [11:17:29]Write to MH i2c: 01 00 00 8A B1 3B [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: 01 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: 01 07 00 [11:17:29]MH_I2C_Read... [11:17:29]Read from MH i2c: 01 07 00 8A B1 00 00 00 00 00 FF 0F 50 [11:17:29]RasterBufferAndPrint [11:17:29]line Счет N : (1)220930 [11:17:29]line ИНН: 02508201610067 [11:17:29]line Контрольно-Кассовый Чек [11:17:29]line ПРОДАЖА [11:17:29]line ТРК (МРК, ГНК) : 23 [11:17:29]line Товар: 2710124130 [11:17:29]line Аи-92-К-5 [11:17:29]line 42.220 * 66.90 [11:17:29]line = 2824.52 [11:17:29]line НДС 12% НСП 1% [11:17:29]line > о реализуемом товаре [11:17:29]line ОКРУГЛЕНИЕ: -0.52 [11:17:29]line ИТОГО: 2824.00 [11:17:29]line Внесено: 3000.00 [11:17:29]line СДАЧА: 176.00 [11:17:29]line НСП 1% : 25.00 [11:17:29]line НДС 12% : 299.95 [11:17:29]line Наличными: 2824.00 [11:17:29]line Безнал.: 0.00 [11:17:29]line Место: АЗС № 161 "Партнер Нефть" [11:17:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:17:29]line СНО: Общий режим [11:17:29]line Чек 108 22.10.2024 11:17 [11:17:29]line Смена: 536 ФФД: 1.0 [11:17:29]line ЗНМ: 0300000104 [11:17:29]line РНМ: 0000000000091764 [11:17:29]line Версия ККМ: 001 [11:17:29]line ФМ: 0000000000871759 [11:17:29]line ФД: 166353 [11:17:29]line ФПД: 153087105293391 [11:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166353&fm=153087105293391&tin=02508201610067®Number=0000000000091764&sum=282400 [11:17:30]OFD Sender: Processing packet 166353 [packets to send 48, broken 47] [11:17:30]ProducePacketName [11:17:30]name=ofd_packets/00166353 [11:17:30]OFD Sender: To server: pG, [11:17:30]CommunicateWithHost lk.salyk.kg:30040 [11:17:30]ConnectInit lk.salyk.kg [11:17:30]written 0, free lines is 4095 [11:17:30]Connected sock=9 [11:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 8A 07 01 33 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC A4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DF 89 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 89 02 00 35 04 06 00 8B 3B 5E 87 DC 4F 00 87 50 78 0F F8 06 E8 [11:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8D 0C 47 00 97 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 89 02 00 F4 03 04 00 4A 30 17 67 B6 04 01 00 00 C7 C6 6E 12 73 78 5F 5D [11:17:30]CommunicateWithHost err = 0 [11:17:30]CheckOFDResponse [11:17:30]1017 (14) - 77093643461234 [11:17:30]1041 (16) - 0000000000871759 [11:17:30]1040 (4) - 166353 [11:17:30]1012 (4) - 22.10.2024 04:55 [11:17:30]1206 (1) - 0 [11:17:30]OFD Sender: Remove packet 166353 [11:17:30]ProducePacketName [11:17:30]name=ofd_packets/00166353 [11:17:30]NVStorageDeleteData [11:17:30]Write to MH i2c: 01 00 00 B5 B1 66 [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 07 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 07 00 B5 B1 00 00 00 00 00 CE 0C 47 [11:17:30]RasterBufferAndPrint [11:17:30]line [11:17:30]line [11:17:30]line [11:17:30]line [11:17:30]line [11:17:30]written 0, free lines is 3283 [11:17:30]MH_Cut [11:17:30]Write to MH i2c: D1 01 00 BC B1 01 3F [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: D1 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: D1 01 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: D1 01 00 BC B1 00 3E [11:17:30]Write to MH i2c: 01 00 00 BD B1 6E [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]OFD Sender: No OFD packet to send [11:17:31]*** Cut start [11:17:31]*** Partial cut [11:17:31]*** CUTSNS_PIN = 1 [11:17:31]*** CUTSNS_PIN = 0 [11:17:31]*** Brake cut motor [11:17:31]Read from MH i2c: 01 [11:17:31]MH_I2C_Read... [11:17:31]*** Stop cut motor [11:17:31]*** Cut end [11:17:31]Read from MH i2c: 01 07 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 07 00 BD B1 00 00 00 00 00 FF 0F 83 [11:17:31]process_action close_receipt done [11:17:31]requested_data is exist [11:17:31]produce_requested_data [11:17:31]requested_item fm.sn is exist - process it [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 11 00 00 [11:17:31]Write to MH i2c: E2 08 00 BE B1 80 11 00 00 00 00 00 00 E9 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 17 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 17 00 BE B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [11:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:17:31]wFMCommunicate OK [11:17:31]requested_item fd.num is exist - process it [11:17:31]SAM_PROTO_GetFieldsCounters [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 13 00 00 [11:17:31]Write to MH i2c: E2 08 00 BF B1 80 13 00 00 00 00 00 00 EC [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 62 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 62 00 BF B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:32]wFMCommunicate OK [11:17:32]SAM_PROTO_GetFieldsCounters done [11:17:32]requested_item shift.num is exist - process it [11:17:32]requested_item shift.opened is exist - process it [11:17:32]req_shift_opened [11:17:32]FM_GetShiftState [11:17:32]SAM_PROTO_GetShiftState [11:17:32]wFMCommunicate request_size=4 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 13 01 00 [11:17:32]Write to MH i2c: E2 08 00 C0 B1 80 13 01 00 00 00 00 00 EE [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 0E 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 0E 00 C0 B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 41 [11:17:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:17:32]wFMCommunicate OK [11:17:32]SAM_PROTO_GetShiftState done [11:17:32]FM_GetShiftState done [11:17:32]req_shift_opened done [11:17:32]requested_item shift.open_date is exist - process it [11:17:32]req_shift_open_date [11:17:32]req_shift_open_date done [11:17:32]produce_requested_data done [11:17:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166353,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:17:32]process_action_free close_receipt [11:17:32]json_value_free [11:17:32]json_value_free done [11:17:32]process_json_proto returns [11:17:32]Send response to host [11:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166353,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:17:32]free response buf [11:17:32]execute_script done [11:17:32]execute_script returns [11:17:32]free content buf [11:17:32]Sock 6.Close socket [11:17:32]Sock 6.Thread stoped [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:27]accept exits with 5 [11:21:27]New connection [11:21:27]New thread 3066920292 created [11:21:27]Thread 3066776932 joined [11:21:27]Waiting for new connection... [11:21:27] Sock 5.Parse request [11:21:27]Sock 5.Check first char [11:21:27]Sock 5.First char is OK [11:21:27]request: POST /json_proto HTTP/1.0 [11:21:27]Method: POST [11:21:27]URL: /json_proto [11:21:27]Method is POST - this is cgi request [11:21:27]url: /json_proto [11:21:27]query_string will be loaded in cgi processing [11:21:27]execute_cgi json_proto POST (null) [11:21:27]execute_cgi path=json_proto method=POST [11:21:27]POST find Content-Length [11:21:27]Host: 172.17.53.195:8080 [11:21:27]Content-Length: 682 [11:21:27]Content-Type: application/json [11:21:27] [11:21:27]POST finish read [11:21:27]Found Content-Length = 682 [11:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:27]execute_script... [11:21:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:27]POST & json_proto [11:21:27]process_json_proto [11:21:27]json parsed OK: [11:21:27]protocol is kg_v1.0 [11:21:27]action value=close_receipt [11:21:27]process_action close_receipt [11:21:27]cmd_close_receipt [11:21:27]MH_GetDate [11:21:27]Write to MH i2c: F0 00 00 C1 B1 61 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 09 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 09 00 C1 B1 00 CF 8A 17 67 21 48 4A 65 59 [11:21:27]GetLastDocTimeStamp 1729595871 [11:21:27]current date 1729596111 [11:21:27]FM_GetShiftState [11:21:27]SAM_PROTO_GetShiftState [11:21:27]wFMCommunicate request_size=4 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 13 01 00 [11:21:27]Write to MH i2c: E2 08 00 C2 B1 80 13 01 00 00 00 00 00 F0 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 0E 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 0E 00 C2 B1 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 43 [11:21:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:21:27]wFMCommunicate OK [11:21:27]SAM_PROTO_GetShiftState done [11:21:27]FM_GetShiftState done [11:21:27]opened in 1729557463 [11:21:27]opened+sec_in_day 1729643863 [11:21:27]quantity*price = 100021 [11:21:27]sum+1 = 100023 [11:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 109 22.10.2024 11:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166354 ФПД: 113153795048750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112151&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166354&fm=113153795048750&tin=02508201610067®Number=0000000000091764&sum=100000 [11:21:28]StoreToDocumentArchive [11:21:28]shift 536 fd 166354 [11:21:28]save to /storage/0536/doc_00166354 [11:21:28]save last doc name /storage/0536/doc_00166354 to /storage/kkm_last_doc_name [11:21:28]save OK [11:21:28]Clear old archive folders... [11:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:28]tlvbuf is 016400D0 [11:21:28]SAM_PROTO_ClearQueue [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 09 00 00 [11:21:28]Write to MH i2c: E2 08 00 CF B1 80 09 00 00 00 00 00 00 F2 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 CF B1 00 90 00 F4 [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]SAM_PROTO_ClearQueue done [11:21:28]KKMCreateOFDPacket [11:21:28]OFDProtocolAddRootSTLVToBuf [11:21:28]FM_MakeSignedData [11:21:28]FM_MakeSignedData [11:21:28]SAM_PROTO_SignData [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 01 02 [11:21:28]Write to MH i2c: E2 08 00 D0 B1 80 0D 01 02 00 00 00 00 FA [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 D0 B1 00 90 00 F5 [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]wFMCommunicate request_size=255 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 CF 8A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 89 02 00 35 04 06 00 66 [11:21:28]Write to MH i2c: E2 02 01 D1 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 CF 8A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 89 02 00 35 04 06 00 66 00 00 CE [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 03 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 03 00 D1 B1 00 90 00 F6 [11:21:29]RAPDU: 90 00 [11:21:29]wFMCommunicate OK [11:21:29]wFMCommunicate request_size=10 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 0D 02 02 05 E9 AB C2 45 2E [11:21:29]Write to MH i2c: E2 0D 00 D2 B1 80 0D 02 02 05 00 E9 AB C2 45 2E 00 00 D0 [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 03 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 03 00 D2 B1 00 90 00 F7 [11:21:29]RAPDU: 90 00 [11:21:29]wFMCommunicate OK [11:21:29]wFMCommunicate request_size=4 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 0D 03 02 [11:21:29]Write to MH i2c: E2 08 00 D3 B1 80 0D 03 02 00 00 00 00 FF [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 0B 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 0B 00 D3 B1 00 07 A7 98 5F BE 2A EB 86 90 00 FE [11:21:29]RAPDU: 07 A7 98 5F BE 2A EB 86 90 00 [11:21:29]wFMCommunicate OK [11:21:29]SAM_PROTO_SignData done [11:21:29]FM_MakeSignedData done [11:21:29]CreateOFDProtocolMessage [11:21:29]wFMCommunicate request_size=4 [11:21:29]MH_SAM_APDU [11:21:29]CAPDU: 80 11 00 00 [11:21:29]Write to MH i2c: E2 08 00 D4 B1 80 11 00 00 00 00 00 00 FF [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 D4 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [11:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:21:29]wFMCommunicate OK [11:21:29]CreateOFDProtocolMessage done [11:21:29]OFDSenderStorePacket 166354 [11:21:29]StoreOFDPacket docnum=166354 [11:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 0C 07 01 C0 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 CF 8A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 89 02 00 35 04 06 00 66 E9 AB C2 45 2E 07 A7 98 5F BE 2A EB 86 [11:21:29]CheckFolder [11:21:29]dirname=/storage/ofd_packets [11:21:29]CheckFolder done [11:21:29]ProducePacketName [11:21:29]name=ofd_packets/00166354 [11:21:29]NVStorageSaveData ofd_packets/00166354 [11:21:29]File name is /storage/ofd_packets/00166354 [11:21:29]Write 301 bytes [11:21:29]NVStorageSaveData done [11:21:29]OFDSenderStorePacket done [11:21:29]KKMCreateOFDPacket done [11:21:29]NVStorageSaveData kkm_last_timestamp [11:21:29]File name is /storage/kkm_last_timestamp [11:21:29]Write 4 bytes [11:21:29]NVStorageSaveData done [11:21:29]ExternCall_PrintAddStr [11:21:29]wPrintStart [11:21:29]Write to MH i2c: 01 00 00 D5 B1 86 [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 D5 B1 00 00 00 00 00 FF 0F 9B [11:21:29]RasterBufferAndPrint [11:21:29]line Счет N : (1)220932 [11:21:29]line ИНН: 02508201610067 [11:21:29]line Контрольно-Кассовый Чек [11:21:29]line ПРОДАЖА [11:21:29]line ТРК (МРК, ГНК) : 24 [11:21:29]line Товар: 2710124500 [11:21:29]line Аи-95-К-5 [11:21:29]line 13.480 * 74.20 [11:21:29]line = 1000.22 [11:21:29]line НДС 12% НСП 1% [11:21:29]line > о реализуемом товаре [11:21:29]line ОКРУГЛЕНИЕ: -0.22 [11:21:29]line ИТОГО: 1000.00 [11:21:29]line Внесено: 1000.00 [11:21:29]line СДАЧА: 0.00 [11:21:29]line НСП 1% : 8.85 [11:21:29]line НДС 12% : 106.22 [11:21:29]line Наличными: 1000.00 [11:21:29]line Безнал.: 0.00 [11:21:29]line Место: АЗС № 161 "Партнер Нефть" [11:21:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:21:29]line СНО: Общий режим [11:21:29]line Чек 109 22.10.2024 11:21 [11:21:29]line Смена: 536 ФФД: 1.0 [11:21:29]line ЗНМ: 0300000104 [11:21:29]line РНМ: 0000000000091764 [11:21:29]line Версия ККМ: 001 [11:21:29]line ФМ: 0000000000871759 [11:21:29]line ФД: 166354 [11:21:29]line ФПД: 113153795048750 [11:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112151&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166354&fm=113153795048750&tin=02508201610067®Number=0000000000091764&sum=100000 [11:21:29]OFD Sender: Processing packet 166354 [packets to send 48, broken 47] [11:21:29]ProducePacketName [11:21:29]name=ofd_packets/00166354 [11:21:29]OFD Sender: To server: pG, [11:21:29]CommunicateWithHost lk.salyk.kg:30040 [11:21:29]ConnectInit lk.salyk.kg [11:21:29]written 0, free lines is 4095 [11:21:29]Connected sock=6 [11:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 0C 07 01 C0 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 CF 8A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 89 02 00 35 04 06 00 66 E9 AB C2 45 2E 07 A7 98 5F BE 2A EB 86 [11:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E F6 47 00 84 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 89 02 00 F4 03 04 00 3A 31 17 67 B6 04 01 00 00 2E DD 3E 42 A1 BD D0 3F [11:21:29]CommunicateWithHost err = 0 [11:21:29]CheckOFDResponse [11:21:29]1017 (14) - 77093643461234 [11:21:29]1041 (16) - 0000000000871759 [11:21:29]1040 (4) - 166354 [11:21:29]1012 (4) - 22.10.2024 04:59 [11:21:29]1206 (1) - 0 [11:21:29]OFD Sender: Remove packet 166354 [11:21:29]ProducePacketName [11:21:29]name=ofd_packets/00166354 [11:21:29]NVStorageDeleteData [11:21:30]Write to MH i2c: 01 00 00 00 B2 B2 [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: 01 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: 01 07 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: 01 07 00 00 B2 00 00 00 00 00 BF 0C 84 [11:21:30]RasterBufferAndPrint [11:21:30]line [11:21:30]line [11:21:30]line [11:21:30]line [11:21:30]line [11:21:30]written 0, free lines is 3270 [11:21:30]MH_Cut [11:21:30]Write to MH i2c: D1 01 00 07 B2 01 8B [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: D1 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: D1 01 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: D1 01 00 07 B2 00 8A [11:21:30]Write to MH i2c: 01 00 00 08 B2 BA [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]OFD Sender: No OFD packet to send [11:21:30]*** Cut start [11:21:30]*** Partial cut [11:21:30]*** CUTSNS_PIN = 1 [11:21:30]*** CUTSNS_PIN = 0 [11:21:31]*** Brake cut motor [11:21:31]Read from MH i2c: 01 [11:21:31]MH_I2C_Read... [11:21:31]*** Stop cut motor [11:21:31]*** Cut end [11:21:31]Read from MH i2c: 01 07 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: 01 07 00 08 B2 00 00 00 00 00 FF 0F CF [11:21:31]process_action close_receipt done [11:21:31]requested_data is exist [11:21:31]produce_requested_data [11:21:31]requested_item fm.sn is exist - process it [11:21:31]wFMCommunicate request_size=4 [11:21:31]MH_SAM_APDU [11:21:31]CAPDU: 80 11 00 00 [11:21:31]Write to MH i2c: E2 08 00 09 B2 80 11 00 00 00 00 00 00 35 [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 17 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 17 00 09 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [11:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:21:31]wFMCommunicate OK [11:21:31]requested_item fd.num is exist - process it [11:21:31]SAM_PROTO_GetFieldsCounters [11:21:31]wFMCommunicate request_size=4 [11:21:31]MH_SAM_APDU [11:21:31]CAPDU: 80 13 00 00 [11:21:31]Write to MH i2c: E2 08 00 0A B2 80 13 00 00 00 00 00 00 38 [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 62 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 62 00 0A B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:31]wFMCommunicate OK [11:21:31]SAM_PROTO_GetFieldsCounters done [11:21:31]requested_item shift.num is exist - process it [11:21:31]requested_item shift.opened is exist - process it [11:21:31]req_shift_opened [11:21:31]FM_GetShiftState [11:21:31]SAM_PROTO_GetShiftState [11:21:31]wFMCommunicate request_size=4 [11:21:31]MH_SAM_APDU [11:21:31]CAPDU: 80 13 01 00 [11:21:31]Write to MH i2c: E2 08 00 0B B2 80 13 01 00 00 00 00 00 3A [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 0B B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8D [11:21:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:21:31]wFMCommunicate OK [11:21:31]SAM_PROTO_GetShiftState done [11:21:31]FM_GetShiftState done [11:21:31]req_shift_opened done [11:21:31]requested_item shift.open_date is exist - process it [11:21:31]req_shift_open_date [11:21:31]req_shift_open_date done [11:21:31]produce_requested_data done [11:21:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166354,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:21:31]process_action_free close_receipt [11:21:31]json_value_free [11:21:31]json_value_free done [11:21:31]process_json_proto returns [11:21:31]Send response to host [11:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166354,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:21:31]free response buf [11:21:31]execute_script done [11:21:31]execute_script returns [11:21:31]free content buf [11:21:31]Sock 5.Close socket [11:21:31]Sock 5.Thread stoped [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]accept exits with 7 [11:26:25]New connection [11:26:25]New thread 3066776932 created [11:26:25]Thread 3066920292 joined [11:26:25]Waiting for new connection... [11:26:25] Sock 7.Parse request [11:26:25]Sock 7.Check first char [11:26:25]Sock 7.First char is OK [11:26:25]request: POST /json_proto HTTP/1.0 [11:26:25]Method: POST [11:26:25]URL: /json_proto [11:26:25]Method is POST - this is cgi request [11:26:25]url: /json_proto [11:26:25]query_string will be loaded in cgi processing [11:26:25]execute_cgi json_proto POST (null) [11:26:25]execute_cgi path=json_proto method=POST [11:26:25]POST find Content-Length [11:26:25]Host: 172.17.53.195:8080 [11:26:25]Content-Length: 682 [11:26:25]Content-Type: application/json [11:26:25] [11:26:25]POST finish read [11:26:25]Found Content-Length = 682 [11:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:25]execute_script... [11:26:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:25]POST & json_proto [11:26:25]process_json_proto [11:26:25]json parsed OK: [11:26:25]protocol is kg_v1.0 [11:26:25]action value=close_receipt [11:26:25]process_action close_receipt [11:26:25]cmd_close_receipt [11:26:25]MH_GetDate [11:26:25]Write to MH i2c: F0 00 00 0C B2 AD [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 0C B2 00 F8 8B 17 67 21 48 4A 65 CF [11:26:25]GetLastDocTimeStamp 1729596111 [11:26:25]current date 1729596408 [11:26:25]FM_GetShiftState [11:26:25]SAM_PROTO_GetShiftState [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 01 00 [11:26:25]Write to MH i2c: E2 08 00 0D B2 80 13 01 00 00 00 00 00 3C [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 0D B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8F [11:26:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]opened in 1729557463 [11:26:25]opened+sec_in_day 1729643863 [11:26:25]quantity*price = 100015 [11:26:25]sum+1 = 100017 [11:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 110 22.10.2024 11:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166355 ФПД: 269504236892060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112649&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166355&fm=269504236892060&tin=02508201610067®Number=0000000000091764&sum=100000 [11:26:26]StoreToDocumentArchive [11:26:26]shift 536 fd 166355 [11:26:26]save to /storage/0536/doc_00166355 [11:26:26]save last doc name /storage/0536/doc_00166355 to /storage/kkm_last_doc_name [11:26:26]save OK [11:26:26]Clear old archive folders... [11:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:26]tlvbuf is 01970FB0 [11:26:26]SAM_PROTO_ClearQueue [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 09 00 00 [11:26:26]Write to MH i2c: E2 08 00 1A B2 80 09 00 00 00 00 00 00 3E [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 1A B2 00 90 00 40 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_ClearQueue done [11:26:26]KKMCreateOFDPacket [11:26:26]OFDProtocolAddRootSTLVToBuf [11:26:26]FM_MakeSignedData [11:26:26]FM_MakeSignedData [11:26:26]SAM_PROTO_SignData [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 01 02 [11:26:26]Write to MH i2c: E2 08 00 1B B2 80 0D 01 02 00 00 00 00 46 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 1B B2 00 90 00 41 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=255 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 8B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 89 02 00 35 04 06 00 F5 [11:26:26]Write to MH i2c: E2 02 01 1C B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 8B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 89 02 00 35 04 06 00 F5 00 00 B3 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 1C B2 00 90 00 42 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=10 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 05 1C D8 4E 2F 9C [11:26:26]Write to MH i2c: E2 0D 00 1D B2 80 0D 02 02 05 00 1C D8 4E 2F 9C 00 00 60 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 1D B2 00 90 00 43 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 03 02 [11:26:26]Write to MH i2c: E2 08 00 1E B2 80 0D 03 02 00 00 00 00 4B [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 1E B2 00 7A BE 23 19 3A AF E3 3D 90 00 C9 [11:26:26]RAPDU: 7A BE 23 19 3A AF E3 3D 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_SignData done [11:26:26]FM_MakeSignedData done [11:26:26]CreateOFDProtocolMessage [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 11 00 00 [11:26:26]Write to MH i2c: E2 08 00 1F B2 80 11 00 00 00 00 00 00 4B [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 1F B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [11:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:26]wFMCommunicate OK [11:26:26]CreateOFDProtocolMessage done [11:26:26]OFDSenderStorePacket 166355 [11:26:26]StoreOFDPacket docnum=166355 [11:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 8E 07 01 41 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 8B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 89 02 00 35 04 06 00 F5 1C D8 4E 2F 9C 7A BE 23 19 3A AF E3 3D [11:26:26]CheckFolder [11:26:26]dirname=/storage/ofd_packets [11:26:26]CheckFolder done [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00166355 [11:26:26]NVStorageSaveData ofd_packets/00166355 [11:26:26]File name is /storage/ofd_packets/00166355 [11:26:26]Write 301 bytes [11:26:26]NVStorageSaveData done [11:26:26]OFDSenderStorePacket done [11:26:26]KKMCreateOFDPacket done [11:26:26]NVStorageSaveData kkm_last_timestamp [11:26:26]File name is /storage/kkm_last_timestamp [11:26:26]Write 4 bytes [11:26:26]NVStorageSaveData done [11:26:26]ExternCall_PrintAddStr [11:26:26]wPrintStart [11:26:26]Write to MH i2c: 01 00 00 20 B2 D2 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 20 B2 00 00 00 00 00 FF 0F E7 [11:26:26]RasterBufferAndPrint [11:26:26]line Счет N : (1)220933 [11:26:26]line ИНН: 02508201610067 [11:26:26]line Контрольно-Кассовый Чек [11:26:26]line ПРОДАЖА [11:26:26]line ТРК (МРК, ГНК) : 43 [11:26:26]line Товар: 2710124130 [11:26:26]line Аи-92-К-5 [11:26:26]line 14.950 * 66.90 [11:26:26]line = 1000.16 [11:26:26]line НДС 12% НСП 1% [11:26:26]line > о реализуемом товаре [11:26:26]line ОКРУГЛЕНИЕ: -0.16 [11:26:26]line ИТОГО: 1000.00 [11:26:26]line Внесено: 1000.00 [11:26:26]line СДАЧА: 0.00 [11:26:26]line НСП 1% : 8.85 [11:26:26]line НДС 12% : 106.21 [11:26:26]line Наличными: 1000.00 [11:26:26]line Безнал.: 0.00 [11:26:26]line Место: АЗС № 161 "Партнер Нефть" [11:26:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:26:26]line СНО: Общий режим [11:26:26]line Чек 110 22.10.2024 11:26 [11:26:26]line Смена: 536 ФФД: 1.0 [11:26:26]line ЗНМ: 0300000104 [11:26:26]line РНМ: 0000000000091764 [11:26:26]line Версия ККМ: 001 [11:26:26]line ФМ: 0000000000871759 [11:26:26]line ФД: 166355 [11:26:26]line ФПД: 269504236892060 [11:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112649&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166355&fm=269504236892060&tin=02508201610067®Number=0000000000091764&sum=100000 [11:26:27]OFD Sender: Processing packet 166355 [packets to send 48, broken 47] [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00166355 [11:26:27]OFD Sender: To server: pG, [11:26:27]CommunicateWithHost lk.salyk.kg:30040 [11:26:27]ConnectInit lk.salyk.kg [11:26:27]written 0, free lines is 4095 [11:26:27]Connected sock=6 [11:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 8E 07 01 41 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 8B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 89 02 00 35 04 06 00 F5 1C D8 4E 2F 9C 7A BE 23 19 3A AF E3 3D [11:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 CE 47 00 47 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 89 02 00 F4 03 04 00 64 32 17 67 B6 04 01 00 00 0B C6 20 91 09 E8 67 38 [11:26:27]CommunicateWithHost err = 0 [11:26:27]CheckOFDResponse [11:26:27]1017 (14) - 77093643461234 [11:26:27]1041 (16) - 0000000000871759 [11:26:27]1040 (4) - 166355 [11:26:27]1012 (4) - 22.10.2024 05:04 [11:26:27]1206 (1) - 0 [11:26:27]OFD Sender: Remove packet 166355 [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00166355 [11:26:27]NVStorageDeleteData [11:26:27]Write to MH i2c: 01 00 00 4B B2 FD [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 4B B2 00 00 00 00 00 CE 0C DE [11:26:27]RasterBufferAndPrint [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]written 0, free lines is 3285 [11:26:27]MH_Cut [11:26:27]Write to MH i2c: D1 01 00 52 B2 01 D6 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 52 B2 00 D5 [11:26:27]Write to MH i2c: 01 00 00 53 B2 05 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:28]OFD Sender: No OFD packet to send [11:26:28]*** Cut start [11:26:28]*** Partial cut [11:26:28]*** CUTSNS_PIN = 1 [11:26:28]*** CUTSNS_PIN = 0 [11:26:28]*** Brake cut motor [11:26:29]Read from MH i2c: 01 [11:26:29]MH_I2C_Read... [11:26:29]*** Stop cut motor [11:26:29]*** Cut end [11:26:29]Read from MH i2c: 01 07 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: 01 07 00 53 B2 00 00 00 00 00 FF 0F 1A [11:26:29]process_action close_receipt done [11:26:29]requested_data is exist [11:26:29]produce_requested_data [11:26:29]requested_item fm.sn is exist - process it [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 11 00 00 [11:26:29]Write to MH i2c: E2 08 00 54 B2 80 11 00 00 00 00 00 00 80 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 54 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [11:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:26:29]wFMCommunicate OK [11:26:29]requested_item fd.num is exist - process it [11:26:29]SAM_PROTO_GetFieldsCounters [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 00 00 [11:26:29]Write to MH i2c: E2 08 00 55 B2 80 13 00 00 00 00 00 00 83 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 55 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [11:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetFieldsCounters done [11:26:29]requested_item shift.num is exist - process it [11:26:29]requested_item shift.opened is exist - process it [11:26:29]req_shift_opened [11:26:29]FM_GetShiftState [11:26:29]SAM_PROTO_GetShiftState [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 01 00 [11:26:29]Write to MH i2c: E2 08 00 56 B2 80 13 01 00 00 00 00 00 85 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 56 B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D8 [11:26:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetShiftState done [11:26:29]FM_GetShiftState done [11:26:29]req_shift_opened done [11:26:29]requested_item shift.open_date is exist - process it [11:26:29]req_shift_open_date [11:26:29]req_shift_open_date done [11:26:29]produce_requested_data done [11:26:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166355,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:26:29]process_action_free close_receipt [11:26:29]json_value_free [11:26:29]json_value_free done [11:26:29]process_json_proto returns [11:26:29]Send response to host [11:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166355,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:26:29]free response buf [11:26:29]execute_script done [11:26:29]execute_script returns [11:26:29]free content buf [11:26:29]Sock 7.Close socket [11:26:29]Sock 7.Thread stoped [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: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:07]accept exits with 5 [11:29:07]New connection [11:29:07]New thread 3066920292 created [11:29:07]Thread 3066776932 joined [11:29:07]Waiting for new connection... [11:29:07] Sock 5.Parse request [11:29:07]Sock 5.Check first char [11:29:07]Sock 5.First char is OK [11:29:07]request: POST /json_proto HTTP/1.0 [11:29:07]Method: POST [11:29:07]URL: /json_proto [11:29:07]Method is POST - this is cgi request [11:29:07]url: /json_proto [11:29:07]query_string will be loaded in cgi processing [11:29:07]execute_cgi json_proto POST (null) [11:29:07]execute_cgi path=json_proto method=POST [11:29:07]POST find Content-Length [11:29:07]Host: 172.17.53.195:8080 [11:29:07]Content-Length: 677 [11:29:07]Content-Type: application/json [11:29:07] [11:29:07]POST finish read [11:29:07]Found Content-Length = 677 [11:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:07]execute_script... [11:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:07]POST & json_proto [11:29:07]process_json_proto [11:29:07]json parsed OK: [11:29:07]protocol is kg_v1.0 [11:29:07]action value=close_receipt [11:29:07]process_action close_receipt [11:29:07]cmd_close_receipt [11:29:07]MH_GetDate [11:29:07]Write to MH i2c: F0 00 00 57 B2 F8 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 09 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 09 00 57 B2 00 9A 8C 17 67 21 48 4A 65 BD [11:29:07]GetLastDocTimeStamp 1729596409 [11:29:07]current date 1729596570 [11:29:07]FM_GetShiftState [11:29:07]SAM_PROTO_GetShiftState [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 01 00 [11:29:07]Write to MH i2c: E2 08 00 58 B2 80 13 01 00 00 00 00 00 87 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 58 B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DA [11:29:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetShiftState done [11:29:07]FM_GetShiftState done [11:29:07]opened in 1729557463 [11:29:07]opened+sec_in_day 1729643863 [11:29:07]quantity*price = 50041 [11:29:07]sum+1 = 50042 [11:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 111 22.10.2024 11:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166356 ФПД: 273794925659705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166356&fm=273794925659705&tin=02508201610067®Number=0000000000091764&sum=50000 [11:29:08]StoreToDocumentArchive [11:29:08]shift 536 fd 166356 [11:29:08]save to /storage/0536/doc_00166356 [11:29:08]save last doc name /storage/0536/doc_00166356 to /storage/kkm_last_doc_name [11:29:08]save OK [11:29:08]Clear old archive folders... [11:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:08]tlvbuf is 01970F70 [11:29:08]SAM_PROTO_ClearQueue [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 09 00 00 [11:29:08]Write to MH i2c: E2 08 00 65 B2 80 09 00 00 00 00 00 00 89 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:08]OFD Sender: No OFD packet to send [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 65 B2 00 90 00 8B [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]SAM_PROTO_ClearQueue done [11:29:08]KKMCreateOFDPacket [11:29:08]OFDProtocolAddRootSTLVToBuf [11:29:08]FM_MakeSignedData [11:29:08]FM_MakeSignedData [11:29:08]SAM_PROTO_SignData [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 01 02 [11:29:08]Write to MH i2c: E2 08 00 66 B2 80 0D 01 02 00 00 00 00 91 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 66 B2 00 90 00 8C [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]wFMCommunicate request_size=255 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A 8C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 89 02 00 35 04 06 00 F9 [11:29:08]Write to MH i2c: E2 02 01 67 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A 8C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 89 02 00 35 04 06 00 F9 00 00 AC [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 67 B2 00 90 00 8D [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]wFMCommunicate request_size=10 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 02 02 05 03 D9 49 06 39 [11:29:08]Write to MH i2c: E2 0D 00 68 B2 80 0D 02 02 05 00 03 D9 49 06 39 00 00 02 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 68 B2 00 90 00 8E [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 03 02 [11:29:08]Write to MH i2c: E2 08 00 69 B2 80 0D 03 02 00 00 00 00 96 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 0B 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 0B 00 69 B2 00 5F 8A F9 5B 6D E8 7F AD 90 00 55 [11:29:08]RAPDU: 5F 8A F9 5B 6D E8 7F AD 90 00 [11:29:08]wFMCommunicate OK [11:29:08]SAM_PROTO_SignData done [11:29:08]FM_MakeSignedData done [11:29:08]CreateOFDProtocolMessage [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 11 00 00 [11:29:08]Write to MH i2c: E2 08 00 6A B2 80 11 00 00 00 00 00 00 96 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 17 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 17 00 6A B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [11:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:29:08]wFMCommunicate OK [11:29:08]CreateOFDProtocolMessage done [11:29:08]OFDSenderStorePacket 166356 [11:29:08]StoreOFDPacket docnum=166356 [11:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 5C 07 01 10 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A 8C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 89 02 00 35 04 06 00 F9 03 D9 49 06 39 5F 8A F9 5B 6D E8 7F AD [11:29:08]CheckFolder [11:29:08]dirname=/storage/ofd_packets [11:29:08]CheckFolder done [11:29:08]ProducePacketName [11:29:08]name=ofd_packets/00166356 [11:29:08]NVStorageSaveData ofd_packets/00166356 [11:29:08]File name is /storage/ofd_packets/00166356 [11:29:08]Write 301 bytes [11:29:08]NVStorageSaveData done [11:29:08]OFDSenderStorePacket done [11:29:08]KKMCreateOFDPacket done [11:29:08]NVStorageSaveData kkm_last_timestamp [11:29:08]File name is /storage/kkm_last_timestamp [11:29:08]Write 4 bytes [11:29:08]NVStorageSaveData done [11:29:08]ExternCall_PrintAddStr [11:29:08]wPrintStart [11:29:08]Write to MH i2c: 01 00 00 6B B2 1D [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: 01 07 00 6B B2 00 00 00 00 00 FF 0F 32 [11:29:08]RasterBufferAndPrint [11:29:08]line Счет N : (1)220934 [11:29:08]line ИНН: 02508201610067 [11:29:08]line Контрольно-Кассовый Чек [11:29:08]line ПРОДАЖА [11:29:08]line ТРК (МРК, ГНК) : 33 [11:29:08]line Товар: 2710124130 [11:29:08]line Аи-92-К-5 [11:29:08]line 7.480 * 66.90 [11:29:08]line = 500.41 [11:29:08]line НДС 12% НСП 1% [11:29:08]line > о реализуемом товаре [11:29:08]line ОКРУГЛЕНИЕ: -0.41 [11:29:08]line ИТОГО: 500.00 [11:29:08]line Внесено: 500.00 [11:29:08]line СДАЧА: 0.00 [11:29:08]line НСП 1% : 4.43 [11:29:08]line НДС 12% : 53.14 [11:29:08]line Наличными: 500.00 [11:29:08]line Безнал.: 0.00 [11:29:08]line Место: АЗС № 161 "Партнер Нефть" [11:29:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:29:08]line СНО: Общий режим [11:29:08]line Чек 111 22.10.2024 11:29 [11:29:08]line Смена: 536 ФФД: 1.0 [11:29:08]line ЗНМ: 0300000104 [11:29:08]line РНМ: 0000000000091764 [11:29:08]line Версия ККМ: 001 [11:29:08]line ФМ: 0000000000871759 [11:29:08]line ФД: 166356 [11:29:08]line ФПД: 273794925659705 [11:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166356&fm=273794925659705&tin=02508201610067®Number=0000000000091764&sum=50000 [11:29:09]OFD Sender: Processing packet 166356 [packets to send 48, broken 47] [11:29:09]ProducePacketName [11:29:09]name=ofd_packets/00166356 [11:29:09]OFD Sender: To server: pG, [11:29:09]CommunicateWithHost lk.salyk.kg:30040 [11:29:09]ConnectInit lk.salyk.kg [11:29:09]written 0, free lines is 4095 [11:29:09]Write to MH i2c: 01 00 00 96 B2 48 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 96 B2 00 00 00 00 00 C1 0C 1C [11:29:09]RasterBufferAndPrint [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]written 0, free lines is 3274 [11:29:09]MH_Cut [11:29:09]Write to MH i2c: D1 01 00 9D B2 01 21 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 01 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 01 00 9D B2 00 20 [11:29:09]Write to MH i2c: 01 00 00 9E B2 50 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:10]*** Cut start [11:29:10]*** Partial cut [11:29:10]*** CUTSNS_PIN = 1 [11:29:10]*** CUTSNS_PIN = 0 [11:29:10]*** Brake cut motor [11:29:11]Read from MH i2c: 01 [11:29:11]MH_I2C_Read... [11:29:11]*** Stop cut motor [11:29:11]*** Cut end [11:29:11]Read from MH i2c: 01 07 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: 01 07 00 9E B2 00 00 00 00 00 FF 0F 65 [11:29:11]process_action close_receipt done [11:29:11]requested_data is exist [11:29:11]produce_requested_data [11:29:11]requested_item fm.sn is exist - process it [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 11 00 00 [11:29:11]Write to MH i2c: E2 08 00 9F B2 80 11 00 00 00 00 00 00 CB [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 17 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 17 00 9F B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [11:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:29:11]wFMCommunicate OK [11:29:11]requested_item fd.num is exist - process it [11:29:11]SAM_PROTO_GetFieldsCounters [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 13 00 00 [11:29:11]Write to MH i2c: E2 08 00 A0 B2 80 13 00 00 00 00 00 00 CE [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 62 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 62 00 A0 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:11]wFMCommunicate OK [11:29:11]SAM_PROTO_GetFieldsCounters done [11:29:11]requested_item shift.num is exist - process it [11:29:11]requested_item shift.opened is exist - process it [11:29:11]req_shift_opened [11:29:11]FM_GetShiftState [11:29:11]SAM_PROTO_GetShiftState [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 13 01 00 [11:29:11]Write to MH i2c: E2 08 00 A1 B2 80 13 01 00 00 00 00 00 D0 [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 A1 B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 23 [11:29:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:29:11]wFMCommunicate OK [11:29:11]SAM_PROTO_GetShiftState done [11:29:11]FM_GetShiftState done [11:29:11]req_shift_opened done [11:29:11]requested_item shift.open_date is exist - process it [11:29:11]req_shift_open_date [11:29:11]req_shift_open_date done [11:29:11]produce_requested_data done [11:29:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166356,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:29:11]process_action_free close_receipt [11:29:11]json_value_free [11:29:11]json_value_free done [11:29:11]process_json_proto returns [11:29:11]Send response to host [11:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166356,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:29:11]free response buf [11:29:11]execute_script done [11:29:11]execute_script returns [11:29:11]free content buf [11:29:11]Sock 5.Close socket [11:29:11]Sock 5.Thread stoped [11:29:14]ConnectInit Can't take IP for lk.salyk.kg [11:29:14]CommunicateWithHost connect error [11:29:14]CommunicateWithHost err = -1 [11:29:14]OFD Sender: Server communicate error [11:29:19]OFD Sender: Processing packet 166356 [packets to send 48, broken 47] [11:29:19]ProducePacketName [11:29:19]name=ofd_packets/00166356 [11:29:19]OFD Sender: To server: pG, [11:29:19]CommunicateWithHost lk.salyk.kg:30040 [11:29:19]ConnectInit lk.salyk.kg [11:29:24]ConnectInit Can't take IP for lk.salyk.kg [11:29:24]CommunicateWithHost connect error [11:29:24]CommunicateWithHost err = -1 [11:29:24]OFD Sender: Server communicate error [11:29:29]OFD Sender: Processing packet 166356 [packets to send 48, broken 47] [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00166356 [11:29:29]OFD Sender: To server: pG, [11:29:29]CommunicateWithHost lk.salyk.kg:30040 [11:29:29]ConnectInit lk.salyk.kg [11:29:34]ConnectInit Can't take IP for lk.salyk.kg [11:29:34]CommunicateWithHost connect error [11:29:34]CommunicateWithHost err = -1 [11:29:34]OFD Sender: Server communicate error [11:29:39]OFD Sender: Processing packet 166356 [packets to send 48, broken 47] [11:29:39]ProducePacketName [11:29:39]name=ofd_packets/00166356 [11:29:39]OFD Sender: To server: pG, [11:29:39]CommunicateWithHost lk.salyk.kg:30040 [11:29:39]ConnectInit lk.salyk.kg [11:29:44]ConnectInit Can't take IP for lk.salyk.kg [11:29:44]CommunicateWithHost connect error [11:29:44]CommunicateWithHost err = -1 [11:29:44]OFD Sender: Server communicate error [11:29:49]OFD Sender: Processing packet 166356 [packets to send 48, broken 47] [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00166356 [11:29:49]OFD Sender: To server: pG, [11:29:49]CommunicateWithHost lk.salyk.kg:30040 [11:29:49]ConnectInit lk.salyk.kg [11:29:53]Connected sock=5 [11:29:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 5C 07 01 10 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A 8C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 89 02 00 35 04 06 00 F9 03 D9 49 06 39 5F 8A F9 5B 6D E8 7F AD [11:29:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 DB 47 00 23 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 89 02 00 F4 03 04 00 32 33 17 67 B6 04 01 00 00 27 0D 51 9D 0D A2 8E 7D [11:29:53]CommunicateWithHost err = 0 [11:29:53]CheckOFDResponse [11:29:53]1017 (14) - 77093643461234 [11:29:53]1041 (16) - 0000000000871759 [11:29:53]1040 (4) - 166356 [11:29:53]1012 (4) - 22.10.2024 05:08 [11:29:53]1206 (1) - 0 [11:29:53]OFD Sender: Remove packet 166356 [11:29:53]ProducePacketName [11:29:53]name=ofd_packets/00166356 [11:29:53]NVStorageDeleteData [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:42]accept exits with 7 [11:30:42]New connection [11:30:42]New thread 3066776932 created [11:30:42]Thread 3066920292 joined [11:30:42]Waiting for new connection... [11:30:42] Sock 7.Parse request [11:30:42]Sock 7.Check first char [11:30:42]Sock 7.First char is OK [11:30:42]request: POST /json_proto HTTP/1.0 [11:30:42]Method: POST [11:30:42]URL: /json_proto [11:30:42]Method is POST - this is cgi request [11:30:42]url: /json_proto [11:30:42]query_string will be loaded in cgi processing [11:30:42]execute_cgi json_proto POST (null) [11:30:42]execute_cgi path=json_proto method=POST [11:30:42]POST find Content-Length [11:30:42]Host: 172.17.53.195:8080 [11:30:42]Content-Length: 789 [11:30:42]Content-Type: application/json [11:30:42] [11:30:42]POST finish read [11:30:42]Found Content-Length = 789 [11:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 59.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:42]execute_script... [11:30: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)220935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 59.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:42]POST & json_proto [11:30:42]process_json_proto [11:30:42]json parsed OK: [11:30:42]protocol is kg_v1.0 [11:30:42]action value=close_receipt [11:30:42]process_action close_receipt [11:30:42]cmd_close_receipt [11:30:42]MH_GetDate [11:30:42]Write to MH i2c: F0 00 00 A2 B2 43 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 09 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 09 00 A2 B2 00 F9 8C 17 67 21 48 4A 65 67 [11:30:42]GetLastDocTimeStamp 1729596570 [11:30:42]current date 1729596665 [11:30:42]FM_GetShiftState [11:30:42]SAM_PROTO_GetShiftState [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 13 01 00 [11:30:42]Write to MH i2c: E2 08 00 A3 B2 80 13 01 00 00 00 00 00 D2 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0E 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0E 00 A3 B2 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 25 [11:30:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:30:42]wFMCommunicate OK [11:30:42]SAM_PROTO_GetShiftState done [11:30:42]FM_GetShiftState done [11:30:42]opened in 1729557463 [11:30:42]opened+sec_in_day 1729643863 [11:30:42]quantity*price = 0 [11:30:42]sum+1 = 1 [11:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре [11:37:16]line ОКРУГЛЕНИЕ: -0.38 [11:37:16]line ИТОГО: 300.00 [11:37:16]line Внесено: 300.00 [11:37:16]line СДАЧА: 0.00 [11:37:16]line НСП 1% : 2.66 [11:37:16]line НДС 12% : 31.90 [11:37:16]line Наличными: 300.00 [11:37:16]line Безнал.: 0.00 [11:37:16]line Место: АЗС № 161 "Партнер Нефть" [11:37:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:37:16]line СНО: Общий режим [11:37:16]line Чек 113 22.10.2024 11:31 [11:37:16]line Смена: 536 ФФД: 1.0 [11:37:16]line ЗНМ: 0300000104 [11:37:16]line РНМ: 0000000000091764 [11:37:16]line Версия ККМ: 001 [11:37:16]line ФМ: 0000000000871759 [11:37:16]line ФД: 166358 [11:37:16]line ФПД: 155306463791549 [11:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166358&fm=155306463791549&tin=02508201610067®Number=0000000000091764&sum=30000 [11:37:16]written 0, free lines is 4095 [11:37:17]Write to MH i2c: 01 00 00 48 00 48 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 07 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D5 0C 30 [11:37:17]RasterBufferAndPrint [11:37:17]line [11:37:17]line [11:37:17]line [11:37:17]line [11:37:17]line [11:37:17]written 0, free lines is 3304 [11:37:17]OFD Sender: No OFD packet to send [11:37:17]MH_Cut [11:37:17]Write to MH i2c: D1 01 00 4F 00 01 21 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: D1 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: D1 01 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: D1 01 00 4F 00 00 20 [11:37:17]Write to MH i2c: 01 00 00 50 00 50 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:18]*** Cut start [11:37:18]*** Partial cut [11:37:18]*** CUTSNS_PIN = 1 [11:37:18]*** CUTSNS_PIN = 0 [11:37:18]*** Brake cut motor [11:37:18]Read from MH i2c: 01 *** Stop cut motor [11:37:18] [11:37:18]*** Cut end [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: 01 07 00 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [11:37:18]process_action print_doc done [11:37:18]requested_data is exist [11:37:18]produce_requested_data [11:37:18]produce_requested_data return (null) [11:37:18]process_action_free print_doc [11:37:18]json_value_free [11:37:18]json_value_free done [11:37:18]process_json_proto returns [11:37:18]Send response to host [11:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:37:18]free response buf [11:37:18]execute_script done [11:37:18]execute_script returns [11:37:18]free content buf [11:37:18]Sock 6.Close socket [11:37:18]Sock 6.Thread stoped [11:37:18]accept exits with 7 [11:37:18]New connection [11:37:18]New thread 3067493732 created [11:37:18]Thread 3067637092 joined [11:37:18]Waiting for new connection... [11:37:18] Sock 7.Parse request [11:37:18]Sock 7.Check first char [11:37:18]Sock 7.First char is OK [11:37:18]request: POST /json_proto HTTP/1.0 [11:37:18]Method: POST [11:37:18]URL: /json_proto [11:37:18]Method is POST - this is cgi request [11:37:18]url: /json_proto [11:37:18]query_string will be loaded in cgi processing [11:37:18]execute_cgi json_proto POST (null) [11:37:18]execute_cgi path=json_proto method=POST [11:37:18]POST find Content-Length [11:37:18]Host: 172.17.53.195:8080 [11:37:18]Content-Length: 677 [11:37:18]Content-Type: application/json [11:37:18] [11:37:18]POST finish read [11:37:18]Found Content-Length = 677 [11:37:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:18]execute_script... [11:37:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:18]POST & json_proto [11:37:18]process_json_proto [11:37:18]json parsed OK: [11:37:18]protocol is kg_v1.0 [11:37:18]action value=close_receipt [11:37:18]process_action close_receipt [11:37:18]cmd_close_receipt [11:37:18]MH_GetDate [11:37:18]Write to MH i2c: F0 00 00 51 00 40 [11:37:18]Write i2c OK [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: F0 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: F0 09 00 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: F0 09 00 51 00 00 6F 8E 17 67 21 48 4A 65 DC [11:37:19]GetLastDocTimeStamp 1729596692 [11:37:19]current date 1729597039 [11:37:19]FM_GetShiftState [11:37:19]SAM_PROTO_GetShiftState [11:37:19]wFMCommunicate request_size=4 [11:37:19]MH_SAM_APDU [11:37:19]CAPDU: 80 13 01 00 [11:37:19]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [11:37:19]Write i2c OK [11:37:19]MH_I2C_Read... [11:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:19]Read from MH i2c: E2 [11:37:19]MH_I2C_Read... [11:37:19]Read from MH i2c: E2 0E 00 [11:37:19]MH_I2C_Read... [11:37:19]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 22 [11:37:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:19]wFMCommunicate OK [11:37:19]SAM_PROTO_GetShiftState done [11:37:19]FM_GetShiftState done [11:37:19]opened in 1729557463 [11:37:19]opened+sec_in_day 1729643863 [11:37:19]quantity*price = 49974 [11:37:19]sum+1 = 49975 [11:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 114 22.10.2024 11:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166359 ФПД: 30459706202215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166359&fm=30459706202215&tin=02508201610067®Number=0000000000091764&sum=49900 [11:37:20]StoreToDocumentArchive [11:37:20]shift 536 fd 166359 [11:37:20]save to /storage/0536/doc_00166359 [11:37:20]save last doc name /storage/0536/doc_00166359 to /storage/kkm_last_doc_name [11:37:20]save OK [11:37:20]Clear old archive folders... [11:37:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:20]tlvbuf is 009BBF80 [11:37:20]SAM_PROTO_ClearQueue [11:37:20]wFMCommunicate request_size=4 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 09 00 00 [11:37:20]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:37:20]RAPDU: 90 00 [11:37:20]wFMCommunicate OK [11:37:20]SAM_PROTO_ClearQueue done [11:37:20]KKMCreateOFDPacket [11:37:20]OFDProtocolAddRootSTLVToBuf [11:37:20]FM_MakeSignedData [11:37:20]FM_MakeSignedData [11:37:20]SAM_PROTO_SignData [11:37:20]wFMCommunicate request_size=4 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 0D 01 02 [11:37:20]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:37:20]RAPDU: 90 00 [11:37:20]wFMCommunicate OK [11:37:20]wFMCommunicate request_size=255 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 89 02 00 35 04 06 00 1B [11:37:20]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 89 02 00 35 04 06 00 1B 00 00 D4 [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [11:37:20]RAPDU: 90 00 [11:37:20]wFMCommunicate OK [11:37:20]wFMCommunicate request_size=10 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 0D 02 02 05 B3 F3 F7 D8 67 [11:37:20]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 B3 F3 F7 D8 67 00 00 C2 [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [11:37:20]RAPDU: 90 00 [11:37:20]wFMCommunicate OK [11:37:20]wFMCommunicate request_size=4 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 0D 03 02 [11:37:20]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 0B 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 0B 00 63 00 00 D8 2E 97 5A 41 A2 28 09 90 00 EA [11:37:20]RAPDU: D8 2E 97 5A 41 A2 28 09 90 00 [11:37:20]wFMCommunicate OK [11:37:20]SAM_PROTO_SignData done [11:37:20]FM_MakeSignedData done [11:37:20]CreateOFDProtocolMessage [11:37:20]wFMCommunicate request_size=4 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 11 00 00 [11:37:20]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 17 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [11:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:21]wFMCommunicate OK [11:37:21]CreateOFDProtocolMessage done [11:37:21]OFDSenderStorePacket 166359 [11:37:21]StoreOFDPacket docnum=166359 [11:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 80 07 01 F0 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 89 02 00 35 04 06 00 1B B3 F3 F7 D8 67 D8 2E 97 5A 41 A2 28 09 [11:37:21]CheckFolder [11:37:21]dirname=/storage/ofd_packets [11:37:21]CheckFolder done [11:37:21]ProducePacketName [11:37:21]name=ofd_packets/00166359 [11:37:21]NVStorageSaveData ofd_packets/00166359 [11:37:21]File name is /storage/ofd_packets/00166359 [11:37:21]Write 301 bytes [11:37:21]NVStorageSaveData done [11:37:21]OFDSenderStorePacket done [11:37:21]KKMCreateOFDPacket done [11:37:21]NVStorageSaveData kkm_last_timestamp [11:37:21]File name is /storage/kkm_last_timestamp [11:37:21]Write 4 bytes [11:37:21]NVStorageSaveData done [11:37:21]ExternCall_PrintAddStr [11:37:21]wPrintStart [11:37:21]Write to MH i2c: 01 00 00 65 00 65 [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 07 00 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [11:37:21]RasterBufferAndPrint [11:37:21]line Счет N : (1)220937 [11:37:21]line ИНН: 02508201610067 [11:37:21]line Контрольно-Кассовый Чек [11:37:21]line ПРОДАЖА [11:37:21]line ТРК (МРК, ГНК) : 13 [11:37:21]line Товар: 2710124130 [11:37:21]line Аи-92-К-5 [11:37:21]line 7.470 * 66.90 [11:37:21]line = 499.74 [11:37:21]line НДС 12% НСП 1% [11:37:21]line > о реализуемом товаре [11:37:21]line ОКРУГЛЕНИЕ: -0.74 [11:37:21]line ИТОГО: 499.00 [11:37:21]line Внесено: 500.00 [11:37:21]line СДАЧА: 1.00 [11:37:21]line НСП 1% : 4.42 [11:37:21]line НДС 12% : 53.07 [11:37:21]line Наличными: 499.00 [11:37:21]line Безнал.: 0.00 [11:37:21]line Место: АЗС № 161 "Партнер Нефть" [11:37:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:37:21]line СНО: Общий режим [11:37:21]line Чек 114 22.10.2024 11:37 [11:37:21]line Смена: 536 ФФД: 1.0 [11:37:21]line ЗНМ: 0300000104 [11:37:21]line РНМ: 0000000000091764 [11:37:21]line Версия ККМ: 001 [11:37:21]line ФМ: 0000000000871759 [11:37:21]line ФД: 166359 [11:37:21]line ФПД: 30459706202215 [11:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166359&fm=30459706202215&tin=02508201610067®Number=0000000000091764&sum=49900 [11:37:21]OFD Sender: Processing packet 166359 [packets to send 48, broken 47] [11:37:21]ProducePacketName [11:37:21]name=ofd_packets/00166359 [11:37:21]OFD Sender: To server: pG, [11:37:21]CommunicateWithHost lk.salyk.kg:30040 [11:37:21]ConnectInit lk.salyk.kg [11:37:21]written 0, free lines is 4095 [11:37:21]Connected sock=10 [11:37:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 80 07 01 F0 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 89 02 00 35 04 06 00 1B B3 F3 F7 D8 67 D8 2E 97 5A 41 A2 28 09 [11:37:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 41 E7 47 00 63 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 89 02 00 F4 03 04 00 DA 34 17 67 B6 04 01 00 00 4D F2 45 74 37 AD 9B 75 [11:37:21]CommunicateWithHost err = 0 [11:37:21]CheckOFDResponse [11:37:21]1017 (14) - 77093643461234 [11:37:21]1041 (16) - 0000000000871759 [11:37:21]1040 (4) - 166359 [11:37:21]1012 (4) - 22.10.2024 05:15 [11:37:21]1206 (1) - 0 [11:37:21]OFD Sender: Remove packet 166359 [11:37:21]ProducePacketName [11:37:21]name=ofd_packets/00166359 [11:37:21]NVStorageDeleteData [11:37:21]Write to MH i2c: 01 00 00 90 00 90 [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 07 00 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D8 0C 7B [11:37:21]RasterBufferAndPrint [11:37:21]line [11:37:21]line [11:37:21]line [11:37:21]line [11:37:21]line [11:37:21]written 0, free lines is 3311 [11:37:21]MH_Cut [11:37:21]Write to MH i2c: D1 01 00 97 00 01 69 [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: D1 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: D1 01 00 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: D1 01 00 97 00 00 68 [11:37:21]Write to MH i2c: 01 00 00 98 00 98 [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:22]OFD Sender: No OFD packet to send [11:37:22]*** Cut start [11:37:22]*** Partial cut [11:37:22]*** CUTSNS_PIN = 1 [11:37:22]*** CUTSNS_PIN = 0 [11:37:22]*** Brake cut motor [11:37:23]Read from MH i2c: 01 [11:37:23]MH_I2C_Read... [11:37:23]*** Stop cut motor [11:37:23]*** Cut end [11:37:23]Read from MH i2c: 01 07 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [11:37:23]process_action close_receipt done [11:37:23]requested_data is exist [11:37:23]produce_requested_data [11:37:23]requested_item fm.sn is exist - process it [11:37:23]wFMCommunicate request_size=4 [11:37:23]MH_SAM_APDU [11:37:23]CAPDU: 80 11 00 00 [11:37:23]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:23]Read from MH i2c: E2 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 17 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [11:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:23]wFMCommunicate OK [11:37:23]requested_item fd.num is exist - process it [11:37:23]SAM_PROTO_GetFieldsCounters [11:37:23]wFMCommunicate request_size=4 [11:37:23]MH_SAM_APDU [11:37:23]CAPDU: 80 13 00 00 [11:37:23]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:23]Read from MH i2c: E2 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 62 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [11:37:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:23]wFMCommunicate OK [11:37:23]SAM_PROTO_GetFieldsCounters done [11:37:23]requested_item shift.num is exist - process it [11:37:23]requested_item shift.opened is exist - process it [11:37:23]req_shift_opened [11:37:23]FM_GetShiftState [11:37:23]SAM_PROTO_GetShiftState [11:37:23]wFMCommunicate request_size=4 [11:37:23]MH_SAM_APDU [11:37:23]CAPDU: 80 13 01 00 [11:37:23]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:23]Read from MH i2c: E2 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 0E 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6B [11:37:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:23]wFMCommunicate OK [11:37:23]SAM_PROTO_GetShiftState done [11:37:23]FM_GetShiftState done [11:37:23]req_shift_opened done [11:37:23]requested_item shift.open_date is exist - process it [11:37:23]req_shift_open_date [11:37:23]req_shift_open_date done [11:37:23]produce_requested_data done [11:37:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166359,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:37:23]process_action_free close_receipt [11:37:23]json_value_free [11:37:23]json_value_free done [11:37:23]process_json_proto returns [11:37:23]Send response to host [11:37:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166359,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:37:23]free response buf [11:37:23]execute_script done [11:37:23]execute_script returns [11:37:23]free content buf [11:37:23]Sock 7.Close socket [11:37:23]Sock 7.Thread stoped [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:40]accept exits with 6 [11:37:40]New connection [11:37:40]New thread 3067637092 created [11:37:40]Thread 3067493732 joined [11:37:40]Waiting for new connection... [11:37:40] Sock 6.Parse request [11:37:40]Sock 6.Check first char [11:37:40]Sock 6.First char is OK [11:37:40]request: POST /json_proto HTTP/1.0 [11:37:40]Method: POST [11:37:40]URL: /json_proto [11:37:40]Method is POST - this is cgi request [11:37:40]url: /json_proto [11:37:40]query_string will be loaded in cgi processing [11:37:40]execute_cgi json_proto POST (null) [11:37:40]execute_cgi path=json_proto method=POST [11:37:40]POST find Content-Length [11:37:40]Host: 172.17.53.195:8080 [11:37:40]Content-Length: 675 [11:37:40]Content-Type: application/json [11:37:40] [11:37:40]POST finish read [11:37:40]Found Content-Length = 675 [11:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:40]execute_script... [11:37:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:40]POST & json_proto [11:37:40]process_json_proto [11:37:40]json parsed OK: [11:37:40]protocol is kg_v1.0 [11:37:40]action value=close_receipt [11:37:40]process_action close_receipt [11:37:40]cmd_close_receipt [11:37:40]MH_GetDate [11:37:40]Write to MH i2c: F0 00 00 9C 00 8B [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: F0 09 00 9C 00 00 84 8E 17 67 21 48 4A 65 3C [11:37:40]GetLastDocTimeStamp 1729597039 [11:37:40]current date 1729597060 [11:37:40]FM_GetShiftState [11:37:40]SAM_PROTO_GetShiftState [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 13 01 00 [11:37:40]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6D [11:37:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_GetShiftState done [11:37:40]FM_GetShiftState done [11:37:40]opened in 1729557463 [11:37:40]opened+sec_in_day 1729643863 [11:37:40]quantity*price = 80010 [11:37:40]sum+1 = 80011 [11:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 115 22.10.2024 11:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166360 ФПД: 273366075061592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166360&fm=273366075061592&tin=02508201610067®Number=0000000000091764&sum=80000 [11:37:41]StoreToDocumentArchive [11:37:41]shift 536 fd 166360 [11:37:41]save to /storage/0536/doc_00166360 [11:37:41]save last doc name /storage/0536/doc_00166360 to /storage/kkm_last_doc_name [11:37:41]save OK [11:37:41]Clear old archive folders... [11:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:37:41]tlvbuf is 009AE230 [11:37:41]SAM_PROTO_ClearQueue [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 09 00 00 [11:37:41]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_ClearQueue done [11:37:41]KKMCreateOFDPacket [11:37:41]OFDProtocolAddRootSTLVToBuf [11:37:41]FM_MakeSignedData [11:37:41]FM_MakeSignedData [11:37:41]SAM_PROTO_SignData [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 01 02 [11:37:41]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]wFMCommunicate request_size=255 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 84 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 89 02 00 35 04 06 00 F8 9F FF CC [11:37:41]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 84 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 89 02 00 35 04 06 00 F8 9F FF CC 00 00 C5 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]wFMCommunicate request_size=7 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 02 02 02 35 58 [11:37:41]Write to MH i2c: E2 0A 00 AD 00 80 0D 02 02 02 00 35 58 00 00 B8 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [11:37:41]RAPDU: 90 00 [11:37:41]wFMCommunicate OK [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 0D 03 02 [11:37:41]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 0B 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 0B 00 AE 00 00 DC EC 8B 02 E9 9A 2B 01 90 00 2E [11:37:41]RAPDU: DC EC 8B 02 E9 9A 2B 01 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_SignData done [11:37:41]FM_MakeSignedData done [11:37:41]CreateOFDProtocolMessage [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 11 00 00 [11:37:41]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [11:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:42]wFMCommunicate OK [11:37:42]CreateOFDProtocolMessage done [11:37:42]OFDSenderStorePacket 166360 [11:37:42]StoreOFDPacket docnum=166360 [11:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 93 42 04 01 95 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 84 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 89 02 00 35 04 06 00 F8 9F FF CC 35 58 DC EC 8B 02 E9 9A 2B 01 [11:37:42]CheckFolder [11:37:42]dirname=/storage/ofd_packets [11:37:42]CheckFolder done [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00166360 [11:37:42]NVStorageSaveData ofd_packets/00166360 [11:37:42]File name is /storage/ofd_packets/00166360 [11:37:42]Write 298 bytes [11:37:42]NVStorageSaveData done [11:37:42]OFDSenderStorePacket done [11:37:42]KKMCreateOFDPacket done [11:37:42]NVStorageSaveData kkm_last_timestamp [11:37:42]File name is /storage/kkm_last_timestamp [11:37:42]Write 4 bytes [11:37:42]NVStorageSaveData done [11:37:42]ExternCall_PrintAddStr [11:37:42]wPrintStart [11:37:42]Write to MH i2c: 01 00 00 B0 00 B0 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [11:37:42]RasterBufferAndPrint [11:37:42]line Счет N : (1)220938 [11:37:42]line ИНН: 02508201610067 [11:37:42]line Контрольно-Кассовый Чек [11:37:42]line ПРОДАЖА [11:37:42]line ТРК (МРК, ГНК) : 11 [11:37:42]line Товар: 2710194210 [11:37:42]line ДТ-К-5 [11:37:42]line 10.500 * 76.20 [11:37:42]line = 800.10 [11:37:42]line НДС 12% НСП 1% [11:37:42]line > о реализуемом товаре [11:37:42]line ОКРУГЛЕНИЕ: -0.10 [11:37:42]line ИТОГО: 800.00 [11:37:42]line Внесено: 800.00 [11:37:42]line СДАЧА: 0.00 [11:37:42]line НСП 1% : 7.08 [11:37:42]line НДС 12% : 84.97 [11:37:42]line Наличными: 800.00 [11:37:42]line Безнал.: 0.00 [11:37:42]line Место: АЗС № 161 "Партнер Нефть" [11:37:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:37:42]line СНО: Общий режим [11:37:42]line Чек 115 22.10.2024 11:37 [11:37:42]line Смена: 536 ФФД: 1.0 [11:37:42]line ЗНМ: 0300000104 [11:37:42]line РНМ: 0000000000091764 [11:37:42]line Версия ККМ: 001 [11:37:42]line ФМ: 0000000000871759 [11:37:42]line ФД: 166360 [11:37:42]line ФПД: 273366075061592 [11:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166360&fm=273366075061592&tin=02508201610067®Number=0000000000091764&sum=80000 [11:37:42]written 0, free lines is 4095 [11:37:42]OFD Sender: Processing packet 166360 [packets to send 48, broken 47] [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00166360 [11:37:42]OFD Sender: To server: pG, [11:37:42]CommunicateWithHost lk.salyk.kg:30040 [11:37:42]ConnectInit lk.salyk.kg [11:37:42]Connected sock=10 [11: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 31 37 35 39 0C 01 00 00 93 42 04 01 95 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 84 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 89 02 00 35 04 06 00 F8 9F FF CC 35 58 DC EC 8B 02 E9 9A 2B 01 [11:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 61 47 00 4C FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 89 02 00 F4 03 04 00 EF 34 17 67 B6 04 01 00 00 BC 42 37 9D 22 55 EA C8 [11:37:42]CommunicateWithHost err = 0 [11:37:42]CheckOFDResponse [11:37:42]1017 (14) - 77093643461234 [11:37:42]1041 (16) - 0000000000871759 [11:37:42]1040 (4) - 166360 [11:37:42]1012 (4) - 22.10.2024 05:15 [11:37:42]1206 (1) - 0 [11:37:42]OFD Sender: Remove packet 166360 [11:37:42]ProducePacketName [11:37:42]name=ofd_packets/00166360 [11:37:42]NVStorageDeleteData [11:37:42]Write to MH i2c: 01 00 00 DB 00 DB [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 D1 0C BF [11:37:42]RasterBufferAndPrint [11:37:42]line [11:37:42]line [11:37:42]line [11:37:42]line [11:37:42]line [11:37:42]written 0, free lines is 3298 [11:37:42]MH_Cut [11:37:42]Write to MH i2c: D1 01 00 E2 00 01 B4 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: D1 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: D1 01 00 [11:37:42]MH_I2C_Read... [11:37:42]Read from MH i2c: D1 01 00 E2 00 00 B3 [11:37:42]Write to MH i2c: 01 00 00 E3 00 E3 [11:37:42]Write i2c OK [11:37:42]MH_I2C_Read... [11:37:42]OFD Sender: No OFD packet to send [11:37:43]*** Cut start [11:37:43]*** Partial cut [11:37:43]*** CUTSNS_PIN = 1 [11:37:43]*** CUTSNS_PIN = 0 [11:37:43]*** Brake cut motor [11:37:43]Read from MH i2c: 01 [11:37:43]MH_I2C_Read... [11:37:43]*** Stop cut motor [11:37:43]*** Cut end [11:37:43]Read from MH i2c: 01 07 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [11:37:43]process_action close_receipt done [11:37:43]requested_data is exist [11:37:43]produce_requested_data [11:37:43]requested_item fm.sn is exist - process it [11:37:43]wFMCommunicate request_size=4 [11:37:43]MH_SAM_APDU [11:37:43]CAPDU: 80 11 00 00 [11:37:43]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:43]Read from MH i2c: E2 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: E2 17 00 [11:37:43]MH_I2C_Read... [11:37:43]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [11:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:43]wFMCommunicate OK [11:37:43]requested_item fd.num is exist - process it [11:37:43]SAM_PROTO_GetFieldsCounters [11:37:43]wFMCommunicate request_size=4 [11:37:43]MH_SAM_APDU [11:37:43]CAPDU: 80 13 00 00 [11:37:43]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [11:37:43]Write i2c OK [11:37:43]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetFieldsCounters done [11:37:44]requested_item shift.num is exist - process it [11:37:44]requested_item shift.opened is exist - process it [11:37:44]req_shift_opened [11:37:44]FM_GetShiftState [11:37:44]SAM_PROTO_GetShiftState [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 01 00 [11:37:44]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B6 [11:37:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetShiftState done [11:37:44]FM_GetShiftState done [11:37:44]req_shift_opened done [11:37:44]requested_item shift.open_date is exist - process it [11:37:44]req_shift_open_date [11:37:44]req_shift_open_date done [11:37:44]produce_requested_data done [11:37:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166360,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:37:44]process_action_free close_receipt [11:37:44]json_value_free [11:37:44]json_value_free done [11:37:44]process_json_proto returns [11:37:44]Send response to host [11:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166360,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:37:44]free response buf [11:37:44]execute_script done [11:37:44]execute_script returns [11:37:44]free content buf [11:37:44]Sock 6.Close socket [11:37:44]Sock 6.Thread stoped [11:37:47]OFD Sender: No OFD packet to send [11:37:51]accept exits with 9 [11:37:51]New connection [11:37:51]New thread 3067493732 created [11:37:51]Thread 3067637092 joined [11:37:51]Waiting for new connection... [11:37:51] Sock 9.Parse request [11:37:51]Sock 9.Check first char [11:37:51]Sock 9.First char is OK [11:37:51]request: POST /json_proto HTTP/1.0 [11:37:51]Method: POST [11:37:51]URL: /json_proto [11:37:51]Method is POST - this is cgi request [11:37:51]url: /json_proto [11:37:51]query_string will be loaded in cgi processing [11:37:51]execute_cgi json_proto POST (null) [11:37:51]execute_cgi path=json_proto method=POST [11:37:51]POST find Content-Length [11:37:51]Host: 172.17.53.195:8080 [11:37:51]Content-Length: 677 [11:37:51]Content-Type: application/json [11:37:51] [11:37:51]POST finish read [11:37:51]Found Content-Length = 677 [11:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:51]execute_script... [11:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:51]POST & json_proto [11:37:51]process_json_proto [11:37:51]json parsed OK: [11:37:51]protocol is kg_v1.0 [11:37:51]action value=close_receipt [11:37:51]process_action close_receipt [11:37:51]cmd_close_receipt [11:37:51]MH_GetDate [11:37:51]Write to MH i2c: F0 00 00 E7 00 D6 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: F0 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: F0 09 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: F0 09 00 E7 00 00 8F 8E 17 67 21 48 4A 65 92 [11:37:51]GetLastDocTimeStamp 1729597060 [11:37:51]current date 1729597071 [11:37:51]FM_GetShiftState [11:37:51]SAM_PROTO_GetShiftState [11:37:51]wFMCommunicate request_size=4 [11:37:51]MH_SAM_APDU [11:37:51]CAPDU: 80 13 01 00 [11:37:51]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:51]Read from MH i2c: E2 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 0E 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B8 [11:37:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:51]wFMCommunicate OK [11:37:51]SAM_PROTO_GetShiftState done [11:37:51]FM_GetShiftState done [11:37:51]opened in 1729557463 [11:37:51]opened+sec_in_day 1729643863 [11:37:51]quantity*price = 50041 [11:37:51]sum+1 = 50042 [11:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 116 22.10.2024 11:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166361 ФПД: 170670612906323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166361&fm=170670612906323&tin=02508201610067®Number=0000000000091764&sum=50000 [11:37:52]StoreToDocumentArchive [11:37:52]shift 536 fd 166361 [11:37:52]save to /storage/0536/doc_00166361 [11:37:52]save last doc name /storage/0536/doc_00166361 to /storage/kkm_last_doc_name [11:37:52]save OK [11:37:52]Clear old archive folders... [11:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:52]tlvbuf is 009B9D20 [11:37:52]SAM_PROTO_ClearQueue [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 09 00 00 [11:37:52]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [11:37:52]RAPDU: 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_ClearQueue done [11:37:52]KKMCreateOFDPacket [11:37:52]OFDProtocolAddRootSTLVToBuf [11:37:52]FM_MakeSignedData [11:37:52]FM_MakeSignedData [11:37:52]SAM_PROTO_SignData [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 0D 01 02 [11:37:52]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [11:37:52]RAPDU: 90 00 [11:37:52]wFMCommunicate OK [11:37:52]wFMCommunicate request_size=255 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 8F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 89 02 00 35 04 06 00 9B [11:37:52]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 8F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 89 02 00 35 04 06 00 9B 00 00 2D [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [11:37:52]RAPDU: 90 00 [11:37:52]wFMCommunicate OK [11:37:52]wFMCommunicate request_size=10 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 0D 02 02 05 39 59 41 81 53 [11:37:52]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 39 59 41 81 53 00 00 23 [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [11:37:52]RAPDU: 90 00 [11:37:52]wFMCommunicate OK [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 0D 03 02 [11:37:52]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0B 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0B 00 F9 00 00 71 0B 56 AF 4A 55 07 94 90 00 30 [11:37:52]RAPDU: 71 0B 56 AF 4A 55 07 94 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_SignData done [11:37:52]FM_MakeSignedData done [11:37:52]CreateOFDProtocolMessage [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 11 00 00 [11:37:52]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:37:52]OFD Sender: No OFD packet to send [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 17 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [11:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:52]wFMCommunicate OK [11:37:52]CreateOFDProtocolMessage done [11:37:52]OFDSenderStorePacket 166361 [11:37:52]StoreOFDPacket docnum=166361 [11:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 E5 07 01 9A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 8F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 89 02 00 35 04 06 00 9B 39 59 41 81 53 71 0B 56 AF 4A 55 07 94 [11:37:52]CheckFolder [11:37:52]dirname=/storage/ofd_packets [11:37:52]CheckFolder done [11:37:53]ProducePacketName [11:37:53]name=ofd_packets/00166361 [11:37:53]NVStorageSaveData ofd_packets/00166361 [11:37:53]File name is /storage/ofd_packets/00166361 [11:37:53]Write 301 bytes [11:37:53]NVStorageSaveData done [11:37:53]OFDSenderStorePacket done [11:37:53]KKMCreateOFDPacket done [11:37:53]NVStorageSaveData kkm_last_timestamp [11:37:53]File name is /storage/kkm_last_timestamp [11:37:53]Write 4 bytes [11:37:53]NVStorageSaveData done [11:37:53]ExternCall_PrintAddStr [11:37:53]wPrintStart [11:37:53]Write to MH i2c: 01 00 00 FB 00 FB [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 07 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [11:37:53]RasterBufferAndPrint [11:37:53]line Счет N : (1)220939 [11:37:53]line ИНН: 02508201610067 [11:37:53]line Контрольно-Кассовый Чек [11:37:53]line ПРОДАЖА [11:37:53]line ТРК (МРК, ГНК) : 33 [11:37:53]line Товар: 2710124130 [11:37:53]line Аи-92-К-5 [11:37:53]line 7.480 * 66.90 [11:37:53]line = 500.41 [11:37:53]line НДС 12% НСП 1% [11:37:53]line > о реализуемом товаре [11:37:53]line ОКРУГЛЕНИЕ: -0.41 [11:37:53]line ИТОГО: 500.00 [11:37:53]line Внесено: 500.00 [11:37:53]line СДАЧА: 0.00 [11:37:53]line НСП 1% : 4.43 [11:37:53]line НДС 12% : 53.14 [11:37:53]line Наличными: 500.00 [11:37:53]line Безнал.: 0.00 [11:37:53]line Место: АЗС № 161 "Партнер Нефть" [11:37:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:37:53]line СНО: Общий режим [11:37:53]line Чек 116 22.10.2024 11:37 [11:37:53]line Смена: 536 ФФД: 1.0 [11:37:53]line ЗНМ: 0300000104 [11:37:53]line РНМ: 0000000000091764 [11:37:53]line Версия ККМ: 001 [11:37:53]line ФМ: 0000000000871759 [11:37:53]line ФД: 166361 [11:37:53]line ФПД: 170670612906323 [11:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166361&fm=170670612906323&tin=02508201610067®Number=0000000000091764&sum=50000 [11:37:53]written 0, free lines is 4095 [11:37:53]OFD Sender: Processing packet 166361 [packets to send 48, broken 47] [11:37:53]ProducePacketName [11:37:53]name=ofd_packets/00166361 [11:37:53]OFD Sender: To server: pG, [11:37:53]CommunicateWithHost lk.salyk.kg:30040 [11:37:53]ConnectInit lk.salyk.kg [11:37:53]Connected sock=7 [11:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 E5 07 01 9A E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 8F 8E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 89 02 00 35 04 06 00 9B 39 59 41 81 53 71 0B 56 AF 4A 55 07 94 [11:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 5E 47 00 E6 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 89 02 00 F4 03 04 00 FA 34 17 67 B6 04 01 00 00 D9 6D E7 3F EB 60 09 95 [11:37:53]CommunicateWithHost err = 0 [11:37:53]CheckOFDResponse [11:37:53]1017 (14) - 77093643461234 [11:37:53]1041 (16) - 0000000000871759 [11:37:53]1040 (4) - 166361 [11:37:53]1012 (4) - 22.10.2024 05:15 [11:37:53]1206 (1) - 0 [11:37:53]OFD Sender: Remove packet 166361 [11:37:53]ProducePacketName [11:37:53]name=ofd_packets/00166361 [11:37:53]NVStorageDeleteData [11:37:53]Write to MH i2c: 01 00 00 26 01 27 [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 07 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 D5 0C 0F [11:37:53]RasterBufferAndPrint [11:37:53]line [11:37:53]line [11:37:53]line [11:37:53]line [11:37:53]line [11:37:53]written 0, free lines is 3302 [11:37:53]MH_Cut [11:37:53]Write to MH i2c: D1 01 00 2D 01 01 00 [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: D1 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: D1 01 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: D1 01 00 2D 01 00 FF [11:37:53]Write to MH i2c: 01 00 00 2E 01 2F [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]OFD Sender: No OFD packet to send [11:37:54]*** Cut start [11:37:54]*** Partial cut [11:37:54]*** CUTSNS_PIN = 1 [11:37:54]*** CUTSNS_PIN = 0 [11:37:54]*** Brake cut motor [11:37:54]Read from MH i2c: 01 [11:37:54]MH_I2C_Read... [11:37:54]*** Stop cut motor [11:37:54]*** Cut end [11:37:54]Read from MH i2c: 01 07 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [11:37:54]process_action close_receipt done [11:37:54]requested_data is exist [11:37:54]produce_requested_data [11:37:54]requested_item fm.sn is exist - process it [11:37:54]wFMCommunicate request_size=4 [11:37:54]MH_SAM_APDU [11:37:54]CAPDU: 80 11 00 00 [11:37:54]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [11:37:54]Write i2c OK [11:37:54]MH_I2C_Read... [11:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:54]Read from MH i2c: E2 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 17 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [11:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:37:54]wFMCommunicate OK [11:37:54]requested_item fd.num is exist - process it [11:37:54]SAM_PROTO_GetFieldsCounters [11:37:54]wFMCommunicate request_size=4 [11:37:54]MH_SAM_APDU [11:37:54]CAPDU: 80 13 00 00 [11:37:54]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [11:37:54]Write i2c OK [11:37:54]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 62 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:55]wFMCommunicate OK [11:37:55]SAM_PROTO_GetFieldsCounters done [11:37:55]requested_item shift.num is exist - process it [11:37:55]requested_item shift.opened is exist - process it [11:37:55]req_shift_opened [11:37:55]FM_GetShiftState [11:37:55]SAM_PROTO_GetShiftState [11:37:55]wFMCommunicate request_size=4 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 13 01 00 [11:37:55]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 0E 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 02 [11:37:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:37:55]wFMCommunicate OK [11:37:55]SAM_PROTO_GetShiftState done [11:37:55]FM_GetShiftState done [11:37:55]req_shift_opened done [11:37:55]requested_item shift.open_date is exist - process it [11:37:55]req_shift_open_date [11:37:55]req_shift_open_date done [11:37:55]produce_requested_data done [11:37:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166361,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:37:55]process_action_free close_receipt [11:37:55]json_value_free [11:37:55]json_value_free done [11:37:55]process_json_proto returns [11:37:55]Send response to host [11:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166361,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:37:55]free response buf [11:37:55]execute_script done [11:37:55]execute_script returns [11:37:55]free content buf [11:37:55]Sock 9.Close socket [11:37:55]Sock 9.Thread stoped [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:36]accept exits with 10 [11:43:36]New connection [11:43:36]New thread 3067637092 created [11:43:36]Thread 3067493732 joined [11:43:36]Waiting for new connection... [11:43:36] Sock 10.Parse request [11:43:36]Sock 10.Check first char [11:43:36]Sock 10.First char is OK [11:43:36]request: POST /json_proto HTTP/1.0 [11:43:36]Method: POST [11:43:36]URL: /json_proto [11:43:36]Method is POST - this is cgi request [11:43:36]url: /json_proto [11:43:36]query_string will be loaded in cgi processing [11:43:36]execute_cgi json_proto POST (null) [11:43:36]execute_cgi path=json_proto method=POST [11:43:36]POST find Content-Length [11:43:36]Host: 172.17.53.195:8080 [11:43:36]Content-Length: 800 [11:43:36]Content-Type: application/json [11:43:36] [11:43:36]POST finish read [11:43:36]Found Content-Length = 800 [11:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 540.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:36]execute_script... [11:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 540.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:36]POST & json_proto [11:43:36]process_json_proto [11:43:36]json parsed OK: [11:43:36]protocol is kg_v1.0 [11:43:36]action value=close_receipt [11:43:36]process_action close_receipt [11:43:36]cmd_close_receipt [11:43:36]MH_GetDate [11:43:36]Write to MH i2c: F0 00 00 32 01 22 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 09 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 09 00 32 01 00 E8 8F 17 67 21 48 4A 65 38 [11:43:36]GetLastDocTimeStamp 1729597071 [11:43:36]current date 1729597416 [11:43:36]FM_GetShiftState [11:43:36]SAM_PROTO_GetShiftState [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 13 01 00 [11:43:36]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0E 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 04 [11:43:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:43:36]wFMCommunicate OK [11:43:36]SAM_PROTO_GetShiftState done [11:43:36]FM_GetShiftState done [11:43:36]opened in 1729557463 [11:43:36]opened+sec_in_day 1729643863 [11:43:36]quantity*price = 54017 [11:43:36]sum+1 = 54019 [11:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 540.18 НСП 1% : 4.78 НДС 12% : 57.36 Наличными: 0.00 Безнал.: 540.18 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 117 22.10.2024 11:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871759 ФД: 166362 ФПД: 200132950783511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166362&fm=200132950783511&tin=02508201610067®Number=0000000000091764&sum=54018 [11:43:37]StoreToDocumentArchive [11:43:37]shift 536 fd 166362 [11:43:37]save to /storage/0536/doc_00166362 [11:43:37]save last doc name /storage/0536/doc_00166362 to /storage/kkm_last_doc_name [11:43:37]save OK [11:43:37]Clear old archive folders... [11:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:37]tlvbuf is 009B1950 [11:43:37]SAM_PROTO_ClearQueue [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 09 00 00 [11:43:37]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [11:43:37]RAPDU: 90 00 [11:43:37]wFMCommunicate OK [11:43:37]SAM_PROTO_ClearQueue done [11:43:37]KKMCreateOFDPacket [11:43:37]OFDProtocolAddRootSTLVToBuf [11:43:37]FM_MakeSignedData [11:43:37]FM_MakeSignedData [11:43:37]SAM_PROTO_SignData [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 0D 01 02 [11:43:37]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=255 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 8F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 89 02 00 35 04 06 00 B6 [11:43:38]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 8F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 89 02 00 35 04 06 00 B6 00 00 F0 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=10 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 02 02 05 05 15 70 76 17 [11:43:38]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 05 15 70 76 17 00 00 DF [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 03 02 [11:43:38]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 0B 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 0B 00 44 01 00 53 AC 4D 4D 47 B9 96 44 90 00 34 [11:43:38]RAPDU: 53 AC 4D 4D 47 B9 96 44 90 00 [11:43:38]wFMCommunicate OK [11:43:38]SAM_PROTO_SignData done [11:43:38]FM_MakeSignedData done [11:43:38]CreateOFDProtocolMessage [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 11 00 00 [11:43:38]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [11:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:38]wFMCommunicate OK [11:43:38]CreateOFDProtocolMessage done [11:43:38]OFDSenderStorePacket 166362 [11:43:38]StoreOFDPacket docnum=166362 [11:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 A3 07 01 3B 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 8F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 89 02 00 35 04 06 00 B6 05 15 70 76 17 53 AC 4D 4D 47 B9 96 44 [11:43:38]CheckFolder [11:43:38]dirname=/storage/ofd_packets [11:43:38]CheckFolder done [11:43:38]ProducePacketName [11:43:38]name=ofd_packets/00166362 [11:43:38]NVStorageSaveData ofd_packets/00166362 [11:43:38]File name is /storage/ofd_packets/00166362 [11:43:38]Write 301 bytes [11:43:38]NVStorageSaveData done [11:43:38]OFDSenderStorePacket done [11:43:38]KKMCreateOFDPacket done [11:43:38]NVStorageSaveData kkm_last_timestamp [11:43:38]File name is /storage/kkm_last_timestamp [11:43:38]Write 4 bytes [11:43:38]NVStorageSaveData done [11:43:38]ExternCall_PrintAddStr [11:43:38]wPrintStart [11:43:38]Write to MH i2c: 01 00 00 46 01 47 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [11:43:38]RasterBufferAndPrint [11:43:38]line Счет N : (1)220940 [11:43:38]line ИНН: 02508201610067 [11:43:38]line Контрольно-Кассовый Чек [11:43:38]line ПРОДАЖА [11:43:38]line ТРК (МРК, ГНК) : 24 [11:43:38]line Товар: 2710124500 [11:43:38]line Аи-95-К-5 [11:43:38]line 7.280 * 74.20 [11:43:38]line = 540.18 [11:43:38]line НДС 12% НСП 1% [11:43:38]line > о реализуемом товаре [11:43:38]line ИТОГО: 540.18 [11:43:38]line НСП 1% : 4.78 [11:43:38]line НДС 12% : 57.36 [11:43:38]line Наличными: 0.00 [11:43:38]line Безнал.: 540.18 [11:43:38]line Место: АЗС № 161 "Партнер Нефть" [11:43:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:43:38]line СНО: Общий режим [11:43:38]line Чек 117 22.10.2024 11:43 [11:43:38]line Смена: 536 ФФД: 1.0 [11:43:38]line ЗНМ: 0300000104 [11:43:38]line РНМ: 0000000000091764 [11:43:38]line Версия ККМ: 001 [11:43:38]line Платежная система: O! деньги [11:43:38]line ФМ: 0000000000871759 [11:43:38]line ФД: 166362 [11:43:38]line ФПД: 200132950783511 [11:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114337&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166362&fm=200132950783511&tin=02508201610067®Number=0000000000091764&sum=54018 [11:43:38]written 0, free lines is 4095 [11:43:38]OFD Sender: Processing packet 166362 [packets to send 48, broken 47] [11:43:38]ProducePacketName [11:43:38]name=ofd_packets/00166362 [11:43:38]OFD Sender: To server: pG, [11:43:38]CommunicateWithHost lk.salyk.kg:30040 [11:43:38]ConnectInit lk.salyk.kg [11:43:38]Connected sock=9 [11:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 A3 07 01 3B 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 8F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 89 02 00 35 04 06 00 B6 05 15 70 76 17 53 AC 4D 4D 47 B9 96 44 [11:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F1 45 47 00 9D DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 89 02 00 F4 03 04 00 54 36 17 67 B6 04 01 00 00 62 BD C0 5F 42 CA 1D AC [11:43:39]CommunicateWithHost err = 0 [11:43:39]CheckOFDResponse [11:43:39]1017 (14) - 77093643461234 [11:43:39]1041 (16) - 0000000000871759 [11:43:39]1040 (4) - 166362 [11:43:39]1012 (4) - 22.10.2024 05:21 [11:43:39]1206 (1) - 0 [11:43:39]OFD Sender: Remove packet 166362 [11:43:39]ProducePacketName [11:43:39]name=ofd_packets/00166362 [11:43:39]NVStorageDeleteData [11:43:39]Write to MH i2c: 01 00 00 70 01 71 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 CD 0C 51 [11:43:39]RasterBufferAndPrint [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]written 0, free lines is 3283 [11:43:39]MH_Cut [11:43:39]Write to MH i2c: D1 01 00 77 01 01 4A [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 01 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 01 00 77 01 00 49 [11:43:39]Write to MH i2c: 01 00 00 78 01 79 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]OFD Sender: No OFD packet to send [11:43:40]*** Cut start [11:43:40]*** Partial cut [11:43:40]*** CUTSNS_PIN = 1 [11:43:40]*** CUTSNS_PIN = 0 [11:43:40]*** Brake cut motor [11:43:40]Read from MH i2c: 01 [11:43:40]MH_I2C_Read... [11:43:40]*** Stop cut motor [11:43:40]*** Cut end [11:43:40]Read from MH i2c: 01 07 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [11:43:40]process_action close_receipt done [11:43:40]requested_data is exist [11:43:40]produce_requested_data [11:43:40]requested_item fm.sn is exist - process it [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 11 00 00 [11:43:40]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [11:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:43:40]wFMCommunicate OK [11:43:40]requested_item fd.num is exist - process it [11:43:40]SAM_PROTO_GetFieldsCounters [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 00 00 [11:43:40]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [11:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetFieldsCounters done [11:43:40]requested_item shift.num is exist - process it [11:43:40]requested_item shift.opened is exist - process it [11:43:40]req_shift_opened [11:43:40]FM_GetShiftState [11:43:40]SAM_PROTO_GetShiftState [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 01 00 [11:43:40]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4C [11:43:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetShiftState done [11:43:40]FM_GetShiftState done [11:43:40]req_shift_opened done [11:43:40]requested_item shift.open_date is exist - process it [11:43:40]req_shift_open_date [11:43:40]req_shift_open_date done [11:43:40]produce_requested_data done [11:43:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166362,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:43:40]process_action_free close_receipt [11:43:40]json_value_free [11:43:40]json_value_free done [11:43:40]process_json_proto returns [11:43:40]Send response to host [11:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166362,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:43:40]free response buf [11:43:40]execute_script done [11:43:40]execute_script returns [11:43:40]free content buf [11:43:40]Sock 10.Close socket [11:43:40]Sock 10.Thread stoped [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]accept exits with 7 [11:44:04]New connection [11:44:04]New thread 3067493732 created [11:44:04]Thread 3067637092 joined [11:44:04]Waiting for new connection... [11:44:04] Sock 7.Parse request [11:44:04]Sock 7.Check first char [11:44:04]Sock 7.First char is OK [11:44:04]request: POST /json_proto HTTP/1.0 [11:44:04]Method: POST [11:44:04]URL: /json_proto [11:44:04]Method is POST - this is cgi request [11:44:04]url: /json_proto [11:44:04]query_string will be loaded in cgi processing [11:44:04]execute_cgi json_proto POST (null) [11:44:04]execute_cgi path=json_proto method=POST [11:44:04]POST find Content-Length [11:44:04]Host: 172.17.53.195:8080 [11:44:04]Content-Length: 677 [11:44:04]Content-Type: application/json [11:44:04] [11:44:04]POST finish read [11:44:04]Found Content-Length = 677 [11:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.430, "sum" : 699.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]execute_script... [11:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.430, "sum" : 699.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]POST & json_proto [11:44:04]process_json_proto [11:44:04]json parsed OK: [11:44:04]protocol is kg_v1.0 [11:44:04]action value=close_receipt [11:44:04]process_action close_receipt [11:44:04]cmd_close_receipt [11:44:04]MH_GetDate [11:44:04]Write to MH i2c: F0 00 00 7C 01 6C [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 7C 01 00 04 90 17 67 21 48 4A 65 9F [11:44:04]GetLastDocTimeStamp 1729597417 [11:44:04]current date 1729597444 [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4E [11:44:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetShiftState done [11:44:04]FM_GetShiftState done [11:44:04]opened in 1729557463 [11:44:04]opened+sec_in_day 1729643863 [11:44:04]quantity*price = 69970 [11:44:04]sum+1 = 69972 [11:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 699.00 Внесено: 700.00 СДАЧА: 1.00 НСП 1% : 6.19 НДС 12% : 74.30 Наличными: 699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 118 22.10.2024 11:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166363 ФПД: 2162757134845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166363&fm=2162757134845&tin=02508201610067®Number=0000000000091764&sum=69900 [11:44:05]StoreToDocumentArchive [11:44:05]shift 536 fd 166363 [11:44:05]save to /storage/0536/doc_00166363 [11:44:05]save last doc name /storage/0536/doc_00166363 to /storage/kkm_last_doc_name [11:44:05]save OK [11:44:05]Clear old archive folders... [11:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:05]tlvbuf is 009B3560 [11:44:05]SAM_PROTO_ClearQueue [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 09 00 00 [11:44:05]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_ClearQueue done [11:44:05]KKMCreateOFDPacket [11:44:05]OFDProtocolAddRootSTLVToBuf [11:44:05]FM_MakeSignedData [11:44:05]FM_MakeSignedData [11:44:05]SAM_PROTO_SignData [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 01 02 [11:44:05]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=255 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 04 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 89 02 00 35 04 06 00 01 [11:44:05]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 04 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 89 02 00 35 04 06 00 01 00 00 66 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=10 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 05 F7 8E 5E E9 FD [11:44:06]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 F7 8E 5E E9 FD 00 00 DB [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 03 02 [11:44:06]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 8E 01 00 F2 C9 30 2F 58 DA 5A 5D 90 00 0E [11:44:06]RAPDU: F2 C9 30 2F 58 DA 5A 5D 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_SignData done [11:44:06]FM_MakeSignedData done [11:44:06]CreateOFDProtocolMessage [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 166363 [11:44:06]StoreOFDPacket docnum=166363 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 35 07 01 29 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 04 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 89 02 00 35 04 06 00 01 F7 8E 5E E9 FD F2 C9 30 2F 58 DA 5A 5D [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00166363 [11:44:06]NVStorageSaveData ofd_packets/00166363 [11:44:06]File name is /storage/ofd_packets/00166363 [11:44:06]Write 301 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 90 01 91 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (1)220941 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line ТРК (МРК, ГНК) : 14 [11:44:06]line Товар: 2710124500 [11:44:06]line Аи-95-К-5 [11:44:06]line 9.430 * 74.20 [11:44:06]line = 699.71 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ОКРУГЛЕНИЕ: -0.71 [11:44:06]line ИТОГО: 699.00 [11:44:06]line Внесено: 700.00 [11:44:06]line СДАЧА: 1.00 [11:44:06]line НСП 1% : 6.19 [11:44:06]line НДС 12% : 74.30 [11:44:06]line Наличными: 699.00 [11:44:06]line Безнал.: 0.00 [11:44:06]line Место: АЗС № 161 "Партнер Нефть" [11:44:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 118 22.10.2024 11:44 [11:44:06]line Смена: 536 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000104 [11:44:06]line РНМ: 0000000000091764 [11:44:06]line Версия ККМ: 001 [11:44:06]line ФМ: 0000000000871759 [11:44:06]line ФД: 166363 [11:44:06]line ФПД: 2162757134845 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166363&fm=2162757134845&tin=02508201610067®Number=0000000000091764&sum=69900 [11:44:06]OFD Sender: Processing packet 166363 [packets to send 48, broken 47] [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00166363 [11:44:06]OFD Sender: To server: pG, [11:44:06]CommunicateWithHost lk.salyk.kg:30040 [11:44:06]ConnectInit lk.salyk.kg [11:44:06]written 0, free lines is 4095 [11:44:06]Connected sock=10 [11:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 35 07 01 29 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 53 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1D 00 00 00 00 07 04 06 00 0C 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 04 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 89 02 00 35 04 06 00 01 F7 8E 5E E9 FD F2 C9 30 2F 58 DA 5A 5D [11:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B 37 47 00 A2 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 89 02 00 F4 03 04 00 70 36 17 67 B6 04 01 00 00 99 40 8D F1 20 8C A7 18 [11:44:07]CommunicateWithHost err = 0 [11:44:07]CheckOFDResponse [11:44:07]1017 (14) - 77093643461234 [11:44:07]1041 (16) - 0000000000871759 [11:44:07]1040 (4) - 166363 [11:44:07]1012 (4) - 22.10.2024 05:21 [11:44:07]1206 (1) - 0 [11:44:07]OFD Sender: Remove packet 166363 [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00166363 [11:44:07]NVStorageDeleteData [11:44:07]Write to MH i2c: 01 00 00 BB 01 BC [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 D4 0C A3 [11:44:07]RasterBufferAndPrint [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]written 0, free lines is 3291 [11:44:07]MH_Cut [11:44:07]Write to MH i2c: D1 01 00 C2 01 01 95 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 C2 01 00 94 [11:44:07]Write to MH i2c: 01 00 00 C3 01 C4 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]OFD Sender: No OFD packet to send [11:44:07]*** Cut start [11:44:07]*** Partial cut [11:44:07]*** CUTSNS_PIN = 1 [11:44:08]*** CUTSNS_PIN = 0 [11:44:08]*** Brake cut motor [11:44:08]Read from MH i2c: 01 [11:44:08]MH_I2C_Read... [11:44:08]*** Stop cut motor [11:44:08]*** Cut end [11:44:08]Read from MH i2c: 01 07 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [11:44:08]process_action close_receipt done [11:44:08]requested_data is exist [11:44:08]produce_requested_data [11:44:08]requested_item fm.sn is exist - process it [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 11 00 00 [11:44:08]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [11:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:44:08]wFMCommunicate OK [11:44:08]requested_item fd.num is exist - process it [11:44:08]SAM_PROTO_GetFieldsCounters [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 00 00 [11:44:08]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetFieldsCounters done [11:44:08]requested_item shift.num is exist - process it [11:44:08]requested_item shift.opened is exist - process it [11:44:08]req_shift_opened [11:44:08]FM_GetShiftState [11:44:08]SAM_PROTO_GetShiftState [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 01 00 [11:44:08]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 97 [11:44:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetShiftState done [11:44:08]FM_GetShiftState done [11:44:08]req_shift_opened done [11:44:08]requested_item shift.open_date is exist - process it [11:44:08]req_shift_open_date [11:44:08]req_shift_open_date done [11:44:08]produce_requested_data done [11:44:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166363,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:44:08]process_action_free close_receipt [11:44:08]json_value_free [11:44:08]json_value_free done [11:44:08]process_json_proto returns [11:44:08]Send response to host [11:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166363,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:44:08]free response buf [11:44:08]execute_script done [11:44:08]execute_script returns [11:44:08]free content buf [11:44:08]Sock 7.Close socket [11:44:08]Sock 7.Thread stoped [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:38]accept exits with 9 [11:45:38]New connection [11:45:38]New thread 3067637092 created [11:45:38]Thread 3067493732 joined [11:45:38]Waiting for new connection... [11:45:38] Sock 9.Parse request [11:45:38]Sock 9.Check first char [11:45:38]Sock 9.First char is OK [11:45:38]request: POST /json_proto HTTP/1.0 [11:45:38]Method: POST [11:45:38]URL: /json_proto [11:45:38]Method is POST - this is cgi request [11:45:38]url: /json_proto [11:45:38]query_string will be loaded in cgi processing [11:45:38]execute_cgi json_proto POST (null) [11:45:38]execute_cgi path=json_proto method=POST [11:45:38]POST find Content-Length [11:45:38]Host: 172.17.53.195:8080 [11:45:38]Content-Length: 682 [11:45:38]Content-Type: application/json [11:45:38] [11:45:38]POST finish read [11:45:38]Found Content-Length = 682 [11:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:38]execute_script... [11:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:38]POST & json_proto [11:45:38]process_json_proto [11:45:38]json parsed OK: [11:45:38]protocol is kg_v1.0 [11:45:38]action value=close_receipt [11:45:38]process_action close_receipt [11:45:38]cmd_close_receipt [11:45:38]MH_GetDate [11:45:38]Write to MH i2c: F0 00 00 C7 01 B7 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 09 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: F0 09 00 C7 01 00 62 90 17 67 21 48 4A 65 48 [11:45:38]GetLastDocTimeStamp 1729597444 [11:45:38]current date 1729597538 [11:45:38]FM_GetShiftState [11:45:38]SAM_PROTO_GetShiftState [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 01 00 [11:45:38]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 99 [11:45:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetShiftState done [11:45:38]FM_GetShiftState done [11:45:38]opened in 1729557463 [11:45:38]opened+sec_in_day 1729643863 [11:45:38]quantity*price = 100021 [11:45:38]sum+1 = 100023 [11:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 119 22.10.2024 11:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166364 ФПД: 103285766891073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114538&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166364&fm=103285766891073&tin=02508201610067®Number=0000000000091764&sum=100000 [11:45:39]StoreToDocumentArchive [11:45:39]shift 536 fd 166364 [11:45:39]save to /storage/0536/doc_00166364 [11:45:39]save last doc name /storage/0536/doc_00166364 to /storage/kkm_last_doc_name [11:45:39]save OK [11:45:39]Clear old archive folders... [11:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:39]tlvbuf is 009AE180 [11:45:39]SAM_PROTO_ClearQueue [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 09 00 00 [11:45:39]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]SAM_PROTO_ClearQueue done [11:45:39]KKMCreateOFDPacket [11:45:39]OFDProtocolAddRootSTLVToBuf [11:45:39]FM_MakeSignedData [11:45:39]FM_MakeSignedData [11:45:39]SAM_PROTO_SignData [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 01 02 [11:45:39]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]wFMCommunicate request_size=255 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 89 02 00 35 04 06 00 5D [11:45:39]Write to MH i2c: E2 02 01 D7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 89 02 00 35 04 06 00 5D 00 00 C8 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]wFMCommunicate request_size=10 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 02 02 05 F0 17 72 26 41 [11:45:39]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 F0 17 72 26 41 00 00 3D [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [11:45:39]RAPDU: 90 00 [11:45:39]wFMCommunicate OK [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 0D 03 02 [11:45:39]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 D9 01 00 9E 65 B9 1F 49 37 89 01 90 00 3B [11:45:40]RAPDU: 9E 65 B9 1F 49 37 89 01 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_SignData done [11:45:40]FM_MakeSignedData done [11:45:40]CreateOFDProtocolMessage [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 11 00 00 [11:45:40]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [11:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:40]wFMCommunicate OK [11:45:40]CreateOFDProtocolMessage done [11:45:40]OFDSenderStorePacket 166364 [11:45:40]StoreOFDPacket docnum=166364 [11:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 BE 07 01 42 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 89 02 00 35 04 06 00 5D F0 17 72 26 41 9E 65 B9 1F 49 37 89 01 [11:45:40]CheckFolder [11:45:40]dirname=/storage/ofd_packets [11:45:40]CheckFolder done [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00166364 [11:45:40]NVStorageSaveData ofd_packets/00166364 [11:45:40]File name is /storage/ofd_packets/00166364 [11:45:40]Write 301 bytes [11:45:40]NVStorageSaveData done [11:45:40]OFDSenderStorePacket done [11:45:40]KKMCreateOFDPacket done [11:45:40]NVStorageSaveData kkm_last_timestamp [11:45:40]File name is /storage/kkm_last_timestamp [11:45:40]Write 4 bytes [11:45:40]NVStorageSaveData done [11:45:40]ExternCall_PrintAddStr [11:45:40]wPrintStart [11:45:40]Write to MH i2c: 01 00 00 DB 01 DC [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [11:45:40]RasterBufferAndPrint [11:45:40]line Счет N : (1)220942 [11:45:40]line ИНН: 02508201610067 [11:45:40]line Контрольно-Кассовый Чек [11:45:40]line ПРОДАЖА [11:45:40]line ТРК (МРК, ГНК) : 24 [11:45:40]line Товар: 2710124500 [11:45:40]line Аи-95-К-5 [11:45:40]line 13.480 * 74.20 [11:45:40]line = 1000.22 [11:45:40]line НДС 12% НСП 1% [11:45:40]line > о реализуемом товаре [11:45:40]line ОКРУГЛЕНИЕ: -0.22 [11:45:40]line ИТОГО: 1000.00 [11:45:40]line Внесено: 1000.00 [11:45:40]line СДАЧА: 0.00 [11:45:40]line НСП 1% : 8.85 [11:45:40]line НДС 12% : 106.22 [11:45:40]line Наличными: 1000.00 [11:45:40]line Безнал.: 0.00 [11:45:40]line Место: АЗС № 161 "Партнер Нефть" [11:45:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:45:40]line СНО: Общий режим [11:45:40]line Чек 119 22.10.2024 11:45 [11:45:40]line Смена: 536 ФФД: 1.0 [11:45:40]line ЗНМ: 0300000104 [11:45:40]line РНМ: 0000000000091764 [11:45:40]line Версия ККМ: 001 [11:45:40]line ФМ: 0000000000871759 [11:45:40]line ФД: 166364 [11:45:40]line ФПД: 103285766891073 [11:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114538&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166364&fm=103285766891073&tin=02508201610067®Number=0000000000091764&sum=100000 [11:45:40]written 0, free lines is 4095 [11:45:40]OFD Sender: Processing packet 166364 [packets to send 48, broken 47] [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00166364 [11:45:40]OFD Sender: To server: pG, [11:45:40]CommunicateWithHost lk.salyk.kg:30040 [11:45:40]ConnectInit lk.salyk.kg [11:45:40]Connected sock=10 [11:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 28 BE 07 01 42 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 62 90 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 89 02 00 35 04 06 00 5D F0 17 72 26 41 9E 65 B9 1F 49 37 89 01 [11:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 22 D1 47 00 DD 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 89 02 00 F4 03 04 00 CD 36 17 67 B6 04 01 00 00 4D 64 03 D8 EC 16 30 92 [11:45:40]CommunicateWithHost err = 0 [11:45:40]CheckOFDResponse [11:45:40]1017 (14) - 77093643461234 [11:45:40]1041 (16) - 0000000000871759 [11:45:40]1040 (4) - 166364 [11:45:40]1012 (4) - 22.10.2024 05:23 [11:45:40]1206 (1) - 0 [11:45:40]OFD Sender: Remove packet 166364 [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00166364 [11:45:40]NVStorageDeleteData [11:45:40]Write to MH i2c: 01 00 00 06 02 08 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 D3 0C EE [11:45:40]RasterBufferAndPrint [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]line [11:45:40]written 0, free lines is 3289 [11:45:40]MH_Cut [11:45:40]Write to MH i2c: D1 01 00 0D 02 01 E1 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 01 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: D1 01 00 0D 02 00 E0 [11:45:40]Write to MH i2c: 01 00 00 0E 02 10 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]OFD Sender: No OFD packet to send [11:45:41]*** Cut start [11:45:41]*** Partial cut [11:45:41]*** CUTSNS_PIN = 1 [11:45:41]*** CUTSNS_PIN = 0 [11:45:41]*** Brake cut motor [11:45:41]Read from MH i2c: 01 [11:45:41]MH_I2C_Read... [11:45:41]*** Stop cut motor [11:45:41]*** Cut end [11:45:41]Read from MH i2c: 01 07 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [11:45:41]process_action close_receipt done [11:45:41]requested_data is exist [11:45:41]produce_requested_data [11:45:41]requested_item fm.sn is exist - process it [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 11 00 00 [11:45:41]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [11:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:41]wFMCommunicate OK [11:45:41]requested_item fd.num is exist - process it [11:45:41]SAM_PROTO_GetFieldsCounters [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 13 00 00 [11:45:41]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetFieldsCounters done [11:45:42]requested_item shift.num is exist - process it [11:45:42]requested_item shift.opened is exist - process it [11:45:42]req_shift_opened [11:45:42]FM_GetShiftState [11:45:42]SAM_PROTO_GetShiftState [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 01 00 [11:45:42]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E3 [11:45:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetShiftState done [11:45:42]FM_GetShiftState done [11:45:42]req_shift_opened done [11:45:42]requested_item shift.open_date is exist - process it [11:45:42]req_shift_open_date [11:45:42]req_shift_open_date done [11:45:42]produce_requested_data done [11:45:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166364,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:45:42]process_action_free close_receipt [11:45:42]json_value_free [11:45:42]json_value_free done [11:45:42]process_json_proto returns [11:45:42]Send response to host [11:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166364,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:45:42]free response buf [11:45:42]execute_script done [11:45:42]execute_script returns [11:45:42]free content buf [11:45:42]Sock 9.Close socket [11:45:42]Sock 9.Thread stoped [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:35]accept exits with 7 [11:48:35]New connection [11:48:35]New thread 3067493732 created [11:48:35]Thread 3067637092 joined [11:48:35]Waiting for new connection... [11:48:35] Sock 7.Parse request [11:48:35]Sock 7.Check first char [11:48:35]Sock 7.First char is OK [11:48:35]request: POST /json_proto HTTP/1.0 [11:48:35]Method: POST [11:48:35]URL: /json_proto [11:48:35]Method is POST - this is cgi request [11:48:35]url: /json_proto [11:48:35]query_string will be loaded in cgi processing [11:48:35]execute_cgi json_proto POST (null) [11:48:35]execute_cgi path=json_proto method=POST [11:48:35]POST find Content-Length [11:48:35]Host: 172.17.53.195:8080 [11:48:35]Content-Length: 682 [11:48:35]Content-Type: application/json [11:48:35] [11:48:35]POST finish read [11:48:35]Found Content-Length = 682 [11:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.820, "sum" : 1025.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1025.00, "total" : 1025.00, "payments": [ { "type": 0, "sum" : 1025.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:35]execute_script... [11:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.820, "sum" : 1025.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1025.00, "total" : 1025.00, "payments": [ { "type": 0, "sum" : 1025.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:35]POST & json_proto [11:48:35]process_json_proto [11:48:35]json parsed OK: [11:48:35]protocol is kg_v1.0 [11:48:35]action value=close_receipt [11:48:35]process_action close_receipt [11:48:35]cmd_close_receipt [11:48:35]MH_GetDate [11:48:35]Write to MH i2c: F0 00 00 12 02 03 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 09 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: F0 09 00 12 02 00 13 91 17 67 21 48 4A 65 46 [11:48:35]GetLastDocTimeStamp 1729597538 [11:48:35]current date 1729597715 [11:48:35]FM_GetShiftState [11:48:35]SAM_PROTO_GetShiftState [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 13 01 00 [11:48:35]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E5 [11:48:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:48:35]wFMCommunicate OK [11:48:35]SAM_PROTO_GetShiftState done [11:48:35]FM_GetShiftState done [11:48:35]opened in 1729557463 [11:48:35]opened+sec_in_day 1729643863 [11:48:35]quantity*price = 102544 [11:48:35]sum+1 = 102545 [11:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1025.00 Внесено: 1025.00 СДАЧА: 0.00 НСП 1% : 9.07 НДС 12% : 108.90 Наличными: 1025.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 120 22.10.2024 11:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166365 ФПД: 197978457593239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166365&fm=197978457593239&tin=02508201610067®Number=0000000000091764&sum=102500 [11:48:36]StoreToDocumentArchive [11:48:36]shift 536 fd 166365 [11:48:36]save to /storage/0536/doc_00166365 [11:48:36]save last doc name /storage/0536/doc_00166365 to /storage/kkm_last_doc_name [11:48:36]save OK [11:48:36]Clear old archive folders... [11:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:36]tlvbuf is B6E4F2D0 [11:48:36]SAM_PROTO_ClearQueue [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 09 00 00 [11:48:36]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [11:48:36]RAPDU: 90 00 [11:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_ClearQueue done [11:48:36]KKMCreateOFDPacket [11:48:36]OFDProtocolAddRootSTLVToBuf [11:48:36]FM_MakeSignedData [11:48:36]FM_MakeSignedData [11:48:36]SAM_PROTO_SignData [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 0D 01 02 [11:48:36]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [11:48:36]RAPDU: 90 00 [11:48:36]wFMCommunicate OK [11:48:36]wFMCommunicate request_size=255 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 13 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 89 02 00 35 04 06 00 B4 [11:48:36]Write to MH i2c: E2 02 01 22 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 13 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 89 02 00 35 04 06 00 B4 00 00 17 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [11:48:37]RAPDU: 90 00 [11:48:37]wFMCommunicate OK [11:48:37]wFMCommunicate request_size=10 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 0D 02 02 05 0F 73 A3 55 97 [11:48:37]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 0F 73 A3 55 97 00 00 BA [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [11:48:37]RAPDU: 90 00 [11:48:37]wFMCommunicate OK [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 0D 03 02 [11:48:37]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0B 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0B 00 24 02 00 85 47 8B 8E E3 C9 C6 4A 90 00 43 [11:48:37]RAPDU: 85 47 8B 8E E3 C9 C6 4A 90 00 [11:48:37]wFMCommunicate OK [11:48:37]SAM_PROTO_SignData done [11:48:37]FM_MakeSignedData done [11:48:37]CreateOFDProtocolMessage [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 11 00 00 [11:48:37]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [11:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:37]wFMCommunicate OK [11:48:37]CreateOFDProtocolMessage done [11:48:37]OFDSenderStorePacket 166365 [11:48:37]StoreOFDPacket docnum=166365 [11:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 4B 07 01 56 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 13 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 89 02 00 35 04 06 00 B4 0F 73 A3 55 97 85 47 8B 8E E3 C9 C6 4A [11:48:37]CheckFolder [11:48:37]dirname=/storage/ofd_packets [11:48:37]CheckFolder done [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00166365 [11:48:37]NVStorageSaveData ofd_packets/00166365 [11:48:37]File name is /storage/ofd_packets/00166365 [11:48:37]Write 301 bytes [11:48:37]NVStorageSaveData done [11:48:37]OFDSenderStorePacket done [11:48:37]KKMCreateOFDPacket done [11:48:37]NVStorageSaveData kkm_last_timestamp [11:48:37]File name is /storage/kkm_last_timestamp [11:48:37]Write 4 bytes [11:48:37]NVStorageSaveData done [11:48:37]ExternCall_PrintAddStr [11:48:37]wPrintStart [11:48:37]Write to MH i2c: 01 00 00 26 02 28 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 07 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [11:48:37]RasterBufferAndPrint [11:48:37]line Счет N : (1)220943 [11:48:37]line ИНН: 02508201610067 [11:48:37]line Контрольно-Кассовый Чек [11:48:37]line ПРОДАЖА [11:48:37]line ТРК (МРК, ГНК) : 24 [11:48:37]line Товар: 2710124500 [11:48:37]line Аи-95-К-5 [11:48:37]line 13.820 * 74.20 [11:48:37]line = 1025.44 [11:48:37]line НДС 12% НСП 1% [11:48:37]line > о реализуемом товаре [11:48:37]line ОКРУГЛЕНИЕ: -0.44 [11:48:37]line ИТОГО: 1025.00 [11:48:37]line Внесено: 1025.00 [11:48:37]line СДАЧА: 0.00 [11:48:37]line НСП 1% : 9.07 [11:48:37]line НДС 12% : 108.90 [11:48:37]line Наличными: 1025.00 [11:48:37]line Безнал.: 0.00 [11:48:37]line Место: АЗС № 161 "Партнер Нефть" [11:48:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:48:37]line СНО: Общий режим [11:48:37]line Чек 120 22.10.2024 11:48 [11:48:37]line Смена: 536 ФФД: 1.0 [11:48:37]line ЗНМ: 0300000104 [11:48:37]line РНМ: 0000000000091764 [11:48:37]line Версия ККМ: 001 [11:48:37]line ФМ: 0000000000871759 [11:48:37]line ФД: 166365 [11:48:37]line ФПД: 197978457593239 [11:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166365&fm=197978457593239&tin=02508201610067®Number=0000000000091764&sum=102500 [11:48:37]OFD Sender: Processing packet 166365 [packets to send 48, broken 47] [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00166365 [11:48:37]OFD Sender: To server: pG, [11:48:37]CommunicateWithHost lk.salyk.kg:30040 [11:48:37]ConnectInit lk.salyk.kg [11:48:37]written 0, free lines is 4095 [11:48:37]Connected sock=10 [11:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 96 4B 07 01 56 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 13 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 89 02 00 35 04 06 00 B4 0F 73 A3 55 97 85 47 8B 8E E3 C9 C6 4A [11:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AB 80 47 00 4D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 89 02 00 F4 03 04 00 7F 37 17 67 B6 04 01 00 00 93 CE F2 D8 36 94 4A 3E [11:48:37]CommunicateWithHost err = 0 [11:48:37]CheckOFDResponse [11:48:37]1017 (14) - 77093643461234 [11:48:37]1041 (16) - 0000000000871759 [11:48:37]1040 (4) - 166365 [11:48:37]1012 (4) - 22.10.2024 05:26 [11:48:37]1206 (1) - 0 [11:48:37]OFD Sender: Remove packet 166365 [11:48:37]ProducePacketName [11:48:37]name=ofd_packets/00166365 [11:48:37]NVStorageDeleteData [11:48:38]Write to MH i2c: 01 00 00 51 02 53 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 C4 0C 2A [11:48:38]RasterBufferAndPrint [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]line [11:48:38]written 0, free lines is 3273 [11:48:38]MH_Cut [11:48:38]Write to MH i2c: D1 01 00 58 02 01 2C [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 01 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: D1 01 00 58 02 00 2B [11:48:38]Write to MH i2c: 01 00 00 59 02 5B [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]OFD Sender: No OFD packet to send [11:48:38]*** Cut start [11:48:38]*** Partial cut [11:48:38]*** CUTSNS_PIN = 1 [11:48:38]*** CUTSNS_PIN = 0 [11:48:39]*** Brake cut motor [11:48:39]Read from MH i2c: 01 [11:48:39]MH_I2C_Read... [11:48:39]*** Stop cut motor [11:48:39]*** Cut end [11:48:39]Read from MH i2c: 01 07 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [11:48:39]process_action close_receipt done [11:48:39]requested_data is exist [11:48:39]produce_requested_data [11:48:39]requested_item fm.sn is exist - process it [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 11 00 00 [11:48:39]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 17 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [11:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:39]wFMCommunicate OK [11:48:39]requested_item fd.num is exist - process it [11:48:39]SAM_PROTO_GetFieldsCounters [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 00 00 [11:48:39]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 62 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [11:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:39]wFMCommunicate OK [11:48:39]SAM_PROTO_GetFieldsCounters done [11:48:39]requested_item shift.num is exist - process it [11:48:39]requested_item shift.opened is exist - process it [11:48:39]req_shift_opened [11:48:39]FM_GetShiftState [11:48:39]SAM_PROTO_GetShiftState [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 01 00 [11:48:39]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:39]Read from MH i2c: E2 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2E [11:48:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:48:39]wFMCommunicate OK [11:48:39]SAM_PROTO_GetShiftState done [11:48:39]FM_GetShiftState done [11:48:39]req_shift_opened done [11:48:39]requested_item shift.open_date is exist - process it [11:48:39]req_shift_open_date [11:48:39]req_shift_open_date done [11:48:39]produce_requested_data done [11:48:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166365,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:48:39]process_action_free close_receipt [11:48:39]json_value_free [11:48:39]json_value_free done [11:48:39]process_json_proto returns [11:48:39]Send response to host [11:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166365,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:48:39]free response buf [11:48:39]execute_script done [11:48:39]execute_script returns [11:48:39]free content buf [11:48:39]Sock 7.Close socket [11:48:39]Sock 7.Thread stoped [11:48:39]accept exits with 9 [11:48:39]New connection [11:48:39]New thread 3067637092 created [11:48:39]Thread 3067493732 joined [11:48:39]Waiting for new connection... [11:48:39] Sock 9.Parse request [11:48:39]Sock 9.Check first char [11:48:39]Sock 9.First char is OK [11:48:39]request: POST /json_proto HTTP/1.0 [11:48:39]Method: POST [11:48:39]URL: /json_proto [11:48:39]Method is POST - this is cgi request [11:48:39]url: /json_proto [11:48:39]query_string will be loaded in cgi processing [11:48:39]execute_cgi json_proto POST (null) [11:48:39]execute_cgi path=json_proto method=POST [11:48:39]POST find Content-Length [11:48:39]Host: 172.17.53.195:8080 [11:48:39]Content-Length: 677 [11:48:39]Content-Type: application/json [11:48:39] [11:48:39]POST finish read [11:48:39]Found Content-Length = 677 [11:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:39]execute_script... [11:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:39]POST & json_proto [11:48:39]process_json_proto [11:48:39]json parsed OK: [11:48:39]protocol is kg_v1.0 [11:48:39]action value=close_receipt [11:48:39]process_action close_receipt [11:48:39]cmd_close_receipt [11:48:39]MH_GetDate [11:48:39]Write to MH i2c: F0 00 00 5D 02 4E [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 5D 02 00 18 91 17 67 21 48 4A 65 96 [11:48:39]GetLastDocTimeStamp 1729597715 [11:48:39]current date 1729597720 [11:48:39]FM_GetShiftState [11:48:39]SAM_PROTO_GetShiftState [11:48:39]wFMCommunicate request_size=4 [11:48:39]MH_SAM_APDU [11:48:39]CAPDU: 80 13 01 00 [11:48:39]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 30 [11:48:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_GetShiftState done [11:48:40]FM_GetShiftState done [11:48:40]opened in 1729557463 [11:48:40]opened+sec_in_day 1729643863 [11:48:40]quantity*price = 40006 [11:48:40]sum+1 = 40007 [11:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 121 22.10.2024 11:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166366 ФПД: 26379174028826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166366&fm=26379174028826&tin=02508201610067®Number=0000000000091764&sum=40000 [11:48:41]StoreToDocumentArchive [11:48:41]shift 536 fd 166366 [11:48:41]save to /storage/0536/doc_00166366 [11:48:41]save last doc name /storage/0536/doc_00166366 to /storage/kkm_last_doc_name [11:48:41]save OK [11:48:41]Clear old archive folders... [11:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:41]tlvbuf is B6FFC690 [11:48:41]SAM_PROTO_ClearQueue [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 09 00 00 [11:48:41]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_ClearQueue done [11:48:41]KKMCreateOFDPacket [11:48:41]OFDProtocolAddRootSTLVToBuf [11:48:41]FM_MakeSignedData [11:48:41]FM_MakeSignedData [11:48:41]SAM_PROTO_SignData [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 01 02 [11:48:41]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=255 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 18 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 89 02 00 35 04 06 00 17 [11:48:41]Write to MH i2c: E2 02 01 6D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 18 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 89 02 00 35 04 06 00 17 00 00 86 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=10 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 02 02 05 FD E1 4C 26 1A [11:48:41]Write to MH i2c: E2 0D 00 6E 02 80 0D 02 02 05 00 FD E1 4C 26 1A 00 00 5E [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 03 02 [11:48:41]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 6F 02 00 3F 98 42 73 B3 A3 4F CA 90 00 E8 [11:48:41]RAPDU: 3F 98 42 73 B3 A3 4F CA 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_SignData done [11:48:41]FM_MakeSignedData done [11:48:41]CreateOFDProtocolMessage [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 11 00 00 [11:48:41]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 17 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [11:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:42]wFMCommunicate OK [11:48:42]CreateOFDProtocolMessage done [11:48:42]OFDSenderStorePacket 166366 [11:48:42]StoreOFDPacket docnum=166366 [11:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A4 F8 07 01 6C 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 18 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 89 02 00 35 04 06 00 17 FD E1 4C 26 1A 3F 98 42 73 B3 A3 4F CA [11:48:42]CheckFolder [11:48:42]dirname=/storage/ofd_packets [11:48:42]CheckFolder done [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00166366 [11:48:42]NVStorageSaveData ofd_packets/00166366 [11:48:42]File name is /storage/ofd_packets/00166366 [11:48:42]Write 301 bytes [11:48:42]NVStorageSaveData done [11:48:42]OFDSenderStorePacket done [11:48:42]KKMCreateOFDPacket done [11:48:42]NVStorageSaveData kkm_last_timestamp [11:48:42]File name is /storage/kkm_last_timestamp [11:48:42]Write 4 bytes [11:48:42]NVStorageSaveData done [11:48:42]ExternCall_PrintAddStr [11:48:42]wPrintStart [11:48:42]Write to MH i2c: 01 00 00 71 02 73 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [11:48:42]RasterBufferAndPrint [11:48:42]line Счет N : (1)220944 [11:48:42]line ИНН: 02508201610067 [11:48:42]line Контрольно-Кассовый Чек [11:48:42]line ПРОДАЖА [11:48:42]line ТРК (МРК, ГНК) : 33 [11:48:42]line Товар: 2710124130 [11:48:42]line Аи-92-К-5 [11:48:42]line 5.980 * 66.90 [11:48:42]line = 400.06 [11:48:42]line НДС 12% НСП 1% [11:48:42]line > о реализуемом товаре [11:48:42]line ОКРУГЛЕНИЕ: -0.06 [11:48:42]line ИТОГО: 400.00 [11:48:42]line Внесено: 400.00 [11:48:42]line СДАЧА: 0.00 [11:48:42]line НСП 1% : 3.54 [11:48:42]line НДС 12% : 42.48 [11:48:42]line Наличными: 400.00 [11:48:42]line Безнал.: 0.00 [11:48:42]line Место: АЗС № 161 "Партнер Нефть" [11:48:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:48:42]line СНО: Общий режим [11:48:42]line Чек 121 22.10.2024 11:48 [11:48:42]line Смена: 536 ФФД: 1.0 [11:48:42]line ЗНМ: 0300000104 [11:48:42]line РНМ: 0000000000091764 [11:48:42]line Версия ККМ: 001 [11:48:42]line ФМ: 0000000000871759 [11:48:42]line ФД: 166366 [11:48:42]line ФПД: 26379174028826 [11:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166366&fm=26379174028826&tin=02508201610067®Number=0000000000091764&sum=40000 [11:48:42]written 0, free lines is 4095 [11:48:42]OFD Sender: Processing packet 166366 [packets to send 48, broken 47] [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00166366 [11:48:42]OFD Sender: To server: pG, [11:48:42]CommunicateWithHost lk.salyk.kg:30040 [11:48:42]ConnectInit lk.salyk.kg [11:48:42]Connected sock=11 [11:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A4 F8 07 01 6C 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 18 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 89 02 00 35 04 06 00 17 FD E1 4C 26 1A 3F 98 42 73 B3 A3 4F CA [11:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FB A7 47 00 1B 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 89 02 00 F4 03 04 00 83 37 17 67 B6 04 01 00 00 C1 24 55 8C 7A F0 36 ED [11:48:42]CommunicateWithHost err = 0 [11:48:42]CheckOFDResponse [11:48:42]1017 (14) - 77093643461234 [11:48:42]1041 (16) - 0000000000871759 [11:48:42]1040 (4) - 166366 [11:48:42]1012 (4) - 22.10.2024 05:26 [11:48:42]1206 (1) - 0 [11:48:42]OFD Sender: Remove packet 166366 [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00166366 [11:48:42]NVStorageDeleteData [11:48:42]Write to MH i2c: 01 00 00 9C 02 9E [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 DC 0C 8D [11:48:42]RasterBufferAndPrint [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]written 0, free lines is 3301 [11:48:42]MH_Cut [11:48:42]Write to MH i2c: D1 01 00 A3 02 01 77 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 A3 02 00 76 [11:48:42]Write to MH i2c: 01 00 00 A4 02 A6 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]OFD Sender: No OFD packet to send [11:48:43]*** Cut start [11:48:43]*** Partial cut [11:48:43]*** CUTSNS_PIN = 1 [11:48:43]*** CUTSNS_PIN = 0 [11:48:43]*** Brake cut motor [11:48:43]Read from MH i2c: 01 [11:48:43]MH_I2C_Read... [11:48:43]*** Stop cut motor [11:48:43]*** Cut end [11:48:43]Read from MH i2c: 01 07 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [11:48:43]process_action close_receipt done [11:48:43]requested_data is exist [11:48:43]produce_requested_data [11:48:43]requested_item fm.sn is exist - process it [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 11 00 00 [11:48:43]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [11:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:43]wFMCommunicate OK [11:48:43]requested_item fd.num is exist - process it [11:48:43]SAM_PROTO_GetFieldsCounters [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 00 00 [11:48:43]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 62 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 62 00 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_GetFieldsCounters done [11:48:44]requested_item shift.num is exist - process it [11:48:44]requested_item shift.opened is exist - process it [11:48:44]req_shift_opened [11:48:44]FM_GetShiftState [11:48:44]SAM_PROTO_GetShiftState [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 13 01 00 [11:48:44]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 79 [11:48:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_GetShiftState done [11:48:44]FM_GetShiftState done [11:48:44]req_shift_opened done [11:48:44]requested_item shift.open_date is exist - process it [11:48:44]req_shift_open_date [11:48:44]req_shift_open_date done [11:48:44]produce_requested_data done [11:48:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166366,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:48:44]process_action_free close_receipt [11:48:44]json_value_free [11:48:44]json_value_free done [11:48:44]process_json_proto returns [11:48:44]Send response to host [11:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166366,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:48:44]free response buf [11:48:44]execute_script done [11:48:44]execute_script returns [11:48:44]free content buf [11:48:44]Sock 9.Close socket [11:48:44]Sock 9.Thread stoped [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49: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:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:51:59]accept exits with 7 [11:51:59]New connection [11:51:59]New thread 3067493732 created [11:51:59]Thread 3067637092 joined [11:51:59]Waiting for new connection... [11:51:59] Sock 7.Parse request [11:51:59]Sock 7.Check first char [11:51:59]Sock 7.First char is OK [11:51:59]request: POST /json_proto HTTP/1.0 [11:51:59]Method: POST [11:51:59]URL: /json_proto [11:51:59]Method is POST - this is cgi request [11:51:59]url: /json_proto [11:51:59]query_string will be loaded in cgi processing [11:51:59]execute_cgi json_proto POST (null) [11:51:59]execute_cgi path=json_proto method=POST [11:51:59]POST find Content-Length [11:51:59]Host: 172.17.53.195:8080 [11:51:59]Content-Length: 677 [11:51:59]Content-Type: application/json [11:51:59] [11:51:59]POST finish read [11:51:59]Found Content-Length = 677 [11:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:59]execute_script... [11:51:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:59]POST & json_proto [11:51:59]process_json_proto [11:51:59]json parsed OK: [11:51:59]protocol is kg_v1.0 [11:51:59]action value=close_receipt [11:51:59]process_action close_receipt [11:51:59]cmd_close_receipt [11:51:59]MH_GetDate [11:51:59]Write to MH i2c: F0 00 00 A8 02 99 [11:51:59]Write i2c OK [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: F0 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: F0 09 00 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: F0 09 00 A8 02 00 E0 91 17 67 21 48 4A 65 A9 [11:51:59]GetLastDocTimeStamp 1729597720 [11:51:59]current date 1729597920 [11:51:59]FM_GetShiftState [11:51:59]SAM_PROTO_GetShiftState [11:51:59]wFMCommunicate request_size=4 [11:51:59]MH_SAM_APDU [11:51:59]CAPDU: 80 13 01 00 [11:51:59]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [11:51:59]Write i2c OK [11:51:59]MH_I2C_Read... [11:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:59]Read from MH i2c: E2 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: E2 0E 00 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7B [11:51:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:51:59]wFMCommunicate OK [11:51:59]SAM_PROTO_GetShiftState done [11:51:59]FM_GetShiftState done [11:51:59]opened in 1729557463 [11:51:59]opened+sec_in_day 1729643863 [11:51:59]quantity*price = 40006 [11:51:59]sum+1 = 40007 [11:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 122 22.10.2024 11:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166367 ФПД: 85494782416038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166367&fm=85494782416038&tin=02508201610067®Number=0000000000091764&sum=40000 [11:52:01]StoreToDocumentArchive [11:52:01]shift 536 fd 166367 [11:52:01]save to /storage/0536/doc_00166367 [11:52:01]save last doc name /storage/0536/doc_00166367 to /storage/kkm_last_doc_name [11:52:01]save OK [11:52:01]Clear old archive folders... [11:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:01]tlvbuf is 00A37F20 [11:52:01]SAM_PROTO_ClearQueue [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 09 00 00 [11:52:01]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_ClearQueue done [11:52:01]KKMCreateOFDPacket [11:52:01]OFDProtocolAddRootSTLVToBuf [11:52:01]FM_MakeSignedData [11:52:01]FM_MakeSignedData [11:52:01]SAM_PROTO_SignData [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 0D 01 02 [11:52:01]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]wFMCommunicate request_size=255 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E0 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 89 02 00 35 04 06 00 4D [11:52:01]Write to MH i2c: E2 02 01 B8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E0 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 89 02 00 35 04 06 00 4D 00 00 D1 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]wFMCommunicate request_size=10 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 0D 02 02 05 C1 CE 22 D4 A6 [11:52:01]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 C1 CE 22 D4 A6 00 00 6A [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [11:52:01]RAPDU: 90 00 [11:52:01]wFMCommunicate OK [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 0D 03 02 [11:52:01]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0B 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0B 00 BA 02 00 69 41 7D 9D 88 83 FB 40 90 00 42 [11:52:01]RAPDU: 69 41 7D 9D 88 83 FB 40 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_SignData done [11:52:01]FM_MakeSignedData done [11:52:01]CreateOFDProtocolMessage [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 11 00 00 [11:52:01]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 17 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [11:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:01]wFMCommunicate OK [11:52:01]CreateOFDProtocolMessage done [11:52:01]OFDSenderStorePacket 166367 [11:52:01]StoreOFDPacket docnum=166367 [11:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 D6 07 01 01 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E0 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 89 02 00 35 04 06 00 4D C1 CE 22 D4 A6 69 41 7D 9D 88 83 FB 40 [11:52:01]CheckFolder [11:52:01]dirname=/storage/ofd_packets [11:52:01]CheckFolder done [11:52:01]ProducePacketName [11:52:01]name=ofd_packets/00166367 [11:52:01]NVStorageSaveData ofd_packets/00166367 [11:52:01]File name is /storage/ofd_packets/00166367 [11:52:01]Write 301 bytes [11:52:01]NVStorageSaveData done [11:52:01]OFDSenderStorePacket done [11:52:01]KKMCreateOFDPacket done [11:52:01]NVStorageSaveData kkm_last_timestamp [11:52:01]File name is /storage/kkm_last_timestamp [11:52:01]Write 4 bytes [11:52:01]NVStorageSaveData done [11:52:01]OFD Sender: Processing packet 166367 [packets to send 48, broken 47] [11:52:01]ProducePacketName [11:52:01]name=ofd_packets/00166367 [11:52:01]OFD Sender: To server: pG, [11:52:01]CommunicateWithHost lk.salyk.kg:30040 [11:52:01]ConnectInit lk.salyk.kg [11:52:01]ExternCall_PrintAddStr [11:52:01]wPrintStart [11:52:01]Write to MH i2c: 01 00 00 BC 02 BE [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: 01 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: 01 07 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [11:52:01]RasterBufferAndPrint [11:52:01]line Счет N : (1)220945 [11:52:01]line ИНН: 02508201610067 [11:52:01]line Контрольно-Кассовый Чек [11:52:01]line ПРОДАЖА [11:52:01]line ТРК (МРК, ГНК) : 43 [11:52:01]line Товар: 2710124130 [11:52:01]line Аи-92-К-5 [11:52:01]line 5.980 * 66.90 [11:52:01]line = 400.06 [11:52:01]line НДС 12% НСП 1% [11:52:01]line > о реализуемом товаре [11:52:01]line ОКРУГЛЕНИЕ: -0.06 [11:52:01]line ИТОГО: 400.00 [11:52:01]line Внесено: 400.00 [11:52:01]line СДАЧА: 0.00 [11:52:01]line НСП 1% : 3.54 [11:52:01]line НДС 12% : 42.48 [11:52:01]line Наличными: 400.00 [11:52:01]line Безнал.: 0.00 [11:52:01]line Место: АЗС № 161 "Партнер Нефть" [11:52:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:52:01]line СНО: Общий режим [11:52:01]line Чек 122 22.10.2024 11:52 [11:52:01]line Смена: 536 ФФД: 1.0 [11:52:01]line ЗНМ: 0300000104 [11:52:01]line РНМ: 0000000000091764 [11:52:01]line Версия ККМ: 001 [11:52:01]line ФМ: 0000000000871759 [11:52:01]line ФД: 166367 [11:52:01]line ФПД: 85494782416038 [11:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166367&fm=85494782416038&tin=02508201610067®Number=0000000000091764&sum=40000 [11:52:01]Connected sock=11 [11:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 D6 07 01 01 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E0 91 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 89 02 00 35 04 06 00 4D C1 CE 22 D4 A6 69 41 7D 9D 88 83 FB 40 [11:52:01]written 0, free lines is 4095 [11:52:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 6E 47 00 C7 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 89 02 00 F4 03 04 00 4B 38 17 67 B6 04 01 00 00 11 64 7F DF 6A C8 E4 E6 [11:52:02]CommunicateWithHost err = 0 [11:52:02]CheckOFDResponse [11:52:02]1017 (14) - 77093643461234 [11:52:02]1041 (16) - 0000000000871759 [11:52:02]1040 (4) - 166367 [11:52:02]1012 (4) - 22.10.2024 05:29 [11:52:02]1206 (1) - 0 [11:52:02]OFD Sender: Remove packet 166367 [11:52:02]ProducePacketName [11:52:02]name=ofd_packets/00166367 [11:52:02]NVStorageDeleteData [11:52:02]Write to MH i2c: 01 00 00 E7 02 E9 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 CD 0C C9 [11:52:02]RasterBufferAndPrint [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]line [11:52:02]written 0, free lines is 3283 [11:52:02]MH_Cut [11:52:02]Write to MH i2c: D1 01 00 EE 02 01 C2 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 01 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: D1 01 00 EE 02 00 C1 [11:52:02]Write to MH i2c: 01 00 00 EF 02 F1 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]OFD Sender: No OFD packet to send [11:52:03]*** Cut start [11:52:03]*** Partial cut [11:52:03]*** CUTSNS_PIN = 1 [11:52:03]*** CUTSNS_PIN = 0 [11:52:03]*** Brake cut motor [11:52:03]Read from MH i2c: 01 [11:52:03]MH_I2C_Read... [11:52:03]*** Stop cut motor [11:52:03]*** Cut end [11:52:03]Read from MH i2c: 01 07 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [11:52:03]process_action close_receipt done [11:52:03]requested_data is exist [11:52:03]produce_requested_data [11:52:03]requested_item fm.sn is exist - process it [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 11 00 00 [11:52:03]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [11:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:03]wFMCommunicate OK [11:52:03]requested_item fd.num is exist - process it [11:52:03]SAM_PROTO_GetFieldsCounters [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 13 00 00 [11:52:03]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 62 00 [11:52:03]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 62 00 F1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetFieldsCounters done [11:52:04]requested_item shift.num is exist - process it [11:52:04]requested_item shift.opened is exist - process it [11:52:04]req_shift_opened [11:52:04]FM_GetShiftState [11:52:04]SAM_PROTO_GetShiftState [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 13 01 00 [11:52:04]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C4 [11:52:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetShiftState done [11:52:04]FM_GetShiftState done [11:52:04]req_shift_opened done [11:52:04]requested_item shift.open_date is exist - process it [11:52:04]req_shift_open_date [11:52:04]req_shift_open_date done [11:52:04]produce_requested_data done [11:52:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166367,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:52:04]process_action_free close_receipt [11:52:04]json_value_free [11:52:04]json_value_free done [11:52:04]process_json_proto returns [11:52:04]Send response to host [11:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166367,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:52:04]free response buf [11:52:04]execute_script done [11:52:04]execute_script returns [11:52:04]free content buf [11:52:04]Sock 7.Close socket [11:52:04]Sock 7.Thread stoped [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]accept exits with 9 [11:52:57]New connection [11:52:57]New thread 3067637092 created [11:52:57]Thread 3067493732 joined [11:52:57]Waiting for new connection... [11:52:57] Sock 9.Parse request [11:52:57]Sock 9.Check first char [11:52:57]Sock 9.First char is OK [11:52:57]request: POST /json_proto HTTP/1.0 [11:52:57]Method: POST [11:52:57]URL: /json_proto [11:52:57]Method is POST - this is cgi request [11:52:57]url: /json_proto [11:52:57]query_string will be loaded in cgi processing [11:52:57]execute_cgi json_proto POST (null) [11:52:57]execute_cgi path=json_proto method=POST [11:52:57]POST find Content-Length [11:52:57]Host: 172.17.53.195:8080 [11:52:57]Content-Length: 674 [11:52:57]Content-Type: application/json [11:52:57] [11:52:57]POST finish read [11:52:57]Found Content-Length = 674 [11:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]execute_script... [11:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:57]POST & json_proto [11:52:57]process_json_proto [11:52:57]json parsed OK: [11:52:57]protocol is kg_v1.0 [11:52:57]action value=close_receipt [11:52:57]process_action close_receipt [11:52:57]cmd_close_receipt [11:52:57]MH_GetDate [11:52:57]Write to MH i2c: F0 00 00 F3 02 E4 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 09 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: F0 09 00 F3 02 00 19 92 17 67 21 48 4A 65 2E [11:52:57]GetLastDocTimeStamp 1729597920 [11:52:57]current date 1729597977 [11:52:57]FM_GetShiftState [11:52:57]SAM_PROTO_GetShiftState [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 01 00 [11:52:57]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C6 [11:52:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetShiftState done [11:52:57]FM_GetShiftState done [11:52:57]opened in 1729557463 [11:52:57]opened+sec_in_day 1729643863 [11:52:57]quantity*price = 35052 [11:52:57]sum+1 = 35053 [11:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 123 22.10.2024 11:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166368 ФПД: 63593922466644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166368&fm=63593922466644&tin=02508201610067®Number=0000000000091764&sum=35000 [11:52:58]StoreToDocumentArchive [11:52:58]shift 536 fd 166368 [11:52:58]save to /storage/0536/doc_00166368 [11:52:58]save last doc name /storage/0536/doc_00166368 to /storage/kkm_last_doc_name [11:52:58]save OK [11:52:58]Clear old archive folders... [11:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:58]tlvbuf is 009AFDB0 [11:52:58]SAM_PROTO_ClearQueue [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 09 00 00 [11:52:58]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]SAM_PROTO_ClearQueue done [11:52:58]KKMCreateOFDPacket [11:52:58]OFDProtocolAddRootSTLVToBuf [11:52:58]FM_MakeSignedData [11:52:58]FM_MakeSignedData [11:52:58]SAM_PROTO_SignData [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 01 02 [11:52:58]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=255 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 89 02 00 35 04 06 00 39 D6 9D 28 [11:52:58]Write to MH i2c: E2 02 01 03 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 89 02 00 35 04 06 00 39 D6 9D 28 00 00 8C [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=7 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 02 02 02 93 54 [11:52:58]Write to MH i2c: E2 0A 00 04 03 80 0D 02 02 02 00 93 54 00 00 6C [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [11:52:58]RAPDU: 90 00 [11:52:58]wFMCommunicate OK [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 0D 03 02 [11:52:58]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 05 03 00 F1 09 59 AE 87 E8 96 68 90 00 F2 [11:52:59]RAPDU: F1 09 59 AE 87 E8 96 68 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_SignData done [11:52:59]FM_MakeSignedData done [11:52:59]CreateOFDProtocolMessage [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 11 00 00 [11:52:59]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [11:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:52:59]wFMCommunicate OK [11:52:59]CreateOFDProtocolMessage done [11:52:59]OFDSenderStorePacket 166368 [11:52:59]StoreOFDPacket docnum=166368 [11:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 2B 04 01 C8 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 89 02 00 35 04 06 00 39 D6 9D 28 93 54 F1 09 59 AE 87 E8 96 68 [11:52:59]CheckFolder [11:52:59]dirname=/storage/ofd_packets [11:52:59]CheckFolder done [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00166368 [11:52:59]NVStorageSaveData ofd_packets/00166368 [11:52:59]File name is /storage/ofd_packets/00166368 [11:52:59]Write 298 bytes [11:52:59]NVStorageSaveData done [11:52:59]OFDSenderStorePacket done [11:52:59]KKMCreateOFDPacket done [11:52:59]NVStorageSaveData kkm_last_timestamp [11:52:59]File name is /storage/kkm_last_timestamp [11:52:59]Write 4 bytes [11:52:59]NVStorageSaveData done [11:52:59]ExternCall_PrintAddStr [11:52:59]wPrintStart [11:52:59]Write to MH i2c: 01 00 00 07 03 0A [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [11:52:59]RasterBufferAndPrint [11:52:59]line Счет N : (1)220946 [11:52:59]line ИНН: 02508201610067 [11:52:59]line Контрольно-Кассовый Чек [11:52:59]line ПРОДАЖА [11:52:59]line ТРК (МРК, ГНК) : 21 [11:52:59]line Товар: 2710194210 [11:52:59]line ДТ-К-5 [11:52:59]line 4.600 * 76.20 [11:52:59]line = 350.52 [11:52:59]line НДС 12% НСП 1% [11:52:59]line > о реализуемом товаре [11:52:59]line ОКРУГЛЕНИЕ: -0.52 [11:52:59]line ИТОГО: 350.00 [11:52:59]line Внесено: 350.00 [11:52:59]line СДАЧА: 0.00 [11:52:59]line НСП 1% : 3.10 [11:52:59]line НДС 12% : 37.22 [11:52:59]line Наличными: 350.00 [11:52:59]line Безнал.: 0.00 [11:52:59]line Место: АЗС № 161 "Партнер Нефть" [11:52:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:52:59]line СНО: Общий режим [11:52:59]line Чек 123 22.10.2024 11:52 [11:52:59]line Смена: 536 ФФД: 1.0 [11:52:59]line ЗНМ: 0300000104 [11:52:59]line РНМ: 0000000000091764 [11:52:59]line Версия ККМ: 001 [11:52:59]line ФМ: 0000000000871759 [11:52:59]line ФД: 166368 [11:52:59]line ФПД: 63593922466644 [11:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166368&fm=63593922466644&tin=02508201610067®Number=0000000000091764&sum=35000 [11:52:59]OFD Sender: Processing packet 166368 [packets to send 48, broken 47] [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00166368 [11:52:59]OFD Sender: To server: pG, [11:52:59]CommunicateWithHost lk.salyk.kg:30040 [11:52:59]ConnectInit lk.salyk.kg [11:52:59]written 0, free lines is 4095 [11:52:59]Connected sock=10 [11:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 2B 04 01 C8 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 89 02 00 35 04 06 00 39 D6 9D 28 93 54 F1 09 59 AE 87 E8 96 68 [11:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1E DD 47 00 2A 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 89 02 00 F4 03 04 00 84 38 17 67 B6 04 01 00 00 BC DE 2F 64 F0 D6 3B B2 [11:52:59]CommunicateWithHost err = 0 [11:52:59]CheckOFDResponse [11:52:59]1017 (14) - 77093643461234 [11:52:59]1041 (16) - 0000000000871759 [11:52:59]1040 (4) - 166368 [11:52:59]1012 (4) - 22.10.2024 05:30 [11:52:59]1206 (1) - 0 [11:52:59]OFD Sender: Remove packet 166368 [11:52:59]ProducePacketName [11:52:59]name=ofd_packets/00166368 [11:52:59]NVStorageDeleteData [11:52:59]Write to MH i2c: 01 00 00 32 03 35 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 C6 0C 0E [11:52:59]RasterBufferAndPrint [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]line [11:52:59]written 0, free lines is 3276 [11:52:59]MH_Cut [11:52:59]Write to MH i2c: D1 01 00 39 03 01 0E [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 01 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: D1 01 00 39 03 00 0D [11:52:59]Write to MH i2c: 01 00 00 3A 03 3D [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:53:00]OFD Sender: No OFD packet to send [11:53:00]*** Cut start [11:53:00]*** Partial cut [11:53:00]*** CUTSNS_PIN = 1 [11:53:00]*** CUTSNS_PIN = 0 [11:53:00]*** Brake cut motor [11:53:01]Read from MH i2c: 01 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: 01 07 00 [11:53:01]MH_I2C_Read... [11:53:01]*** Stop cut motor [11:53:01]*** Cut end [11:53:01]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [11:53:01]process_action close_receipt done [11:53:01]requested_data is exist [11:53:01]produce_requested_data [11:53:01]requested_item fm.sn is exist - process it [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 11 00 00 [11:53:01]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [11:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:53:01]wFMCommunicate OK [11:53:01]requested_item fd.num is exist - process it [11:53:01]SAM_PROTO_GetFieldsCounters [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 13 00 00 [11:53:01]Write to MH i2c: E2 08 00 3C 03 80 13 00 00 00 00 00 00 BB [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 62 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 62 00 3C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [11:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_GetFieldsCounters done [11:53:01]requested_item shift.num is exist - process it [11:53:01]requested_item shift.opened is exist - process it [11:53:01]req_shift_opened [11:53:01]FM_GetShiftState [11:53:01]SAM_PROTO_GetShiftState [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 13 01 00 [11:53:01]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0E 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 10 [11:53:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_GetShiftState done [11:53:01]FM_GetShiftState done [11:53:01]req_shift_opened done [11:53:01]requested_item shift.open_date is exist - process it [11:53:01]req_shift_open_date [11:53:01]req_shift_open_date done [11:53:01]produce_requested_data done [11:53:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166368,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:53:01]process_action_free close_receipt [11:53:01]json_value_free [11:53:01]json_value_free done [11:53:01]process_json_proto returns [11:53:01]Send response to host [11:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166368,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:53:01]free response buf [11:53:01]execute_script done [11:53:01]execute_script returns [11:53:01]free content buf [11:53:01]Sock 9.Close socket [11:53:01]Sock 9.Thread stoped [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:14]accept exits with 7 [11:55:14]New connection [11:55:14]New thread 3067493732 created [11:55:14]Thread 3067637092 joined [11:55:14]Waiting for new connection... [11:55:14] Sock 7.Parse request [11:55:14]Sock 7.Check first char [11:55:14]Sock 7.First char is OK [11:55:14]request: POST /json_proto HTTP/1.0 [11:55:14]Method: POST [11:55:14]URL: /json_proto [11:55:14]Method is POST - this is cgi request [11:55:14]url: /json_proto [11:55:14]query_string will be loaded in cgi processing [11:55:14]execute_cgi json_proto POST (null) [11:55:14]execute_cgi path=json_proto method=POST [11:55:14]POST find Content-Length [11:55:14]Host: 172.17.53.195:8080 [11:55:14]Content-Length: 678 [11:55:14]Content-Type: application/json [11:55:14] [11:55:14]POST finish read [11:55:14]Found Content-Length = 678 [11:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:14]execute_script... [11:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:14]POST & json_proto [11:55:14]process_json_proto [11:55:14]json parsed OK: [11:55:14]protocol is kg_v1.0 [11:55:14]action value=close_receipt [11:55:14]process_action close_receipt [11:55:14]cmd_close_receipt [11:55:14]MH_GetDate [11:55:14]Write to MH i2c: F0 00 00 3E 03 30 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 09 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: F0 09 00 3E 03 00 A2 92 17 67 21 48 4A 65 03 [11:55:14]GetLastDocTimeStamp 1729597977 [11:55:14]current date 1729598114 [11:55:14]FM_GetShiftState [11:55:14]SAM_PROTO_GetShiftState [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 13 01 00 [11:55:14]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 12 [11:55:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetShiftState done [11:55:14]FM_GetShiftState done [11:55:14]opened in 1729557463 [11:55:14]opened+sec_in_day 1729643863 [11:55:14]quantity*price = 70044 [11:55:14]sum+1 = 70045 [11:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 124 22.10.2024 11:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166369 ФПД: 8793177413836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115514&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166369&fm=8793177413836&tin=02508201610067®Number=0000000000091764&sum=70000 [11:55:15]StoreToDocumentArchive [11:55:15]shift 536 fd 166369 [11:55:15]save to /storage/0536/doc_00166369 [11:55:15]save last doc name /storage/0536/doc_00166369 to /storage/kkm_last_doc_name [11:55:15]save OK [11:55:15]Clear old archive folders... [11:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:15]tlvbuf is 00A3F460 [11:55:15]SAM_PROTO_ClearQueue [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 09 00 00 [11:55:15]Write to MH i2c: E2 08 00 4C 03 80 09 00 00 00 00 00 00 C1 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]SAM_PROTO_ClearQueue done [11:55:15]KKMCreateOFDPacket [11:55:15]OFDProtocolAddRootSTLVToBuf [11:55:15]FM_MakeSignedData [11:55:15]FM_MakeSignedData [11:55:15]SAM_PROTO_SignData [11:55:15]wFMCommunicate request_size=4 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 0D 01 02 [11:55:15]Write to MH i2c: E2 08 00 4D 03 80 0D 01 02 00 00 00 00 C9 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:15]Read from MH i2c: E2 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [11:55:15]RAPDU: 90 00 [11:55:15]wFMCommunicate OK [11:55:15]wFMCommunicate request_size=255 [11:55:15]MH_SAM_APDU [11:55:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 89 02 00 35 04 06 00 07 [11:55:15]Write to MH i2c: E2 02 01 4E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 89 02 00 35 04 06 00 07 00 00 2A [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [11:55:16]RAPDU: 90 00 [11:55:16]wFMCommunicate OK [11:55:16]wFMCommunicate request_size=10 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 0D 02 02 05 FF 52 37 58 CC [11:55:16]Write to MH i2c: E2 0D 00 4F 03 80 0D 02 02 05 00 FF 52 37 58 CC 00 00 82 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [11:55:16]RAPDU: 90 00 [11:55:16]wFMCommunicate OK [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 0D 03 02 [11:55:16]Write to MH i2c: E2 08 00 50 03 80 0D 03 02 00 00 00 00 CE [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0B 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0B 00 50 03 00 D2 90 D1 81 B1 A7 73 5E 90 00 AC [11:55:16]RAPDU: D2 90 D1 81 B1 A7 73 5E 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_SignData done [11:55:16]FM_MakeSignedData done [11:55:16]CreateOFDProtocolMessage [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 11 00 00 [11:55:16]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 17 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [11:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:55:16]wFMCommunicate OK [11:55:16]CreateOFDProtocolMessage done [11:55:16]OFDSenderStorePacket 166369 [11:55:16]StoreOFDPacket docnum=166369 [11:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE BB 07 01 4D 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 89 02 00 35 04 06 00 07 FF 52 37 58 CC D2 90 D1 81 B1 A7 73 5E [11:55:16]CheckFolder [11:55:16]dirname=/storage/ofd_packets [11:55:16]CheckFolder done [11:55:16]ProducePacketName [11:55:16]name=ofd_packets/00166369 [11:55:16]NVStorageSaveData ofd_packets/00166369 [11:55:16]File name is /storage/ofd_packets/00166369 [11:55:16]Write 301 bytes [11:55:16]NVStorageSaveData done [11:55:16]OFDSenderStorePacket done [11:55:16]KKMCreateOFDPacket done [11:55:16]NVStorageSaveData kkm_last_timestamp [11:55:16]File name is /storage/kkm_last_timestamp [11:55:16]Write 4 bytes [11:55:16]NVStorageSaveData done [11:55:16]OFD Sender: Processing packet 166369 [packets to send 48, broken 47] [11:55:16]ProducePacketName [11:55:16]name=ofd_packets/00166369 [11:55:16]OFD Sender: To server: pG, [11:55:16]CommunicateWithHost lk.salyk.kg:30040 [11:55:16]ConnectInit lk.salyk.kg [11:55:16]ExternCall_PrintAddStr [11:55:16]wPrintStart [11:55:16]Write to MH i2c: 01 00 00 52 03 55 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 07 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [11:55:16]RasterBufferAndPrint [11:55:16]line Счет N : (1)220947 [11:55:16]line ИНН: 02508201610067 [11:55:16]line Контрольно-Кассовый Чек [11:55:16]line ПРОДАЖА [11:55:16]line ТРК (МРК, ГНК) : 43 [11:55:16]line Товар: 2710124130 [11:55:16]line Аи-92-К-5 [11:55:16]line 10.470 * 66.90 [11:55:16]line = 700.44 [11:55:16]line НДС 12% НСП 1% [11:55:16]line > о реализуемом товаре [11:55:16]line ОКРУГЛЕНИЕ: -0.44 [11:55:16]line ИТОГО: 700.00 [11:55:16]line Внесено: 700.00 [11:55:16]line СДАЧА: 0.00 [11:55:16]line НСП 1% : 6.20 [11:55:16]line НДС 12% : 74.38 [11:55:16]line Наличными: 700.00 [11:55:16]line Безнал.: 0.00 [11:55:16]line Место: АЗС № 161 "Партнер Нефть" [11:55:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:55:16]line СНО: Общий режим [11:55:16]line Чек 124 22.10.2024 11:55 [11:55:16]line Смена: 536 ФФД: 1.0 [11:55:16]line ЗНМ: 0300000104 [11:55:16]line РНМ: 0000000000091764 [11:55:16]line Версия ККМ: 001 [11:55:16]line ФМ: 0000000000871759 [11:55:16]line ФД: 166369 [11:55:16]line ФПД: 8793177413836 [11:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115514&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166369&fm=8793177413836&tin=02508201610067®Number=0000000000091764&sum=70000 [11:55:16]Connected sock=11 [11:55:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE BB 07 01 4D 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 89 02 00 35 04 06 00 07 FF 52 37 58 CC D2 90 D1 81 B1 A7 73 5E [11:55:16]written 0, free lines is 4095 [11:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 3A 47 00 E1 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 89 02 00 F4 03 04 00 0D 39 17 67 B6 04 01 00 00 EC 4F 43 53 AE 7D 8A 86 [11:55:16]CommunicateWithHost err = 0 [11:55:16]CheckOFDResponse [11:55:16]1017 (14) - 77093643461234 [11:55:16]1041 (16) - 0000000000871759 [11:55:16]1040 (4) - 166369 [11:55:16]1012 (4) - 22.10.2024 05:33 [11:55:16]1206 (1) - 0 [11:55:16]OFD Sender: Remove packet 166369 [11:55:16]ProducePacketName [11:55:16]name=ofd_packets/00166369 [11:55:16]NVStorageDeleteData [11:55:17]Write to MH i2c: 01 00 00 7D 03 80 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 CD 0C 60 [11:55:17]RasterBufferAndPrint [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]line [11:55:17]written 0, free lines is 3284 [11:55:17]MH_Cut [11:55:17]Write to MH i2c: D1 01 00 84 03 01 59 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 01 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: D1 01 00 84 03 00 58 [11:55:17]Write to MH i2c: 01 00 00 85 03 88 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]OFD Sender: No OFD packet to send [11:55:17]*** Cut start [11:55:17]*** Partial cut [11:55:17]*** CUTSNS_PIN = 1 [11:55:17]*** CUTSNS_PIN = 0 [11:55:18]*** Brake cut motor [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:18]*** Stop cut motor [11:55:18]*** Cut end [11:55:18]Read from MH i2c: 01 07 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [11:55:18]process_action close_receipt done [11:55:18]requested_data is exist [11:55:18]produce_requested_data [11:55:18]requested_item fm.sn is exist - process it [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 11 00 00 [11:55:18]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [11:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:55:18]wFMCommunicate OK [11:55:18]requested_item fd.num is exist - process it [11:55:18]SAM_PROTO_GetFieldsCounters [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 13 00 00 [11:55:18]Write to MH i2c: E2 08 00 87 03 80 13 00 00 00 00 00 00 06 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 62 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 62 00 87 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:55:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_GetFieldsCounters done [11:55:18]requested_item shift.num is exist - process it [11:55:18]requested_item shift.opened is exist - process it [11:55:18]req_shift_opened [11:55:18]FM_GetShiftState [11:55:18]SAM_PROTO_GetShiftState [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 13 01 00 [11:55:18]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5B [11:55:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_GetShiftState done [11:55:18]FM_GetShiftState done [11:55:18]req_shift_opened done [11:55:18]requested_item shift.open_date is exist - process it [11:55:18]req_shift_open_date [11:55:18]req_shift_open_date done [11:55:18]produce_requested_data done [11:55:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166369,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:55:18]process_action_free close_receipt [11:55:18]json_value_free [11:55:18]json_value_free done [11:55:18]process_json_proto returns [11:55:18]Send response to host [11:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166369,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:55:18]free response buf [11:55:18]execute_script done [11:55:18]execute_script returns [11:55:18]free content buf [11:55:18]Sock 7.Close socket [11:55:18]Sock 7.Thread stoped [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:55]accept exits with 9 [11:55:55]New connection [11:55:55]New thread 3067637092 created [11:55:55]Thread 3067493732 joined [11:55:55]Waiting for new connection... [11:55:55] Sock 9.Parse request [11:55:55]Sock 9.Check first char [11:55:55]Sock 9.First char is OK [11:55:55]request: POST /json_proto HTTP/1.0 [11:55:55]Method: POST [11:55:55]URL: /json_proto [11:55:55]Method is POST - this is cgi request [11:55:55]url: /json_proto [11:55:55]query_string will be loaded in cgi processing [11:55:55]execute_cgi json_proto POST (null) [11:55:55]execute_cgi path=json_proto method=POST [11:55:55]POST find Content-Length [11:55:55]Host: 172.17.53.195:8080 [11:55:55]Content-Length: 769 [11:55:55]Content-Type: application/json [11:55:55] [11:55:55]POST finish read [11:55:55]Found Content-Length = 769 [11:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:55]execute_script... [11:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:55]POST & json_proto [11:55:55]process_json_proto [11:55:55]json parsed OK: [11:55:55]protocol is kg_v1.0 [11:55:55]action value=close_receipt [11:55:55]process_action close_receipt [11:55:55]cmd_close_receipt [11:55:55]MH_GetDate [11:55:55]Write to MH i2c: F0 00 00 89 03 7B [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 09 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: F0 09 00 89 03 00 CC 92 17 67 21 48 4A 65 78 [11:55:55]GetLastDocTimeStamp 1729598114 [11:55:55]current date 1729598156 [11:55:55]FM_GetShiftState [11:55:55]SAM_PROTO_GetShiftState [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 13 01 00 [11:55:55]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0E 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5D [11:55:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:55:55]wFMCommunicate OK [11:55:55]SAM_PROTO_GetShiftState done [11:55:55]FM_GetShiftState done [11:55:55]opened in 1729557463 [11:55:55]opened+sec_in_day 1729643863 [11:55:55]quantity*price = 130053 [11:55:55]sum+1 = 130055 [11:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.54 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.54 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 125 22.10.2024 11:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166370 ФПД: 4792976889126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166370&fm=4792976889126&tin=02508201610067®Number=0000000000091764&sum=130054 [11:55:57]StoreToDocumentArchive [11:55:57]shift 536 fd 166370 [11:55:57]save to /storage/0536/doc_00166370 [11:55:57]save last doc name /storage/0536/doc_00166370 to /storage/kkm_last_doc_name [11:55:57]save OK [11:55:57]Clear old archive folders... [11:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:57]tlvbuf is 00A0AA70 [11:55:57]SAM_PROTO_ClearQueue [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 09 00 00 [11:55:57]Write to MH i2c: E2 08 00 97 03 80 09 00 00 00 00 00 00 0C [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [11:55:57]RAPDU: 90 00 [11:55:57]wFMCommunicate OK [11:55:57]SAM_PROTO_ClearQueue done [11:55:57]KKMCreateOFDPacket [11:55:57]OFDProtocolAddRootSTLVToBuf [11:55:57]FM_MakeSignedData [11:55:57]FM_MakeSignedData [11:55:57]SAM_PROTO_SignData [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 0D 01 02 [11:55:57]Write to MH i2c: E2 08 00 98 03 80 0D 01 02 00 00 00 00 14 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [11:55:57]RAPDU: 90 00 [11:55:57]wFMCommunicate OK [11:55:57]wFMCommunicate request_size=255 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CC 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 89 02 00 35 04 06 00 04 [11:55:57]Write to MH i2c: E2 02 01 99 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CC 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 89 02 00 35 04 06 00 04 00 00 34 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]OFD Sender: No OFD packet to send [11:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [11:55:57]RAPDU: 90 00 [11:55:57]wFMCommunicate OK [11:55:57]wFMCommunicate request_size=10 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 0D 02 02 05 5B F3 AF 55 26 [11:55:57]Write to MH i2c: E2 0D 00 9A 03 80 0D 02 02 05 00 5B F3 AF 55 26 00 00 99 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [11:55:57]RAPDU: 90 00 [11:55:57]wFMCommunicate OK [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 0D 03 02 [11:55:57]Write to MH i2c: E2 08 00 9B 03 80 0D 03 02 00 00 00 00 19 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0B 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0B 00 9B 03 00 FE E5 1D AC 2C FC 97 1C 90 00 A1 [11:55:57]RAPDU: FE E5 1D AC 2C FC 97 1C 90 00 [11:55:57]wFMCommunicate OK [11:55:57]SAM_PROTO_SignData done [11:55:57]FM_MakeSignedData done [11:55:57]CreateOFDProtocolMessage [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 11 00 00 [11:55:57]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 17 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [11:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:55:57]wFMCommunicate OK [11:55:57]CreateOFDProtocolMessage done [11:55:57]OFDSenderStorePacket 166370 [11:55:57]StoreOFDPacket docnum=166370 [11:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 69 07 01 D1 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CC 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 89 02 00 35 04 06 00 04 5B F3 AF 55 26 FE E5 1D AC 2C FC 97 1C [11:55:57]CheckFolder [11:55:57]dirname=/storage/ofd_packets [11:55:57]CheckFolder done [11:55:57]ProducePacketName [11:55:57]name=ofd_packets/00166370 [11:55:57]NVStorageSaveData ofd_packets/00166370 [11:55:57]File name is /storage/ofd_packets/00166370 [11:55:57]Write 301 bytes [11:55:57]NVStorageSaveData done [11:55:57]OFDSenderStorePacket done [11:55:57]KKMCreateOFDPacket done [11:55:57]NVStorageSaveData kkm_last_timestamp [11:55:57]File name is /storage/kkm_last_timestamp [11:55:57]Write 4 bytes [11:55:57]NVStorageSaveData done [11:55:57]ExternCall_PrintAddStr [11:55:57]wPrintStart [11:55:57]Write to MH i2c: 01 00 00 9D 03 A0 [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 9D 03 00 00 00 00 00 FF 0F B5 [11:55:57]RasterBufferAndPrint [11:55:57]line Счет N : (1)220948 [11:55:57]line ИНН: 02508201610067 [11:55:57]line Контрольно-Кассовый Чек [11:55:57]line ПРОДАЖА [11:55:57]line ТРК (МРК, ГНК) : 13 [11:55:57]line Товар: 2710124130 [11:55:57]line Аи-92-К-5 [11:55:57]line 19.440 * 66.90 [11:55:57]line = 1300.54 [11:55:57]line НДС 12% НСП 1% [11:55:57]line > о реализуемом товаре [11:55:57]line ИТОГО: 1300.54 [11:55:57]line НСП 1% : 11.51 [11:55:57]line НДС 12% : 138.11 [11:55:57]line Наличными: 0.00 [11:55:57]line Безнал.: 1300.54 [11:55:57]line Место: АЗС № 161 "Партнер Нефть" [11:55:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:55:57]line СНО: Общий режим [11:55:57]line Чек 125 22.10.2024 11:55 [11:55:57]line Смена: 536 ФФД: 1.0 [11:55:57]line ЗНМ: 0300000104 [11:55:57]line РНМ: 0000000000091764 [11:55:57]line Версия ККМ: 001 [11:55:57]line Платежная система: Mbank [11:55:57]line ФМ: 0000000000871759 [11:55:57]line ФД: 166370 [11:55:57]line ФПД: 4792976889126 [11:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115556&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166370&fm=4792976889126&tin=02508201610067®Number=0000000000091764&sum=130054 [11:55:57]OFD Sender: Processing packet 166370 [packets to send 48, broken 47] [11:55:57]ProducePacketName [11:55:57]name=ofd_packets/00166370 [11:55:57]OFD Sender: To server: pG, [11:55:57]CommunicateWithHost lk.salyk.kg:30040 [11:55:57]ConnectInit lk.salyk.kg [11:55:57]written 0, free lines is 4095 [11:55:58]Connected sock=10 [11:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 69 07 01 D1 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CC 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 89 02 00 35 04 06 00 04 5B F3 AF 55 26 FE E5 1D AC 2C FC 97 1C [11:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 7D 47 00 A5 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 89 02 00 F4 03 04 00 37 39 17 67 B6 04 01 00 00 0C AF BF DF 64 C6 8B A5 [11:55:58]CommunicateWithHost err = 0 [11:55:58]CheckOFDResponse [11:55:58]1017 (14) - 77093643461234 [11:55:58]1041 (16) - 0000000000871759 [11:55:58]1040 (4) - 166370 [11:55:58]1012 (4) - 22.10.2024 05:33 [11:55:58]1206 (1) - 0 [11:55:58]OFD Sender: Remove packet 166370 [11:55:58]ProducePacketName [11:55:58]name=ofd_packets/00166370 [11:55:58]NVStorageDeleteData [11:55:58]Write to MH i2c: 01 00 00 C6 03 C9 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 E7 0C C3 [11:55:58]RasterBufferAndPrint [11:55:58]line [11:55:58]line [11:55:58]line [11:55:58]line [11:55:58]line [11:55:58]written 0, free lines is 3310 [11:55:58]MH_Cut [11:55:58]Write to MH i2c: D1 01 00 CD 03 01 A2 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: D1 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: D1 01 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: D1 01 00 CD 03 00 A1 [11:55:58]Write to MH i2c: 01 00 00 CE 03 D1 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]OFD Sender: No OFD packet to send [11:55:59]*** Cut start [11:55:59]*** Partial cut [11:55:59]*** CUTSNS_PIN = 1 [11:55:59]*** CUTSNS_PIN = 0 [11:55:59]*** 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 CE 03 00 00 00 00 00 FF 0F E6 [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 CF 03 80 11 00 00 00 00 00 00 4C [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 CF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [11:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11: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 D0 03 80 13 00 00 00 00 00 00 4F [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 D0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11: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 D1 03 80 13 01 00 00 00 00 00 51 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:00]Read from MH i2c: E2 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A4 [11:56:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:56:00]wFMCommunicate OK [11:56:00]SAM_PROTO_GetShiftState done [11:56:00]FM_GetShiftState done [11:56:00]req_shift_opened done [11:56:00]requested_item shift.open_date is exist - process it [11:56:00]req_shift_open_date [11:56:00]req_shift_open_date done [11:56:00]produce_requested_data done [11:56:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166370,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:56:00]process_action_free close_receipt [11:56:00]json_value_free [11:56:00]json_value_free done [11:56:00]process_json_proto returns [11:56:00]Send response to host [11:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166370,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:56:00]free response buf [11:56:00]execute_script done [11:56:00]execute_script returns [11:56:00]free content buf [11:56:00]Sock 9.Close socket [11:56:00]Sock 9.Thread stoped [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:41]accept exits with 7 [11:56:41]New connection [11:56:41]New thread 3067493732 created [11:56:41]Thread 3067637092 joined [11:56:41]Waiting for new connection... [11:56:41] Sock 7.Parse request [11:56:41]Sock 7.Check first char [11:56:41]Sock 7.First char is OK [11:56:41]request: POST /json_proto HTTP/1.0 [11:56:41]Method: POST [11:56:41]URL: /json_proto [11:56:41]Method is POST - this is cgi request [11:56:41]url: /json_proto [11:56:41]query_string will be loaded in cgi processing [11:56:41]execute_cgi json_proto POST (null) [11:56:41]execute_cgi path=json_proto method=POST [11:56:41]POST find Content-Length [11:56:41]Host: 172.17.53.195:8080 [11:56:41]Content-Length: 800 [11:56:41]Content-Type: application/json [11:56:41] [11:56:41]POST finish read [11:56:41]Found Content-Length = 800 [11:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675616", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:41]execute_script... [11:56:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675616", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:41]POST & json_proto [11:56:41]process_json_proto [11:56:41]json parsed OK: [11:56:41]protocol is kg_v1.0 [11:56:41]action value=close_receipt [11:56:41]process_action close_receipt [11:56:41]cmd_close_receipt [11:56:41]MH_GetDate [11:56:41]Write to MH i2c: F0 00 00 D2 03 C4 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 09 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: F0 09 00 D2 03 00 F9 92 17 67 21 48 4A 65 EE [11:56:41]GetLastDocTimeStamp 1729598156 [11:56:41]current date 1729598201 [11:56:41]FM_GetShiftState [11:56:41]SAM_PROTO_GetShiftState [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 13 01 00 [11:56:41]Write to MH i2c: E2 08 00 D3 03 80 13 01 00 00 00 00 00 53 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 0E 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 0E 00 D3 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A6 [11:56:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:56:41]wFMCommunicate OK [11:56:41]SAM_PROTO_GetShiftState done [11:56:41]FM_GetShiftState done [11:56:41]opened in 1729557463 [11:56:41]opened+sec_in_day 1729643863 [11:56:41]quantity*price = 0 [11:56:41]sum+1 = 1 [11:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 126 22.10.2024 11:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 1675616 ФМ: 0000000000871759 ФД: 166371 ФПД: 1925645597175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166371&fm=1925645597175&tin=02508201610067®Number=0000000000091764&sum=0 [11:56:42]StoreToDocumentArchive [11:56:42]shift 536 fd 166371 [11:56:42]save to /storage/0536/doc_00166371 [11:56:42]save last doc name /storage/0536/doc_00166371 to /storage/kkm_last_doc_name [11:56:42]save OK [11:56:42]Clear old archive folders... [11:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:42]tlvbuf is 00A027B0 [11:56:42]SAM_PROTO_ClearQueue [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 09 00 00 [11:56:42]Write to MH i2c: E2 08 00 E0 03 80 09 00 00 00 00 00 00 55 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]SAM_PROTO_ClearQueue done [11:56:42]KKMCreateOFDPacket [11:56:42]OFDProtocolAddRootSTLVToBuf [11:56:42]FM_MakeSignedData [11:56:42]FM_MakeSignedData [11:56:42]SAM_PROTO_SignData [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 01 02 [11:56:42]Write to MH i2c: E2 08 00 E1 03 80 0D 01 02 00 00 00 00 5D [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=255 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 89 02 00 35 04 06 00 01 [11:56:42]Write to MH i2c: E2 02 01 E2 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 89 02 00 35 04 06 00 01 00 00 F0 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=10 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 02 02 05 C0 59 6B F9 F7 [11:56:42]Write to MH i2c: E2 0D 00 E3 03 80 0D 02 02 05 00 C0 59 6B F9 F7 00 00 DE [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 03 02 [11:56:42]Write to MH i2c: E2 08 00 E4 03 80 0D 03 02 00 00 00 00 62 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 E4 03 00 11 EA 5D 6F 9D 90 44 26 90 00 C1 [11:56:42]RAPDU: 11 EA 5D 6F 9D 90 44 26 90 00 [11:56:42]wFMCommunicate OK [11:56:42]SAM_PROTO_SignData done [11:56:42]FM_MakeSignedData done [11:56:42]CreateOFDProtocolMessage [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 11 00 00 [11:56:42]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [11:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:56:42]wFMCommunicate OK [11:56:42]CreateOFDProtocolMessage done [11:56:42]OFDSenderStorePacket 166371 [11:56:42]StoreOFDPacket docnum=166371 [11:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B F8 07 01 D4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 89 02 00 35 04 06 00 01 C0 59 6B F9 F7 11 EA 5D 6F 9D 90 44 26 [11:56:42]CheckFolder [11:56:42]dirname=/storage/ofd_packets [11:56:42]CheckFolder done [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00166371 [11:56:42]NVStorageSaveData ofd_packets/00166371 [11:56:42]File name is /storage/ofd_packets/00166371 [11:56:42]Write 301 bytes [11:56:42]NVStorageSaveData done [11:56:42]OFDSenderStorePacket done [11:56:42]KKMCreateOFDPacket done [11:56:42]NVStorageSaveData kkm_last_timestamp [11:56:42]File name is /storage/kkm_last_timestamp [11:56:42]Write 4 bytes [11:56:42]NVStorageSaveData done [11:56:42]ExternCall_PrintAddStr [11:56:42]wPrintStart [11:56:42]Write to MH i2c: 01 00 00 E6 03 E9 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [11:56:42]RasterBufferAndPrint [11:56:42]line Счет N : (1)220949 [11:56:42]line ИНН: 02508201610067 [11:56:42]line Контрольно-Кассовый Чек [11:56:42]line ПРОДАЖА [11:56:42]line ТРК (МРК, ГНК) : 24 [11:56:42]line Товар: 2710124500 [11:56:42]line Аи-95-К-5 [11:56:42]line 20.000 * 0.00 [11:56:42]line = 0.00 [11:56:42]line НДС 12% НСП 1% [11:56:42]line > о реализуемом товаре [11:56:42]line ИТОГО: 0.00 [11:56:42]line НСП 1% : 0.00 [11:56:42]line НДС 12% : 0.00 [11:56:42]line Наличными: 0.00 [11:56:42]line Безнал.: 0.00 [11:56:42]line Место: АЗС № 161 "Партнер Нефть" [11:56:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:56:42]line СНО: Общий режим [11:56:42]line Чек 126 22.10.2024 11:56 [11:56:42]line Смена: 536 ФФД: 1.0 [11:56:42]line ЗНМ: 0300000104 [11:56:42]line РНМ: 0000000000091764 [11:56:42]line Версия ККМ: 001 [11:56:42]line Талоны: Топливные Талоны [11:56:42]line 1675616 [11:56:42]line ФМ: 0000000000871759 [11:56:42]line ФД: 166371 [11:56:42]line ФПД: 1925645597175 [11:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115641&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166371&fm=1925645597175&tin=02508201610067®Number=0000000000091764&sum=0 [11:56:43]written 0, free lines is 4095 [11:56:43]OFD Sender: Processing packet 166371 [packets to send 48, broken 47] [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00166371 [11:56:43]OFD Sender: To server: pG, [11:56:43]CommunicateWithHost lk.salyk.kg:30040 [11:56:43]ConnectInit lk.salyk.kg [11:56:43]Connected sock=10 [11:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B F8 07 01 D4 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F9 92 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 89 02 00 35 04 06 00 01 C0 59 6B F9 F7 11 EA 5D 6F 9D 90 44 26 [11:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC 2A 47 00 94 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 89 02 00 F4 03 04 00 64 39 17 67 B6 04 01 00 00 EA C1 5A 07 0F 0A AD EA [11:56:43]CommunicateWithHost err = 0 [11:56:43]CheckOFDResponse [11:56:43]1017 (14) - 77093643461234 [11:56:43]1041 (16) - 0000000000871759 [11:56:43]1040 (4) - 166371 [11:56:43]1012 (4) - 22.10.2024 05:34 [11:56:43]1206 (1) - 0 [11:56:43]OFD Sender: Remove packet 166371 [11:56:43]ProducePacketName [11:56:43]name=ofd_packets/00166371 [11:56:43]NVStorageDeleteData [11:56:43]Write to MH i2c: 01 00 00 10 04 14 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 CF 0C F6 [11:56:43]RasterBufferAndPrint [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]written 0, free lines is 3284 [11:56:43]MH_Cut [11:56:43]Write to MH i2c: D1 01 00 17 04 01 ED [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 01 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 01 00 17 04 00 EC [11:56:43]Write to MH i2c: 01 00 00 18 04 1C [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]OFD Sender: No OFD packet to send [11:56:44]*** Cut start [11:56:44]*** Partial cut [11:56:44]*** CUTSNS_PIN = 1 [11:56:44]*** CUTSNS_PIN = 0 [11:56:44]*** Brake cut motor [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [11:56:44]*** Stop cut motor [11:56:44]*** Cut end [11:56:44]Read from MH i2c: 01 07 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [11:56:44]process_action close_receipt done [11:56:44]requested_data is exist [11:56:44]produce_requested_data [11:56:44]requested_item fm.sn is exist - process it [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 11 00 00 [11:56:44]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [11:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:56:44]wFMCommunicate OK [11:56:44]requested_item fd.num is exist - process it [11:56:44]SAM_PROTO_GetFieldsCounters [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 00 00 [11:56:44]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 62 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 62 00 1A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:56:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:45]wFMCommunicate OK [11:56:45]SAM_PROTO_GetFieldsCounters done [11:56:45]requested_item shift.num is exist - process it [11:56:45]requested_item shift.opened is exist - process it [11:56:45]req_shift_opened [11:56:45]FM_GetShiftState [11:56:45]SAM_PROTO_GetShiftState [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 13 01 00 [11:56:45]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 0E 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EF [11:56:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:56:45]wFMCommunicate OK [11:56:45]SAM_PROTO_GetShiftState done [11:56:45]FM_GetShiftState done [11:56:45]req_shift_opened done [11:56:45]requested_item shift.open_date is exist - process it [11:56:45]req_shift_open_date [11:56:45]req_shift_open_date done [11:56:45]produce_requested_data done [11:56:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166371,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:56:45]process_action_free close_receipt [11:56:45]json_value_free [11:56:45]json_value_free done [11:56:45]process_json_proto returns [11:56:45]Send response to host [11:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166371,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:56:45]free response buf [11:56:45]execute_script done [11:56:45]execute_script returns [11:56:45]free content buf [11:56:45]Sock 7.Close socket [11:56:45]Sock 7.Thread stoped [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]accept exits with 9 [11:57:08]New connection [11:57:08]New thread 3067637092 created [11:57:08]Thread 3067493732 joined [11:57:08]Waiting for new connection... [11:57:08] Sock 9.Parse request [11:57:08]Sock 9.Check first char [11:57:08]Sock 9.First char is OK [11:57:08]request: POST /json_proto HTTP/1.0 [11:57:08]Method: POST [11:57:08]URL: /json_proto [11:57:08]Method is POST - this is cgi request [11:57:08]url: /json_proto [11:57:08]query_string will be loaded in cgi processing [11:57:08]execute_cgi json_proto POST (null) [11:57:08]execute_cgi path=json_proto method=POST [11:57:08]POST find Content-Length [11:57:08]Host: 172.17.53.195:8080 [11:57:08]Content-Length: 767 [11:57:08]Content-Type: application/json [11:57:08] [11:57:08]POST finish read [11:57:08]Found Content-Length = 767 [11:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:08]execute_script... [11:57:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:08]POST & json_proto [11:57:08]process_json_proto [11:57:08]json parsed OK: [11:57:08]protocol is kg_v1.0 [11:57:08]action value=close_receipt [11:57:08]process_action close_receipt [11:57:08]cmd_close_receipt [11:57:08]MH_GetDate [11:57:08]Write to MH i2c: F0 00 00 1C 04 0F [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: F0 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: F0 09 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: F0 09 00 1C 04 00 14 93 17 67 21 48 4A 65 55 [11:57:08]GetLastDocTimeStamp 1729598201 [11:57:08]current date 1729598228 [11:57:08]FM_GetShiftState [11:57:08]SAM_PROTO_GetShiftState [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 13 01 00 [11:57:08]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 0E 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F1 [11:57:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:57:08]wFMCommunicate OK [11:57:08]SAM_PROTO_GetShiftState done [11:57:08]FM_GetShiftState done [11:57:08]opened in 1729557463 [11:57:08]opened+sec_in_day 1729643863 [11:57:08]quantity*price = 80012 [11:57:08]sum+1 = 80013 [11:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 127 22.10.2024 11:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166372 ФПД: 276398906156049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166372&fm=276398906156049&tin=02508201610067®Number=0000000000091764&sum=80012 [11:57:09]StoreToDocumentArchive [11:57:09]shift 536 fd 166372 [11:57:09]save to /storage/0536/doc_00166372 [11:57:09]save last doc name /storage/0536/doc_00166372 to /storage/kkm_last_doc_name [11:57:09]save OK [11:57:09]Clear old archive folders... [11:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:09]tlvbuf is 009D2E80 [11:57:09]SAM_PROTO_ClearQueue [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 09 00 00 [11:57:09]Write to MH i2c: E2 08 00 2A 04 80 09 00 00 00 00 00 00 A0 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]SAM_PROTO_ClearQueue done [11:57:09]KKMCreateOFDPacket [11:57:09]OFDProtocolAddRootSTLVToBuf [11:57:09]FM_MakeSignedData [11:57:09]FM_MakeSignedData [11:57:09]SAM_PROTO_SignData [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 01 02 [11:57:09]Write to MH i2c: E2 08 00 2B 04 80 0D 01 02 00 00 00 00 A8 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]wFMCommunicate request_size=255 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 14 93 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 89 02 00 35 04 06 00 FB [11:57:09]Write to MH i2c: E2 02 01 2C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 14 93 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 89 02 00 35 04 06 00 FB 00 00 6A [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]wFMCommunicate request_size=10 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 02 02 05 62 22 9E 24 11 [11:57:09]Write to MH i2c: E2 0D 00 2D 04 80 0D 02 02 05 00 62 22 9E 24 11 00 00 0C [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 03 02 [11:57:09]Write to MH i2c: E2 08 00 2E 04 80 0D 03 02 00 00 00 00 AD [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 0B 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 0B 00 2E 04 00 EB 4C A4 AF 16 AF 35 30 90 00 62 [11:57:09]RAPDU: EB 4C A4 AF 16 AF 35 30 90 00 [11:57:09]wFMCommunicate OK [11:57:09]SAM_PROTO_SignData done [11:57:09]FM_MakeSignedData done [11:57:09]CreateOFDProtocolMessage [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 11 00 00 [11:57:09]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 17 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [11:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:09]wFMCommunicate OK [11:57:09]CreateOFDProtocolMessage done [11:57:09]OFDSenderStorePacket 166372 [11:57:09]StoreOFDPacket docnum=166372 [11:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 45 07 01 ED FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 14 93 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 89 02 00 35 04 06 00 FB 62 22 9E 24 11 EB 4C A4 AF 16 AF 35 30 [11:57:09]CheckFolder [11:57:09]dirname=/storage/ofd_packets [11:57:09]CheckFolder done [11:57:09]ProducePacketName [11:57:09]name=ofd_packets/00166372 [11:57:09]NVStorageSaveData ofd_packets/00166372 [11:57:09]File name is /storage/ofd_packets/00166372 [11:57:09]Write 301 bytes [11:57:09]NVStorageSaveData done [11:57:09]OFDSenderStorePacket done [11:57:09]KKMCreateOFDPacket done [11:57:09]NVStorageSaveData kkm_last_timestamp [11:57:09]File name is /storage/kkm_last_timestamp [11:57:09]Write 4 bytes [11:57:09]NVStorageSaveData done [11:57:09]ExternCall_PrintAddStr [11:57:09]wPrintStart [11:57:09]Write to MH i2c: 01 00 00 30 04 34 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 07 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [11:57:09]RasterBufferAndPrint [11:57:09]line Счет N : (1)220950 [11:57:09]line ИНН: 02508201610067 [11:57:09]line Контрольно-Кассовый Чек [11:57:09]line ПРОДАЖА [11:57:09]line ТРК (МРК, ГНК) : 33 [11:57:09]line Товар: 2710124130 [11:57:09]line Аи-92-К-5 [11:57:09]line 11.960 * 66.90 [11:57:09]line = 800.12 [11:57:09]line НДС 12% НСП 1% [11:57:09]line > о реализуемом товаре [11:57:09]line ИТОГО: 800.12 [11:57:09]line НСП 1% : 7.08 [11:57:09]line НДС 12% : 84.97 [11:57:09]line Наличными: 0.00 [11:57:09]line Безнал.: 800.12 [11:57:09]line Место: АЗС № 161 "Партнер Нефть" [11:57:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:57:09]line СНО: Общий режим [11:57:09]line Чек 127 22.10.2024 11:57 [11:57:09]line Смена: 536 ФФД: 1.0 [11:57:09]line ЗНМ: 0300000104 [11:57:09]line РНМ: 0000000000091764 [11:57:09]line Версия ККМ: 001 [11:57:09]line Платежная система: Mbank [11:57:09]line ФМ: 0000000000871759 [11:57:09]line ФД: 166372 [11:57:09]line ФПД: 276398906156049 [11:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166372&fm=276398906156049&tin=02508201610067®Number=0000000000091764&sum=80012 [11:57:10]OFD Sender: Processing packet 166372 [packets to send 48, broken 47] [11:57:10]ProducePacketName [11:57:10]name=ofd_packets/00166372 [11:57:10]OFD Sender: To server: pG, [11:57:10]CommunicateWithHost lk.salyk.kg:30040 [11:57:10]ConnectInit lk.salyk.kg [11:57:10]written 0, free lines is 4095 [11:57:10]Connected sock=10 [11:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 45 07 01 ED FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 14 93 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 89 02 00 35 04 06 00 FB 62 22 9E 24 11 EB 4C A4 AF 16 AF 35 30 [11:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 52 D9 47 00 85 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 89 02 00 F4 03 04 00 7F 39 17 67 B6 04 01 00 00 C0 7F A8 11 A8 23 F1 39 [11:57:10]CommunicateWithHost err = 0 [11:57:10]CheckOFDResponse [11:57:10]1017 (14) - 77093643461234 [11:57:10]1041 (16) - 0000000000871759 [11:57:10]1040 (4) - 166372 [11:57:10]1012 (4) - 22.10.2024 05:34 [11:57:10]1206 (1) - 0 [11:57:10]OFD Sender: Remove packet 166372 [11:57:10]ProducePacketName [11:57:10]name=ofd_packets/00166372 [11:57:10]NVStorageDeleteData [11:57:10]Write to MH i2c: 01 00 00 59 04 5D [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 07 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FB 0C 6B [11:57:10]RasterBufferAndPrint [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]written 0, free lines is 3329 [11:57:10]MH_Cut [11:57:10]Write to MH i2c: D1 01 00 60 04 01 36 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 01 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 01 00 60 04 00 35 [11:57:10]Write to MH i2c: 01 00 00 61 04 65 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:11]OFD Sender: No OFD packet to send [11:57:11]*** Cut start [11:57:11]*** Partial cut [11:57:11]*** CUTSNS_PIN = 1 [11:57:11]*** CUTSNS_PIN = 0 [11:57:11]*** Brake cut motor [11:57:12]Read from MH i2c: 01 [11:57:12]MH_I2C_Read... [11:57:12]*** Stop cut motor [11:57:12]Read from MH i2c: 01 *** Cut end [11:57:12]07 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 FF 0F 7A [11:57:12]process_action close_receipt done [11:57:12]requested_data is exist [11:57:12]produce_requested_data [11:57:12]requested_item fm.sn is exist - process it [11:57:12]wFMCommunicate request_size=4 [11:57:12]MH_SAM_APDU [11:57:12]CAPDU: 80 11 00 00 [11:57:12]Write to MH i2c: E2 08 00 62 04 80 11 00 00 00 00 00 00 E0 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:12]Read from MH i2c: E2 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 17 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 17 00 62 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [11:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:12]wFMCommunicate OK [11:57:12]requested_item fd.num is exist - process it [11:57:12]SAM_PROTO_GetFieldsCounters [11:57:12]wFMCommunicate request_size=4 [11:57:12]MH_SAM_APDU [11:57:12]CAPDU: 80 13 00 00 [11:57:12]Write to MH i2c: E2 08 00 63 04 80 13 00 00 00 00 00 00 E3 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:12]Read from MH i2c: E2 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 62 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 62 00 63 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:12]wFMCommunicate OK [11:57:12]SAM_PROTO_GetFieldsCounters done [11:57:12]requested_item shift.num is exist - process it [11:57:12]requested_item shift.opened is exist - process it [11:57:12]req_shift_opened [11:57:12]FM_GetShiftState [11:57:12]SAM_PROTO_GetShiftState [11:57:12]wFMCommunicate request_size=4 [11:57:12]MH_SAM_APDU [11:57:12]CAPDU: 80 13 01 00 [11:57:12]Write to MH i2c: E2 08 00 64 04 80 13 01 00 00 00 00 00 E5 [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:12]Read from MH i2c: E2 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 0E 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: E2 0E 00 64 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 38 [11:57:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [11:57:12]wFMCommunicate OK [11:57:12]SAM_PROTO_GetShiftState done [11:57:12]FM_GetShiftState done [11:57:12]req_shift_opened done [11:57:12]requested_item shift.open_date is exist - process it [11:57:12]req_shift_open_date [11:57:12]req_shift_open_date done [11:57:12]produce_requested_data done [11:57:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166372,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [11:57:12]process_action_free close_receipt [11:57:12]json_value_free [11:57:12]json_value_free done [11:57:12]process_json_proto returns [11:57:12]Send response to host [11:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166372,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [11:57:12]free response buf [11:57:12]execute_script done [11:57:12]execute_script returns [11:57:12]free content buf [11:57:12]Sock 9.Close socket [11:57:12]Sock 9.Thread stoped [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58: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:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:03]accept exits with 7 [12:06:03]New connection [12:06:03]New thread 3067493732 created [12:06:03]Thread 3067637092 joined [12:06:03]Waiting for new connection... [12:06:03] Sock 7.Parse request [12:06:03]Sock 7.Check first char [12:06:03]Sock 7.First char is OK [12:06:03]request: POST /json_proto HTTP/1.0 [12:06:03]Method: POST [12:06:03]URL: /json_proto [12:06:03]Method is POST - this is cgi request [12:06:03]url: /json_proto [12:06:03]query_string will be loaded in cgi processing [12:06:03]execute_cgi json_proto POST (null) [12:06:03]execute_cgi path=json_proto method=POST [12:06:03]POST find Content-Length [12:06:03]Host: 172.17.53.195:8080 [12:06:03]Content-Length: 682 [12:06:03]Content-Type: application/json [12:06:03] [12:06:03]POST finish read [12:06:03]Found Content-Length = 682 [12:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:03]execute_script... [12:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:03]POST & json_proto [12:06:03]process_json_proto [12:06:03]json parsed OK: [12:06:03]protocol is kg_v1.0 [12:06:03]action value=close_receipt [12:06:03]process_action close_receipt [12:06:03]cmd_close_receipt [12:06:03]MH_GetDate [12:06:03]Write to MH i2c: F0 00 00 65 04 58 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 09 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 09 00 65 04 00 2C 95 17 67 21 48 4A 65 B8 [12:06:03]GetLastDocTimeStamp 1729598228 [12:06:03]current date 1729598764 [12:06:03]FM_GetShiftState [12:06:03]SAM_PROTO_GetShiftState [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 13 01 00 [12:06:03]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0E 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3A [12:06:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:06:04]wFMCommunicate OK [12:06:04]SAM_PROTO_GetShiftState done [12:06:04]FM_GetShiftState done [12:06:04]opened in 1729557463 [12:06:04]opened+sec_in_day 1729643863 [12:06:04]quantity*price = 100021 [12:06:04]sum+1 = 100023 [12:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 128 22.10.2024 12:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166373 ФПД: 87911418721787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166373&fm=87911418721787&tin=02508201610067®Number=0000000000091764&sum=100000 [12:06:05]StoreToDocumentArchive [12:06:05]shift 536 fd 166373 [12:06:05]save to /storage/0536/doc_00166373 [12:06:05]save last doc name /storage/0536/doc_00166373 to /storage/kkm_last_doc_name [12:06:05]save OK [12:06:05]Clear old archive folders... [12:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:05]tlvbuf is 00A04A60 [12:06:05]SAM_PROTO_ClearQueue [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 09 00 00 [12:06:05]Write to MH i2c: E2 08 00 73 04 80 09 00 00 00 00 00 00 E9 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [12:06:05]RAPDU: 90 00 [12:06:05]wFMCommunicate OK [12:06:05]SAM_PROTO_ClearQueue done [12:06:05]KKMCreateOFDPacket [12:06:05]OFDProtocolAddRootSTLVToBuf [12:06:05]FM_MakeSignedData [12:06:05]FM_MakeSignedData [12:06:05]SAM_PROTO_SignData [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 0D 01 02 [12:06:05]Write to MH i2c: E2 08 00 74 04 80 0D 01 02 00 00 00 00 F1 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [12:06:05]RAPDU: 90 00 [12:06:05]wFMCommunicate OK [12:06:05]wFMCommunicate request_size=255 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2C 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 89 02 00 35 04 06 00 4F [12:06:05]Write to MH i2c: E2 02 01 75 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2C 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 89 02 00 35 04 06 00 4F 00 00 3C [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [12:06:05]RAPDU: 90 00 [12:06:05]wFMCommunicate OK [12:06:05]wFMCommunicate request_size=10 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 0D 02 02 05 F4 78 E2 75 FB [12:06:05]Write to MH i2c: E2 0D 00 76 04 80 0D 02 02 05 00 F4 78 E2 75 FB 00 00 BC [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [12:06:05]RAPDU: 90 00 [12:06:05]wFMCommunicate OK [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 0D 03 02 [12:06:05]Write to MH i2c: E2 08 00 77 04 80 0D 03 02 00 00 00 00 F6 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 0B 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 0B 00 77 04 00 AB EA 87 94 69 4D 01 EF 90 00 4D [12:06:05]RAPDU: AB EA 87 94 69 4D 01 EF 90 00 [12:06:05]wFMCommunicate OK [12:06:05]SAM_PROTO_SignData done [12:06:05]FM_MakeSignedData done [12:06:05]CreateOFDProtocolMessage [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 11 00 00 [12:06:05]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [12:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:05]wFMCommunicate OK [12:06:05]CreateOFDProtocolMessage done [12:06:05]OFDSenderStorePacket 166373 [12:06:05]StoreOFDPacket docnum=166373 [12:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 4D 07 01 15 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2C 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 89 02 00 35 04 06 00 4F F4 78 E2 75 FB AB EA 87 94 69 4D 01 EF [12:06:05]CheckFolder [12:06:05]dirname=/storage/ofd_packets [12:06:05]CheckFolder done [12:06:05]ProducePacketName [12:06:05]name=ofd_packets/00166373 [12:06:05]NVStorageSaveData ofd_packets/00166373 [12:06:05]File name is /storage/ofd_packets/00166373 [12:06:05]Write 301 bytes [12:06:05]NVStorageSaveData done [12:06:05]OFDSenderStorePacket done [12:06:05]KKMCreateOFDPacket done [12:06:05]NVStorageSaveData kkm_last_timestamp [12:06:05]File name is /storage/kkm_last_timestamp [12:06:05]Write 4 bytes [12:06:05]NVStorageSaveData done [12:06:05]ExternCall_PrintAddStr [12:06:05]wPrintStart [12:06:05]Write to MH i2c: 01 00 00 79 04 7D [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [12:06:05]RasterBufferAndPrint [12:06:05]line Счет N : (1)220951 [12:06:05]line ИНН: 02508201610067 [12:06:05]line Контрольно-Кассовый Чек [12:06:05]line ПРОДАЖА [12:06:05]line ТРК (МРК, ГНК) : 34 [12:06:05]line Товар: 2710124500 [12:06:05]line Аи-95-К-5 [12:06:05]line 13.480 * 74.20 [12:06:05]line = 1000.22 [12:06:05]line НДС 12% НСП 1% [12:06:05]line > о реализуемом товаре [12:06:05]line ОКРУГЛЕНИЕ: -0.22 [12:06:05]line ИТОГО: 1000.00 [12:06:05]line Внесено: 1000.00 [12:06:05]line СДАЧА: 0.00 [12:06:05]line НСП 1% : 8.85 [12:06:05]line НДС 12% : 106.22 [12:06:05]line Наличными: 1000.00 [12:06:05]line Безнал.: 0.00 [12:06:05]line Место: АЗС № 161 "Партнер Нефть" [12:06:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:06:05]line СНО: Общий режим [12:06:05]line Чек 128 22.10.2024 12:06 [12:06:05]line Смена: 536 ФФД: 1.0 [12:06:05]line ЗНМ: 0300000104 [12:06:05]line РНМ: 0000000000091764 [12:06:05]line Версия ККМ: 001 [12:06:05]line ФМ: 0000000000871759 [12:06:05]line ФД: 166373 [12:06:05]line ФПД: 87911418721787 [12:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120604&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166373&fm=87911418721787&tin=02508201610067®Number=0000000000091764&sum=100000 [12:06:06]OFD Sender: Processing packet 166373 [packets to send 48, broken 47] [12:06:06]ProducePacketName [12:06:06]name=ofd_packets/00166373 [12:06:06]OFD Sender: To server: pG, [12:06:06]CommunicateWithHost lk.salyk.kg:30040 [12:06:06]ConnectInit lk.salyk.kg [12:06:06]written 0, free lines is 4095 [12:06:06]Connected sock=10 [12:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 4D 07 01 15 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2C 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 89 02 00 35 04 06 00 4F F4 78 E2 75 FB AB EA 87 94 69 4D 01 EF [12:06:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 D4 47 00 0E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 89 02 00 F4 03 04 00 97 3B 17 67 B6 04 01 00 00 4F D4 18 55 EE 95 DD 02 [12:06:06]CommunicateWithHost err = 0 [12:06:06]CheckOFDResponse [12:06:06]1017 (14) - 77093643461234 [12:06:06]1041 (16) - 0000000000871759 [12:06:06]1040 (4) - 166373 [12:06:06]1012 (4) - 22.10.2024 05:43 [12:06:06]1206 (1) - 0 [12:06:06]OFD Sender: Remove packet 166373 [12:06:06]ProducePacketName [12:06:06]name=ofd_packets/00166373 [12:06:06]NVStorageDeleteData [12:06:06]Write to MH i2c: 01 00 00 A4 04 A8 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 07 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 D1 0C 8C [12:06:06]RasterBufferAndPrint [12:06:06]line [12:06:06]line [12:06:06]line [12:06:06]line [12:06:06]line [12:06:06]written 0, free lines is 3286 [12:06:06]MH_Cut [12:06:06]Write to MH i2c: D1 01 00 AB 04 01 81 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: D1 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: D1 01 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: D1 01 00 AB 04 00 80 [12:06:06]Write to MH i2c: 01 00 00 AC 04 B0 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]OFD Sender: No OFD packet to send [12:06:07]*** Cut start [12:06:07]*** Partial cut [12:06:07]*** CUTSNS_PIN = 1 [12:06:07]*** CUTSNS_PIN = 0 [12:06:07]*** Brake cut motor [12:06:07]Read from MH i2c: 01 [12:06:07]MH_I2C_Read... [12:06:07]*** Stop cut motor [12:06:07]*** Cut end [12:06:07]Read from MH i2c: 01 07 00 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [12:06:07]process_action close_receipt done [12:06:07]requested_data is exist [12:06:07]produce_requested_data [12:06:07]requested_item fm.sn is exist - process it [12:06:07]wFMCommunicate request_size=4 [12:06:07]MH_SAM_APDU [12:06:07]CAPDU: 80 11 00 00 [12:06:07]Write to MH i2c: E2 08 00 AD 04 80 11 00 00 00 00 00 00 2B [12:06:07]Write i2c OK [12:06:07]MH_I2C_Read... [12:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:07]Read from MH i2c: E2 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 17 00 [12:06:07]MH_I2C_Read... [12:06:07]Read from MH i2c: E2 17 00 AD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [12:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:06:07]wFMCommunicate OK [12:06:07]requested_item fd.num is exist - process it [12:06:07]SAM_PROTO_GetFieldsCounters [12:06:07]wFMCommunicate request_size=4 [12:06:07]MH_SAM_APDU [12:06:07]CAPDU: 80 13 00 00 [12:06:07]Write to MH i2c: E2 08 00 AE 04 80 13 00 00 00 00 00 00 2E [12:06:07]Write i2c OK [12:06:07]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 62 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 62 00 AE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:08]wFMCommunicate OK [12:06:08]SAM_PROTO_GetFieldsCounters done [12:06:08]requested_item shift.num is exist - process it [12:06:08]requested_item shift.opened is exist - process it [12:06:08]req_shift_opened [12:06:08]FM_GetShiftState [12:06:08]SAM_PROTO_GetShiftState [12:06:08]wFMCommunicate request_size=4 [12:06:08]MH_SAM_APDU [12:06:08]CAPDU: 80 13 01 00 [12:06:08]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 83 [12:06:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:06:08]wFMCommunicate OK [12:06:08]SAM_PROTO_GetShiftState done [12:06:08]FM_GetShiftState done [12:06:08]req_shift_opened done [12:06:08]requested_item shift.open_date is exist - process it [12:06:08]req_shift_open_date [12:06:08]req_shift_open_date done [12:06:08]produce_requested_data done [12:06:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166373,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:06:08]process_action_free close_receipt [12:06:08]json_value_free [12:06:08]json_value_free done [12:06:08]process_json_proto returns [12:06:08]Send response to host [12:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166373,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:06:08]free response buf [12:06:08]execute_script done [12:06:08]execute_script returns [12:06:08]free content buf [12:06:08]Sock 7.Close socket [12:06:08]Sock 7.Thread stoped [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:03]accept exits with 9 [12:09:03]New connection [12:09:03]New thread 3067637092 created [12:09:03]Thread 3067493732 joined [12:09:03]Waiting for new connection... [12:09:03] Sock 9.Parse request [12:09:03]Sock 9.Check first char [12:09:03]Sock 9.First char is OK [12:09:03]request: POST /json_proto HTTP/1.0 [12:09:03]Method: POST [12:09:03]URL: /json_proto [12:09:03]Method is POST - this is cgi request [12:09:03]url: /json_proto [12:09:03]query_string will be loaded in cgi processing [12:09:03]execute_cgi json_proto POST (null) [12:09:03]execute_cgi path=json_proto method=POST [12:09:03]POST find Content-Length [12:09:03]Host: 172.17.53.195:8080 [12:09:03]Content-Length: 677 [12:09:03]Content-Type: application/json [12:09:03] [12:09:03]POST finish read [12:09:03]Found Content-Length = 677 [12:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:03]execute_script... [12:09:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:03]POST & json_proto [12:09:03]process_json_proto [12:09:03]json parsed OK: [12:09:03]protocol is kg_v1.0 [12:09:03]action value=close_receipt [12:09:03]process_action close_receipt [12:09:03]cmd_close_receipt [12:09:03]MH_GetDate [12:09:03]Write to MH i2c: F0 00 00 B0 04 A3 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 09 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: F0 09 00 B0 04 00 DF 95 17 67 21 48 4A 65 B6 [12:09:03]GetLastDocTimeStamp 1729598764 [12:09:03]current date 1729598943 [12:09:03]FM_GetShiftState [12:09:03]SAM_PROTO_GetShiftState [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 01 00 [12:09:03]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 85 [12:09:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:09:03]wFMCommunicate OK [12:09:03]SAM_PROTO_GetShiftState done [12:09:03]FM_GetShiftState done [12:09:03]opened in 1729557463 [12:09:03]opened+sec_in_day 1729643863 [12:09:03]quantity*price = 50041 [12:09:03]sum+1 = 50042 [12:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 129 22.10.2024 12:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166374 ФПД: 208034332885115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166374&fm=208034332885115&tin=02508201610067®Number=0000000000091764&sum=50000 [12:09:04]StoreToDocumentArchive [12:09:04]shift 536 fd 166374 [12:09:04]save to /storage/0536/doc_00166374 [12:09:04]save last doc name /storage/0536/doc_00166374 to /storage/kkm_last_doc_name [12:09:04]save OK [12:09:04]Clear old archive folders... [12:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:04]tlvbuf is 009AD890 [12:09:04]SAM_PROTO_ClearQueue [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 09 00 00 [12:09:04]Write to MH i2c: E2 08 00 BE 04 80 09 00 00 00 00 00 00 34 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [12:09:04]RAPDU: 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_ClearQueue done [12:09:04]KKMCreateOFDPacket [12:09:04]OFDProtocolAddRootSTLVToBuf [12:09:04]FM_MakeSignedData [12:09:04]FM_MakeSignedData [12:09:04]SAM_PROTO_SignData [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 0D 01 02 [12:09:04]Write to MH i2c: E2 08 00 BF 04 80 0D 01 02 00 00 00 00 3C [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [12:09:04]RAPDU: 90 00 [12:09:04]wFMCommunicate OK [12:09:04]wFMCommunicate request_size=255 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DF 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 89 02 00 35 04 06 00 BD [12:09:04]Write to MH i2c: E2 02 01 C0 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DF 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 89 02 00 35 04 06 00 BD 00 00 8D [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]wFMCommunicate request_size=10 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 02 02 05 34 C4 83 40 7B [12:09:05]Write to MH i2c: E2 0D 00 C1 04 80 0D 02 02 05 00 34 C4 83 40 7B 00 00 7F [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 03 02 [12:09:05]Write to MH i2c: E2 08 00 C2 04 80 0D 03 02 00 00 00 00 41 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 0B 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 0B 00 C2 04 00 8D 0A C2 02 CA 3C D7 9D 90 00 17 [12:09:05]RAPDU: 8D 0A C2 02 CA 3C D7 9D 90 00 [12:09:05]wFMCommunicate OK [12:09:05]SAM_PROTO_SignData done [12:09:05]FM_MakeSignedData done [12:09:05]CreateOFDProtocolMessage [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 11 00 00 [12:09:05]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 17 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [12:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:05]wFMCommunicate OK [12:09:05]CreateOFDProtocolMessage done [12:09:05]OFDSenderStorePacket 166374 [12:09:05]StoreOFDPacket docnum=166374 [12:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 08 07 01 3A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DF 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 89 02 00 35 04 06 00 BD 34 C4 83 40 7B 8D 0A C2 02 CA 3C D7 9D [12:09:05]CheckFolder [12:09:05]dirname=/storage/ofd_packets [12:09:05]CheckFolder done [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00166374 [12:09:05]NVStorageSaveData ofd_packets/00166374 [12:09:05]File name is /storage/ofd_packets/00166374 [12:09:05]Write 301 bytes [12:09:05]NVStorageSaveData done [12:09:05]OFDSenderStorePacket done [12:09:05]KKMCreateOFDPacket done [12:09:05]NVStorageSaveData kkm_last_timestamp [12:09:05]File name is /storage/kkm_last_timestamp [12:09:05]Write 4 bytes [12:09:05]NVStorageSaveData done [12:09:05]ExternCall_PrintAddStr [12:09:05]wPrintStart [12:09:05]Write to MH i2c: 01 00 00 C4 04 C8 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 07 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [12:09:05]RasterBufferAndPrint [12:09:05]line Счет N : (1)220952 [12:09:05]line ИНН: 02508201610067 [12:09:05]line Контрольно-Кассовый Чек [12:09:05]line ПРОДАЖА [12:09:05]line ТРК (МРК, ГНК) : 23 [12:09:05]line Товар: 2710124130 [12:09:05]line Аи-92-К-5 [12:09:05]line 7.480 * 66.90 [12:09:05]line = 500.41 [12:09:05]line НДС 12% НСП 1% [12:09:05]line > о реализуемом товаре [12:09:05]line ОКРУГЛЕНИЕ: -0.41 [12:09:05]line ИТОГО: 500.00 [12:09:05]line Внесено: 500.00 [12:09:05]line СДАЧА: 0.00 [12:09:05]line НСП 1% : 4.43 [12:09:05]line НДС 12% : 53.14 [12:09:05]line Наличными: 500.00 [12:09:05]line Безнал.: 0.00 [12:09:05]line Место: АЗС № 161 "Партнер Нефть" [12:09:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:09:05]line СНО: Общий режим [12:09:05]line Чек 129 22.10.2024 12:09 [12:09:05]line Смена: 536 ФФД: 1.0 [12:09:05]line ЗНМ: 0300000104 [12:09:05]line РНМ: 0000000000091764 [12:09:05]line Версия ККМ: 001 [12:09:05]line ФМ: 0000000000871759 [12:09:05]line ФД: 166374 [12:09:05]line ФПД: 208034332885115 [12:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166374&fm=208034332885115&tin=02508201610067®Number=0000000000091764&sum=50000 [12:09:05]OFD Sender: Processing packet 166374 [packets to send 48, broken 47] [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00166374 [12:09:05]OFD Sender: To server: pG, [12:09:05]CommunicateWithHost lk.salyk.kg:30040 [12:09:05]ConnectInit lk.salyk.kg [12:09:05]written 0, free lines is 4095 [12:09:05]Connected sock=10 [12:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F8 08 07 01 3A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DF 95 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 89 02 00 35 04 06 00 BD 34 C4 83 40 7B 8D 0A C2 02 CA 3C D7 9D [12:09:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4A D5 47 00 12 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 89 02 00 F4 03 04 00 4B 3C 17 67 B6 04 01 00 00 45 8C 84 7C 3B 50 2F CF [12:09:05]CommunicateWithHost err = 0 [12:09:05]CheckOFDResponse [12:09:05]1017 (14) - 77093643461234 [12:09:05]1041 (16) - 0000000000871759 [12:09:05]1040 (4) - 166374 [12:09:05]1012 (4) - 22.10.2024 05:46 [12:09:05]1206 (1) - 0 [12:09:05]OFD Sender: Remove packet 166374 [12:09:05]ProducePacketName [12:09:05]name=ofd_packets/00166374 [12:09:05]NVStorageDeleteData [12:09:06]Write to MH i2c: 01 00 00 EF 04 F3 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 C2 0C C8 [12:09:06]RasterBufferAndPrint [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]line [12:09:06]written 0, free lines is 3272 [12:09:06]MH_Cut [12:09:06]Write to MH i2c: D1 01 00 F6 04 01 CC [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: D1 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: D1 01 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: D1 01 00 F6 04 00 CB [12:09:06]Write to MH i2c: 01 00 00 F7 04 FB [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]OFD Sender: No OFD packet to send [12:09:06]*** Cut start [12:09:06]*** Partial cut [12:09:06]*** CUTSNS_PIN = 1 [12:09:06]*** CUTSNS_PIN = 0 [12:09:07]*** Brake cut motor [12:09:07]*** Stop cut motor [12:09:07]*** Cut end [12:09:07]Read from MH i2c: 01 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 FF 0F 10 [12:09:07]process_action close_receipt done [12:09:07]requested_data is exist [12:09:07]produce_requested_data [12:09:07]requested_item fm.sn is exist - process it [12:09:07]wFMCommunicate request_size=4 [12:09:07]MH_SAM_APDU [12:09:07]CAPDU: 80 11 00 00 [12:09:07]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:07]Read from MH i2c: E2 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 17 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 17 00 F8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [12:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:07]wFMCommunicate OK [12:09:07]requested_item fd.num is exist - process it [12:09:07]SAM_PROTO_GetFieldsCounters [12:09:07]wFMCommunicate request_size=4 [12:09:07]MH_SAM_APDU [12:09:07]CAPDU: 80 13 00 00 [12:09:07]Write to MH i2c: E2 08 00 F9 04 80 13 00 00 00 00 00 00 79 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:07]Read from MH i2c: E2 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 62 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 62 00 F9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:07]wFMCommunicate OK [12:09:07]SAM_PROTO_GetFieldsCounters done [12:09:07]requested_item shift.num is exist - process it [12:09:07]requested_item shift.opened is exist - process it [12:09:07]req_shift_opened [12:09:07]FM_GetShiftState [12:09:07]SAM_PROTO_GetShiftState [12:09:07]wFMCommunicate request_size=4 [12:09:07]MH_SAM_APDU [12:09:07]CAPDU: 80 13 01 00 [12:09:07]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:07]Read from MH i2c: E2 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 0E 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CE [12:09:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:09:07]wFMCommunicate OK [12:09:07]SAM_PROTO_GetShiftState done [12:09:07]FM_GetShiftState done [12:09:07]req_shift_opened done [12:09:07]requested_item shift.open_date is exist - process it [12:09:07]req_shift_open_date [12:09:07]req_shift_open_date done [12:09:07]produce_requested_data done [12:09:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166374,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:09:07]process_action_free close_receipt [12:09:07]json_value_free [12:09:07]json_value_free done [12:09:07]process_json_proto returns [12:09:07]Send response to host [12:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166374,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:09:07]free response buf [12:09:07]execute_script done [12:09:07]execute_script returns [12:09:07]free content buf [12:09:07]Sock 9.Close socket [12:09:07]Sock 9.Thread stoped [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:10]accept exits with 7 [12:13:10]New connection [12:13:10]New thread 3067493732 created [12:13:10]Thread 3067637092 joined [12:13:10]Waiting for new connection... [12:13:10] Sock 7.Parse request [12:13:10]Sock 7.Check first char [12:13:10]Sock 7.First char is OK [12:13:10]request: POST /json_proto HTTP/1.0 [12:13:10]Method: POST [12:13:10]URL: /json_proto [12:13:10]Method is POST - this is cgi request [12:13:10]url: /json_proto [12:13:10]query_string will be loaded in cgi processing [12:13:10]execute_cgi json_proto POST (null) [12:13:10]execute_cgi path=json_proto method=POST [12:13:10]POST find Content-Length [12:13:10]Host: 172.17.53.195:8080 [12:13:10]Content-Length: 677 [12:13:10]Content-Type: application/json [12:13:10] [12:13:10]POST finish read [12:13:10]Found Content-Length = 677 [12:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.730, "sum" : 249.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 249.00, "payments": [ { "type": 0, "sum" : 249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:10]execute_script... [12:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.730, "sum" : 249.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 249.00, "payments": [ { "type": 0, "sum" : 249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:10]POST & json_proto [12:13:10]process_json_proto [12:13:10]json parsed OK: [12:13:10]protocol is kg_v1.0 [12:13:10]action value=close_receipt [12:13:10]process_action close_receipt [12:13:10]cmd_close_receipt [12:13:10]MH_GetDate [12:13:10]Write to MH i2c: F0 00 00 FB 04 EE [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: F0 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: F0 09 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: F0 09 00 FB 04 00 D6 96 17 67 21 48 4A 65 F9 [12:13:10]GetLastDocTimeStamp 1729598943 [12:13:10]current date 1729599190 [12:13:10]FM_GetShiftState [12:13:10]SAM_PROTO_GetShiftState [12:13:10]wFMCommunicate request_size=4 [12:13:10]MH_SAM_APDU [12:13:10]CAPDU: 80 13 01 00 [12:13:10]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:10]Read from MH i2c: E2 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: E2 0E 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D0 [12:13:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:13:10]wFMCommunicate OK [12:13:10]SAM_PROTO_GetShiftState done [12:13:10]FM_GetShiftState done [12:13:10]opened in 1729557463 [12:13:10]opened+sec_in_day 1729643863 [12:13:10]quantity*price = 24953 [12:13:10]sum+1 = 24955 [12:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 249.00 Внесено: 250.00 СДАЧА: 1.00 НСП 1% : 2.21 НДС 12% : 26.50 Наличными: 249.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 130 22.10.2024 12:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166375 ФПД: 218095953435148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121310&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166375&fm=218095953435148&tin=02508201610067®Number=0000000000091764&sum=24900 [12:13:11]StoreToDocumentArchive [12:13:11]shift 536 fd 166375 [12:13:11]save to /storage/0536/doc_00166375 [12:13:11]save last doc name /storage/0536/doc_00166375 to /storage/kkm_last_doc_name [12:13:11]save OK [12:13:11]Clear old archive folders... [12:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:11]tlvbuf is 009AF1C0 [12:13:11]SAM_PROTO_ClearQueue [12:13:11]wFMCommunicate request_size=4 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 09 00 00 [12:13:11]Write to MH i2c: E2 08 00 09 05 80 09 00 00 00 00 00 00 80 [12:13:11]OFD Sender: No OFD packet to send [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:11]Read from MH i2c: E2 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 03 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [12:13:11]RAPDU: 90 00 [12:13:11]wFMCommunicate OK [12:13:11]SAM_PROTO_ClearQueue done [12:13:11]KKMCreateOFDPacket [12:13:11]OFDProtocolAddRootSTLVToBuf [12:13:11]FM_MakeSignedData [12:13:11]FM_MakeSignedData [12:13:11]SAM_PROTO_SignData [12:13:11]wFMCommunicate request_size=4 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 0D 01 02 [12:13:11]Write to MH i2c: E2 08 00 0A 05 80 0D 01 02 00 00 00 00 88 [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:11]Read from MH i2c: E2 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 03 00 [12:13:11]MH_I2C_Read... [12:13:11]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [12:13:11]RAPDU: 90 00 [12:13:11]wFMCommunicate OK [12:13:11]wFMCommunicate request_size=255 [12:13:11]MH_SAM_APDU [12:13:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7A 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 D6 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 89 02 00 35 04 06 00 C6 [12:13:11]Write to MH i2c: E2 02 01 0B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7A 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 D6 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 89 02 00 35 04 06 00 C6 00 00 99 [12:13:11]Write i2c OK [12:13:11]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 03 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [12:13:12]RAPDU: 90 00 [12:13:12]wFMCommunicate OK [12:13:12]wFMCommunicate request_size=10 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 0D 02 02 05 5B 6B D4 DA 0C [12:13:12]Write to MH i2c: E2 0D 00 0C 05 80 0D 02 02 05 00 5B 6B D4 DA 0C 00 00 15 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 03 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [12:13:12]RAPDU: 90 00 [12:13:12]wFMCommunicate OK [12:13:12]wFMCommunicate request_size=4 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 0D 03 02 [12:13:12]Write to MH i2c: E2 08 00 0D 05 80 0D 03 02 00 00 00 00 8D [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 0B 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 0B 00 0D 05 00 40 DF 13 D8 16 1C 03 61 90 00 2E [12:13:12]RAPDU: 40 DF 13 D8 16 1C 03 61 90 00 [12:13:12]wFMCommunicate OK [12:13:12]SAM_PROTO_SignData done [12:13:12]FM_MakeSignedData done [12:13:12]CreateOFDProtocolMessage [12:13:12]wFMCommunicate request_size=4 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 11 00 00 [12:13:12]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 17 00 [12:13:12]MH_I2C_Read... [12:13:12]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 31 37 35 39 90 00 E5 [12:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:12]wFMCommunicate OK [12:13:12]CreateOFDProtocolMessage done [12:13:12]OFDSenderStorePacket 166375 [12:13:12]StoreOFDPacket docnum=166375 [12:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 AE 07 01 7E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7A 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 D6 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 89 02 00 35 04 06 00 C6 5B 6B D4 DA 0C 40 DF 13 D8 16 1C 03 61 [12:13:12]CheckFolder [12:13:12]dirname=/storage/ofd_packets [12:13:12]CheckFolder done [12:13:12]ProducePacketName [12:13:12]name=ofd_packets/00166375 [12:13:12]NVStorageSaveData ofd_packets/00166375 [12:13:12]File name is /storage/ofd_packets/00166375 [12:13:12]Write 301 bytes [12:13:12]NVStorageSaveData done [12:13:12]OFDSenderStorePacket done [12:13:12]KKMCreateOFDPacket done [12:13:12]NVStorageSaveData kkm_last_timestamp [12:13:12]File name is /storage/kkm_last_timestamp [12:13:12]Write 4 bytes [12:13:12]NVStorageSaveData done [12:13:12]ExternCall_PrintAddStr [12:13:12]wPrintStart [12:13:12]Write to MH i2c: 01 00 00 0F 05 14 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 07 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [12:13:12]RasterBufferAndPrint [12:13:12]line Счет N : (1)220954 [12:13:12]line ИНН: 02508201610067 [12:13:12]line Контрольно-Кассовый Чек [12:13:12]line ПРОДАЖА [12:13:12]line ТРК (МРК, ГНК) : 43 [12:13:12]line Товар: 2710124130 [12:13:12]line Аи-92-К-5 [12:13:12]line 3.730 * 66.90 [12:13:12]line = 249.54 [12:13:12]line НДС 12% НСП 1% [12:13:12]line > о реализуемом товаре [12:13:12]line ОКРУГЛЕНИЕ: -0.54 [12:13:12]line ИТОГО: 249.00 [12:13:12]line Внесено: 250.00 [12:13:12]line СДАЧА: 1.00 [12:13:12]line НСП 1% : 2.21 [12:13:12]line НДС 12% : 26.50 [12:13:12]line Наличными: 249.00 [12:13:12]line Безнал.: 0.00 [12:13:12]line Место: АЗС № 161 "Партнер Нефть" [12:13:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:13:12]line СНО: Общий режим [12:13:12]line Чек 130 22.10.2024 12:13 [12:13:12]line Смена: 536 ФФД: 1.0 [12:13:12]line ЗНМ: 0300000104 [12:13:12]line РНМ: 0000000000091764 [12:13:12]line Версия ККМ: 001 [12:13:12]line ФМ: 0000000000871759 [12:13:12]line ФД: 166375 [12:13:12]line ФПД: 218095953435148 [12:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121310&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166375&fm=218095953435148&tin=02508201610067®Number=0000000000091764&sum=24900 [12:13:12]written 0, free lines is 4095 [12:13:12]OFD Sender: Processing packet 166375 [packets to send 48, broken 47] [12:13:12]ProducePacketName [12:13:12]name=ofd_packets/00166375 [12:13:12]OFD Sender: To server: pG, [12:13:12]CommunicateWithHost lk.salyk.kg:30040 [12:13:12]ConnectInit lk.salyk.kg [12:13:12]Connected sock=9 [12:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 54 AE 07 01 7E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7A 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 D6 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 89 02 00 35 04 06 00 C6 5B 6B D4 DA 0C 40 DF 13 D8 16 1C 03 61 [12:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7F AE 47 00 99 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 89 02 00 F4 03 04 00 41 3D 17 67 B6 04 01 00 00 1C C2 11 20 B2 16 46 09 [12:13:12]CommunicateWithHost err = 0 [12:13:12]CheckOFDResponse [12:13:12]1017 (14) - 77093643461234 [12:13:12]1041 (16) - 0000000000871759 [12:13:12]1040 (4) - 166375 [12:13:12]1012 (4) - 22.10.2024 05:50 [12:13:12]1206 (1) - 0 [12:13:12]OFD Sender: Remove packet 166375 [12:13:12]ProducePacketName [12:13:12]name=ofd_packets/00166375 [12:13:12]NVStorageDeleteData [12:13:12]Write to MH i2c: 01 00 00 3A 05 3F [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 07 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 D1 0C 23 [12:13:12]RasterBufferAndPrint [12:13:12]line [12:13:12]line [12:13:12]line [12:13:12]line [12:13:12]line [12:13:12]written 0, free lines is 3288 [12:13:12]MH_Cut [12:13:12]Write to MH i2c: D1 01 00 41 05 01 18 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: D1 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: D1 01 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: D1 01 00 41 05 00 17 [12:13:12]Write to MH i2c: 01 00 00 42 05 47 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:13]OFD Sender: No OFD packet to send [12:13:13]*** Cut start [12:13:13]*** Partial cut [12:13:13]*** CUTSNS_PIN = 1 [12:13:13]*** CUTSNS_PIN = 0 [12:13:13]*** Brake cut motor [12:13:14]Read from MH i2c: 01 [12:13:14]MH_I2C_Read... [12:13:14]*** Stop cut motor [12:13:14]*** Cut end [12:13:14]Read from MH i2c: 01 07 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 FF 0F 5C [12:13:14]process_action close_receipt done [12:13:14]requested_data is exist [12:13:14]produce_requested_data [12:13:14]requested_item fm.sn is exist - process it [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 11 00 00 [12:13:14]Write to MH i2c: E2 08 00 43 05 80 11 00 00 00 00 00 00 C2 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 17 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 17 00 43 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [12:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:14]wFMCommunicate OK [12:13:14]requested_item fd.num is exist - process it [12:13:14]SAM_PROTO_GetFieldsCounters [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 13 00 00 [12:13:14]Write to MH i2c: E2 08 00 44 05 80 13 00 00 00 00 00 00 C5 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 62 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 62 00 44 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:14]wFMCommunicate OK [12:13:14]SAM_PROTO_GetFieldsCounters done [12:13:14]requested_item shift.num is exist - process it [12:13:14]requested_item shift.opened is exist - process it [12:13:14]req_shift_opened [12:13:14]FM_GetShiftState [12:13:14]SAM_PROTO_GetShiftState [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 13 01 00 [12:13:14]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 0E 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1A [12:13:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:13:14]wFMCommunicate OK [12:13:14]SAM_PROTO_GetShiftState done [12:13:14]FM_GetShiftState done [12:13:14]req_shift_opened done [12:13:14]requested_item shift.open_date is exist - process it [12:13:14]req_shift_open_date [12:13:14]req_shift_open_date done [12:13:14]produce_requested_data done [12:13:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166375,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:13:14]process_action_free close_receipt [12:13:14]json_value_free [12:13:14]json_value_free done [12:13:14]process_json_proto returns [12:13:14]Send response to host [12:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166375,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:13:14]free response buf [12:13:14]execute_script done [12:13:14]execute_script returns [12:13:14]free content buf [12:13:14]Sock 7.Close socket [12:13:14]Sock 7.Thread stoped [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:38]accept exits with 10 [12:13:38]New connection [12:13:38]New thread 3067637092 created [12:13:38]Thread 3067493732 joined [12:13:38]Waiting for new connection... [12:13:38] Sock 10.Parse request [12:13:38]Sock 10.Check first char [12:13:38]Sock 10.First char is OK [12:13:38]request: POST /json_proto HTTP/1.0 [12:13:38]Method: POST [12:13:38]URL: /json_proto [12:13:38]Method is POST - this is cgi request [12:13:38]url: /json_proto [12:13:38]query_string will be loaded in cgi processing [12:13:38]execute_cgi json_proto POST (null) [12:13:38]execute_cgi path=json_proto method=POST [12:13:38]POST find Content-Length [12:13:38]Host: 172.17.53.195:8080 [12:13:38]Content-Length: 789 [12:13:38]Content-Type: application/json [12:13:38] [12:13:38]POST finish read [12:13:38]Found Content-Length = 789 [12:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:38]execute_script... [12:13:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:38]POST & json_proto [12:13:38]process_json_proto [12:13:38]json parsed OK: [12:13:38]protocol is kg_v1.0 [12:13:38]action value=close_receipt [12:13:38]process_action close_receipt [12:13:38]cmd_close_receipt [12:13:38]MH_GetDate [12:13:38]Write to MH i2c: F0 00 00 46 05 3A [12:13:38]Write i2c OK [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 09 00 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 09 00 46 05 00 F2 96 17 67 21 48 4A 65 61 [12:13:38]GetLastDocTimeStamp 1729599190 [12:13:38]current date 1729599218 [12:13:38]FM_GetShiftState [12:13:38]SAM_PROTO_GetShiftState [12:13:38]wFMCommunicate request_size=4 [12:13:38]MH_SAM_APDU [12:13:38]CAPDU: 80 13 01 00 [12:13:38]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [12:13:38]Write i2c OK [12:13:38]MH_I2C_Read... [12:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:38]Read from MH i2c: E2 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: E2 0E 00 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1C [12:13:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:13:38]wFMCommunicate OK [12:13:38]SAM_PROTO_GetShiftState done [12:13:38]FM_GetShiftState done [12:13:38]opened in 1729557463 [12:13:38]opened+sec_in_day 1729643863 [12:13:38]quantity*price = 0 [12:13:38]sum+1 = 1 [12:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 131 22.10.2024 12:13 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166376 ФПД: 36673635921592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121338&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166376&fm=36673635921592&tin=02508201610067®Number=0000000000091764&sum=0 [12:13:39]StoreToDocumentArchive [12:13:39]shift 536 fd 166376 [12:13:39]save to /storage/0536/doc_00166376 [12:13:39]save last doc name /storage/0536/doc_00166376 to /storage/kkm_last_doc_name [12:13:39]save OK [12:13:39]Clear old archive folders... [12:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:39]tlvbuf is 00A40490 [12:13:39]SAM_PROTO_ClearQueue [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 09 00 00 [12:13:39]Write to MH i2c: E2 08 00 54 05 80 09 00 00 00 00 00 00 CB [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_ClearQueue done [12:13:39]KKMCreateOFDPacket [12:13:39]OFDProtocolAddRootSTLVToBuf [12:13:39]FM_MakeSignedData [12:13:39]FM_MakeSignedData [12:13:39]SAM_PROTO_SignData [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 01 02 [12:13:39]Write to MH i2c: E2 08 00 55 05 80 0D 01 02 00 00 00 00 D3 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=255 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F2 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 89 02 00 35 04 06 00 21 5A BF 0A [12:13:39]Write to MH i2c: E2 02 01 56 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F2 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 89 02 00 35 04 06 00 21 5A BF 0A 00 00 C7 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=7 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 02 AE B8 [12:13:39]Write to MH i2c: E2 0A 00 57 05 80 0D 02 02 02 00 AE B8 00 00 40 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 03 02 [12:13:39]Write to MH i2c: E2 08 00 58 05 80 0D 03 02 00 00 00 00 D8 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 58 05 00 E0 99 D1 C9 30 FE 6B 37 90 00 BC [12:13:39]RAPDU: E0 99 D1 C9 30 FE 6B 37 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_SignData done [12:13:39]FM_MakeSignedData done [12:13:39]CreateOFDProtocolMessage [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 11 00 00 [12:13:39]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [12:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:40]wFMCommunicate OK [12:13:40]CreateOFDProtocolMessage done [12:13:40]OFDSenderStorePacket 166376 [12:13:40]StoreOFDPacket docnum=166376 [12:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 33 35 04 01 09 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F2 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 89 02 00 35 04 06 00 21 5A BF 0A AE B8 E0 99 D1 C9 30 FE 6B 37 [12:13:40]CheckFolder [12:13:40]dirname=/storage/ofd_packets [12:13:40]CheckFolder done [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00166376 [12:13:40]NVStorageSaveData ofd_packets/00166376 [12:13:40]File name is /storage/ofd_packets/00166376 [12:13:40]Write 298 bytes [12:13:40]NVStorageSaveData done [12:13:40]OFDSenderStorePacket done [12:13:40]KKMCreateOFDPacket done [12:13:40]NVStorageSaveData kkm_last_timestamp [12:13:40]File name is /storage/kkm_last_timestamp [12:13:40]Write 4 bytes [12:13:40]NVStorageSaveData done [12:13:40]ExternCall_PrintAddStr [12:13:40]wPrintStart [12:13:40]Write to MH i2c: 01 00 00 5A 05 5F [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [12:13:40]RasterBufferAndPrint [12:13:40]line Счет N : (1)220953 [12:13:40]line ИНН: 02508201610067 [12:13:40]line Контрольно-Кассовый Чек [12:13:40]line ПРОДАЖА [12:13:40]line ТРК (МРК, ГНК) : 21 [12:13:40]line Товар: 2710194210 [12:13:40]line ДТ-К-5 [12:13:40]line 19.690 * 0.00 [12:13:40]line = 0.00 [12:13:40]line НДС 12% НСП 1% [12:13:40]line > о реализуемом товаре [12:13:40]line ИТОГО: 0.00 [12:13:40]line НСП 1% : 0.00 [12:13:40]line НДС 12% : 0.00 [12:13:40]line Наличными: 0.00 [12:13:40]line Безнал.: 0.00 [12:13:40]line Место: АЗС № 161 "Партнер Нефть" [12:13:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:13:40]line СНО: Общий режим [12:13:40]line Чек 131 22.10.2024 12:13 [12:13:40]line Смена: 536 ФФД: 1.0 [12:13:40]line ЗНМ: 0300000104 [12:13:40]line РНМ: 0000000000091764 [12:13:40]line Версия ККМ: 001 [12:13:40]line Талоны: Топливная Карта [12:13:40]line 85863 [12:13:40]line ФМ: 0000000000871759 [12:13:40]line ФД: 166376 [12:13:40]line ФПД: 36673635921592 [12:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121338&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166376&fm=36673635921592&tin=02508201610067®Number=0000000000091764&sum=0 [12:13:40]OFD Sender: Processing packet 166376 [packets to send 48, broken 47] [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00166376 [12:13:40]OFD Sender: To server: pG, [12:13:40]CommunicateWithHost lk.salyk.kg:30040 [12:13:40]ConnectInit lk.salyk.kg [12:13:40]written 0, free lines is 4095 [12:13:40]Connected sock=9 [12:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 33 35 04 01 09 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F2 96 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 89 02 00 35 04 06 00 21 5A BF 0A AE B8 E0 99 D1 C9 30 FE 6B 37 [12:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A F6 47 00 62 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 89 02 00 F4 03 04 00 5D 3D 17 67 B6 04 01 00 00 69 9F 69 52 0D 65 99 C2 [12:13:40]CommunicateWithHost err = 0 [12:13:40]CheckOFDResponse [12:13:40]1017 (14) - 77093643461234 [12:13:40]1041 (16) - 0000000000871759 [12:13:40]1040 (4) - 166376 [12:13:40]1012 (4) - 22.10.2024 05:51 [12:13:40]1206 (1) - 0 [12:13:40]OFD Sender: Remove packet 166376 [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00166376 [12:13:40]NVStorageDeleteData [12:13:40]Write to MH i2c: 01 00 00 84 05 89 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 D4 0C 70 [12:13:40]RasterBufferAndPrint [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]written 0, free lines is 3290 [12:13:40]MH_Cut [12:13:40]Write to MH i2c: D1 01 00 8B 05 01 62 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 8B 05 00 61 [12:13:40]Write to MH i2c: 01 00 00 8C 05 91 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:41]OFD Sender: No OFD packet to send [12:13:41]*** Cut start [12:13:41]*** Partial cut [12:13:41]*** CUTSNS_PIN = 1 [12:13:41]*** CUTSNS_PIN = 0 [12:13:41]*** Brake cut motor [12:13:42]Read from MH i2c: 01 [12:13:42]MH_I2C_Read... [12:13:42]*** Stop cut motor [12:13:42]*** Cut end [12:13:42]Read from MH i2c: 01 07 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [12:13:42]process_action close_receipt done [12:13:42]requested_data is exist [12:13:42]produce_requested_data [12:13:42]requested_item fm.sn is exist - process it [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 11 00 00 [12:13:42]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 17 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 17 00 8D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [12:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:13:42]wFMCommunicate OK [12:13:42]requested_item fd.num is exist - process it [12:13:42]SAM_PROTO_GetFieldsCounters [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 13 00 00 [12:13:42]Write to MH i2c: E2 08 00 8E 05 80 13 00 00 00 00 00 00 0F [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 62 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 62 00 8E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetFieldsCounters done [12:13:42]requested_item shift.num is exist - process it [12:13:42]requested_item shift.opened is exist - process it [12:13:42]req_shift_opened [12:13:42]FM_GetShiftState [12:13:42]SAM_PROTO_GetShiftState [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 13 01 00 [12:13:42]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 64 [12:13:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetShiftState done [12:13:42]FM_GetShiftState done [12:13:42]req_shift_opened done [12:13:42]requested_item shift.open_date is exist - process it [12:13:42]req_shift_open_date [12:13:42]req_shift_open_date done [12:13:42]produce_requested_data done [12:13:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166376,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:13:42]process_action_free close_receipt [12:13:42]json_value_free [12:13:42]json_value_free done [12:13:42]process_json_proto returns [12:13:42]Send response to host [12:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166376,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:13:42]free response buf [12:13:42]execute_script done [12:13:42]execute_script returns [12:13:42]free content buf [12:13:42]Sock 10.Close socket [12:13:42]Sock 10.Thread stoped [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]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:44]accept exits with 7 [12:18:44]New connection [12:18:44]New thread 3067493732 created [12:18:44]Thread 3067637092 joined [12:18:44]Waiting for new connection... [12:18:44] Sock 7.Parse request [12:18:44]Sock 7.Check first char [12:18:44]Sock 7.First char is OK [12:18:44]request: POST /json_proto HTTP/1.0 [12:18:44]Method: POST [12:18:44]URL: /json_proto [12:18:44]Method is POST - this is cgi request [12:18:44]url: /json_proto [12:18:44]query_string will be loaded in cgi processing [12:18:44]execute_cgi json_proto POST (null) [12:18:44]execute_cgi path=json_proto method=POST [12:18:44]POST find Content-Length [12:18:44]Host: 172.17.53.195:8080 [12:18:44]Content-Length: 677 [12:18:44]Content-Type: application/json [12:18:44] [12:18:44]POST finish read [12:18:44]Found Content-Length = 677 [12:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:44]execute_script... [12:18:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:44]POST & json_proto [12:18:44]process_json_proto [12:18:44]json parsed OK: [12:18:44]protocol is kg_v1.0 [12:18:44]action value=close_receipt [12:18:44]process_action close_receipt [12:18:44]cmd_close_receipt [12:18:44]MH_GetDate [12:18:44]Write to MH i2c: F0 00 00 90 05 84 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 90 05 00 25 98 17 67 21 48 4A 65 E0 [12:18:44]GetLastDocTimeStamp 1729599218 [12:18:44]current date 1729599525 [12:18:44]FM_GetShiftState [12:18:44]SAM_PROTO_GetShiftState [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 01 00 [12:18:44]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 66 [12:18:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetShiftState done [12:18:44]FM_GetShiftState done [12:18:44]opened in 1729557463 [12:18:44]opened+sec_in_day 1729643863 [12:18:44]quantity*price = 32045 [12:18:44]sum+1 = 32046 [12:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 132 22.10.2024 12:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166377 ФПД: 186711523239837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166377&fm=186711523239837&tin=02508201610067®Number=0000000000091764&sum=32000 [12:18:46]StoreToDocumentArchive [12:18:46]shift 536 fd 166377 [12:18:46]save to /storage/0536/doc_00166377 [12:18:46]save last doc name /storage/0536/doc_00166377 to /storage/kkm_last_doc_name [12:18:46]save OK [12:18:46]Clear old archive folders... [12:18:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:46]tlvbuf is 009D41F0 [12:18:46]SAM_PROTO_ClearQueue [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 09 00 00 [12:18:46]Write to MH i2c: E2 08 00 9E 05 80 09 00 00 00 00 00 00 15 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_ClearQueue done [12:18:46]KKMCreateOFDPacket [12:18:46]OFDProtocolAddRootSTLVToBuf [12:18:46]FM_MakeSignedData [12:18:46]FM_MakeSignedData [12:18:46]SAM_PROTO_SignData [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 01 02 [12:18:46]Write to MH i2c: E2 08 00 9F 05 80 0D 01 02 00 00 00 00 1D [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=255 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 89 02 00 35 04 06 00 A9 [12:18:46]Write to MH i2c: E2 02 01 A0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 89 02 00 35 04 06 00 A9 00 00 41 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=10 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 05 D0 2A 04 A7 9D [12:18:46]Write to MH i2c: E2 0D 00 A1 05 80 0D 02 02 05 00 D0 2A 04 A7 9D 00 00 6C [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 03 02 [12:18:46]Write to MH i2c: E2 08 00 A2 05 80 0D 03 02 00 00 00 00 22 [12:18:46]OFD Sender: No OFD packet to send [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 A2 05 00 02 48 90 04 B3 FE DF 31 90 00 C2 [12:18:46]RAPDU: 02 48 90 04 B3 FE DF 31 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_SignData done [12:18:46]FM_MakeSignedData done [12:18:46]CreateOFDProtocolMessage [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 11 00 00 [12:18:46]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [12:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:46]wFMCommunicate OK [12:18:46]CreateOFDProtocolMessage done [12:18:46]OFDSenderStorePacket 166377 [12:18:46]StoreOFDPacket docnum=166377 [12:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC AB 07 01 BD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 89 02 00 35 04 06 00 A9 D0 2A 04 A7 9D 02 48 90 04 B3 FE DF 31 [12:18:46]CheckFolder [12:18:46]dirname=/storage/ofd_packets [12:18:46]CheckFolder done [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00166377 [12:18:46]NVStorageSaveData ofd_packets/00166377 [12:18:46]File name is /storage/ofd_packets/00166377 [12:18:46]Write 301 bytes [12:18:46]NVStorageSaveData done [12:18:46]OFDSenderStorePacket done [12:18:46]KKMCreateOFDPacket done [12:18:46]NVStorageSaveData kkm_last_timestamp [12:18:46]File name is /storage/kkm_last_timestamp [12:18:46]Write 4 bytes [12:18:46]NVStorageSaveData done [12:18:46]ExternCall_PrintAddStr [12:18:46]wPrintStart [12:18:46]Write to MH i2c: 01 00 00 A4 05 A9 [12:18:46]OFD Sender: Processing packet 166377 [packets to send 48, broken 47] [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00166377 [12:18:46]OFD Sender: To server: pG, [12:18:46]CommunicateWithHost lk.salyk.kg:30040 [12:18:46]ConnectInit lk.salyk.kg [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [12:18:46]RasterBufferAndPrint [12:18:46]line Счет N : (1)220955 [12:18:46]line ИНН: 02508201610067 [12:18:46]line Контрольно-Кассовый Чек [12:18:46]line ПРОДАЖА [12:18:46]line ТРК (МРК, ГНК) : 23 [12:18:46]line Товар: 2710124130 [12:18:46]line Аи-92-К-5 [12:18:46]line 4.790 * 66.90 [12:18:46]line = 320.45 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line ОКРУГЛЕНИЕ: -0.45 [12:18:46]line ИТОГО: 320.00 [12:18:46]line Внесено: 320.00 [12:18:46]line СДАЧА: 0.00 [12:18:46]line НСП 1% : 2.84 [12:18:46]line НДС 12% : 34.03 [12:18:46]line Наличными: 320.00 [12:18:46]line Безнал.: 0.00 [12:18:46]line Место: АЗС № 161 "Партнер Нефть" [12:18:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:18:46]line СНО: Общий режим [12:18:46]line Чек 132 22.10.2024 12:18 [12:18:46]line Смена: 536 ФФД: 1.0 [12:18:46]line ЗНМ: 0300000104 [12:18:46]line РНМ: 0000000000091764 [12:18:46]line Версия ККМ: 001 [12:18:46]line ФМ: 0000000000871759 [12:18:46]line ФД: 166377 [12:18:46]line ФПД: 186711523239837 [12:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166377&fm=186711523239837&tin=02508201610067®Number=0000000000091764&sum=32000 [12:18:46]Connected sock=10 [12:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BC AB 07 01 BD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 89 02 00 35 04 06 00 A9 D0 2A 04 A7 9D 02 48 90 04 B3 FE DF 31 [12:18:47]written 0, free lines is 4095 [12:18:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 DB 47 00 63 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 89 02 00 F4 03 04 00 90 3E 17 67 B6 04 01 00 00 9D 41 FA 69 79 F2 04 6F [12:18:47]CommunicateWithHost err = 0 [12:18:47]CheckOFDResponse [12:18:47]1017 (14) - 77093643461234 [12:18:47]1041 (16) - 0000000000871759 [12:18:47]1040 (4) - 166377 [12:18:47]1012 (4) - 22.10.2024 05:56 [12:18:47]1206 (1) - 0 [12:18:47]OFD Sender: Remove packet 166377 [12:18:47]ProducePacketName [12:18:47]name=ofd_packets/00166377 [12:18:47]NVStorageDeleteData [12:18:47]Write to MH i2c: 01 00 00 CF 05 D4 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 BE 0C A5 [12:18:47]RasterBufferAndPrint [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]written 0, free lines is 3268 [12:18:47]MH_Cut [12:18:47]Write to MH i2c: D1 01 00 D6 05 01 AD [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 D6 05 00 AC [12:18:47]Write to MH i2c: 01 00 00 D7 05 DC [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]OFD Sender: No OFD packet to send [12:18:48]*** Cut start [12:18:48]*** Partial cut [12:18:48]*** CUTSNS_PIN = 1 [12:18:48]*** CUTSNS_PIN = 0 [12:18:48]*** Brake cut motor [12:18:48]Read from MH i2c: 01 [12:18:48]MH_I2C_Read... [12:18:48]*** Stop cut motor [12:18:48]*** Cut end [12:18:48]Read from MH i2c: 01 07 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [12:18:48]process_action close_receipt done [12:18:48]requested_data is exist [12:18:48]produce_requested_data [12:18:48]requested_item fm.sn is exist - process it [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 11 00 00 [12:18:48]Write to MH i2c: E2 08 00 D8 05 80 11 00 00 00 00 00 00 57 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 17 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 17 00 D8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [12:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:18:48]wFMCommunicate OK [12:18:48]requested_item fd.num is exist - process it [12:18:48]SAM_PROTO_GetFieldsCounters [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 13 00 00 [12:18:48]Write to MH i2c: E2 08 00 D9 05 80 13 00 00 00 00 00 00 5A [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 62 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 62 00 D9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:18:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetFieldsCounters done [12:18:49]requested_item shift.num is exist - process it [12:18:49]requested_item shift.opened is exist - process it [12:18:49]req_shift_opened [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 DA 05 80 13 01 00 00 00 00 00 5C [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 DA 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AF [12:18:49]RAPDU: 09 00 01 D7 F3 16 67 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]req_shift_opened done [12:18:49]requested_item shift.open_date is exist - process it [12:18:49]req_shift_open_date [12:18:49]req_shift_open_date done [12:18:49]produce_requested_data done [12:18:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166377,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:18:49]process_action_free close_receipt [12:18:49]json_value_free [12:18:49]json_value_free done [12:18:49]process_json_proto returns [12:18:49]Send response to host [12:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166377,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:18:49]free response buf [12:18:49]execute_script done [12:18:49]execute_script returns [12:18:49]free content buf [12:18:49]Sock 7.Close socket [12:18:49]Sock 7.Thread stoped [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:08]accept exits with 9 [12:20:08]New connection [12:20:08]New thread 3067637092 created [12:20:08]Thread 3067493732 joined [12:20:08]Waiting for new connection... [12:20:08] Sock 9.Parse request [12:20:08]Sock 9.Check first char [12:20:08]Sock 9.First char is OK [12:20:08]request: POST /json_proto HTTP/1.0 [12:20:08]Method: POST [12:20:08]URL: /json_proto [12:20:08]Method is POST - this is cgi request [12:20:08]url: /json_proto [12:20:08]query_string will be loaded in cgi processing [12:20:08]execute_cgi json_proto POST (null) [12:20:08]execute_cgi path=json_proto method=POST [12:20:08]POST find Content-Length [12:20:08]Host: 172.17.53.195:8080 [12:20:08]Content-Length: 677 [12:20:08]Content-Type: application/json [12:20:08] [12:20:08]POST finish read [12:20:08]Found Content-Length = 677 [12:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:08]execute_script... [12:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:08]POST & json_proto [12:20:08]process_json_proto [12:20:08]json parsed OK: [12:20:08]protocol is kg_v1.0 [12:20:08]action value=close_receipt [12:20:08]process_action close_receipt [12:20:08]cmd_close_receipt [12:20:08]MH_GetDate [12:20:08]Write to MH i2c: F0 00 00 DB 05 CF [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 09 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 09 00 DB 05 00 79 98 17 67 21 48 4A 65 7F [12:20:08]GetLastDocTimeStamp 1729599525 [12:20:08]current date 1729599609 [12:20:08]FM_GetShiftState [12:20:08]SAM_PROTO_GetShiftState [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 01 00 [12:20:08]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B1 [12:20:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetShiftState done [12:20:08]FM_GetShiftState done [12:20:08]opened in 1729557463 [12:20:08]opened+sec_in_day 1729643863 [12:20:08]quantity*price = 30038 [12:20:08]sum+1 = 30039 [12:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 133 22.10.2024 12:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166378 ФПД: 218541012473118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122009&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166378&fm=218541012473118&tin=02508201610067®Number=0000000000091764&sum=30000 [12:20:09]StoreToDocumentArchive [12:20:09]shift 536 fd 166378 [12:20:09]save to /storage/0536/doc_00166378 [12:20:09]save last doc name /storage/0536/doc_00166378 to /storage/kkm_last_doc_name [12:20:09]save OK [12:20:09]Clear old archive folders... [12:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:09]tlvbuf is 00A1CF30 [12:20:09]SAM_PROTO_ClearQueue [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 09 00 00 [12:20:09]Write to MH i2c: E2 08 00 E9 05 80 09 00 00 00 00 00 00 60 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]SAM_PROTO_ClearQueue done [12:20:09]KKMCreateOFDPacket [12:20:09]OFDProtocolAddRootSTLVToBuf [12:20:09]FM_MakeSignedData [12:20:09]FM_MakeSignedData [12:20:09]SAM_PROTO_SignData [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 01 02 [12:20:09]Write to MH i2c: E2 08 00 EA 05 80 0D 01 02 00 00 00 00 68 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=255 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 79 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 89 02 00 35 04 06 00 C6 [12:20:09]Write to MH i2c: E2 02 01 EB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 79 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 89 02 00 35 04 06 00 C6 00 00 5B [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=10 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 02 02 05 C3 0B 6A D5 1E [12:20:09]Write to MH i2c: E2 0D 00 EC 05 80 0D 02 02 05 00 C3 0B 6A D5 1E 00 00 A0 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 03 02 [12:20:09]Write to MH i2c: E2 08 00 ED 05 80 0D 03 02 00 00 00 00 6D [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0B 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 0B 00 ED 05 00 C6 EE A6 70 61 1E C8 E0 90 00 5F [12:20:10]RAPDU: C6 EE A6 70 61 1E C8 E0 90 00 [12:20:10]wFMCommunicate OK [12:20:10]SAM_PROTO_SignData done [12:20:10]FM_MakeSignedData done [12:20:10]CreateOFDProtocolMessage [12:20:10]wFMCommunicate request_size=4 [12:20:10]MH_SAM_APDU [12:20:10]CAPDU: 80 11 00 00 [12:20:10]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:10]Read from MH i2c: E2 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 17 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [12:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:20:10]wFMCommunicate OK [12:20:10]CreateOFDProtocolMessage done [12:20:10]OFDSenderStorePacket 166378 [12:20:10]StoreOFDPacket docnum=166378 [12:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA C1 07 01 4B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 79 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 89 02 00 35 04 06 00 C6 C3 0B 6A D5 1E C6 EE A6 70 61 1E C8 E0 [12:20:10]CheckFolder [12:20:10]dirname=/storage/ofd_packets [12:20:10]CheckFolder done [12:20:10]ProducePacketName [12:20:10]name=ofd_packets/00166378 [12:20:10]NVStorageSaveData ofd_packets/00166378 [12:20:10]File name is /storage/ofd_packets/00166378 [12:20:10]Write 301 bytes [12:20:10]NVStorageSaveData done [12:20:10]OFDSenderStorePacket done [12:20:10]KKMCreateOFDPacket done [12:20:10]NVStorageSaveData kkm_last_timestamp [12:20:10]File name is /storage/kkm_last_timestamp [12:20:10]Write 4 bytes [12:20:10]NVStorageSaveData done [12:20:10]ExternCall_PrintAddStr [12:20:10]wPrintStart [12:20:10]Write to MH i2c: 01 00 00 EF 05 F4 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [12:20:10]RasterBufferAndPrint [12:20:10]line Счет N : (1)220956 [12:20:10]line ИНН: 02508201610067 [12:20:10]line Контрольно-Кассовый Чек [12:20:10]line ПРОДАЖА [12:20:10]line ТРК (МРК, ГНК) : 33 [12:20:10]line Товар: 2710124130 [12:20:10]line Аи-92-К-5 [12:20:10]line 4.490 * 66.90 [12:20:10]line = 300.38 [12:20:10]line НДС 12% НСП 1% [12:20:10]line > о реализуемом товаре [12:20:10]line ОКРУГЛЕНИЕ: -0.38 [12:20:10]line ИТОГО: 300.00 [12:20:10]line Внесено: 300.00 [12:20:10]line СДАЧА: 0.00 [12:20:10]line НСП 1% : 2.66 [12:20:10]line НДС 12% : 31.90 [12:20:10]line Наличными: 300.00 [12:20:10]line Безнал.: 0.00 [12:20:10]line Место: АЗС № 161 "Партнер Нефть" [12:20:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:20:10]line СНО: Общий режим [12:20:10]line Чек 133 22.10.2024 12:20 [12:20:10]line Смена: 536 ФФД: 1.0 [12:20:10]line ЗНМ: 0300000104 [12:20:10]line РНМ: 0000000000091764 [12:20:10]line Версия ККМ: 001 [12:20:10]line ФМ: 0000000000871759 [12:20:10]line ФД: 166378 [12:20:10]line ФПД: 218541012473118 [12:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122009&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166378&fm=218541012473118&tin=02508201610067®Number=0000000000091764&sum=30000 [12:20:10]OFD Sender: Processing packet 166378 [packets to send 48, broken 47] [12:20:10]ProducePacketName [12:20:10]name=ofd_packets/00166378 [12:20:10]OFD Sender: To server: pG, [12:20:10]CommunicateWithHost lk.salyk.kg:30040 [12:20:10]ConnectInit lk.salyk.kg [12:20:10]written 0, free lines is 4095 [12:20:10]Connected sock=10 [12:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA C1 07 01 4B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 79 98 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 89 02 00 35 04 06 00 C6 C3 0B 6A D5 1E C6 EE A6 70 61 1E C8 E0 [12:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 6F 47 00 E6 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 89 02 00 F4 03 04 00 E3 3E 17 67 B6 04 01 00 00 A8 DB 06 0B A8 CB 41 8D [12:20:10]CommunicateWithHost err = 0 [12:20:10]CheckOFDResponse [12:20:10]1017 (14) - 77093643461234 [12:20:10]1041 (16) - 0000000000871759 [12:20:10]1040 (4) - 166378 [12:20:10]1012 (4) - 22.10.2024 05:57 [12:20:10]1206 (1) - 0 [12:20:10]OFD Sender: Remove packet 166378 [12:20:10]ProducePacketName [12:20:10]name=ofd_packets/00166378 [12:20:10]NVStorageDeleteData [12:20:10]Write to MH i2c: 01 00 00 1A 06 20 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 C5 0C F8 [12:20:10]RasterBufferAndPrint [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]written 0, free lines is 3275 [12:20:10]MH_Cut [12:20:10]Write to MH i2c: D1 01 00 21 06 01 F9 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 01 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 01 00 21 06 00 F8 [12:20:10]Write to MH i2c: 01 00 00 22 06 28 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:11]OFD Sender: No OFD packet to send [12:20:11]*** Cut start [12:20:11]*** Partial cut [12:20:11]*** CUTSNS_PIN = 1 [12:20:11]*** CUTSNS_PIN = 0 [12:20:11]*** Brake cut motor [12:20:12]Read from MH i2c: 01 [12:20:12]MH_I2C_Read... [12:20:12]*** Stop cut motor [12:20:12]*** Cut end [12:20:12]Read from MH i2c: 01 07 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 FF 0F 3D [12:20:12]process_action close_receipt done [12:20:12]requested_data is exist [12:20:12]produce_requested_data [12:20:12]requested_item fm.sn is exist - process it [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 11 00 00 [12:20:12]Write to MH i2c: E2 08 00 23 06 80 11 00 00 00 00 00 00 A3 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 17 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 17 00 23 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [12:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:20:12]wFMCommunicate OK [12:20:12]requested_item fd.num is exist - process it [12:20:12]SAM_PROTO_GetFieldsCounters [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 13 00 00 [12:20:12]Write to MH i2c: E2 08 00 24 06 80 13 00 00 00 00 00 00 A6 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 62 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 62 00 24 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:12]wFMCommunicate OK [12:20:12]SAM_PROTO_GetFieldsCounters done [12:20:12]requested_item shift.num is exist - process it [12:20:12]requested_item shift.opened is exist - process it [12:20:12]req_shift_opened [12:20:12]FM_GetShiftState [12:20:12]SAM_PROTO_GetShiftState [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 13 01 00 [12:20:12]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0E 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [12:20:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:20:12]wFMCommunicate OK [12:20:12]SAM_PROTO_GetShiftState done [12:20:12]FM_GetShiftState done [12:20:12]req_shift_opened done [12:20:12]requested_item shift.open_date is exist - process it [12:20:12]req_shift_open_date [12:20:12]req_shift_open_date done [12:20:12]produce_requested_data done [12:20:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166378,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:20:12]process_action_free close_receipt [12:20:12]json_value_free [12:20:12]json_value_free done [12:20:12]process_json_proto returns [12:20:12]Send response to host [12:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166378,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:20:12]free response buf [12:20:12]execute_script done [12:20:12]execute_script returns [12:20:12]free content buf [12:20:12]Sock 9.Close socket [12:20:12]Sock 9.Thread stoped [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:24]accept exits with 7 [12:25:24]New connection [12:25:24]New thread 3067493732 created [12:25:24]Thread 3067637092 joined [12:25:24]Waiting for new connection... [12:25:24] Sock 7.Parse request [12:25:24]Sock 7.Check first char [12:25:24]Sock 7.First char is OK [12:25:24]request: POST /json_proto HTTP/1.0 [12:25:24]Method: POST [12:25:24]URL: /json_proto [12:25:24]Method is POST - this is cgi request [12:25:24]url: /json_proto [12:25:24]query_string will be loaded in cgi processing [12:25:24]execute_cgi json_proto POST (null) [12:25:24]execute_cgi path=json_proto method=POST [12:25:24]POST find Content-Length [12:25:24]Host: 172.17.53.195:8080 [12:25:24]Content-Length: 766 [12:25:24]Content-Type: application/json [12:25:24] [12:25:24]POST finish read [12:25:24]Found Content-Length = 766 [12:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:24]execute_script... [12:25:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:24]POST & json_proto [12:25:24]process_json_proto [12:25:24]json parsed OK: [12:25:24]protocol is kg_v1.0 [12:25:24]action value=close_receipt [12:25:24]process_action close_receipt [12:25:24]cmd_close_receipt [12:25:24]MH_GetDate [12:25:24]Write to MH i2c: F0 00 00 26 06 1B [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: F0 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: F0 09 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: F0 09 00 26 06 00 B5 99 17 67 21 48 4A 65 08 [12:25:24]GetLastDocTimeStamp 1729599609 [12:25:24]current date 1729599925 [12:25:24]FM_GetShiftState [12:25:24]SAM_PROTO_GetShiftState [12:25:24]wFMCommunicate request_size=4 [12:25:24]MH_SAM_APDU [12:25:24]CAPDU: 80 13 01 00 [12:25:24]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:24]Read from MH i2c: E2 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 0E 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FD [12:25:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:25:24]wFMCommunicate OK [12:25:24]SAM_PROTO_GetShiftState done [12:25:24]FM_GetShiftState done [12:25:24]opened in 1729557463 [12:25:24]opened+sec_in_day 1729643863 [12:25:24]quantity*price = 50041 [12:25:24]sum+1 = 50042 [12:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 134 22.10.2024 12:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166379 ФПД: 22280663875941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122525&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166379&fm=22280663875941&tin=02508201610067®Number=0000000000091764&sum=50041 [12:25:25]StoreToDocumentArchive [12:25:25]shift 536 fd 166379 [12:25:25]save to /storage/0536/doc_00166379 [12:25:25]save last doc name /storage/0536/doc_00166379 to /storage/kkm_last_doc_name [12:25:25]save OK [12:25:25]Clear old archive folders... [12:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:25]tlvbuf is 00A414F0 [12:25:25]SAM_PROTO_ClearQueue [12:25:25]wFMCommunicate request_size=4 [12:25:25]MH_SAM_APDU [12:25:25]CAPDU: 80 09 00 00 [12:25:25]Write to MH i2c: E2 08 00 34 06 80 09 00 00 00 00 00 00 AC [12:25:25]Write i2c OK [12:25:25]MH_I2C_Read... [12:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:25]Read from MH i2c: E2 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 03 00 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [12:25:25]RAPDU: 90 00 [12:25:25]wFMCommunicate OK [12:25:25]SAM_PROTO_ClearQueue done [12:25:25]KKMCreateOFDPacket [12:25:25]OFDProtocolAddRootSTLVToBuf [12:25:25]FM_MakeSignedData [12:25:25]FM_MakeSignedData [12:25:25]SAM_PROTO_SignData [12:25:25]wFMCommunicate request_size=4 [12:25:25]MH_SAM_APDU [12:25:25]CAPDU: 80 0D 01 02 [12:25:25]Write to MH i2c: E2 08 00 35 06 80 0D 01 02 00 00 00 00 B4 [12:25:25]Write i2c OK [12:25:25]MH_I2C_Read... [12:25:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [12:25:26]RAPDU: 90 00 [12:25:26]wFMCommunicate OK [12:25:26]wFMCommunicate request_size=255 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B5 99 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 89 02 00 35 04 06 00 14 [12:25:26]Write to MH i2c: E2 02 01 36 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B5 99 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 89 02 00 35 04 06 00 14 00 00 92 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [12:25:26]RAPDU: 90 00 [12:25:26]wFMCommunicate OK [12:25:26]wFMCommunicate request_size=10 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 0D 02 02 05 43 9F 0E 41 65 [12:25:26]Write to MH i2c: E2 0D 00 37 06 80 0D 02 02 05 00 43 9F 0E 41 65 00 00 57 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [12:25:26]RAPDU: 90 00 [12:25:26]wFMCommunicate OK [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 0D 03 02 [12:25:26]Write to MH i2c: E2 08 00 38 06 80 0D 03 02 00 00 00 00 B9 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0B 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0B 00 38 06 00 09 E7 95 9C 23 D5 40 A5 90 00 B8 [12:25:26]RAPDU: 09 E7 95 9C 23 D5 40 A5 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_SignData done [12:25:26]FM_MakeSignedData done [12:25:26]CreateOFDProtocolMessage [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 11 00 00 [12:25:26]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 17 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [12:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:26]wFMCommunicate OK [12:25:26]CreateOFDProtocolMessage done [12:25:26]OFDSenderStorePacket 166379 [12:25:26]StoreOFDPacket docnum=166379 [12:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 42 07 01 F2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B5 99 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 89 02 00 35 04 06 00 14 43 9F 0E 41 65 09 E7 95 9C 23 D5 40 A5 [12:25:26]CheckFolder [12:25:26]dirname=/storage/ofd_packets [12:25:26]CheckFolder done [12:25:26]ProducePacketName [12:25:26]name=ofd_packets/00166379 [12:25:26]NVStorageSaveData ofd_packets/00166379 [12:25:26]File name is /storage/ofd_packets/00166379 [12:25:26]Write 301 bytes [12:25:26]NVStorageSaveData done [12:25:26]OFDSenderStorePacket done [12:25:26]KKMCreateOFDPacket done [12:25:26]NVStorageSaveData kkm_last_timestamp [12:25:26]File name is /storage/kkm_last_timestamp [12:25:26]Write 4 bytes [12:25:26]NVStorageSaveData done [12:25:26]ExternCall_PrintAddStr [12:25:26]wPrintStart [12:25:26]Write to MH i2c: 01 00 00 3A 06 40 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 07 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [12:25:26]RasterBufferAndPrint [12:25:26]line Счет N : (1)220957 [12:25:26]line ИНН: 02508201610067 [12:25:26]line Контрольно-Кассовый Чек [12:25:26]line ПРОДАЖА [12:25:26]line ТРК (МРК, ГНК) : 13 [12:25:26]line Товар: 2710124130 [12:25:26]line Аи-92-К-5 [12:25:26]line 7.480 * 66.90 [12:25:26]line = 500.41 [12:25:26]line НДС 12% НСП 1% [12:25:26]line > о реализуемом товаре [12:25:26]line ИТОГО: 500.41 [12:25:26]line НСП 1% : 4.43 [12:25:26]line НДС 12% : 53.14 [12:25:26]line Наличными: 0.00 [12:25:26]line Безнал.: 500.41 [12:25:26]line Место: АЗС № 161 "Партнер Нефть" [12:25:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:25:26]line СНО: Общий режим [12:25:26]line Чек 134 22.10.2024 12:25 [12:25:26]line Смена: 536 ФФД: 1.0 [12:25:26]line ЗНМ: 0300000104 [12:25:26]line РНМ: 0000000000091764 [12:25:26]line Версия ККМ: 001 [12:25:26]line Платежная система: Mbank [12:25:26]line ФМ: 0000000000871759 [12:25:26]line ФД: 166379 [12:25:26]line ФПД: 22280663875941 [12:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122525&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166379&fm=22280663875941&tin=02508201610067®Number=0000000000091764&sum=50041 [12:25:26]written 0, free lines is 4095 [12:25:26]OFD Sender: Processing packet 166379 [packets to send 48, broken 47] [12:25:26]ProducePacketName [12:25:26]name=ofd_packets/00166379 [12:25:26]OFD Sender: To server: pG, [12:25:26]CommunicateWithHost lk.salyk.kg:30040 [12:25:26]ConnectInit lk.salyk.kg [12:25:26]Connected sock=10 [12:25:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 42 07 01 F2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B5 99 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 89 02 00 35 04 06 00 14 43 9F 0E 41 65 09 E7 95 9C 23 D5 40 A5 [12:25:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 95 47 00 7C 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 89 02 00 F4 03 04 00 20 40 17 67 B6 04 01 00 00 80 56 2B 5D DA 9D CE 67 [12:25:26]CommunicateWithHost err = 0 [12:25:26]CheckOFDResponse [12:25:26]1017 (14) - 77093643461234 [12:25:26]1041 (16) - 0000000000871759 [12:25:26]1040 (4) - 166379 [12:25:26]1012 (4) - 22.10.2024 06:03 [12:25:26]1206 (1) - 0 [12:25:26]OFD Sender: Remove packet 166379 [12:25:26]ProducePacketName [12:25:26]name=ofd_packets/00166379 [12:25:26]NVStorageDeleteData [12:25:26]Write to MH i2c: 01 00 00 63 06 69 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 07 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 01 0D 7E [12:25:26]RasterBufferAndPrint [12:25:26]line [12:25:26]line [12:25:26]line [12:25:26]line [12:25:26]line [12:25:26]written 0, free lines is 3336 [12:25:26]MH_Cut [12:25:26]Write to MH i2c: D1 01 00 6A 06 01 42 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: D1 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: D1 01 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: D1 01 00 6A 06 00 41 [12:25:26]Write to MH i2c: 01 00 00 6B 06 71 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:27]OFD Sender: No OFD packet to send [12:25:27]*** Cut start [12:25:27]*** Partial cut [12:25:27]*** CUTSNS_PIN = 1 [12:25:27]*** CUTSNS_PIN = 0 [12:25:27]*** Brake cut motor [12:25:28]Read from MH i2c: 01 [12:25:28]MH_I2C_Read... [12:25:28]*** Stop cut motor [12:25:28]*** Cut end [12:25:28]Read from MH i2c: 01 07 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [12:25:28]process_action close_receipt done [12:25:28]requested_data is exist [12:25:28]produce_requested_data [12:25:28]requested_item fm.sn is exist - process it [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 11 00 00 [12:25:28]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 17 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [12:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:28]wFMCommunicate OK [12:25:28]requested_item fd.num is exist - process it [12:25:28]SAM_PROTO_GetFieldsCounters [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 13 00 00 [12:25:28]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 62 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 62 00 6D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:28]wFMCommunicate OK [12:25:28]SAM_PROTO_GetFieldsCounters done [12:25:28]requested_item shift.num is exist - process it [12:25:28]requested_item shift.opened is exist - process it [12:25:28]req_shift_opened [12:25:28]FM_GetShiftState [12:25:28]SAM_PROTO_GetShiftState [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 13 01 00 [12:25:28]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 0E 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 44 [12:25:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:25:28]wFMCommunicate OK [12:25:28]SAM_PROTO_GetShiftState done [12:25:28]FM_GetShiftState done [12:25:28]req_shift_opened done [12:25:28]requested_item shift.open_date is exist - process it [12:25:28]req_shift_open_date [12:25:28]req_shift_open_date done [12:25:28]produce_requested_data done [12:25:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166379,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:25:28]process_action_free close_receipt [12:25:28]json_value_free [12:25:28]json_value_free done [12:25:28]process_json_proto returns [12:25:28]Send response to host [12:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166379,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:25:28]free response buf [12:25:28]execute_script done [12:25:28]execute_script returns [12:25:28]free content buf [12:25:28]Sock 7.Close socket [12:25:28]Sock 7.Thread stoped [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:47]accept exits with 9 [12:26:47]New connection [12:26:47]New thread 3067637092 created [12:26:47]Thread 3067493732 joined [12:26:47]Waiting for new connection... [12:26:47] Sock 9.Parse request [12:26:47]Sock 9.Check first char [12:26:47]Sock 9.First char is OK [12:26:47]request: POST /json_proto HTTP/1.0 [12:26:47]Method: POST [12:26:47]URL: /json_proto [12:26:47]Method is POST - this is cgi request [12:26:47]url: /json_proto [12:26:47]query_string will be loaded in cgi processing [12:26:47]execute_cgi json_proto POST (null) [12:26:47]execute_cgi path=json_proto method=POST [12:26:47]POST find Content-Length [12:26:47]Host: 172.17.53.195:8080 [12:26:47]Content-Length: 677 [12:26:47]Content-Type: application/json [12:26:47] [12:26:47]POST finish read [12:26:47]Found Content-Length = 677 [12:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:47]execute_script... [12:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:47]POST & json_proto [12:26:47]process_json_proto [12:26:47]json parsed OK: [12:26:47]protocol is kg_v1.0 [12:26:47]action value=close_receipt [12:26:47]process_action close_receipt [12:26:47]cmd_close_receipt [12:26:47]MH_GetDate [12:26:47]Write to MH i2c: F0 00 00 6F 06 64 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 6F 06 00 08 9A 17 67 21 48 4A 65 A5 [12:26:47]GetLastDocTimeStamp 1729599925 [12:26:47]current date 1729600008 [12:26:47]FM_GetShiftState [12:26:47]SAM_PROTO_GetShiftState [12:26:47]wFMCommunicate request_size=4 [12:26:47]MH_SAM_APDU [12:26:47]CAPDU: 80 13 01 00 [12:26:47]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:47]Read from MH i2c: E2 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: E2 0E 00 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [12:26:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:26:47]wFMCommunicate OK [12:26:47]SAM_PROTO_GetShiftState done [12:26:47]FM_GetShiftState done [12:26:47]opened in 1729557463 [12:26:47]opened+sec_in_day 1729643863 [12:26:47]quantity*price = 50041 [12:26:47]sum+1 = 50042 [12:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 135 22.10.2024 12:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166380 ФПД: 190163962180062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166380&fm=190163962180062&tin=02508201610067®Number=0000000000091764&sum=50000 [12:26:48]StoreToDocumentArchive [12:26:48]shift 536 fd 166380 [12:26:48]save to /storage/0536/doc_00166380 [12:26:48]save last doc name /storage/0536/doc_00166380 to /storage/kkm_last_doc_name [12:26:48]save OK [12:26:48]Clear old archive folders... [12:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:48]tlvbuf is 00A07BF0 [12:26:48]SAM_PROTO_ClearQueue [12:26:48]wFMCommunicate request_size=4 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 09 00 00 [12:26:48]Write to MH i2c: E2 08 00 7D 06 80 09 00 00 00 00 00 00 F5 [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:48]Read from MH i2c: E2 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [12:26:48]RAPDU: 90 00 [12:26:48]wFMCommunicate OK [12:26:48]SAM_PROTO_ClearQueue done [12:26:48]KKMCreateOFDPacket [12:26:48]OFDProtocolAddRootSTLVToBuf [12:26:48]FM_MakeSignedData [12:26:48]FM_MakeSignedData [12:26:48]SAM_PROTO_SignData [12:26:48]wFMCommunicate request_size=4 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 0D 01 02 [12:26:48]Write to MH i2c: E2 08 00 7E 06 80 0D 01 02 00 00 00 00 FD [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:48]Read from MH i2c: E2 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [12:26:48]RAPDU: 90 00 [12:26:48]wFMCommunicate OK [12:26:48]wFMCommunicate request_size=255 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 89 02 00 35 04 06 00 AC [12:26:48]Write to MH i2c: E2 02 01 7F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 89 02 00 35 04 06 00 AC 00 00 77 [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=10 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 02 02 05 F3 FF 6A 31 DE [12:26:49]Write to MH i2c: E2 0D 00 80 06 80 0D 02 02 05 00 F3 FF 6A 31 DE 00 00 75 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 03 02 [12:26:49]Write to MH i2c: E2 08 00 81 06 80 0D 03 02 00 00 00 00 02 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 81 06 00 96 FE C6 BF 6B 6D A4 CB 90 00 63 [12:26:49]RAPDU: 96 FE C6 BF 6B 6D A4 CB 90 00 [12:26:49]wFMCommunicate OK [12:26:49]SAM_PROTO_SignData done [12:26:49]FM_MakeSignedData done [12:26:49]CreateOFDProtocolMessage [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 11 00 00 [12:26:49]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [12:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:26:49]wFMCommunicate OK [12:26:49]CreateOFDProtocolMessage done [12:26:49]OFDSenderStorePacket 166380 [12:26:49]StoreOFDPacket docnum=166380 [12:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EB 47 07 01 DA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 89 02 00 35 04 06 00 AC F3 FF 6A 31 DE 96 FE C6 BF 6B 6D A4 CB [12:26:49]CheckFolder [12:26:49]dirname=/storage/ofd_packets [12:26:49]CheckFolder done [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00166380 [12:26:49]NVStorageSaveData ofd_packets/00166380 [12:26:49]File name is /storage/ofd_packets/00166380 [12:26:49]Write 301 bytes [12:26:49]NVStorageSaveData done [12:26:49]OFDSenderStorePacket done [12:26:49]KKMCreateOFDPacket done [12:26:49]NVStorageSaveData kkm_last_timestamp [12:26:49]File name is /storage/kkm_last_timestamp [12:26:49]Write 4 bytes [12:26:49]NVStorageSaveData done [12:26:49]ExternCall_PrintAddStr [12:26:49]wPrintStart [12:26:49]Write to MH i2c: 01 00 00 83 06 89 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [12:26:49]RasterBufferAndPrint [12:26:49]line Счет N : (1)220958 [12:26:49]line ИНН: 02508201610067 [12:26:49]line Контрольно-Кассовый Чек [12:26:49]line ПРОДАЖА [12:26:49]line ТРК (МРК, ГНК) : 33 [12:26:49]line Товар: 2710124130 [12:26:49]line Аи-92-К-5 [12:26:49]line 7.480 * 66.90 [12:26:49]line = 500.41 [12:26:49]line НДС 12% НСП 1% [12:26:49]line > о реализуемом товаре [12:26:49]line ОКРУГЛЕНИЕ: -0.41 [12:26:49]line ИТОГО: 500.00 [12:26:49]line Внесено: 500.00 [12:26:49]line СДАЧА: 0.00 [12:26:49]line НСП 1% : 4.43 [12:26:49]line НДС 12% : 53.14 [12:26:49]line Наличными: 500.00 [12:26:49]line Безнал.: 0.00 [12:26:49]line Место: АЗС № 161 "Партнер Нефть" [12:26:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:26:49]line СНО: Общий режим [12:26:49]line Чек 135 22.10.2024 12:26 [12:26:49]line Смена: 536 ФФД: 1.0 [12:26:49]line ЗНМ: 0300000104 [12:26:49]line РНМ: 0000000000091764 [12:26:49]line Версия ККМ: 001 [12:26:49]line ФМ: 0000000000871759 [12:26:49]line ФД: 166380 [12:26:49]line ФПД: 190163962180062 [12:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166380&fm=190163962180062&tin=02508201610067®Number=0000000000091764&sum=50000 [12:26:49]OFD Sender: Processing packet 166380 [packets to send 48, broken 47] [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00166380 [12:26:49]OFD Sender: To server: pG, [12:26:49]CommunicateWithHost lk.salyk.kg:30040 [12:26:49]ConnectInit lk.salyk.kg [12:26:49]written 0, free lines is 4095 [12:26:49]Connected sock=10 [12: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 31 37 35 39 0F 01 00 00 EB 47 07 01 DA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 89 02 00 35 04 06 00 AC F3 FF 6A 31 DE 96 FE C6 BF 6B 6D A4 CB [12:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BC BA 47 00 0E D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 89 02 00 F4 03 04 00 73 40 17 67 B6 04 01 00 00 E4 96 4B 63 0C 4D 57 1F [12:26:50]CommunicateWithHost err = 0 [12:26:50]CheckOFDResponse [12:26:50]1017 (14) - 77093643461234 [12:26:50]1041 (16) - 0000000000871759 [12:26:50]1040 (4) - 166380 [12:26:50]1012 (4) - 22.10.2024 06:04 [12:26:50]1206 (1) - 0 [12:26:50]OFD Sender: Remove packet 166380 [12:26:50]ProducePacketName [12:26:50]name=ofd_packets/00166380 [12:26:50]NVStorageDeleteData [12:26:50]Write to MH i2c: 01 00 00 AE 06 B4 [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 07 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 CD 0C 94 [12:26:50]RasterBufferAndPrint [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]written 0, free lines is 3281 [12:26:50]MH_Cut [12:26:50]Write to MH i2c: D1 01 00 B5 06 01 8D [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 01 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 01 00 B5 06 00 8C [12:26:50]Write to MH i2c: 01 00 00 B6 06 BC [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]OFD Sender: No OFD packet to send [12:26:50]*** Cut start [12:26:50]*** Partial cut [12:26:50]*** CUTSNS_PIN = 1 [12:26:50]*** CUTSNS_PIN = 0 [12:26:51]*** Brake cut motor [12:26:51]Read from MH i2c: 01 [12:26:51]MH_I2C_Read... [12:26:51]*** Stop cut motor [12:26:51]*** Cut end [12:26:51]Read from MH i2c: 01 07 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 FF 0F D1 [12:26:51]process_action close_receipt done [12:26:51]requested_data is exist [12:26:51]produce_requested_data [12:26:51]requested_item fm.sn is exist - process it [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 11 00 00 [12:26:51]Write to MH i2c: E2 08 00 B7 06 80 11 00 00 00 00 00 00 37 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 B7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [12:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:26:51]wFMCommunicate OK [12:26:51]requested_item fd.num is exist - process it [12:26:51]SAM_PROTO_GetFieldsCounters [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 00 00 [12:26:51]Write to MH i2c: E2 08 00 B8 06 80 13 00 00 00 00 00 00 3A [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 B8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetFieldsCounters done [12:26:51]requested_item shift.num is exist - process it [12:26:51]requested_item shift.opened is exist - process it [12:26:51]req_shift_opened [12:26:51]FM_GetShiftState [12:26:51]SAM_PROTO_GetShiftState [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 01 00 [12:26:51]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8F [12:26:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetShiftState done [12:26:51]FM_GetShiftState done [12:26:51]req_shift_opened done [12:26:51]requested_item shift.open_date is exist - process it [12:26:51]req_shift_open_date [12:26:51]req_shift_open_date done [12:26:51]produce_requested_data done [12:26:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166380,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:26:51]process_action_free close_receipt [12:26:51]json_value_free [12:26:51]json_value_free done [12:26:51]process_json_proto returns [12:26:51]Send response to host [12:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166380,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:26:51]free response buf [12:26:51]execute_script done [12:26:51]execute_script returns [12:26:51]free content buf [12:26:51]Sock 9.Close socket [12:26:51]Sock 9.Thread stoped [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:39]accept exits with 7 [12:27:39]New connection [12:27:39]New thread 3067493732 created [12:27:39]Thread 3067637092 joined [12:27:39]Waiting for new connection... [12:27:39] Sock 7.Parse request [12:27:39]Sock 7.Check first char [12:27:39]Sock 7.First char is OK [12:27:39]request: POST /json_proto HTTP/1.0 [12:27:39]Method: POST [12:27:39]URL: /json_proto [12:27:39]Method is POST - this is cgi request [12:27:39]url: /json_proto [12:27:39]query_string will be loaded in cgi processing [12:27:39]execute_cgi json_proto POST (null) [12:27:39]execute_cgi path=json_proto method=POST [12:27:39]POST find Content-Length [12:27:39]Host: 172.17.53.195:8080 [12:27:39]Content-Length: 677 [12:27:39]Content-Type: application/json [12:27:39] [12:27:39]POST finish read [12:27:39]Found Content-Length = 677 [12:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:39]execute_script... [12:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:39]POST & json_proto [12:27:39]process_json_proto [12:27:39]json parsed OK: [12:27:39]protocol is kg_v1.0 [12:27:39]action value=close_receipt [12:27:39]process_action close_receipt [12:27:39]cmd_close_receipt [12:27:39]MH_GetDate [12:27:39]Write to MH i2c: F0 00 00 BA 06 AF [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 09 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: F0 09 00 BA 06 00 3B 9A 17 67 21 48 4A 65 23 [12:27:39]GetLastDocTimeStamp 1729600008 [12:27:39]current date 1729600059 [12:27:39]FM_GetShiftState [12:27:39]SAM_PROTO_GetShiftState [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 13 01 00 [12:27:39]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [12:27:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_GetShiftState done [12:27:39]FM_GetShiftState done [12:27:39]opened in 1729557463 [12:27:39]opened+sec_in_day 1729643863 [12:27:39]quantity*price = 49974 [12:27:39]sum+1 = 49975 [12:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 136 22.10.2024 12:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166381 ФПД: 117607442407949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122739&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166381&fm=117607442407949&tin=02508201610067®Number=0000000000091764&sum=49900 [12:27:40]StoreToDocumentArchive [12:27:40]shift 536 fd 166381 [12:27:40]save to /storage/0536/doc_00166381 [12:27:40]save last doc name /storage/0536/doc_00166381 to /storage/kkm_last_doc_name [12:27:40]save OK [12:27:40]Clear old archive folders... [12:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:40]tlvbuf is 00994080 [12:27:40]SAM_PROTO_ClearQueue [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 09 00 00 [12:27:40]Write to MH i2c: E2 08 00 C8 06 80 09 00 00 00 00 00 00 40 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]SAM_PROTO_ClearQueue done [12:27:40]KKMCreateOFDPacket [12:27:40]OFDProtocolAddRootSTLVToBuf [12:27:40]FM_MakeSignedData [12:27:40]FM_MakeSignedData [12:27:40]SAM_PROTO_SignData [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 01 02 [12:27:40]Write to MH i2c: E2 08 00 C9 06 80 0D 01 02 00 00 00 00 48 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [12:27:40]RAPDU: 90 00 [12:27:40]wFMCommunicate OK [12:27:40]wFMCommunicate request_size=255 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 3B 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 89 02 00 35 04 06 00 6A [12:27:40]Write to MH i2c: E2 02 01 CA 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 3B 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 89 02 00 35 04 06 00 6A 00 00 96 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [12:27:41]RAPDU: 90 00 [12:27:41]wFMCommunicate OK [12:27:41]wFMCommunicate request_size=10 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 0D 02 02 05 F6 9D D3 E2 0D [12:27:41]Write to MH i2c: E2 0D 00 CB 06 80 0D 02 02 05 00 F6 9D D3 E2 0D 00 00 AA [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [12:27:41]RAPDU: 90 00 [12:27:41]wFMCommunicate OK [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 0D 03 02 [12:27:41]Write to MH i2c: E2 08 00 CC 06 80 0D 03 02 00 00 00 00 4D [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 0B 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 0B 00 CC 06 00 61 9B 25 68 63 86 8F DD 90 00 2C [12:27:41]RAPDU: 61 9B 25 68 63 86 8F DD 90 00 [12:27:41]wFMCommunicate OK [12:27:41]SAM_PROTO_SignData done [12:27:41]FM_MakeSignedData done [12:27:41]CreateOFDProtocolMessage [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 11 00 00 [12:27:41]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 17 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [12:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:41]wFMCommunicate OK [12:27:41]CreateOFDProtocolMessage done [12:27:41]OFDSenderStorePacket 166381 [12:27:41]StoreOFDPacket docnum=166381 [12:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F 01 07 01 47 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 3B 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 89 02 00 35 04 06 00 6A F6 9D D3 E2 0D 61 9B 25 68 63 86 8F DD [12:27:41]CheckFolder [12:27:41]dirname=/storage/ofd_packets [12:27:41]CheckFolder done [12:27:41]ProducePacketName [12:27:41]name=ofd_packets/00166381 [12:27:41]NVStorageSaveData ofd_packets/00166381 [12:27:41]File name is /storage/ofd_packets/00166381 [12:27:41]Write 301 bytes [12:27:41]NVStorageSaveData done [12:27:41]OFDSenderStorePacket done [12:27:41]KKMCreateOFDPacket done [12:27:41]NVStorageSaveData kkm_last_timestamp [12:27:41]File name is /storage/kkm_last_timestamp [12:27:41]Write 4 bytes [12:27:41]NVStorageSaveData done [12:27:41]ExternCall_PrintAddStr [12:27:41]wPrintStart [12:27:41]Write to MH i2c: 01 00 00 CE 06 D4 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [12:27:41]RasterBufferAndPrint [12:27:41]line Счет N : (1)220959 [12:27:41]line ИНН: 02508201610067 [12:27:41]line Контрольно-Кассовый Чек [12:27:41]line ПРОДАЖА [12:27:41]line ТРК (МРК, ГНК) : 13 [12:27:41]line Товар: 2710124130 [12:27:41]line Аи-92-К-5 [12:27:41]line 7.470 * 66.90 [12:27:41]line = 499.74 [12:27:41]line НДС 12% НСП 1% [12:27:41]line > о реализуемом товаре [12:27:41]line ОКРУГЛЕНИЕ: -0.74 [12:27:41]line ИТОГО: 499.00 [12:27:41]line Внесено: 500.00 [12:27:41]line СДАЧА: 1.00 [12:27:41]line НСП 1% : 4.42 [12:27:41]line НДС 12% : 53.07 [12:27:41]line Наличными: 499.00 [12:27:41]line Безнал.: 0.00 [12:27:41]line Место: АЗС № 161 "Партнер Нефть" [12:27:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:27:41]line СНО: Общий режим [12:27:41]line Чек 136 22.10.2024 12:27 [12:27:41]line Смена: 536 ФФД: 1.0 [12:27:41]line ЗНМ: 0300000104 [12:27:41]line РНМ: 0000000000091764 [12:27:41]line Версия ККМ: 001 [12:27:41]line ФМ: 0000000000871759 [12:27:41]line ФД: 166381 [12:27:41]line ФПД: 117607442407949 [12:27:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122739&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166381&fm=117607442407949&tin=02508201610067®Number=0000000000091764&sum=49900 [12:27:41]written 0, free lines is 4095 [12:27:41]OFD Sender: Processing packet 166381 [packets to send 48, broken 47] [12:27:41]ProducePacketName [12:27:41]name=ofd_packets/00166381 [12:27:41]OFD Sender: To server: pG, [12:27:41]CommunicateWithHost lk.salyk.kg:30040 [12:27:41]ConnectInit lk.salyk.kg [12:27:41]Connected sock=11 [12:27:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4F 01 07 01 47 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 3B 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 89 02 00 35 04 06 00 6A F6 9D D3 E2 0D 61 9B 25 68 63 86 8F DD [12:27:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 5B 47 00 6E 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 89 02 00 F4 03 04 00 A6 40 17 67 B6 04 01 00 00 6F FB AF 79 FA 91 74 E4 [12:27:41]CommunicateWithHost err = 0 [12:27:41]CheckOFDResponse [12:27:41]1017 (14) - 77093643461234 [12:27:41]1041 (16) - 0000000000871759 [12:27:41]1040 (4) - 166381 [12:27:41]1012 (4) - 22.10.2024 06:05 [12:27:41]1206 (1) - 0 [12:27:41]OFD Sender: Remove packet 166381 [12:27:41]ProducePacketName [12:27:41]name=ofd_packets/00166381 [12:27:41]NVStorageDeleteData [12:27:41]Write to MH i2c: 01 00 00 F9 06 FF [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 C2 0C D4 [12:27:41]RasterBufferAndPrint [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]line [12:27:41]written 0, free lines is 3272 [12:27:41]MH_Cut [12:27:41]Write to MH i2c: D1 01 00 00 07 01 D9 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 01 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: D1 01 00 00 07 00 D8 [12:27:41]Write to MH i2c: 01 00 00 01 07 08 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:42]OFD Sender: No OFD packet to send [12:27:42]*** Cut start [12:27:42]*** Partial cut [12:27:42]*** CUTSNS_PIN = 1 [12:27:42]*** CUTSNS_PIN = 0 [12:27:42]*** Brake cut motor [12:27:43]Read from MH i2c: 01 [12:27:43]MH_I2C_Read... [12:27:43]*** Stop cut motor [12:27:43]*** Cut end [12:27:43]Read from MH i2c: 01 07 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [12:27:43]process_action close_receipt done [12:27:43]requested_data is exist [12:27:43]produce_requested_data [12:27:43]requested_item fm.sn is exist - process it [12:27:43]wFMCommunicate request_size=4 [12:27:43]MH_SAM_APDU [12:27:43]CAPDU: 80 11 00 00 [12:27:43]Write to MH i2c: E2 08 00 02 07 80 11 00 00 00 00 00 00 83 [12:27:43]Write i2c OK [12:27:43]MH_I2C_Read... [12:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:43]Read from MH i2c: E2 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 17 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 17 00 02 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [12:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:43]wFMCommunicate OK [12:27:43]requested_item fd.num is exist - process it [12:27:43]SAM_PROTO_GetFieldsCounters [12:27:43]wFMCommunicate request_size=4 [12:27:43]MH_SAM_APDU [12:27:43]CAPDU: 80 13 00 00 [12:27:43]Write to MH i2c: E2 08 00 03 07 80 13 00 00 00 00 00 00 86 [12:27:43]Write i2c OK [12:27:43]MH_I2C_Read... [12:27:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:43]Read from MH i2c: E2 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 62 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 62 00 03 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:43]wFMCommunicate OK [12:27:43]SAM_PROTO_GetFieldsCounters done [12:27:43]requested_item shift.num is exist - process it [12:27:43]requested_item shift.opened is exist - process it [12:27:43]req_shift_opened [12:27:43]FM_GetShiftState [12:27:43]SAM_PROTO_GetShiftState [12:27:43]wFMCommunicate request_size=4 [12:27:43]MH_SAM_APDU [12:27:43]CAPDU: 80 13 01 00 [12:27:43]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [12:27:43]Write i2c OK [12:27:43]MH_I2C_Read... [12:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:43]Read from MH i2c: E2 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 0E 00 [12:27:43]MH_I2C_Read... [12:27:43]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DB [12:27:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:27:43]wFMCommunicate OK [12:27:43]SAM_PROTO_GetShiftState done [12:27:43]FM_GetShiftState done [12:27:43]req_shift_opened done [12:27:43]requested_item shift.open_date is exist - process it [12:27:43]req_shift_open_date [12:27:43]req_shift_open_date done [12:27:43]produce_requested_data done [12:27:43]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166381,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:27:43]process_action_free close_receipt [12:27:43]json_value_free [12:27:43]json_value_free done [12:27:43]process_json_proto returns [12:27:43]Send response to host [12:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166381,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:27:43]free response buf [12:27:43]execute_script done [12:27:43]execute_script returns [12:27:43]free content buf [12:27:43]Sock 7.Close socket [12:27:43]Sock 7.Thread stoped [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:13]accept exits with 9 [12:30:13]New connection [12:30:13]New thread 3067637092 created [12:30:13]Thread 3067493732 joined [12:30:13]Waiting for new connection... [12:30:13] Sock 9.Parse request [12:30:13]Sock 9.Check first char [12:30:13]Sock 9.First char is OK [12:30:13]request: POST /json_proto HTTP/1.0 [12:30:13]Method: POST [12:30:13]URL: /json_proto [12:30:13]Method is POST - this is cgi request [12:30:13]url: /json_proto [12:30:13]query_string will be loaded in cgi processing [12:30:13]execute_cgi json_proto POST (null) [12:30:13]execute_cgi path=json_proto method=POST [12:30:13]POST find Content-Length [12:30:13]Host: 172.17.53.195:8080 [12:30:13]Content-Length: 800 [12:30:13]Content-Type: application/json [12:30:13] [12:30:13]POST finish read [12:30:13]Found Content-Length = 800 [12:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220473", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:13]execute_script... [12:30:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220473", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:13]POST & json_proto [12:30:13]process_json_proto [12:30:13]json parsed OK: [12:30:13]protocol is kg_v1.0 [12:30:13]action value=close_receipt [12:30:13]process_action close_receipt [12:30:13]cmd_close_receipt [12:30:13]MH_GetDate [12:30:13]Write to MH i2c: F0 00 00 05 07 FB [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 09 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 09 00 05 07 00 D5 9A 17 67 21 48 4A 65 09 [12:30:13]GetLastDocTimeStamp 1729600059 [12:30:13]current date 1729600213 [12:30:13]FM_GetShiftState [12:30:13]SAM_PROTO_GetShiftState [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 13 01 00 [12:30:13]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0E 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DD [12:30:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:30:13]wFMCommunicate OK [12:30:13]SAM_PROTO_GetShiftState done [12:30:13]FM_GetShiftState done [12:30:13]opened in 1729557463 [12:30:13]opened+sec_in_day 1729643863 [12:30:13]quantity*price = 0 [12:30:13]sum+1 = 1 [12:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 137 22.10.2024 12:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220473 ФМ: 0000000000871759 ФД: 166382 ФПД: 281388132323836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166382&fm=281388132323836&tin=02508201610067®Number=0000000000091764&sum=0 [12:30:14]StoreToDocumentArchive [12:30:14]shift 536 fd 166382 [12:30:14]save to /storage/0536/doc_00166382 [12:30:14]save last doc name /storage/0536/doc_00166382 to /storage/kkm_last_doc_name [12:30:14]save OK [12:30:14]Clear old archive folders... [12:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:14]tlvbuf is 00A0DD70 [12:30:14]SAM_PROTO_ClearQueue [12:30:14]wFMCommunicate request_size=4 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 09 00 00 [12:30:14]Write to MH i2c: E2 08 00 13 07 80 09 00 00 00 00 00 00 8C [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:14]Read from MH i2c: E2 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 03 00 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [12:30:14]RAPDU: 90 00 [12:30:14]wFMCommunicate OK [12:30:14]SAM_PROTO_ClearQueue done [12:30:14]KKMCreateOFDPacket [12:30:14]OFDProtocolAddRootSTLVToBuf [12:30:14]FM_MakeSignedData [12:30:14]FM_MakeSignedData [12:30:14]SAM_PROTO_SignData [12:30:14]wFMCommunicate request_size=4 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 0D 01 02 [12:30:14]Write to MH i2c: E2 08 00 14 07 80 0D 01 02 00 00 00 00 94 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:14]Read from MH i2c: E2 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 03 00 [12:30:14]MH_I2C_Read... [12:30:14]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [12:30:14]RAPDU: 90 00 [12:30:14]wFMCommunicate OK [12:30:14]wFMCommunicate request_size=255 [12:30:14]MH_SAM_APDU [12:30:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 89 02 00 35 04 06 00 FF [12:30:14]Write to MH i2c: E2 02 01 15 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 89 02 00 35 04 06 00 FF 00 00 E4 [12:30:14]Write i2c OK [12:30:14]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]wFMCommunicate request_size=10 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 0D 02 02 05 EB C7 AB D1 FC [12:30:15]Write to MH i2c: E2 0D 00 16 07 80 0D 02 02 05 00 EB C7 AB D1 FC 00 00 CB [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 0D 03 02 [12:30:15]Write to MH i2c: E2 08 00 17 07 80 0D 03 02 00 00 00 00 99 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 0B 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 0B 00 17 07 00 9D 68 7A 6F 4D B6 3D 81 90 00 49 [12:30:15]RAPDU: 9D 68 7A 6F 4D B6 3D 81 90 00 [12:30:15]wFMCommunicate OK [12:30:15]SAM_PROTO_SignData done [12:30:15]FM_MakeSignedData done [12:30:15]CreateOFDProtocolMessage [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 11 00 00 [12:30:15]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 17 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 17 00 18 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [12:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:15]wFMCommunicate OK [12:30:15]CreateOFDProtocolMessage done [12:30:15]OFDSenderStorePacket 166382 [12:30:15]StoreOFDPacket docnum=166382 [12:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 A1 07 01 D8 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 89 02 00 35 04 06 00 FF EB C7 AB D1 FC 9D 68 7A 6F 4D B6 3D 81 [12:30:15]CheckFolder [12:30:15]dirname=/storage/ofd_packets [12:30:15]CheckFolder done [12:30:15]ProducePacketName [12:30:15]name=ofd_packets/00166382 [12:30:15]NVStorageSaveData ofd_packets/00166382 [12:30:15]File name is /storage/ofd_packets/00166382 [12:30:15]Write 301 bytes [12:30:15]NVStorageSaveData done [12:30:15]OFDSenderStorePacket done [12:30:15]KKMCreateOFDPacket done [12:30:15]NVStorageSaveData kkm_last_timestamp [12:30:15]File name is /storage/kkm_last_timestamp [12:30:15]Write 4 bytes [12:30:15]NVStorageSaveData done [12:30:15]ExternCall_PrintAddStr [12:30:15]wPrintStart [12:30:15]Write to MH i2c: 01 00 00 19 07 20 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [12:30:15]RasterBufferAndPrint [12:30:15]line Счет N : (1)220960 [12:30:15]line ИНН: 02508201610067 [12:30:15]line Контрольно-Кассовый Чек [12:30:15]line ПРОДАЖА [12:30:15]line ТРК (МРК, ГНК) : 13 [12:30:15]line Товар: 2710124130 [12:30:15]line Аи-92-К-5 [12:30:15]line 10.000 * 0.00 [12:30:15]line = 0.00 [12:30:15]line НДС 12% НСП 1% [12:30:15]line > о реализуемом товаре [12:30:15]line ИТОГО: 0.00 [12:30:15]line НСП 1% : 0.00 [12:30:15]line НДС 12% : 0.00 [12:30:15]line Наличными: 0.00 [12:30:15]line Безнал.: 0.00 [12:30:15]line Место: АЗС № 161 "Партнер Нефть" [12:30:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:30:15]line СНО: Общий режим [12:30:15]line Чек 137 22.10.2024 12:30 [12:30:15]line Смена: 536 ФФД: 1.0 [12:30:15]line ЗНМ: 0300000104 [12:30:15]line РНМ: 0000000000091764 [12:30:15]line Версия ККМ: 001 [12:30:15]line Талоны: Топливные Талоны [12:30:15]line 4220473 [12:30:15]line ФМ: 0000000000871759 [12:30:15]line ФД: 166382 [12:30:15]line ФПД: 281388132323836 [12:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166382&fm=281388132323836&tin=02508201610067®Number=0000000000091764&sum=0 [12:30:15]OFD Sender: Processing packet 166382 [packets to send 48, broken 47] [12:30:15]ProducePacketName [12:30:15]name=ofd_packets/00166382 [12:30:15]OFD Sender: To server: pG, [12:30:15]CommunicateWithHost lk.salyk.kg:30040 [12:30:15]ConnectInit lk.salyk.kg [12:30:15]written 0, free lines is 4095 [12:30:15]Connected sock=10 [12:30:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 A1 07 01 D8 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 9A 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 89 02 00 35 04 06 00 FF EB C7 AB D1 FC 9D 68 7A 6F 4D B6 3D 81 [12:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 63 99 47 00 28 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 31 37 35 39 10 04 04 00 EE 89 02 00 F4 03 04 00 41 41 17 67 B6 04 01 00 00 28 5A A7 8D 18 54 1E EA [12:30:15]CommunicateWithHost err = 0 [12:30:15]CheckOFDResponse [12:30:15]1017 (14) - 77093643461234 [12:30:15]1041 (16) - 0000000000871759 [12:30:15]1040 (4) - 166382 [12:30:15]1012 (4) - 22.10.2024 06:08 [12:30:15]1206 (1) - 0 [12:30:15]OFD Sender: Remove packet 166382 [12:30:15]ProducePacketName [12:30:15]name=ofd_packets/00166382 [12:30:15]NVStorageDeleteData [12:30:15]Write to MH i2c: 01 00 00 43 07 4A [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 43 07 00 00 00 00 00 DD 0C 3A [12:30:15]RasterBufferAndPrint [12:30:15]line [12:30:15]line [12:30:15]line [12:30:15]line [12:30:15]line [12:30:15]written 0, free lines is 3296 [12:30:15]MH_Cut [12:30:15]Write to MH i2c: D1 01 00 4A 07 01 23 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: D1 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: D1 01 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: D1 01 00 4A 07 00 22 [12:30:15]Write to MH i2c: 01 00 00 4B 07 52 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:16]OFD Sender: No OFD packet to send [12:30:16]*** Cut start [12:30:16]*** Partial cut [12:30:16]*** CUTSNS_PIN = 1 [12:30:16]*** CUTSNS_PIN = 0 [12:30:17]*** Brake cut motor [12:30:17]Read from MH i2c: 01 [12:30:17]MH_I2C_Read... [12:30:17]*** Stop cut motor [12:30:17]*** Cut end [12:30:17]Read from MH i2c: 01 07 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [12:30:17]process_action close_receipt done [12:30:17]requested_data is exist [12:30:17]produce_requested_data [12:30:17]requested_item fm.sn is exist - process it [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 11 00 00 [12:30:17]Write to MH i2c: E2 08 00 4C 07 80 11 00 00 00 00 00 00 CD [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 17 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 17 00 4C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [12:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:17]wFMCommunicate OK [12:30:17]requested_item fd.num is exist - process it [12:30:17]SAM_PROTO_GetFieldsCounters [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 13 00 00 [12:30:17]Write to MH i2c: E2 08 00 4D 07 80 13 00 00 00 00 00 00 D0 [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 62 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 62 00 4D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:17]wFMCommunicate OK [12:30:17]SAM_PROTO_GetFieldsCounters done [12:30:17]requested_item shift.num is exist - process it [12:30:17]requested_item shift.opened is exist - process it [12:30:17]req_shift_opened [12:30:17]FM_GetShiftState [12:30:17]SAM_PROTO_GetShiftState [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 13 01 00 [12:30:17]Write to MH i2c: E2 08 00 4E 07 80 13 01 00 00 00 00 00 D2 [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 0E 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 0E 00 4E 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 25 [12:30:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:30:17]wFMCommunicate OK [12:30:17]SAM_PROTO_GetShiftState done [12:30:17]FM_GetShiftState done [12:30:17]req_shift_opened done [12:30:17]requested_item shift.open_date is exist - process it [12:30:17]req_shift_open_date [12:30:17]req_shift_open_date done [12:30:17]produce_requested_data done [12:30:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166382,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:30:17]process_action_free close_receipt [12:30:17]json_value_free [12:30:17]json_value_free done [12:30:17]process_json_proto returns [12:30:17]Send response to host [12:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166382,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:30:17]free response buf [12:30:17]execute_script done [12:30:17]execute_script returns [12:30:17]free content buf [12:30:17]Sock 9.Close socket [12:30:17]Sock 9.Thread stoped [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:49]accept exits with 7 [12:31:49]New connection [12:31:49]New thread 3067493732 created [12:31:49]Thread 3067637092 joined [12:31:49]Waiting for new connection... [12:31:49] Sock 7.Parse request [12:31:49]Sock 7.Check first char [12:31:49]Sock 7.First char is OK [12:31:49]request: POST /json_proto HTTP/1.0 [12:31:49]Method: POST [12:31:49]URL: /json_proto [12:31:49]Method is POST - this is cgi request [12:31:49]url: /json_proto [12:31:49]query_string will be loaded in cgi processing [12:31:49]execute_cgi json_proto POST (null) [12:31:49]execute_cgi path=json_proto method=POST [12:31:49]POST find Content-Length [12:31:49]Host: 172.17.53.195:8080 [12:31:49]Content-Length: 677 [12:31:49]Content-Type: application/json [12:31:49] [12:31:49]POST finish read [12:31:49]Found Content-Length = 677 [12:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:49]execute_script... [12:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:49]POST & json_proto [12:31:49]process_json_proto [12:31:49]json parsed OK: [12:31:49]protocol is kg_v1.0 [12:31:49]action value=close_receipt [12:31:49]process_action close_receipt [12:31:49]cmd_close_receipt [12:31:49]MH_GetDate [12:31:49]Write to MH i2c: F0 00 00 4F 07 45 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 4F 07 00 35 9B 17 67 21 48 4A 65 B4 [12:31:49]GetLastDocTimeStamp 1729600213 [12:31:49]current date 1729600309 [12:31:49]FM_GetShiftState [12:31:49]SAM_PROTO_GetShiftState [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 13 01 00 [12:31:49]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 27 [12:31:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_GetShiftState done [12:31:49]FM_GetShiftState done [12:31:49]opened in 1729557463 [12:31:49]opened+sec_in_day 1729643863 [12:31:49]quantity*price = 50041 [12:31:49]sum+1 = 50042 [12:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 138 22.10.2024 12:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166383 ФПД: 37920236282588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166383&fm=37920236282588&tin=02508201610067®Number=0000000000091764&sum=50000 [12:31:50]StoreToDocumentArchive [12:31:50]shift 536 fd 166383 [12:31:50]save to /storage/0536/doc_00166383 [12:31:50]save last doc name /storage/0536/doc_00166383 to /storage/kkm_last_doc_name [12:31:50]save OK [12:31:50]Clear old archive folders... [12:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:50]tlvbuf is 00A1FF50 [12:31:50]SAM_PROTO_ClearQueue [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 09 00 00 [12:31:50]Write to MH i2c: E2 08 00 5D 07 80 09 00 00 00 00 00 00 D6 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_ClearQueue done [12:31:50]KKMCreateOFDPacket [12:31:50]OFDProtocolAddRootSTLVToBuf [12:31:50]FM_MakeSignedData [12:31:50]FM_MakeSignedData [12:31:50]SAM_PROTO_SignData [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 01 02 [12:31:50]Write to MH i2c: E2 08 00 5E 07 80 0D 01 02 00 00 00 00 DE [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=255 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 35 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 89 02 00 35 04 06 00 22 [12:31:50]Write to MH i2c: E2 02 01 5F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 35 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 89 02 00 35 04 06 00 22 00 00 02 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=10 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 02 02 05 7C FE 36 A2 DC [12:31:50]Write to MH i2c: E2 0D 00 60 07 80 0D 02 02 05 00 7C FE 36 A2 DC 00 00 19 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 03 02 [12:31:50]Write to MH i2c: E2 08 00 61 07 80 0D 03 02 00 00 00 00 E3 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0B 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0B 00 61 07 00 6A E4 75 5B 24 48 48 52 90 00 08 [12:31:50]RAPDU: 6A E4 75 5B 24 48 48 52 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_SignData done [12:31:50]FM_MakeSignedData done [12:31:50]CreateOFDProtocolMessage [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 11 00 00 [12:31:50]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 62 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [12:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:31:50]wFMCommunicate OK [12:31:50]CreateOFDProtocolMessage done [12:31:50]OFDSenderStorePacket 166383 [12:31:50]StoreOFDPacket docnum=166383 [12:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA D2 07 01 FF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 35 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 89 02 00 35 04 06 00 22 7C FE 36 A2 DC 6A E4 75 5B 24 48 48 52 [12:31:50]CheckFolder [12:31:50]dirname=/storage/ofd_packets [12:31:50]CheckFolder done [12:31:50]ProducePacketName [12:31:50]name=ofd_packets/00166383 [12:31:50]NVStorageSaveData ofd_packets/00166383 [12:31:50]File name is /storage/ofd_packets/00166383 [12:31:50]Write 301 bytes [12:31:50]NVStorageSaveData done [12:31:50]OFDSenderStorePacket done [12:31:50]KKMCreateOFDPacket done [12:31:50]NVStorageSaveData kkm_last_timestamp [12:31:50]File name is /storage/kkm_last_timestamp [12:31:50]Write 4 bytes [12:31:50]NVStorageSaveData done [12:31:50]ExternCall_PrintAddStr [12:31:50]wPrintStart [12:31:50]Write to MH i2c: 01 00 00 63 07 6A [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [12:31:50]RasterBufferAndPrint [12:31:50]line Счет N : (1)220961 [12:31:50]line ИНН: 02508201610067 [12:31:50]line Контрольно-Кассовый Чек [12:31:50]line ПРОДАЖА [12:31:50]line ТРК (МРК, ГНК) : 23 [12:31:50]line Товар: 2710124130 [12:31:50]line Аи-92-К-5 [12:31:50]line 7.480 * 66.90 [12:31:50]line = 500.41 [12:31:50]line НДС 12% НСП 1% [12:31:50]line > о реализуемом товаре [12:31:50]line ОКРУГЛЕНИЕ: -0.41 [12:31:50]line ИТОГО: 500.00 [12:31:50]line Внесено: 500.00 [12:31:50]line СДАЧА: 0.00 [12:31:50]line НСП 1% : 4.43 [12:31:50]line НДС 12% : 53.14 [12:31:50]line Наличными: 500.00 [12:31:50]line Безнал.: 0.00 [12:31:50]line Место: АЗС № 161 "Партнер Нефть" [12:31:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:31:50]line СНО: Общий режим [12:31:50]line Чек 138 22.10.2024 12:31 [12:31:50]line Смена: 536 ФФД: 1.0 [12:31:50]line ЗНМ: 0300000104 [12:31:50]line РНМ: 0000000000091764 [12:31:50]line Версия ККМ: 001 [12:31:50]line ФМ: 0000000000871759 [12:31:50]line ФД: 166383 [12:31:50]line ФПД: 37920236282588 [12:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166383&fm=37920236282588&tin=02508201610067®Number=0000000000091764&sum=50000 [12:31:51]OFD Sender: Processing packet 166383 [packets to send 48, broken 47] [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00166383 [12:31:51]OFD Sender: To server: pG, [12:31:51]CommunicateWithHost lk.salyk.kg:30040 [12:31:51]ConnectInit lk.salyk.kg [12:31:51]written 0, free lines is 4095 [12:31:51]Connected sock=10 [12:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA D2 07 01 FF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 35 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 89 02 00 35 04 06 00 22 7C FE 36 A2 DC 6A E4 75 5B 24 48 48 52 [12:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA 48 47 00 0A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 89 02 00 F4 03 04 00 A0 41 17 67 B6 04 01 00 00 9D F8 5B 6C 35 7F BC FF [12:31:51]CommunicateWithHost err = 0 [12:31:51]CheckOFDResponse [12:31:51]1017 (14) - 77093643461234 [12:31:51]1041 (16) - 0000000000871759 [12:31:51]1040 (4) - 166383 [12:31:51]1012 (4) - 22.10.2024 06:09 [12:31:51]1206 (1) - 0 [12:31:51]OFD Sender: Remove packet 166383 [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00166383 [12:31:51]NVStorageDeleteData [12:31:51]Write to MH i2c: 01 00 00 8E 07 95 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 8E 07 00 00 00 00 00 C3 0C 6B [12:31:51]RasterBufferAndPrint [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]written 0, free lines is 3273 [12:31:51]MH_Cut [12:31:51]Write to MH i2c: D1 01 00 95 07 01 6E [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 01 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 01 00 95 07 00 6D [12:31:51]Write to MH i2c: 01 00 00 96 07 9D [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]OFD Sender: No OFD packet to send [12:31:52]*** Cut start [12:31:52]*** Partial cut [12:31:52]*** CUTSNS_PIN = 1 [12:31:52]*** CUTSNS_PIN = 0 [12:31:52]*** Brake cut motor [12:31:52]Read from MH i2c: 01 [12:31:52]MH_I2C_Read... [12:31:52]*** Stop cut motor [12:31:52]*** Cut end [12:31:52]Read from MH i2c: 01 07 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 FF 0F B2 [12:31:52]process_action close_receipt done [12:31:52]requested_data is exist [12:31:52]produce_requested_data [12:31:52]requested_item fm.sn is exist - process it [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 11 00 00 [12:31:52]Write to MH i2c: E2 08 00 97 07 80 11 00 00 00 00 00 00 18 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 97 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [12:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:31:52]wFMCommunicate OK [12:31:52]requested_item fd.num is exist - process it [12:31:52]SAM_PROTO_GetFieldsCounters [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 13 00 00 [12:31:52]Write to MH i2c: E2 08 00 98 07 80 13 00 00 00 00 00 00 1B [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 62 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 62 00 98 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [12:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetFieldsCounters done [12:31:53]requested_item shift.num is exist - process it [12:31:53]requested_item shift.opened is exist - process it [12:31:53]req_shift_opened [12:31:53]FM_GetShiftState [12:31:53]SAM_PROTO_GetShiftState [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 13 01 00 [12:31:53]Write to MH i2c: E2 08 00 99 07 80 13 01 00 00 00 00 00 1D [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 99 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 70 [12:31:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetShiftState done [12:31:53]FM_GetShiftState done [12:31:53]req_shift_opened done [12:31:53]requested_item shift.open_date is exist - process it [12:31:53]req_shift_open_date [12:31:53]req_shift_open_date done [12:31:53]produce_requested_data done [12:31:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166383,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:31:53]process_action_free close_receipt [12:31:53]json_value_free [12:31:53]json_value_free done [12:31:53]process_json_proto returns [12:31:53]Send response to host [12:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166383,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:31:53]free response buf [12:31:53]execute_script done [12:31:53]execute_script returns [12:31:53]free content buf [12:31:53]Sock 7.Close socket [12:31:53]Sock 7.Thread stoped [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:27]accept exits with 9 [12:32:27]New connection [12:32:27]New thread 3067637092 created [12:32:27]Thread 3067493732 joined [12:32:27]Waiting for new connection... [12:32:27] Sock 9.Parse request [12:32:27]Sock 9.Check first char [12:32:27]Sock 9.First char is OK [12:32:27]request: POST /json_proto HTTP/1.0 [12:32:27]Method: POST [12:32:27]URL: /json_proto [12:32:27]Method is POST - this is cgi request [12:32:27]url: /json_proto [12:32:27]query_string will be loaded in cgi processing [12:32:27]execute_cgi json_proto POST (null) [12:32:27]execute_cgi path=json_proto method=POST [12:32:27]POST find Content-Length [12:32:27]Host: 172.17.53.195:8080 [12:32:27]Content-Length: 677 [12:32:27]Content-Type: application/json [12:32:27] [12:32:27]POST finish read [12:32:27]Found Content-Length = 677 [12:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:27]execute_script... [12:32:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:27]POST & json_proto [12:32:27]process_json_proto [12:32:27]json parsed OK: [12:32:27]protocol is kg_v1.0 [12:32:27]action value=close_receipt [12:32:27]process_action close_receipt [12:32:27]cmd_close_receipt [12:32:27]MH_GetDate [12:32:27]Write to MH i2c: F0 00 00 9A 07 90 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 09 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: F0 09 00 9A 07 00 5B 9B 17 67 21 48 4A 65 25 [12:32:27]GetLastDocTimeStamp 1729600309 [12:32:27]current date 1729600347 [12:32:27]FM_GetShiftState [12:32:27]SAM_PROTO_GetShiftState [12:32:27]wFMCommunicate request_size=4 [12:32:27]MH_SAM_APDU [12:32:27]CAPDU: 80 13 01 00 [12:32:27]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:27]Read from MH i2c: E2 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: E2 0E 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 72 [12:32:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:32:27]wFMCommunicate OK [12:32:27]SAM_PROTO_GetShiftState done [12:32:27]FM_GetShiftState done [12:32:27]opened in 1729557463 [12:32:27]opened+sec_in_day 1729643863 [12:32:27]quantity*price = 50041 [12:32:27]sum+1 = 50042 [12:32:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 139 22.10.2024 12:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166384 ФПД: 8230258584370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166384&fm=8230258584370&tin=02508201610067®Number=0000000000091764&sum=50000 [12:32:28]StoreToDocumentArchive [12:32:28]shift 536 fd 166384 [12:32:28]save to /storage/0536/doc_00166384 [12:32:28]save last doc name /storage/0536/doc_00166384 to /storage/kkm_last_doc_name [12:32:28]save OK [12:32:28]Clear old archive folders... [12:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:28]tlvbuf is 009D3600 [12:32:28]SAM_PROTO_ClearQueue [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 09 00 00 [12:32:28]Write to MH i2c: E2 08 00 A8 07 80 09 00 00 00 00 00 00 21 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]SAM_PROTO_ClearQueue done [12:32:28]KKMCreateOFDPacket [12:32:28]OFDProtocolAddRootSTLVToBuf [12:32:28]FM_MakeSignedData [12:32:28]FM_MakeSignedData [12:32:28]SAM_PROTO_SignData [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 01 02 [12:32:28]Write to MH i2c: E2 08 00 A9 07 80 0D 01 02 00 00 00 00 29 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]wFMCommunicate request_size=255 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5B 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 89 02 00 35 04 06 00 07 [12:32:28]Write to MH i2c: E2 02 01 AA 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5B 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 89 02 00 35 04 06 00 07 00 00 5A [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]wFMCommunicate request_size=10 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 02 02 05 7C 41 A3 AB 32 [12:32:28]Write to MH i2c: E2 0D 00 AB 07 80 0D 02 02 05 00 7C 41 A3 AB 32 00 00 73 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [12:32:28]RAPDU: 90 00 [12:32:28]wFMCommunicate OK [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 0D 03 02 [12:32:28]Write to MH i2c: E2 08 00 AC 07 80 0D 03 02 00 00 00 00 2E [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 0B 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 0B 00 AC 07 00 F3 C1 63 FA 0F 5A 6D 71 90 00 87 [12:32:28]RAPDU: F3 C1 63 FA 0F 5A 6D 71 90 00 [12:32:28]wFMCommunicate OK [12:32:28]SAM_PROTO_SignData done [12:32:28]FM_MakeSignedData done [12:32:28]CreateOFDProtocolMessage [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 11 00 00 [12:32:28]Write to MH i2c: E2 08 00 AD 07 80 11 00 00 00 00 00 00 2E [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 AD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [12:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:28]wFMCommunicate OK [12:32:28]CreateOFDProtocolMessage done [12:32:28]OFDSenderStorePacket 166384 [12:32:28]StoreOFDPacket docnum=166384 [12:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 68 07 01 3D AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5B 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 89 02 00 35 04 06 00 07 7C 41 A3 AB 32 F3 C1 63 FA 0F 5A 6D 71 [12:32:28]CheckFolder [12:32:28]dirname=/storage/ofd_packets [12:32:28]CheckFolder done [12:32:28]ProducePacketName [12:32:28]name=ofd_packets/00166384 [12:32:28]NVStorageSaveData ofd_packets/00166384 [12:32:28]File name is /storage/ofd_packets/00166384 [12:32:28]Write 301 bytes [12:32:28]NVStorageSaveData done [12:32:28]OFDSenderStorePacket done [12:32:28]KKMCreateOFDPacket done [12:32:28]NVStorageSaveData kkm_last_timestamp [12:32:28]File name is /storage/kkm_last_timestamp [12:32:28]Write 4 bytes [12:32:28]NVStorageSaveData done [12:32:28]ExternCall_PrintAddStr [12:32:28]wPrintStart [12:32:28]Write to MH i2c: 01 00 00 AE 07 B5 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: 01 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: 01 07 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [12:32:28]RasterBufferAndPrint [12:32:28]line Счет N : (1)220962 [12:32:28]line ИНН: 02508201610067 [12:32:28]line Контрольно-Кассовый Чек [12:32:28]line ПРОДАЖА [12:32:28]line ТРК (МРК, ГНК) : 43 [12:32:28]line Товар: 2710124130 [12:32:28]line Аи-92-К-5 [12:32:28]line 7.480 * 66.90 [12:32:28]line = 500.41 [12:32:28]line НДС 12% НСП 1% [12:32:28]line > о реализуемом товаре [12:32:28]line ОКРУГЛЕНИЕ: -0.41 [12:32:28]line ИТОГО: 500.00 [12:32:28]line Внесено: 500.00 [12:32:28]line СДАЧА: 0.00 [12:32:28]line НСП 1% : 4.43 [12:32:28]line НДС 12% : 53.14 [12:32:28]line Наличными: 500.00 [12:32:28]line Безнал.: 0.00 [12:32:28]line Место: АЗС № 161 "Партнер Нефть" [12:32:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:32:28]line СНО: Общий режим [12:32:28]line Чек 139 22.10.2024 12:32 [12:32:28]line Смена: 536 ФФД: 1.0 [12:32:28]line ЗНМ: 0300000104 [12:32:28]line РНМ: 0000000000091764 [12:32:28]line Версия ККМ: 001 [12:32:28]line ФМ: 0000000000871759 [12:32:28]line ФД: 166384 [12:32:28]line ФПД: 8230258584370 [12:32:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166384&fm=8230258584370&tin=02508201610067®Number=0000000000091764&sum=50000 [12:32:29]OFD Sender: Processing packet 166384 [packets to send 48, broken 47] [12:32:29]ProducePacketName [12:32:29]name=ofd_packets/00166384 [12:32:29]OFD Sender: To server: pG, [12:32:29]CommunicateWithHost lk.salyk.kg:30040 [12:32:29]ConnectInit lk.salyk.kg [12:32:29]written 0, free lines is 4095 [12:32:29]Connected sock=10 [12:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 68 07 01 3D AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5B 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 89 02 00 35 04 06 00 07 7C 41 A3 AB 32 F3 C1 63 FA 0F 5A 6D 71 [12:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 69 5F 47 00 8A 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 89 02 00 F4 03 04 00 C6 41 17 67 B6 04 01 00 00 76 55 14 3A 39 B2 D7 02 [12:32:29]CommunicateWithHost err = 0 [12:32:29]CheckOFDResponse [12:32:29]1017 (14) - 77093643461234 [12:32:29]1041 (16) - 0000000000871759 [12:32:29]1040 (4) - 166384 [12:32:29]1012 (4) - 22.10.2024 06:10 [12:32:29]1206 (1) - 0 [12:32:29]OFD Sender: Remove packet 166384 [12:32:29]ProducePacketName [12:32:29]name=ofd_packets/00166384 [12:32:29]NVStorageDeleteData [12:32:29]Write to MH i2c: 01 00 00 D9 07 E0 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 07 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 C3 0C B6 [12:32:29]RasterBufferAndPrint [12:32:29]line [12:32:29]line [12:32:29]line [12:32:29]line [12:32:29]line [12:32:29]written 0, free lines is 3273 [12:32:29]MH_Cut [12:32:29]Write to MH i2c: D1 01 00 E0 07 01 B9 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: D1 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: D1 01 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: D1 01 00 E0 07 00 B8 [12:32:29]Write to MH i2c: 01 00 00 E1 07 E8 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]OFD Sender: No OFD packet to send [12:32:30]*** Cut start [12:32:30]*** Partial cut [12:32:30]*** CUTSNS_PIN = 1 [12:32:30]*** CUTSNS_PIN = 0 [12:32:30]*** Brake cut motor [12:32:30]Read from MH i2c: 01 [12:32:30]MH_I2C_Read... [12:32:30]*** Stop cut motor [12:32:30]*** Cut end [12:32:30]Read from MH i2c: 01 07 00 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [12:32:30]process_action close_receipt done [12:32:30]requested_data is exist [12:32:30]produce_requested_data [12:32:30]requested_item fm.sn is exist - process it [12:32:30]wFMCommunicate request_size=4 [12:32:30]MH_SAM_APDU [12:32:30]CAPDU: 80 11 00 00 [12:32:30]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 17 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [12:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:31]wFMCommunicate OK [12:32:31]requested_item fd.num is exist - process it [12:32:31]SAM_PROTO_GetFieldsCounters [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 13 00 00 [12:32:31]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 62 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 62 00 E3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:32:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:31]wFMCommunicate OK [12:32:31]SAM_PROTO_GetFieldsCounters done [12:32:31]requested_item shift.num is exist - process it [12:32:31]requested_item shift.opened is exist - process it [12:32:31]req_shift_opened [12:32:31]FM_GetShiftState [12:32:31]SAM_PROTO_GetShiftState [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 13 01 00 [12:32:31]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 0E 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BB [12:32:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:32:31]wFMCommunicate OK [12:32:31]SAM_PROTO_GetShiftState done [12:32:31]FM_GetShiftState done [12:32:31]req_shift_opened done [12:32:31]requested_item shift.open_date is exist - process it [12:32:31]req_shift_open_date [12:32:31]req_shift_open_date done [12:32:31]produce_requested_data done [12:32:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166384,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:32:31]process_action_free close_receipt [12:32:31]json_value_free [12:32:31]json_value_free done [12:32:31]process_json_proto returns [12:32:31]Send response to host [12:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166384,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:32:31]free response buf [12:32:31]execute_script done [12:32:31]execute_script returns [12:32:31]free content buf [12:32:31]Sock 9.Close socket [12:32:31]Sock 9.Thread stoped [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]accept exits with 7 [12:32:54]New connection [12:32:54]New thread 3067493732 created [12:32:54]Thread 3067637092 joined [12:32:54]Waiting for new connection... [12:32:54] Sock 7.Parse request [12:32:54]Sock 7.Check first char [12:32:54]Sock 7.First char is OK [12:32:54]request: POST /json_proto HTTP/1.0 [12:32:54]Method: POST [12:32:54]URL: /json_proto [12:32:54]Method is POST - this is cgi request [12:32:54]url: /json_proto [12:32:54]query_string will be loaded in cgi processing [12:32:54]execute_cgi json_proto POST (null) [12:32:54]execute_cgi path=json_proto method=POST [12:32:54]POST find Content-Length [12:32:54]Host: 172.17.53.195:8080 [12:32:54]Content-Length: 800 [12:32:54]Content-Type: application/json [12:32:54] [12:32:54]POST finish read [12:32:54]Found Content-Length = 800 [12:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220499", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:54]execute_script... [12:32:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220499", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:54]POST & json_proto [12:32:54]process_json_proto [12:32:54]json parsed OK: [12:32:54]protocol is kg_v1.0 [12:32:54]action value=close_receipt [12:32:54]process_action close_receipt [12:32:54]cmd_close_receipt [12:32:54]MH_GetDate [12:32:54]Write to MH i2c: F0 00 00 E5 07 DB [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: F0 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: F0 09 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: F0 09 00 E5 07 00 76 9B 17 67 21 48 4A 65 8B [12:32:54]GetLastDocTimeStamp 1729600347 [12:32:54]current date 1729600374 [12:32:54]FM_GetShiftState [12:32:54]SAM_PROTO_GetShiftState [12:32:54]wFMCommunicate request_size=4 [12:32:54]MH_SAM_APDU [12:32:54]CAPDU: 80 13 01 00 [12:32:54]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:54]Read from MH i2c: E2 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 0E 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BD [12:32:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:32:54]wFMCommunicate OK [12:32:54]SAM_PROTO_GetShiftState done [12:32:54]FM_GetShiftState done [12:32:54]opened in 1729557463 [12:32:54]opened+sec_in_day 1729643863 [12:32:54]quantity*price = 0 [12:32:54]sum+1 = 1 [12:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 140 22.10.2024 12:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220499 ФМ: 0000000000871759 ФД: 166385 ФПД: 30538276415774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166385&fm=30538276415774&tin=02508201610067®Number=0000000000091764&sum=0 [12:32:55]StoreToDocumentArchive [12:32:55]shift 536 fd 166385 [12:32:55]save to /storage/0536/doc_00166385 [12:32:55]save last doc name /storage/0536/doc_00166385 to /storage/kkm_last_doc_name [12:32:55]save OK [12:32:55]Clear old archive folders... [12:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:55]tlvbuf is 00A2A870 [12:32:55]SAM_PROTO_ClearQueue [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 09 00 00 [12:32:55]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [12:32:55]RAPDU: 90 00 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_ClearQueue done [12:32:55]KKMCreateOFDPacket [12:32:55]OFDProtocolAddRootSTLVToBuf [12:32:55]FM_MakeSignedData [12:32:55]FM_MakeSignedData [12:32:55]SAM_PROTO_SignData [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 0D 01 02 [12:32:55]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [12:32:55]RAPDU: 90 00 [12:32:55]wFMCommunicate OK [12:32:55]wFMCommunicate request_size=255 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 89 02 00 35 04 06 00 1B [12:32:55]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 89 02 00 35 04 06 00 1B 00 00 88 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [12:32:55]RAPDU: 90 00 [12:32:55]wFMCommunicate OK [12:32:55]wFMCommunicate request_size=10 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 0D 02 02 05 C6 3F 1E 29 1E [12:32:55]Write to MH i2c: E2 0D 00 F6 07 80 0D 02 02 05 00 C6 3F 1E 29 1E 00 00 EB [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [12:32:55]RAPDU: 90 00 [12:32:55]wFMCommunicate OK [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 0D 03 02 [12:32:55]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0B 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 0B 00 F7 07 00 4D 64 28 D2 F5 30 9D DC 90 00 C3 [12:32:55]RAPDU: 4D 64 28 D2 F5 30 9D DC 90 00 [12:32:55]wFMCommunicate OK [12:32:55]SAM_PROTO_SignData done [12:32:55]FM_MakeSignedData done [12:32:55]CreateOFDProtocolMessage [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 11 00 00 [12:32:55]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 F8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [12:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:55]wFMCommunicate OK [12:32:55]CreateOFDProtocolMessage done [12:32:55]OFDSenderStorePacket 166385 [12:32:55]StoreOFDPacket docnum=166385 [12:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 92 07 01 4A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 89 02 00 35 04 06 00 1B C6 3F 1E 29 1E 4D 64 28 D2 F5 30 9D DC [12:32:55]CheckFolder [12:32:55]dirname=/storage/ofd_packets [12:32:55]CheckFolder done [12:32:55]ProducePacketName [12:32:55]name=ofd_packets/00166385 [12:32:55]NVStorageSaveData ofd_packets/00166385 [12:32:55]File name is /storage/ofd_packets/00166385 [12:32:55]Write 301 bytes [12:32:55]NVStorageSaveData done [12:32:55]OFDSenderStorePacket done [12:32:55]KKMCreateOFDPacket done [12:32:55]NVStorageSaveData kkm_last_timestamp [12:32:55]File name is /storage/kkm_last_timestamp [12:32:55]Write 4 bytes [12:32:55]NVStorageSaveData done [12:32:55]ExternCall_PrintAddStr [12:32:55]wPrintStart [12:32:55]Write to MH i2c: 01 00 00 F9 07 00 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 07 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [12:32:55]RasterBufferAndPrint [12:32:55]line Счет N : (1)220963 [12:32:55]line ИНН: 02508201610067 [12:32:55]line Контрольно-Кассовый Чек [12:32:55]line ПРОДАЖА [12:32:55]line ТРК (МРК, ГНК) : 13 [12:32:55]line Товар: 2710124130 [12:32:55]line Аи-92-К-5 [12:32:55]line 10.000 * 0.00 [12:32:55]line = 0.00 [12:32:55]line НДС 12% НСП 1% [12:32:55]line > о реализуемом товаре [12:32:55]line ИТОГО: 0.00 [12:32:55]line НСП 1% : 0.00 [12:32:55]line НДС 12% : 0.00 [12:32:55]line Наличными: 0.00 [12:32:55]line Безнал.: 0.00 [12:32:55]line Место: АЗС № 161 "Партнер Нефть" [12:32:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:32:55]line СНО: Общий режим [12:32:55]line Чек 140 22.10.2024 12:32 [12:32:55]line Смена: 536 ФФД: 1.0 [12:32:55]line ЗНМ: 0300000104 [12:32:55]line РНМ: 0000000000091764 [12:32:55]line Версия ККМ: 001 [12:32:55]line Талоны: Топливные Талоны [12:32:55]line 4220499 [12:32:55]line ФМ: 0000000000871759 [12:32:55]line ФД: 166385 [12:32:55]line ФПД: 30538276415774 [12:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123254&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166385&fm=30538276415774&tin=02508201610067®Number=0000000000091764&sum=0 [12:32:56]written 0, free lines is 4095 [12:32:56]OFD Sender: Processing packet 166385 [packets to send 48, broken 47] [12:32:56]ProducePacketName [12:32:56]name=ofd_packets/00166385 [12:32:56]OFD Sender: To server: pG, [12:32:56]CommunicateWithHost lk.salyk.kg:30040 [12:32:56]ConnectInit lk.salyk.kg [12:32:56]Connected sock=10 [12:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 92 07 01 4A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 76 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 89 02 00 35 04 06 00 1B C6 3F 1E 29 1E 4D 64 28 D2 F5 30 9D DC [12:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 69 47 00 9E 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 89 02 00 F4 03 04 00 E1 41 17 67 B6 04 01 00 00 91 43 B1 76 77 47 C2 90 [12:32:56]CommunicateWithHost err = 0 [12:32:56]CheckOFDResponse [12:32:56]1017 (14) - 77093643461234 [12:32:56]1041 (16) - 0000000000871759 [12:32:56]1040 (4) - 166385 [12:32:56]1012 (4) - 22.10.2024 06:10 [12:32:56]1206 (1) - 0 [12:32:56]OFD Sender: Remove packet 166385 [12:32:56]ProducePacketName [12:32:56]name=ofd_packets/00166385 [12:32:56]NVStorageDeleteData [12:32:56]Write to MH i2c: 01 00 00 23 08 2B [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: 01 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: 01 07 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 EC 0C 2A [12:32:56]RasterBufferAndPrint [12:32:56]line [12:32:56]line [12:32:56]line [12:32:56]line [12:32:56]line [12:32:56]written 0, free lines is 3313 [12:32:56]MH_Cut [12:32:56]Write to MH i2c: D1 01 00 2A 08 01 04 [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: D1 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: D1 01 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: D1 01 00 2A 08 00 03 [12:32:56]Write to MH i2c: 01 00 00 2B 08 33 [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]OFD Sender: No OFD packet to send [12:32:57]*** Cut start [12:32:57]*** Partial cut [12:32:57]*** CUTSNS_PIN = 1 [12:32:57]*** CUTSNS_PIN = 0 [12:32:57]*** Brake cut motor [12:32:57]Read from MH i2c: 01 [12:32:57]MH_I2C_Read... [12:32:57]*** Stop cut motor [12:32:57]*** Cut end [12:32:57]Read from MH i2c: 01 07 00 [12:32:57]MH_I2C_Read... [12:32:57]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [12:32:58]process_action close_receipt done [12:32:58]requested_data is exist [12:32:58]produce_requested_data [12:32:58]requested_item fm.sn is exist - process it [12:32:58]wFMCommunicate request_size=4 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 11 00 00 [12:32:58]Write to MH i2c: E2 08 00 2C 08 80 11 00 00 00 00 00 00 AE [12:32:58]Write i2c OK [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:58]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 17 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 17 00 2C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [12:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:58]wFMCommunicate OK [12:32:58]requested_item fd.num is exist - process it [12:32:58]SAM_PROTO_GetFieldsCounters [12:32:58]wFMCommunicate request_size=4 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 13 00 00 [12:32:58]Write to MH i2c: E2 08 00 2D 08 80 13 00 00 00 00 00 00 B1 [12:32:58]Write i2c OK [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:58]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 62 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 62 00 2D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:58]wFMCommunicate OK [12:32:58]SAM_PROTO_GetFieldsCounters done [12:32:58]requested_item shift.num is exist - process it [12:32:58]requested_item shift.opened is exist - process it [12:32:58]req_shift_opened [12:32:58]FM_GetShiftState [12:32:58]SAM_PROTO_GetShiftState [12:32:58]wFMCommunicate request_size=4 [12:32:58]MH_SAM_APDU [12:32:58]CAPDU: 80 13 01 00 [12:32:58]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [12:32:58]Write i2c OK [12:32:58]MH_I2C_Read... [12:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:58]Read from MH i2c: E2 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 0E 00 [12:32:58]MH_I2C_Read... [12:32:58]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 06 [12:32:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:32:58]wFMCommunicate OK [12:32:58]SAM_PROTO_GetShiftState done [12:32:58]FM_GetShiftState done [12:32:58]req_shift_opened done [12:32:58]requested_item shift.open_date is exist - process it [12:32:58]req_shift_open_date [12:32:58]req_shift_open_date done [12:32:58]produce_requested_data done [12:32:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166385,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:32:58]process_action_free close_receipt [12:32:58]json_value_free [12:32:58]json_value_free done [12:32:58]process_json_proto returns [12:32:58]Send response to host [12:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166385,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:32:58]free response buf [12:32:58]execute_script done [12:32:58]execute_script returns [12:32:58]free content buf [12:32:58]Sock 7.Close socket [12:32:58]Sock 7.Thread stoped [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:36]accept exits with 9 [12:34:36]New connection [12:34:36]New thread 3067637092 created [12:34:36]Thread 3067493732 joined [12:34:36]Waiting for new connection... [12:34:36] Sock 9.Parse request [12:34:36]Sock 9.Check first char [12:34:36]Sock 9.First char is OK [12:34:36]request: POST /json_proto HTTP/1.0 [12:34:36]Method: POST [12:34:36]URL: /json_proto [12:34:36]Method is POST - this is cgi request [12:34:36]url: /json_proto [12:34:36]query_string will be loaded in cgi processing [12:34:36]execute_cgi json_proto POST (null) [12:34:36]execute_cgi path=json_proto method=POST [12:34:36]POST find Content-Length [12:34:36]Host: 172.17.53.195:8080 [12:34:36]Content-Length: 679 [12:34:36]Content-Type: application/json [12:34:36] [12:34:36]POST finish read [12:34:36]Found Content-Length = 679 [12:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:36]execute_script... [12:34:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:36]POST & json_proto [12:34:36]process_json_proto [12:34:36]json parsed OK: [12:34:36]protocol is kg_v1.0 [12:34:36]action value=close_receipt [12:34:36]process_action close_receipt [12:34:36]cmd_close_receipt [12:34:36]MH_GetDate [12:34:36]Write to MH i2c: F0 00 00 2F 08 26 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: F0 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: F0 09 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: F0 09 00 2F 08 00 DC 9B 17 67 21 48 4A 65 3C [12:34:36]GetLastDocTimeStamp 1729600374 [12:34:36]current date 1729600476 [12:34:36]FM_GetShiftState [12:34:36]SAM_PROTO_GetShiftState [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 13 01 00 [12:34:36]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0E 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 08 [12:34:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_GetShiftState done [12:34:36]FM_GetShiftState done [12:34:36]opened in 1729557463 [12:34:36]opened+sec_in_day 1729643863 [12:34:36]quantity*price = 400050 [12:34:36]sum+1 = 400051 [12:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 141 22.10.2024 12:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166386 ФПД: 222171507820136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123436&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166386&fm=222171507820136&tin=02508201610067®Number=0000000000091764&sum=400000 [12:34:37]StoreToDocumentArchive [12:34:37]shift 536 fd 166386 [12:34:37]save to /storage/0536/doc_00166386 [12:34:37]save last doc name /storage/0536/doc_00166386 to /storage/kkm_last_doc_name [12:34:37]save OK [12:34:37]Clear old archive folders... [12:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:37]tlvbuf is 00A1BF60 [12:34:37]SAM_PROTO_ClearQueue [12:34:37]wFMCommunicate request_size=4 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 09 00 00 [12:34:37]Write to MH i2c: E2 08 00 3D 08 80 09 00 00 00 00 00 00 B7 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [12:34:37]RAPDU: 90 00 [12:34:37]wFMCommunicate OK [12:34:37]SAM_PROTO_ClearQueue done [12:34:37]KKMCreateOFDPacket [12:34:37]OFDProtocolAddRootSTLVToBuf [12:34:37]FM_MakeSignedData [12:34:37]FM_MakeSignedData [12:34:37]SAM_PROTO_SignData [12:34:37]wFMCommunicate request_size=4 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 0D 01 02 [12:34:37]Write to MH i2c: E2 08 00 3E 08 80 0D 01 02 00 00 00 00 BF [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [12:34:37]RAPDU: 90 00 [12:34:37]wFMCommunicate OK [12:34:37]wFMCommunicate request_size=255 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DC 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 89 02 00 35 04 06 00 CA 10 55 CD [12:34:37]Write to MH i2c: E2 02 01 3F 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DC 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 89 02 00 35 04 06 00 CA 10 55 CD 00 00 85 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [12:34:37]RAPDU: 90 00 [12:34:37]wFMCommunicate OK [12:34:37]wFMCommunicate request_size=7 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 0D 02 02 02 86 68 [12:34:37]Write to MH i2c: E2 0A 00 40 08 80 0D 02 02 02 00 86 68 00 00 B4 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [12:34:37]RAPDU: 90 00 [12:34:37]wFMCommunicate OK [12:34:37]wFMCommunicate request_size=4 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 0D 03 02 [12:34:37]Write to MH i2c: E2 08 00 41 08 80 0D 03 02 00 00 00 00 C4 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 0B 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 0B 00 41 08 00 66 92 3F EF DC AA 05 0E 90 00 84 [12:34:37]RAPDU: 66 92 3F EF DC AA 05 0E 90 00 [12:34:37]wFMCommunicate OK [12:34:37]SAM_PROTO_SignData done [12:34:37]FM_MakeSignedData done [12:34:37]CreateOFDProtocolMessage [12:34:37]wFMCommunicate request_size=4 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 11 00 00 [12:34:37]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 17 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [12:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:34:37]wFMCommunicate OK [12:34:37]CreateOFDProtocolMessage done [12:34:37]OFDSenderStorePacket 166386 [12:34:37]StoreOFDPacket docnum=166386 [12:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 75 8C 04 01 F5 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DC 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 89 02 00 35 04 06 00 CA 10 55 CD 86 68 66 92 3F EF DC AA 05 0E [12:34:37]CheckFolder [12:34:37]dirname=/storage/ofd_packets [12:34:37]CheckFolder done [12:34:37]ProducePacketName [12:34:37]name=ofd_packets/00166386 [12:34:37]NVStorageSaveData ofd_packets/00166386 [12:34:37]File name is /storage/ofd_packets/00166386 [12:34:37]Write 298 bytes [12:34:37]NVStorageSaveData done [12:34:37]OFDSenderStorePacket done [12:34:37]KKMCreateOFDPacket done [12:34:37]NVStorageSaveData kkm_last_timestamp [12:34:37]File name is /storage/kkm_last_timestamp [12:34:37]Write 4 bytes [12:34:37]NVStorageSaveData done [12:34:37]ExternCall_PrintAddStr [12:34:37]wPrintStart [12:34:37]Write to MH i2c: 01 00 00 43 08 4B [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 FF 0F 60 [12:34:37]RasterBufferAndPrint [12:34:37]line Счет N : (1)220964 [12:34:37]line ИНН: 02508201610067 [12:34:37]line Контрольно-Кассовый Чек [12:34:37]line ПРОДАЖА [12:34:37]line ТРК (МРК, ГНК) : 41 [12:34:37]line Товар: 2710194210 [12:34:37]line ДТ-К-5 [12:34:37]line 52.500 * 76.20 [12:34:37]line = 4000.50 [12:34:37]line НДС 12% НСП 1% [12:34:37]line > о реализуемом товаре [12:34:37]line ОКРУГЛЕНИЕ: -0.50 [12:34:37]line ИТОГО: 4000.00 [12:34:37]line Внесено: 4000.00 [12:34:37]line СДАЧА: 0.00 [12:34:37]line НСП 1% : 35.40 [12:34:37]line НДС 12% : 424.83 [12:34:37]line Наличными: 4000.00 [12:34:37]line Безнал.: 0.00 [12:34:37]line Место: АЗС № 161 "Партнер Нефть" [12:34:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:34:37]line СНО: Общий режим [12:34:37]line Чек 141 22.10.2024 12:34 [12:34:37]line Смена: 536 ФФД: 1.0 [12:34:37]line ЗНМ: 0300000104 [12:34:37]line РНМ: 0000000000091764 [12:34:37]line Версия ККМ: 001 [12:34:37]line ФМ: 0000000000871759 [12:34:37]line ФД: 166386 [12:34:37]line ФПД: 222171507820136 [12:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123436&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166386&fm=222171507820136&tin=02508201610067®Number=0000000000091764&sum=400000 [12:34:38]OFD Sender: Processing packet 166386 [packets to send 48, broken 47] [12:34:38]ProducePacketName [12:34:38]name=ofd_packets/00166386 [12:34:38]OFD Sender: To server: pG, [12:34:38]CommunicateWithHost lk.salyk.kg:30040 [12:34:38]ConnectInit lk.salyk.kg [12:34:38]written 0, free lines is 4095 [12:34:38]Connected sock=11 [12:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 75 8C 04 01 F5 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 DC 9B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 89 02 00 35 04 06 00 CA 10 55 CD 86 68 66 92 3F EF DC AA 05 0E [12:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2C 08 47 00 18 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 89 02 00 F4 03 04 00 47 42 17 67 B6 04 01 00 00 3A 80 B5 FA 2D 47 55 69 [12:34:38]CommunicateWithHost err = 0 [12:34:38]CheckOFDResponse [12:34:38]1017 (14) - 77093643461234 [12:34:38]1041 (16) - 0000000000871759 [12:34:38]1040 (4) - 166386 [12:34:38]1012 (4) - 22.10.2024 06:12 [12:34:38]1206 (1) - 0 [12:34:38]OFD Sender: Remove packet 166386 [12:34:38]ProducePacketName [12:34:38]name=ofd_packets/00166386 [12:34:38]NVStorageDeleteData [12:34:38]Write to MH i2c: 01 00 00 6E 08 76 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 DF 0C 68 [12:34:38]RasterBufferAndPrint [12:34:38]line [12:34:38]line [12:34:38]line [12:34:38]line [12:34:38]line [12:34:38]written 0, free lines is 3301 [12:34:38]MH_Cut [12:34:38]Write to MH i2c: D1 01 00 75 08 01 4F [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: D1 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: D1 01 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: D1 01 00 75 08 00 4E [12:34:38]Write to MH i2c: 01 00 00 76 08 7E [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:39]OFD Sender: No OFD packet to send [12:34:39]*** Cut start [12:34:39]*** Partial cut [12:34:39]*** CUTSNS_PIN = 1 [12:34:39]*** CUTSNS_PIN = 0 [12:34:39]*** Brake cut motor [12:34:40]Read from MH i2c: 01 [12:34:40]MH_I2C_Read... [12:34:40]*** Stop cut motor [12:34:40]*** Cut end [12:34:40]Read from MH i2c: 01 07 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 FF 0F 93 [12:34:40]process_action close_receipt done [12:34:40]requested_data is exist [12:34:40]produce_requested_data [12:34:40]requested_item fm.sn is exist - process it [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 11 00 00 [12:34:40]Write to MH i2c: E2 08 00 77 08 80 11 00 00 00 00 00 00 F9 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 17 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 17 00 77 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [12:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:34:40]wFMCommunicate OK [12:34:40]requested_item fd.num is exist - process it [12:34:40]SAM_PROTO_GetFieldsCounters [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 13 00 00 [12:34:40]Write to MH i2c: E2 08 00 78 08 80 13 00 00 00 00 00 00 FC [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 62 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 62 00 78 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:40]wFMCommunicate OK [12:34:40]SAM_PROTO_GetFieldsCounters done [12:34:40]requested_item shift.num is exist - process it [12:34:40]requested_item shift.opened is exist - process it [12:34:40]req_shift_opened [12:34:40]FM_GetShiftState [12:34:40]SAM_PROTO_GetShiftState [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 13 01 00 [12:34:40]Write to MH i2c: E2 08 00 79 08 80 13 01 00 00 00 00 00 FE [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 0E 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 0E 00 79 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 51 [12:34:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:34:40]wFMCommunicate OK [12:34:40]SAM_PROTO_GetShiftState done [12:34:40]FM_GetShiftState done [12:34:40]req_shift_opened done [12:34:40]requested_item shift.open_date is exist - process it [12:34:40]req_shift_open_date [12:34:40]req_shift_open_date done [12:34:40]produce_requested_data done [12:34:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166386,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:34:40]process_action_free close_receipt [12:34:40]json_value_free [12:34:40]json_value_free done [12:34:40]process_json_proto returns [12:34:40]Send response to host [12:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166386,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:34:40]free response buf [12:34:40]execute_script done [12:34:40]execute_script returns [12:34:40]free content buf [12:34:40]Sock 9.Close socket [12:34:40]Sock 9.Thread stoped [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:51]accept exits with 7 [12:38:51]New connection [12:38:51]New thread 3067493732 created [12:38:51]Thread 3067637092 joined [12:38:51]Waiting for new connection... [12:38:51] Sock 7.Parse request [12:38:51]Sock 7.Check first char [12:38:51]Sock 7.First char is OK [12:38:51]request: POST /json_proto HTTP/1.0 [12:38:51]Method: POST [12:38:51]URL: /json_proto [12:38:51]Method is POST - this is cgi request [12:38:51]url: /json_proto [12:38:51]query_string will be loaded in cgi processing [12:38:51]execute_cgi json_proto POST (null) [12:38:51]execute_cgi path=json_proto method=POST [12:38:51]POST find Content-Length [12:38:51]Host: 172.17.53.195:8080 [12:38:51]Content-Length: 677 [12:38:51]Content-Type: application/json [12:38:51] [12:38:51]POST finish read [12:38:51]Found Content-Length = 677 [12:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.820, "sum" : 523.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 523.00, "total" : 523.00, "payments": [ { "type": 0, "sum" : 523.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:51]execute_script... [12:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.820, "sum" : 523.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 523.00, "total" : 523.00, "payments": [ { "type": 0, "sum" : 523.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:51]POST & json_proto [12:38:51]process_json_proto [12:38:51]json parsed OK: [12:38:51]protocol is kg_v1.0 [12:38:51]action value=close_receipt [12:38:51]process_action close_receipt [12:38:51]cmd_close_receipt [12:38:51]MH_GetDate [12:38:51]Write to MH i2c: F0 00 00 7A 08 71 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 09 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 09 00 7A 08 00 DB 9C 17 67 21 48 4A 65 87 [12:38:51]GetLastDocTimeStamp 1729600476 [12:38:51]current date 1729600731 [12:38:51]FM_GetShiftState [12:38:51]SAM_PROTO_GetShiftState [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 13 01 00 [12:38:51]Write to MH i2c: E2 08 00 7B 08 80 13 01 00 00 00 00 00 00 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0E 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0E 00 7B 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 53 [12:38:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:38:51]wFMCommunicate OK [12:38:51]SAM_PROTO_GetShiftState done [12:38:51]FM_GetShiftState done [12:38:51]opened in 1729557463 [12:38:51]opened+sec_in_day 1729643863 [12:38:51]quantity*price = 52315 [12:38:51]sum+1 = 52317 [12:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 523.00 Внесено: 523.00 СДАЧА: 0.00 НСП 1% : 4.63 НДС 12% : 55.56 Наличными: 523.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 142 22.10.2024 12:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166387 ФПД: 238948366069503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166387&fm=238948366069503&tin=02508201610067®Number=0000000000091764&sum=52300 [12:38:52]StoreToDocumentArchive [12:38:52]shift 536 fd 166387 [12:38:52]save to /storage/0536/doc_00166387 [12:38:52]save last doc name /storage/0536/doc_00166387 to /storage/kkm_last_doc_name [12:38:52]save OK [12:38:52]Clear old archive folders... [12:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:52]tlvbuf is 00995010 [12:38:52]SAM_PROTO_ClearQueue [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 09 00 00 [12:38:52]Write to MH i2c: E2 08 00 88 08 80 09 00 00 00 00 00 00 02 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_ClearQueue done [12:38:52]KKMCreateOFDPacket [12:38:52]OFDProtocolAddRootSTLVToBuf [12:38:52]FM_MakeSignedData [12:38:52]FM_MakeSignedData [12:38:52]SAM_PROTO_SignData [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 01 02 [12:38:52]Write to MH i2c: E2 08 00 89 08 80 0D 01 02 00 00 00 00 0A [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=255 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C CC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 15 00 00 00 00 07 04 06 00 4C CC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DB 9C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 89 02 00 35 04 06 00 D9 [12:38:52]Write to MH i2c: E2 02 01 8A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C CC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 15 00 00 00 00 07 04 06 00 4C CC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DB 9C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 89 02 00 35 04 06 00 D9 00 00 E6 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [12:38:53]RAPDU: 90 00 [12:38:53]wFMCommunicate OK [12:38:53]wFMCommunicate request_size=10 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 0D 02 02 05 52 80 7A AE FF [12:38:53]Write to MH i2c: E2 0D 00 8B 08 80 0D 02 02 05 00 52 80 7A AE FF 00 00 10 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [12:38:53]RAPDU: 90 00 [12:38:53]wFMCommunicate OK [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 0D 03 02 [12:38:53]Write to MH i2c: E2 08 00 8C 08 80 0D 03 02 00 00 00 00 0F [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0B 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0B 00 8C 08 00 54 7D 26 DB 73 1D B0 A2 90 00 C4 [12:38:53]RAPDU: 54 7D 26 DB 73 1D B0 A2 90 00 [12:38:53]wFMCommunicate OK [12:38:53]SAM_PROTO_SignData done [12:38:53]FM_MakeSignedData done [12:38:53]CreateOFDProtocolMessage [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 11 00 00 [12:38:53]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [12:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:53]wFMCommunicate OK [12:38:53]CreateOFDProtocolMessage done [12:38:53]OFDSenderStorePacket 166387 [12:38:53]StoreOFDPacket docnum=166387 [12:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A4 80 07 01 8B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C CC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 15 00 00 00 00 07 04 06 00 4C CC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DB 9C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 89 02 00 35 04 06 00 D9 52 80 7A AE FF 54 7D 26 DB 73 1D B0 A2 [12:38:53]CheckFolder [12:38:53]dirname=/storage/ofd_packets [12:38:53]CheckFolder done [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00166387 [12:38:53]NVStorageSaveData ofd_packets/00166387 [12:38:53]File name is /storage/ofd_packets/00166387 [12:38:53]Write 301 bytes [12:38:53]NVStorageSaveData done [12:38:53]OFDSenderStorePacket done [12:38:53]KKMCreateOFDPacket done [12:38:53]NVStorageSaveData kkm_last_timestamp [12:38:53]File name is /storage/kkm_last_timestamp [12:38:53]Write 4 bytes [12:38:53]NVStorageSaveData done [12:38:53]ExternCall_PrintAddStr [12:38:53]wPrintStart [12:38:53]Write to MH i2c: 01 00 00 8E 08 96 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 FF 0F AB [12:38:53]RasterBufferAndPrint [12:38:53]line Счет N : (1)220965 [12:38:53]line ИНН: 02508201610067 [12:38:53]line Контрольно-Кассовый Чек [12:38:53]line ПРОДАЖА [12:38:53]line ТРК (МРК, ГНК) : 13 [12:38:53]line Товар: 2710124130 [12:38:53]line Аи-92-К-5 [12:38:53]line 7.820 * 66.90 [12:38:53]line = 523.16 [12:38:53]line НДС 12% НСП 1% [12:38:53]line > о реализуемом товаре [12:38:53]line ОКРУГЛЕНИЕ: -0.16 [12:38:53]line ИТОГО: 523.00 [12:38:53]line Внесено: 523.00 [12:38:53]line СДАЧА: 0.00 [12:38:53]line НСП 1% : 4.63 [12:38:53]line НДС 12% : 55.56 [12:38:53]line Наличными: 523.00 [12:38:53]line Безнал.: 0.00 [12:38:53]line Место: АЗС № 161 "Партнер Нефть" [12:38:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:38:53]line СНО: Общий режим [12:38:53]line Чек 142 22.10.2024 12:38 [12:38:53]line Смена: 536 ФФД: 1.0 [12:38:53]line ЗНМ: 0300000104 [12:38:53]line РНМ: 0000000000091764 [12:38:53]line Версия ККМ: 001 [12:38:53]line ФМ: 0000000000871759 [12:38:53]line ФД: 166387 [12:38:53]line ФПД: 238948366069503 [12:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166387&fm=238948366069503&tin=02508201610067®Number=0000000000091764&sum=52300 [12:38:53]OFD Sender: Processing packet 166387 [packets to send 48, broken 47] [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00166387 [12:38:53]OFD Sender: To server: pG, [12:38:53]CommunicateWithHost lk.salyk.kg:30040 [12:38:53]ConnectInit lk.salyk.kg [12:38:53]written 0, free lines is 4095 [12:38:53]Connected sock=9 [12:38:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A4 80 07 01 8B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C CC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 15 00 00 00 00 07 04 06 00 4C CC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DB 9C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 89 02 00 35 04 06 00 D9 52 80 7A AE FF 54 7D 26 DB 73 1D B0 A2 [12:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4F 97 47 00 EA 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 89 02 00 F4 03 04 00 47 43 17 67 B6 04 01 00 00 71 E4 77 21 FC F0 70 E6 [12:38:53]CommunicateWithHost err = 0 [12:38:53]CheckOFDResponse [12:38:53]1017 (14) - 77093643461234 [12:38:53]1041 (16) - 0000000000871759 [12:38:53]1040 (4) - 166387 [12:38:53]1012 (4) - 22.10.2024 06:16 [12:38:53]1206 (1) - 0 [12:38:53]OFD Sender: Remove packet 166387 [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00166387 [12:38:53]NVStorageDeleteData [12:38:54]Write to MH i2c: 01 00 00 B9 08 C1 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 07 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 D4 0C A8 [12:38:54]RasterBufferAndPrint [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]written 0, free lines is 3292 [12:38:54]MH_Cut [12:38:54]Write to MH i2c: D1 01 00 C0 08 01 9A [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 01 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 01 00 C0 08 00 99 [12:38:54]Write to MH i2c: 01 00 00 C1 08 C9 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]OFD Sender: No OFD packet to send [12:38:54]*** Cut start [12:38:54]*** Partial cut [12:38:54]*** CUTSNS_PIN = 1 [12:38:54]*** CUTSNS_PIN = 0 [12:38:55]*** Brake cut motor [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]*** Stop cut motor [12:38:55]*** Cut end [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 FF 0F DE [12:38:55]process_action close_receipt done [12:38:55]requested_data is exist [12:38:55]produce_requested_data [12:38:55]requested_item fm.sn is exist - process it [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 C2 08 80 11 00 00 00 00 00 00 44 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 C2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [12:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:38:55]wFMCommunicate OK [12:38:55]requested_item fd.num is exist - process it [12:38:55]SAM_PROTO_GetFieldsCounters [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 00 00 [12:38:55]Write to MH i2c: E2 08 00 C3 08 80 13 00 00 00 00 00 00 47 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 C3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetFieldsCounters done [12:38:55]requested_item shift.num is exist - process it [12:38:55]requested_item shift.opened is exist - process it [12:38:55]req_shift_opened [12:38:55]FM_GetShiftState [12:38:55]SAM_PROTO_GetShiftState [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 01 00 [12:38:55]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9C [12:38:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetShiftState done [12:38:55]FM_GetShiftState done [12:38:55]req_shift_opened done [12:38:55]requested_item shift.open_date is exist - process it [12:38:55]req_shift_open_date [12:38:55]req_shift_open_date done [12:38:55]produce_requested_data done [12:38:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166387,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:38:55]process_action_free close_receipt [12:38:55]json_value_free [12:38:55]json_value_free done [12:38:55]process_json_proto returns [12:38:55]Send response to host [12:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166387,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:38:55]free response buf [12:38:55]execute_script done [12:38:55]execute_script returns [12:38:55]free content buf [12:38:55]Sock 7.Close socket [12:38:55]Sock 7.Thread stoped [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:00]accept exits with 10 [12:42:00]New connection [12:42:00]New thread 3067637092 created [12:42:00]Thread 3067493732 joined [12:42:00]Waiting for new connection... [12:42:00] Sock 10.Parse request [12:42:00]Sock 10.Check first char [12:42:00]Sock 10.First char is OK [12:42:00]request: POST /json_proto HTTP/1.0 [12:42:00]Method: POST [12:42:00]URL: /json_proto [12:42:00]Method is POST - this is cgi request [12:42:00]url: /json_proto [12:42:00]query_string will be loaded in cgi processing [12:42:00]execute_cgi json_proto POST (null) [12:42:00]execute_cgi path=json_proto method=POST [12:42:00]POST find Content-Length [12:42:00]Host: 172.17.53.195:8080 [12:42:00]Content-Length: 682 [12:42:00]Content-Type: application/json [12:42:00] [12:42:00]POST finish read [12:42:00]Found Content-Length = 682 [12:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:00]execute_script... [12:42:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:00]POST & json_proto [12:42:00]process_json_proto [12:42:00]json parsed OK: [12:42:00]protocol is kg_v1.0 [12:42:00]action value=close_receipt [12:42:00]process_action close_receipt [12:42:00]cmd_close_receipt [12:42:00]MH_GetDate [12:42:00]Write to MH i2c: F0 00 00 C5 08 BC [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 09 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 09 00 C5 08 00 98 9D 17 67 21 48 4A 65 90 [12:42:00]GetLastDocTimeStamp 1729600731 [12:42:00]current date 1729600920 [12:42:00]FM_GetShiftState [12:42:00]SAM_PROTO_GetShiftState [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 13 01 00 [12:42:00]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0E 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9E [12:42:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_GetShiftState done [12:42:00]FM_GetShiftState done [12:42:00]opened in 1729557463 [12:42:00]opened+sec_in_day 1729643863 [12:42:00]quantity*price = 120018 [12:42:00]sum+1 = 120020 [12:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 143 22.10.2024 12:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166388 ФПД: 265508176737867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166388&fm=265508176737867&tin=02508201610067®Number=0000000000091764&sum=120000 [12:42:01]StoreToDocumentArchive [12:42:01]shift 536 fd 166388 [12:42:01]save to /storage/0536/doc_00166388 [12:42:01]save last doc name /storage/0536/doc_00166388 to /storage/kkm_last_doc_name [12:42:01]save OK [12:42:01]Clear old archive folders... [12:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:01]tlvbuf is 00A08C10 [12:42:01]SAM_PROTO_ClearQueue [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 09 00 00 [12:42:01]Write to MH i2c: E2 08 00 D3 08 80 09 00 00 00 00 00 00 4D [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]SAM_PROTO_ClearQueue done [12:42:01]KKMCreateOFDPacket [12:42:01]OFDProtocolAddRootSTLVToBuf [12:42:01]FM_MakeSignedData [12:42:01]FM_MakeSignedData [12:42:01]SAM_PROTO_SignData [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 01 02 [12:42:01]Write to MH i2c: E2 08 00 D4 08 80 0D 01 02 00 00 00 00 55 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]wFMCommunicate request_size=255 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 9D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 89 02 00 35 04 06 00 F1 [12:42:01]Write to MH i2c: E2 02 01 D5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 9D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 89 02 00 35 04 06 00 F1 00 00 BE [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]wFMCommunicate request_size=10 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 02 02 05 7A 70 8F 36 4B [12:42:01]Write to MH i2c: E2 0D 00 D6 08 80 0D 02 02 05 00 7A 70 8F 36 4B 00 00 5C [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 03 02 [12:42:01]Write to MH i2c: E2 08 00 D7 08 80 0D 03 02 00 00 00 00 5A [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 0B 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 0B 00 D7 08 00 AC 3E 18 AE 28 30 E9 43 90 00 8F [12:42:01]RAPDU: AC 3E 18 AE 28 30 E9 43 90 00 [12:42:01]wFMCommunicate OK [12:42:01]SAM_PROTO_SignData done [12:42:01]FM_MakeSignedData done [12:42:01]CreateOFDProtocolMessage [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 11 00 00 [12:42:01]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [12:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:01]wFMCommunicate OK [12:42:01]CreateOFDProtocolMessage done [12:42:01]OFDSenderStorePacket 166388 [12:42:01]StoreOFDPacket docnum=166388 [12:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 DD 07 01 2B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 9D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 89 02 00 35 04 06 00 F1 7A 70 8F 36 4B AC 3E 18 AE 28 30 E9 43 [12:42:01]CheckFolder [12:42:01]dirname=/storage/ofd_packets [12:42:01]CheckFolder done [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00166388 [12:42:01]NVStorageSaveData ofd_packets/00166388 [12:42:01]File name is /storage/ofd_packets/00166388 [12:42:01]Write 301 bytes [12:42:01]NVStorageSaveData done [12:42:01]OFDSenderStorePacket done [12:42:01]KKMCreateOFDPacket done [12:42:01]NVStorageSaveData kkm_last_timestamp [12:42:01]File name is /storage/kkm_last_timestamp [12:42:01]Write 4 bytes [12:42:01]NVStorageSaveData done [12:42:01]ExternCall_PrintAddStr [12:42:01]wPrintStart [12:42:01]Write to MH i2c: 01 00 00 D9 08 E1 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [12:42:01]RasterBufferAndPrint [12:42:01]line Счет N : (1)220966 [12:42:01]line ИНН: 02508201610067 [12:42:01]line Контрольно-Кассовый Чек [12:42:01]line ПРОДАЖА [12:42:01]line ТРК (МРК, ГНК) : 23 [12:42:01]line Товар: 2710124130 [12:42:01]line Аи-92-К-5 [12:42:01]line 17.940 * 66.90 [12:42:01]line = 1200.19 [12:42:01]line НДС 12% НСП 1% [12:42:01]line > о реализуемом товаре [12:42:01]line ОКРУГЛЕНИЕ: -0.19 [12:42:01]line ИТОГО: 1200.00 [12:42:01]line Внесено: 1200.00 [12:42:01]line СДАЧА: 0.00 [12:42:01]line НСП 1% : 10.62 [12:42:01]line НДС 12% : 127.45 [12:42:01]line Наличными: 1200.00 [12:42:01]line Безнал.: 0.00 [12:42:01]line Место: АЗС № 161 "Партнер Нефть" [12:42:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:42:01]line СНО: Общий режим [12:42:01]line Чек 143 22.10.2024 12:42 [12:42:01]line Смена: 536 ФФД: 1.0 [12:42:01]line ЗНМ: 0300000104 [12:42:01]line РНМ: 0000000000091764 [12:42:01]line Версия ККМ: 001 [12:42:01]line ФМ: 0000000000871759 [12:42:01]line ФД: 166388 [12:42:01]line ФПД: 265508176737867 [12:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166388&fm=265508176737867&tin=02508201610067®Number=0000000000091764&sum=120000 [12:42:02]OFD Sender: Processing packet 166388 [packets to send 48, broken 47] [12:42:02]ProducePacketName [12:42:02]name=ofd_packets/00166388 [12:42:02]OFD Sender: To server: pG, [12:42:02]CommunicateWithHost lk.salyk.kg:30040 [12:42:02]ConnectInit lk.salyk.kg [12:42:02]written 0, free lines is 4095 [12:42:02]Connected sock=9 [12:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 DD 07 01 2B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 9D 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 89 02 00 35 04 06 00 F1 7A 70 8F 36 4B AC 3E 18 AE 28 30 E9 43 [12:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 4C 47 00 04 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 89 02 00 F4 03 04 00 03 44 17 67 B6 04 01 00 00 96 CD 84 2A 9A 3D 81 3E [12:42:02]CommunicateWithHost err = 0 [12:42:02]CheckOFDResponse [12:42:02]1017 (14) - 77093643461234 [12:42:02]1041 (16) - 0000000000871759 [12:42:02]1040 (4) - 166388 [12:42:02]1012 (4) - 22.10.2024 06:19 [12:42:02]1206 (1) - 0 [12:42:02]OFD Sender: Remove packet 166388 [12:42:02]ProducePacketName [12:42:02]name=ofd_packets/00166388 [12:42:02]NVStorageDeleteData [12:42:02]Write to MH i2c: 01 00 00 04 09 0D [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 C6 0C E6 [12:42:02]RasterBufferAndPrint [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]written 0, free lines is 3275 [12:42:02]MH_Cut [12:42:02]Write to MH i2c: D1 01 00 0B 09 01 E6 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 01 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 01 00 0B 09 00 E5 [12:42:02]Write to MH i2c: 01 00 00 0C 09 15 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]OFD Sender: No OFD packet to send [12:42:03]*** Cut start [12:42:03]*** Partial cut [12:42:03]*** CUTSNS_PIN = 1 [12:42:03]*** CUTSNS_PIN = 0 [12:42:03]*** Brake cut motor [12:42:03]Read from MH i2c: 01 [12:42:03]MH_I2C_Read... [12:42:03]*** Stop cut motor [12:42:03]*** Cut end [12:42:03]Read from MH i2c: 01 07 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [12:42:03]process_action close_receipt done [12:42:03]requested_data is exist [12:42:03]produce_requested_data [12:42:03]requested_item fm.sn is exist - process it [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 11 00 00 [12:42:03]Write to MH i2c: E2 08 00 0D 09 80 11 00 00 00 00 00 00 90 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 0D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [12:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:03]wFMCommunicate OK [12:42:03]requested_item fd.num is exist - process it [12:42:03]SAM_PROTO_GetFieldsCounters [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 00 00 [12:42:03]Write to MH i2c: E2 08 00 0E 09 80 13 00 00 00 00 00 00 93 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 62 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 62 00 0E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_GetFieldsCounters done [12:42:04]requested_item shift.num is exist - process it [12:42:04]requested_item shift.opened is exist - process it [12:42:04]req_shift_opened [12:42:04]FM_GetShiftState [12:42:04]SAM_PROTO_GetShiftState [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 13 01 00 [12:42:04]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0E 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E8 [12:42:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_GetShiftState done [12:42:04]FM_GetShiftState done [12:42:04]req_shift_opened done [12:42:04]requested_item shift.open_date is exist - process it [12:42:04]req_shift_open_date [12:42:04]req_shift_open_date done [12:42:04]produce_requested_data done [12:42:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166388,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:42:04]process_action_free close_receipt [12:42:04]json_value_free [12:42:04]json_value_free done [12:42:04]process_json_proto returns [12:42:04]Send response to host [12:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166388,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:42:04]free response buf [12:42:04]execute_script done [12:42:04]execute_script returns [12:42:04]free content buf [12:42:04]Sock 10.Close socket [12:42:04]Sock 10.Thread stoped [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:02]accept exits with 7 [12:44:02]New connection [12:44:02]New thread 3067493732 created [12:44:02]Thread 3067637092 joined [12:44:02]Waiting for new connection... [12:44:02] Sock 7.Parse request [12:44:02]Sock 7.Check first char [12:44:02]Sock 7.First char is OK [12:44:02]request: POST /json_proto HTTP/1.0 [12:44:02]Method: POST [12:44:02]URL: /json_proto [12:44:02]Method is POST - this is cgi request [12:44:02]url: /json_proto [12:44:02]query_string will be loaded in cgi processing [12:44:02]execute_cgi json_proto POST (null) [12:44:02]execute_cgi path=json_proto method=POST [12:44:02]POST find Content-Length [12:44:02]Host: 172.17.53.195:8080 [12:44:02]Content-Length: 676 [12:44:02]Content-Type: application/json [12:44:02] [12:44:02]POST finish read [12:44:02]Found Content-Length = 676 [12:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:02]execute_script... [12:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:02]POST & json_proto [12:44:02]process_json_proto [12:44:02]json parsed OK: [12:44:02]protocol is kg_v1.0 [12:44:02]action value=close_receipt [12:44:02]process_action close_receipt [12:44:02]cmd_close_receipt [12:44:02]MH_GetDate [12:44:02]Write to MH i2c: F0 00 00 10 09 08 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 09 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 09 00 10 09 00 12 9E 17 67 21 48 4A 65 57 [12:44:02]GetLastDocTimeStamp 1729600920 [12:44:02]current date 1729601042 [12:44:02]FM_GetShiftState [12:44:02]SAM_PROTO_GetShiftState [12:44:02]wFMCommunicate request_size=4 [12:44:02]MH_SAM_APDU [12:44:02]CAPDU: 80 13 01 00 [12:44:02]Write to MH i2c: E2 08 00 11 09 80 13 01 00 00 00 00 00 97 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:02]Read from MH i2c: E2 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: E2 0E 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: E2 0E 00 11 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EA [12:44:02]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:44:02]wFMCommunicate OK [12:44:02]SAM_PROTO_GetShiftState done [12:44:02]FM_GetShiftState done [12:44:02]opened in 1729557463 [12:44:02]opened+sec_in_day 1729643863 [12:44:02]quantity*price = 99974 [12:44:02]sum+1 = 99975 [12:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 144 22.10.2024 12:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166389 ФПД: 173957490513709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124402&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166389&fm=173957490513709&tin=02508201610067®Number=0000000000091764&sum=99900 [12:44:03]StoreToDocumentArchive [12:44:03]shift 536 fd 166389 [12:44:03]save to /storage/0536/doc_00166389 [12:44:03]save last doc name /storage/0536/doc_00166389 to /storage/kkm_last_doc_name [12:44:03]save OK [12:44:03]Clear old archive folders... [12:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:44:03]tlvbuf is 00A02E30 [12:44:03]SAM_PROTO_ClearQueue [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 09 00 00 [12:44:03]Write to MH i2c: E2 08 00 1E 09 80 09 00 00 00 00 00 00 99 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]SAM_PROTO_ClearQueue done [12:44:03]KKMCreateOFDPacket [12:44:03]OFDProtocolAddRootSTLVToBuf [12:44:03]FM_MakeSignedData [12:44:03]FM_MakeSignedData [12:44:03]SAM_PROTO_SignData [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 0D 01 02 [12:44:03]Write to MH i2c: E2 08 00 1F 09 80 0D 01 02 00 00 00 00 A1 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=255 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 12 9E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 89 02 00 35 04 06 00 9E 36 A2 6D [12:44:03]Write to MH i2c: E2 02 01 20 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 12 9E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 89 02 00 35 04 06 00 9E 36 A2 6D 00 00 41 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]wFMCommunicate request_size=7 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 02 02 02 97 2D [12:44:04]Write to MH i2c: E2 0A 00 21 09 80 0D 02 02 02 00 97 2D 00 00 6C [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 03 02 [12:44:04]Write to MH i2c: E2 08 00 22 09 80 0D 03 02 00 00 00 00 A6 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 22 09 00 1E 5D 64 5B F5 87 32 AF 90 00 3E [12:44:04]RAPDU: 1E 5D 64 5B F5 87 32 AF 90 00 [12:44:04]wFMCommunicate OK [12:44:04]SAM_PROTO_SignData done [12:44:04]FM_MakeSignedData done [12:44:04]CreateOFDProtocolMessage [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 11 00 00 [12:44:04]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [12:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:44:04]wFMCommunicate OK [12:44:04]CreateOFDProtocolMessage done [12:44:04]OFDSenderStorePacket 166389 [12:44:04]StoreOFDPacket docnum=166389 [12:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FF B2 04 01 D0 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 12 9E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 89 02 00 35 04 06 00 9E 36 A2 6D 97 2D 1E 5D 64 5B F5 87 32 AF [12:44:04]CheckFolder [12:44:04]dirname=/storage/ofd_packets [12:44:04]CheckFolder done [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00166389 [12:44:04]NVStorageSaveData ofd_packets/00166389 [12:44:04]File name is /storage/ofd_packets/00166389 [12:44:04]Write 298 bytes [12:44:04]NVStorageSaveData done [12:44:04]OFDSenderStorePacket done [12:44:04]KKMCreateOFDPacket done [12:44:04]NVStorageSaveData kkm_last_timestamp [12:44:04]File name is /storage/kkm_last_timestamp [12:44:04]Write 4 bytes [12:44:04]NVStorageSaveData done [12:44:04]ExternCall_PrintAddStr [12:44:04]wPrintStart [12:44:04]Write to MH i2c: 01 00 00 24 09 2D [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 FF 0F 42 [12:44:04]RasterBufferAndPrint [12:44:04]line Счет N : (1)220967 [12:44:04]line ИНН: 02508201610067 [12:44:04]line Контрольно-Кассовый Чек [12:44:04]line ПРОДАЖА [12:44:04]line ТРК (МРК, ГНК) : 11 [12:44:04]line Товар: 2710194210 [12:44:04]line ДТ-К-5 [12:44:04]line 13.120 * 76.20 [12:44:04]line = 999.74 [12:44:04]line НДС 12% НСП 1% [12:44:04]line > о реализуемом товаре [12:44:04]line ОКРУГЛЕНИЕ: -0.74 [12:44:04]line ИТОГО: 999.00 [12:44:04]line Внесено: 1000.00 [12:44:04]line СДАЧА: 1.00 [12:44:04]line НСП 1% : 8.85 [12:44:04]line НДС 12% : 106.17 [12:44:04]line Наличными: 999.00 [12:44:04]line Безнал.: 0.00 [12:44:04]line Место: АЗС № 161 "Партнер Нефть" [12:44:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:44:04]line СНО: Общий режим [12:44:04]line Чек 144 22.10.2024 12:44 [12:44:04]line Смена: 536 ФФД: 1.0 [12:44:04]line ЗНМ: 0300000104 [12:44:04]line РНМ: 0000000000091764 [12:44:04]line Версия ККМ: 001 [12:44:04]line ФМ: 0000000000871759 [12:44:04]line ФД: 166389 [12:44:04]line ФПД: 173957490513709 [12:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124402&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166389&fm=173957490513709&tin=02508201610067®Number=0000000000091764&sum=99900 [12:44:04]OFD Sender: Processing packet 166389 [packets to send 48, broken 47] [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00166389 [12:44:04]OFD Sender: To server: pG, [12:44:04]CommunicateWithHost lk.salyk.kg:30040 [12:44:04]ConnectInit lk.salyk.kg [12:44:04]written 0, free lines is 4095 [12:44:04]Connected sock=10 [12:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FF B2 04 01 D0 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 12 9E 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 89 02 00 35 04 06 00 9E 36 A2 6D 97 2D 1E 5D 64 5B F5 87 32 AF [12:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C 77 47 00 3A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 89 02 00 F4 03 04 00 7E 44 17 67 B6 04 01 00 00 50 D2 6F DA 9A A2 43 99 [12:44:04]CommunicateWithHost err = 0 [12:44:04]CheckOFDResponse [12:44:04]1017 (14) - 77093643461234 [12:44:04]1041 (16) - 0000000000871759 [12:44:04]1040 (4) - 166389 [12:44:04]1012 (4) - 22.10.2024 06:21 [12:44:04]1206 (1) - 0 [12:44:04]OFD Sender: Remove packet 166389 [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00166389 [12:44:04]NVStorageDeleteData [12:44:04]Write to MH i2c: 01 00 00 4F 09 58 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 CA 0C 35 [12:44:04]RasterBufferAndPrint [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]written 0, free lines is 3279 [12:44:04]MH_Cut [12:44:04]Write to MH i2c: D1 01 00 56 09 01 31 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 01 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 01 00 56 09 00 30 [12:44:04]Write to MH i2c: 01 00 00 57 09 60 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:05]OFD Sender: No OFD packet to send [12:44:05]*** Cut start [12:44:05]*** Partial cut [12:44:05]*** CUTSNS_PIN = 1 [12:44:05]*** CUTSNS_PIN = 0 [12:44:06]*** Brake cut motor [12:44:06]Read from MH i2c: 01 [12:44:06]MH_I2C_Read... [12:44:06]*** Stop cut motor [12:44:06]*** Cut end [12:44:06]Read from MH i2c: 01 07 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [12:44:06]process_action close_receipt done [12:44:06]requested_data is exist [12:44:06]produce_requested_data [12:44:06]requested_item fm.sn is exist - process it [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 11 00 00 [12:44:06]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 17 00 [12:44:06]MH_I2C_Read... [12:44:06]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 31 37 35 39 90 00 33 [12:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:44:06]wFMCommunicate OK [12:44:06]requested_item fd.num is exist - process it [12:44:06]SAM_PROTO_GetFieldsCounters [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 00 00 [12:44:06]Write to MH i2c: E2 08 00 59 09 80 13 00 00 00 00 00 00 DE [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 59 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [12:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetFieldsCounters done [12:44:06]requested_item shift.num is exist - process it [12:44:06]requested_item shift.opened is exist - process it [12:44:06]req_shift_opened [12:44:06]FM_GetShiftState [12:44:06]SAM_PROTO_GetShiftState [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 01 00 [12:44:06]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 33 [12:44:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetShiftState done [12:44:06]FM_GetShiftState done [12:44:06]req_shift_opened done [12:44:06]requested_item shift.open_date is exist - process it [12:44:06]req_shift_open_date [12:44:06]req_shift_open_date done [12:44:06]produce_requested_data done [12:44:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166389,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:44:06]process_action_free close_receipt [12:44:06]json_value_free [12:44:06]json_value_free done [12:44:06]process_json_proto returns [12:44:06]Send response to host [12:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166389,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:44:06]free response buf [12:44:06]execute_script done [12:44:06]execute_script returns [12:44:06]free content buf [12:44:06]Sock 7.Close socket [12:44:06]Sock 7.Thread stoped [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]accept exits with 9 [12:50:10]New connection [12:50:10]New thread 3067637092 created [12:50:10]Thread 3067493732 joined [12:50:10]Waiting for new connection... [12:50:10] Sock 9.Parse request [12:50:10]Sock 9.Check first char [12:50:10]Sock 9.First char is OK [12:50:10]request: POST /json_proto HTTP/1.0 [12:50:10]Method: POST [12:50:10]URL: /json_proto [12:50:10]Method is POST - this is cgi request [12:50:10]url: /json_proto [12:50:10]query_string will be loaded in cgi processing [12:50:10]execute_cgi json_proto POST (null) [12:50:10]execute_cgi path=json_proto method=POST [12:50:10]POST find Content-Length [12:50:10]Host: 172.17.53.195:8080 [12:50:10]Content-Length: 677 [12:50:10]Content-Type: application/json [12:50:10] [12:50:10]POST finish read [12:50:10]Found Content-Length = 677 [12:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.040, "sum" : 337.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 337.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:10]execute_script... [12:50:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.040, "sum" : 337.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 337.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:10]POST & json_proto [12:50:10]process_json_proto [12:50:10]json parsed OK: [12:50:10]protocol is kg_v1.0 [12:50:10]action value=close_receipt [12:50:10]process_action close_receipt [12:50:10]cmd_close_receipt [12:50:10]MH_GetDate [12:50:10]Write to MH i2c: F0 00 00 5B 09 53 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: F0 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: F0 09 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: F0 09 00 5B 09 00 83 9F 17 67 21 48 4A 65 14 [12:50:10]GetLastDocTimeStamp 1729601042 [12:50:10]current date 1729601411 [12:50:10]FM_GetShiftState [12:50:10]SAM_PROTO_GetShiftState [12:50:10]wFMCommunicate request_size=4 [12:50:10]MH_SAM_APDU [12:50:10]CAPDU: 80 13 01 00 [12:50:10]Write to MH i2c: E2 08 00 5C 09 80 13 01 00 00 00 00 00 E2 [12:50:10]Write i2c OK [12:50:10]MH_I2C_Read... [12:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:10]Read from MH i2c: E2 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 [12:50:10]MH_I2C_Read... [12:50:10]Read from MH i2c: E2 0E 00 5C 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 35 [12:50:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:50:10]wFMCommunicate OK [12:50:10]SAM_PROTO_GetShiftState done [12:50:10]FM_GetShiftState done [12:50:10]opened in 1729557463 [12:50:10]opened+sec_in_day 1729643863 [12:50:10]quantity*price = 33717 [12:50:10]sum+1 = 33719 [12:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 337.00 Внесено: 337.00 СДАЧА: 0.00 НСП 1% : 2.98 НДС 12% : 35.81 Наличными: 337.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 145 22.10.2024 12:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166390 ФПД: 92977600127395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166390&fm=92977600127395&tin=02508201610067®Number=0000000000091764&sum=33700 [12:50:11]StoreToDocumentArchive [12:50:11]shift 536 fd 166390 [12:50:11]save to /storage/0536/doc_00166390 [12:50:11]save last doc name /storage/0536/doc_00166390 to /storage/kkm_last_doc_name [12:50:11]save OK [12:50:11]Clear old archive folders... [12:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:11]tlvbuf is 00A07C10 [12:50:11]SAM_PROTO_ClearQueue [12:50:11]wFMCommunicate request_size=4 [12:50:11]MH_SAM_APDU [12:50:11]CAPDU: 80 09 00 00 [12:50:11]Write to MH i2c: E2 08 00 69 09 80 09 00 00 00 00 00 00 E4 [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:11]Read from MH i2c: E2 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 03 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [12:50:11]RAPDU: 90 00 [12:50:11]wFMCommunicate OK [12:50:11]SAM_PROTO_ClearQueue done [12:50:11]KKMCreateOFDPacket [12:50:11]OFDProtocolAddRootSTLVToBuf [12:50:11]FM_MakeSignedData [12:50:11]FM_MakeSignedData [12:50:11]SAM_PROTO_SignData [12:50:11]wFMCommunicate request_size=4 [12:50:11]MH_SAM_APDU [12:50:11]CAPDU: 80 0D 01 02 [12:50:11]Write to MH i2c: E2 08 00 6A 09 80 0D 01 02 00 00 00 00 EC [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:11]Read from MH i2c: E2 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 03 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [12:50:11]RAPDU: 90 00 [12:50:11]wFMCommunicate OK [12:50:11]wFMCommunicate request_size=255 [12:50:11]MH_SAM_APDU [12:50:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B6 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0D 00 00 00 00 07 04 06 00 A4 83 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 9F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 89 02 00 35 04 06 00 54 [12:50:11]Write to MH i2c: E2 02 01 6B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B6 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0D 00 00 00 00 07 04 06 00 A4 83 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 9F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 89 02 00 35 04 06 00 54 00 00 D8 [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]wFMCommunicate request_size=10 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 02 02 05 90 08 D3 E1 A3 [12:50:12]Write to MH i2c: E2 0D 00 6C 09 80 0D 02 02 05 00 90 08 D3 E1 A3 00 00 E8 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 03 02 [12:50:12]Write to MH i2c: E2 08 00 6D 09 80 0D 03 02 00 00 00 00 F1 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 0B 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 0B 00 6D 09 00 4C 3A A5 64 7A 5D AA 70 90 00 72 [12:50:12]RAPDU: 4C 3A A5 64 7A 5D AA 70 90 00 [12:50:12]wFMCommunicate OK [12:50:12]SAM_PROTO_SignData done [12:50:12]FM_MakeSignedData done [12:50:12]CreateOFDProtocolMessage [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 11 00 00 [12:50:12]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 17 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [12:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:50:12]wFMCommunicate OK [12:50:12]CreateOFDProtocolMessage done [12:50:12]OFDSenderStorePacket 166390 [12:50:12]StoreOFDPacket docnum=166390 [12:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 FE 07 01 86 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B6 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0D 00 00 00 00 07 04 06 00 A4 83 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 9F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 89 02 00 35 04 06 00 54 90 08 D3 E1 A3 4C 3A A5 64 7A 5D AA 70 [12:50:12]CheckFolder [12:50:12]dirname=/storage/ofd_packets [12:50:12]CheckFolder done [12:50:12]ProducePacketName [12:50:12]name=ofd_packets/00166390 [12:50:12]NVStorageSaveData ofd_packets/00166390 [12:50:12]File name is /storage/ofd_packets/00166390 [12:50:12]Write 301 bytes [12:50:12]NVStorageSaveData done [12:50:12]OFDSenderStorePacket done [12:50:12]KKMCreateOFDPacket done [12:50:12]NVStorageSaveData kkm_last_timestamp [12:50:12]File name is /storage/kkm_last_timestamp [12:50:12]Write 4 bytes [12:50:12]NVStorageSaveData done [12:50:12]ExternCall_PrintAddStr [12:50:12]wPrintStart [12:50:12]Write to MH i2c: 01 00 00 6F 09 78 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 07 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 FF 0F 8D [12:50:12]RasterBufferAndPrint [12:50:12]line Счет N : (1)220968 [12:50:12]line ИНН: 02508201610067 [12:50:12]line Контрольно-Кассовый Чек [12:50:12]line ПРОДАЖА [12:50:12]line ТРК (МРК, ГНК) : 23 [12:50:12]line Товар: 2710124130 [12:50:12]line Аи-92-К-5 [12:50:12]line 5.040 * 66.90 [12:50:12]line = 337.18 [12:50:12]line НДС 12% НСП 1% [12:50:12]line > о реализуемом товаре [12:50:12]line ОКРУГЛЕНИЕ: -0.18 [12:50:12]line ИТОГО: 337.00 [12:50:12]line Внесено: 337.00 [12:50:12]line СДАЧА: 0.00 [12:50:12]line НСП 1% : 2.98 [12:50:12]line НДС 12% : 35.81 [12:50:12]line Наличными: 337.00 [12:50:12]line Безнал.: 0.00 [12:50:12]line Место: АЗС № 161 "Партнер Нефть" [12:50:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:50:12]line СНО: Общий режим [12:50:12]line Чек 145 22.10.2024 12:50 [12:50:12]line Смена: 536 ФФД: 1.0 [12:50:12]line ЗНМ: 0300000104 [12:50:12]line РНМ: 0000000000091764 [12:50:12]line Версия ККМ: 001 [12:50:12]line ФМ: 0000000000871759 [12:50:12]line ФД: 166390 [12:50:12]line ФПД: 92977600127395 [12:50:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125011&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166390&fm=92977600127395&tin=02508201610067®Number=0000000000091764&sum=33700 [12:50:12]OFD Sender: Processing packet 166390 [packets to send 48, broken 47] [12:50:12]ProducePacketName [12:50:12]name=ofd_packets/00166390 [12:50:12]OFD Sender: To server: pG, [12:50:12]CommunicateWithHost lk.salyk.kg:30040 [12:50:12]ConnectInit lk.salyk.kg [12:50:12]written 0, free lines is 4095 [12:50:12]Connected sock=10 [12:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 FE 07 01 86 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B6 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0D 00 00 00 00 07 04 06 00 A4 83 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 83 9F 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 89 02 00 35 04 06 00 54 90 08 D3 E1 A3 4C 3A A5 64 7A 5D AA 70 [12:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 87 47 00 64 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 89 02 00 F4 03 04 00 EE 45 17 67 B6 04 01 00 00 07 B9 FC 0B CA 1C CF 98 [12:50:12]CommunicateWithHost err = 0 [12:50:12]CheckOFDResponse [12:50:12]1017 (14) - 77093643461234 [12:50:12]1041 (16) - 0000000000871759 [12:50:12]1040 (4) - 166390 [12:50:12]1012 (4) - 22.10.2024 06:27 [12:50:12]1206 (1) - 0 [12:50:12]OFD Sender: Remove packet 166390 [12:50:12]ProducePacketName [12:50:12]name=ofd_packets/00166390 [12:50:12]NVStorageDeleteData [12:50:13]Write to MH i2c: 01 00 00 9A 09 A3 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 9A 09 00 00 00 00 00 CD 0C 83 [12:50:13]RasterBufferAndPrint [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]written 0, free lines is 3283 [12:50:13]MH_Cut [12:50:13]Write to MH i2c: D1 01 00 A1 09 01 7C [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 01 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 01 00 A1 09 00 7B [12:50:13]Write to MH i2c: 01 00 00 A2 09 AB [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]OFD Sender: No OFD packet to send [12:50:13]*** Cut start [12:50:13]*** Partial cut [12:50:13]*** CUTSNS_PIN = 1 [12:50:13]*** CUTSNS_PIN = 0 [12:50:14]*** Brake cut motor [12:50:14]Read from MH i2c: 01 [12:50:14]MH_I2C_Read... [12:50:14]*** Stop cut motor [12:50:14]*** Cut end [12:50:14]Read from MH i2c: 01 07 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 FF 0F C0 [12:50:14]process_action close_receipt done [12:50:14]requested_data is exist [12:50:14]produce_requested_data [12:50:14]requested_item fm.sn is exist - process it [12:50:14]wFMCommunicate request_size=4 [12:50:14]MH_SAM_APDU [12:50:14]CAPDU: 80 11 00 00 [12:50:14]Write to MH i2c: E2 08 00 A3 09 80 11 00 00 00 00 00 00 26 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:14]Read from MH i2c: E2 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 17 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 17 00 A3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [12:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:50:14]wFMCommunicate OK [12:50:14]requested_item fd.num is exist - process it [12:50:14]SAM_PROTO_GetFieldsCounters [12:50:14]wFMCommunicate request_size=4 [12:50:14]MH_SAM_APDU [12:50:14]CAPDU: 80 13 00 00 [12:50:14]Write to MH i2c: E2 08 00 A4 09 80 13 00 00 00 00 00 00 29 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:14]Read from MH i2c: E2 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 62 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 62 00 A4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [12:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:14]wFMCommunicate OK [12:50:14]SAM_PROTO_GetFieldsCounters done [12:50:14]requested_item shift.num is exist - process it [12:50:14]requested_item shift.opened is exist - process it [12:50:14]req_shift_opened [12:50:14]FM_GetShiftState [12:50:14]SAM_PROTO_GetShiftState [12:50:14]wFMCommunicate request_size=4 [12:50:14]MH_SAM_APDU [12:50:14]CAPDU: 80 13 01 00 [12:50:14]Write to MH i2c: E2 08 00 A5 09 80 13 01 00 00 00 00 00 2B [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:14]Read from MH i2c: E2 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 0E 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: E2 0E 00 A5 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7E [12:50:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:50:14]wFMCommunicate OK [12:50:14]SAM_PROTO_GetShiftState done [12:50:14]FM_GetShiftState done [12:50:14]req_shift_opened done [12:50:14]requested_item shift.open_date is exist - process it [12:50:14]req_shift_open_date [12:50:14]req_shift_open_date done [12:50:14]produce_requested_data done [12:50:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166390,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:50:14]process_action_free close_receipt [12:50:14]json_value_free [12:50:14]json_value_free done [12:50:14]process_json_proto returns [12:50:14]Send response to host [12:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166390,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:50:14]free response buf [12:50:14]execute_script done [12:50:14]execute_script returns [12:50:14]free content buf [12:50:14]Sock 9.Close socket [12:50:14]Sock 9.Thread stoped [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:38]accept exits with 7 [12:52:38]New connection [12:52:38]New thread 3067493732 created [12:52:38]Thread 3067637092 joined [12:52:38]Waiting for new connection... [12:52:38] Sock 7.Parse request [12:52:38]Sock 7.Check first char [12:52:38]Sock 7.First char is OK [12:52:38]request: POST /json_proto HTTP/1.0 [12:52:38]Method: POST [12:52:38]URL: /json_proto [12:52:38]Method is POST - this is cgi request [12:52:38]url: /json_proto [12:52:38]query_string will be loaded in cgi processing [12:52:38]execute_cgi json_proto POST (null) [12:52:38]execute_cgi path=json_proto method=POST [12:52:38]POST find Content-Length [12:52:38]Host: 172.17.53.195:8080 [12:52:38]Content-Length: 682 [12:52:38]Content-Type: application/json [12:52:38] [12:52:38]POST finish read [12:52:38]Found Content-Length = 682 [12:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:38]execute_script... [12:52:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:38]POST & json_proto [12:52:38]process_json_proto [12:52:38]json parsed OK: [12:52:38]protocol is kg_v1.0 [12:52:38]action value=close_receipt [12:52:38]process_action close_receipt [12:52:38]cmd_close_receipt [12:52:38]MH_GetDate [12:52:38]Write to MH i2c: F0 00 00 A6 09 9E [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 09 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 09 00 A6 09 00 17 A0 17 67 21 48 4A 65 F4 [12:52:38]GetLastDocTimeStamp 1729601411 [12:52:38]current date 1729601559 [12:52:38]FM_GetShiftState [12:52:38]SAM_PROTO_GetShiftState [12:52:38]wFMCommunicate request_size=4 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 13 01 00 [12:52:38]Write to MH i2c: E2 08 00 A7 09 80 13 01 00 00 00 00 00 2D [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 A7 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 80 [12:52:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:52:38]wFMCommunicate OK [12:52:38]SAM_PROTO_GetShiftState done [12:52:38]FM_GetShiftState done [12:52:38]opened in 1729557463 [12:52:38]opened+sec_in_day 1729643863 [12:52:38]quantity*price = 100015 [12:52:38]sum+1 = 100017 [12:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 146 22.10.2024 12:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166391 ФПД: 127110069096012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125239&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166391&fm=127110069096012&tin=02508201610067®Number=0000000000091764&sum=100000 [12:52:39]StoreToDocumentArchive [12:52:39]shift 536 fd 166391 [12:52:39]save to /storage/0536/doc_00166391 [12:52:39]save last doc name /storage/0536/doc_00166391 to /storage/kkm_last_doc_name [12:52:39]save OK [12:52:39]Clear old archive folders... [12:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:39]tlvbuf is 00A076E0 [12:52:39]SAM_PROTO_ClearQueue [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 09 00 00 [12:52:39]Write to MH i2c: E2 08 00 B4 09 80 09 00 00 00 00 00 00 2F [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [12:52:39]RAPDU: 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_ClearQueue done [12:52:39]KKMCreateOFDPacket [12:52:39]OFDProtocolAddRootSTLVToBuf [12:52:39]FM_MakeSignedData [12:52:39]FM_MakeSignedData [12:52:39]SAM_PROTO_SignData [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 0D 01 02 [12:52:39]Write to MH i2c: E2 08 00 B5 09 80 0D 01 02 00 00 00 00 37 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [12:52:39]RAPDU: 90 00 [12:52:39]wFMCommunicate OK [12:52:39]wFMCommunicate request_size=255 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 89 02 00 35 04 06 00 73 [12:52:39]Write to MH i2c: E2 02 01 B6 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 89 02 00 35 04 06 00 73 00 00 9D [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [12:52:40]RAPDU: 90 00 [12:52:40]wFMCommunicate OK [12:52:40]wFMCommunicate request_size=10 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 0D 02 02 05 9B 1E 84 0E 4C [12:52:40]Write to MH i2c: E2 0D 00 B7 09 80 0D 02 02 05 00 9B 1E 84 0E 4C 00 00 DB [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [12:52:40]RAPDU: 90 00 [12:52:40]wFMCommunicate OK [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 0D 03 02 [12:52:40]Write to MH i2c: E2 08 00 B8 09 80 0D 03 02 00 00 00 00 3C [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0B 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0B 00 B8 09 00 C3 7C 4E F5 29 AB 1B EB 90 00 99 [12:52:40]RAPDU: C3 7C 4E F5 29 AB 1B EB 90 00 [12:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_SignData done [12:52:40]FM_MakeSignedData done [12:52:40]CreateOFDProtocolMessage [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 11 00 00 [12:52:40]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [12:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:52:40]wFMCommunicate OK [12:52:40]CreateOFDProtocolMessage done [12:52:40]OFDSenderStorePacket 166391 [12:52:40]StoreOFDPacket docnum=166391 [12:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 FF 07 01 23 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 89 02 00 35 04 06 00 73 9B 1E 84 0E 4C C3 7C 4E F5 29 AB 1B EB [12:52:40]CheckFolder [12:52:40]dirname=/storage/ofd_packets [12:52:40]CheckFolder done [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00166391 [12:52:40]NVStorageSaveData ofd_packets/00166391 [12:52:40]File name is /storage/ofd_packets/00166391 [12:52:40]Write 301 bytes [12:52:40]NVStorageSaveData done [12:52:40]OFDSenderStorePacket done [12:52:40]KKMCreateOFDPacket done [12:52:40]NVStorageSaveData kkm_last_timestamp [12:52:40]File name is /storage/kkm_last_timestamp [12:52:40]Write 4 bytes [12:52:40]NVStorageSaveData done [12:52:40]ExternCall_PrintAddStr [12:52:40]wPrintStart [12:52:40]Write to MH i2c: 01 00 00 BA 09 C3 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 FF 0F D8 [12:52:40]RasterBufferAndPrint [12:52:40]line Счет N : (1)220970 [12:52:40]line ИНН: 02508201610067 [12:52:40]line Контрольно-Кассовый Чек [12:52:40]line ПРОДАЖА [12:52:40]line ТРК (МРК, ГНК) : 13 [12:52:40]line Товар: 2710124130 [12:52:40]line Аи-92-К-5 [12:52:40]line 14.950 * 66.90 [12:52:40]line = 1000.16 [12:52:40]line НДС 12% НСП 1% [12:52:40]line > о реализуемом товаре [12:52:40]line ОКРУГЛЕНИЕ: -0.16 [12:52:40]line ИТОГО: 1000.00 [12:52:40]line Внесено: 1000.00 [12:52:40]line СДАЧА: 0.00 [12:52:40]line НСП 1% : 8.85 [12:52:40]line НДС 12% : 106.21 [12:52:40]line Наличными: 1000.00 [12:52:40]line Безнал.: 0.00 [12:52:40]line Место: АЗС № 161 "Партнер Нефть" [12:52:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:52:40]line СНО: Общий режим [12:52:40]line Чек 146 22.10.2024 12:52 [12:52:40]line Смена: 536 ФФД: 1.0 [12:52:40]line ЗНМ: 0300000104 [12:52:40]line РНМ: 0000000000091764 [12:52:40]line Версия ККМ: 001 [12:52:40]line ФМ: 0000000000871759 [12:52:40]line ФД: 166391 [12:52:40]line ФПД: 127110069096012 [12:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125239&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166391&fm=127110069096012&tin=02508201610067®Number=0000000000091764&sum=100000 [12:52:40]OFD Sender: Processing packet 166391 [packets to send 48, broken 47] [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00166391 [12:52:40]OFD Sender: To server: pG, [12:52:40]CommunicateWithHost lk.salyk.kg:30040 [12:52:40]ConnectInit lk.salyk.kg [12:52:40]written 0, free lines is 4095 [12:52:40]Connected sock=10 [12:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 FF 07 01 23 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 17 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 89 02 00 35 04 06 00 73 9B 1E 84 0E 4C C3 7C 4E F5 29 AB 1B EB [12:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 99 47 00 72 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 89 02 00 F4 03 04 00 82 46 17 67 B6 04 01 00 00 7A 0C C9 3E FB 30 F0 D3 [12:52:40]CommunicateWithHost err = 0 [12:52:40]CheckOFDResponse [12:52:40]1017 (14) - 77093643461234 [12:52:40]1041 (16) - 0000000000871759 [12:52:40]1040 (4) - 166391 [12:52:40]1012 (4) - 22.10.2024 06:30 [12:52:40]1206 (1) - 0 [12:52:40]OFD Sender: Remove packet 166391 [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00166391 [12:52:40]NVStorageDeleteData [12:52:41]Write to MH i2c: 01 00 00 E5 09 EE [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 07 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 C8 0C C9 [12:52:41]RasterBufferAndPrint [12:52:41]line [12:52:41]line [12:52:41]line [12:52:41]line [12:52:41]line [12:52:41]written 0, free lines is 3277 [12:52:41]MH_Cut [12:52:41]Write to MH i2c: D1 01 00 EC 09 01 C7 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: D1 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: D1 01 00 [12:52:41]MH_I2C_Read... [12:52:41]Read from MH i2c: D1 01 00 EC 09 00 C6 [12:52:41]Write to MH i2c: 01 00 00 ED 09 F6 [12:52:41]Write i2c OK [12:52:41]MH_I2C_Read... [12:52:41]OFD Sender: No OFD packet to send [12:52:41]*** Cut start [12:52:41]*** Partial cut [12:52:41]*** CUTSNS_PIN = 1 [12:52:41]*** CUTSNS_PIN = 0 [12:52:42]*** Brake cut motor [12:52:42]Read from MH i2c: 01 [12:52:42]MH_I2C_Read... [12:52:42]*** Stop cut motor [12:52:42]*** Cut end [12:52:42]Read from MH i2c: 01 07 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0F 0B [12:52:42]process_action close_receipt done [12:52:42]requested_data is exist [12:52:42]produce_requested_data [12:52:42]requested_item fm.sn is exist - process it [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 11 00 00 [12:52:42]Write to MH i2c: E2 08 00 EE 09 80 11 00 00 00 00 00 00 71 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 17 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 17 00 EE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [12:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:52:42]wFMCommunicate OK [12:52:42]requested_item fd.num is exist - process it [12:52:42]SAM_PROTO_GetFieldsCounters [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 13 00 00 [12:52:42]Write to MH i2c: E2 08 00 EF 09 80 13 00 00 00 00 00 00 74 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 62 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 62 00 EF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [12:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:42]wFMCommunicate OK [12:52:42]SAM_PROTO_GetFieldsCounters done [12:52:42]requested_item shift.num is exist - process it [12:52:42]requested_item shift.opened is exist - process it [12:52:42]req_shift_opened [12:52:42]FM_GetShiftState [12:52:42]SAM_PROTO_GetShiftState [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 13 01 00 [12:52:42]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 0E 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C9 [12:52:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:52:42]wFMCommunicate OK [12:52:42]SAM_PROTO_GetShiftState done [12:52:42]FM_GetShiftState done [12:52:42]req_shift_opened done [12:52:42]requested_item shift.open_date is exist - process it [12:52:42]req_shift_open_date [12:52:42]req_shift_open_date done [12:52:42]produce_requested_data done [12:52:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166391,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:52:42]process_action_free close_receipt [12:52:42]json_value_free [12:52:42]json_value_free done [12:52:42]process_json_proto returns [12:52:42]Send response to host [12:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166391,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:52:42]free response buf [12:52:42]execute_script done [12:52:42]execute_script returns [12:52:42]free content buf [12:52:42]Sock 7.Close socket [12:52:42]Sock 7.Thread stoped [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:14]accept exits with 9 [12:53:14]New connection [12:53:14]New thread 3067637092 created [12:53:14]Thread 3067493732 joined [12:53:14]Waiting for new connection... [12:53:14] Sock 9.Parse request [12:53:14]Sock 9.Check first char [12:53:14]Sock 9.First char is OK [12:53:14]request: POST /json_proto HTTP/1.0 [12:53:14]Method: POST [12:53:14]URL: /json_proto [12:53:14]Method is POST - this is cgi request [12:53:14]url: /json_proto [12:53:14]query_string will be loaded in cgi processing [12:53:14]execute_cgi json_proto POST (null) [12:53:14]execute_cgi path=json_proto method=POST [12:53:14]POST find Content-Length [12:53:14]Host: 172.17.53.195:8080 [12:53:14]Content-Length: 677 [12:53:14]Content-Type: application/json [12:53:14] [12:53:14]POST finish read [12:53:14]Found Content-Length = 677 [12:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:14]execute_script... [12:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:14]POST & json_proto [12:53:14]process_json_proto [12:53:14]json parsed OK: [12:53:14]protocol is kg_v1.0 [12:53:14]action value=close_receipt [12:53:14]process_action close_receipt [12:53:14]cmd_close_receipt [12:53:14]MH_GetDate [12:53:14]Write to MH i2c: F0 00 00 F1 09 E9 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 09 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: F0 09 00 F1 09 00 3B A0 17 67 21 48 4A 65 63 [12:53:14]GetLastDocTimeStamp 1729601559 [12:53:14]current date 1729601595 [12:53:14]FM_GetShiftState [12:53:14]SAM_PROTO_GetShiftState [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 13 01 00 [12:53:14]Write to MH i2c: E2 08 00 F2 09 80 13 01 00 00 00 00 00 78 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0E 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0E 00 F2 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CB [12:53:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:53:14]wFMCommunicate OK [12:53:14]SAM_PROTO_GetShiftState done [12:53:14]FM_GetShiftState done [12:53:14]opened in 1729557463 [12:53:14]opened+sec_in_day 1729643863 [12:53:14]quantity*price = 20003 [12:53:14]sum+1 = 20004 [12:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 147 22.10.2024 12:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166392 ФПД: 190571069661905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166392&fm=190571069661905&tin=02508201610067®Number=0000000000091764&sum=20000 [12:53:16]StoreToDocumentArchive [12:53:16]shift 536 fd 166392 [12:53:16]save to /storage/0536/doc_00166392 [12:53:16]save last doc name /storage/0536/doc_00166392 to /storage/kkm_last_doc_name [12:53:16]save OK [12:53:16]Clear old archive folders... [12:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:16]tlvbuf is 00A02930 [12:53:16]SAM_PROTO_ClearQueue [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 09 00 00 [12:53:16]Write to MH i2c: E2 08 00 FF 09 80 09 00 00 00 00 00 00 7A [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]SAM_PROTO_ClearQueue done [12:53:16]KKMCreateOFDPacket [12:53:16]OFDProtocolAddRootSTLVToBuf [12:53:16]FM_MakeSignedData [12:53:16]FM_MakeSignedData [12:53:16]SAM_PROTO_SignData [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 01 02 [12:53:16]Write to MH i2c: E2 08 00 00 0A 80 0D 01 02 00 00 00 00 83 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=255 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3B A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 89 02 00 35 04 06 00 AD [12:53:16]Write to MH i2c: E2 02 01 01 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3B A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 89 02 00 35 04 06 00 AD 00 00 11 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=10 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 02 02 05 52 C8 E9 62 D1 [12:53:16]Write to MH i2c: E2 0D 00 02 0A 80 0D 02 02 05 00 52 C8 E9 62 D1 00 00 C6 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]OFD Sender: No OFD packet to send [12:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [12:53:16]RAPDU: 90 00 [12:53:16]wFMCommunicate OK [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 0D 03 02 [12:53:16]Write to MH i2c: E2 08 00 03 0A 80 0D 03 02 00 00 00 00 88 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 0B 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 0B 00 03 0A 00 9C 3F 10 8A AF EE 81 6D 90 00 89 [12:53:16]RAPDU: 9C 3F 10 8A AF EE 81 6D 90 00 [12:53:16]wFMCommunicate OK [12:53:16]SAM_PROTO_SignData done [12:53:16]FM_MakeSignedData done [12:53:16]CreateOFDProtocolMessage [12:53:16]wFMCommunicate request_size=4 [12:53:16]MH_SAM_APDU [12:53:16]CAPDU: 80 11 00 00 [12:53:16]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:16]Read from MH i2c: E2 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 17 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: E2 17 00 04 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [12:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:16]wFMCommunicate OK [12:53:16]CreateOFDProtocolMessage done [12:53:16]OFDSenderStorePacket 166392 [12:53:16]StoreOFDPacket docnum=166392 [12:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 1A 07 01 D1 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3B A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 89 02 00 35 04 06 00 AD 52 C8 E9 62 D1 9C 3F 10 8A AF EE 81 6D [12:53:16]CheckFolder [12:53:16]dirname=/storage/ofd_packets [12:53:16]CheckFolder done [12:53:16]ProducePacketName [12:53:16]name=ofd_packets/00166392 [12:53:16]NVStorageSaveData ofd_packets/00166392 [12:53:16]File name is /storage/ofd_packets/00166392 [12:53:16]Write 301 bytes [12:53:16]NVStorageSaveData done [12:53:16]OFDSenderStorePacket done [12:53:16]KKMCreateOFDPacket done [12:53:16]NVStorageSaveData kkm_last_timestamp [12:53:16]File name is /storage/kkm_last_timestamp [12:53:16]Write 4 bytes [12:53:16]NVStorageSaveData done [12:53:16]ExternCall_PrintAddStr [12:53:16]wPrintStart [12:53:16]Write to MH i2c: 01 00 00 05 0A 0F [12:53:16]Write i2c OK [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 07 00 [12:53:16]MH_I2C_Read... [12:53:16]Read from MH i2c: 01 07 00 05 0A 00 00 00 00 00 FF 0F 24 [12:53:16]RasterBufferAndPrint [12:53:16]line Счет N : (1)220969 [12:53:16]line ИНН: 02508201610067 [12:53:16]line Контрольно-Кассовый Чек [12:53:16]line ПРОДАЖА [12:53:16]line ТРК (МРК, ГНК) : 43 [12:53:16]line Товар: 2710124130 [12:53:16]line Аи-92-К-5 [12:53:16]line 2.990 * 66.90 [12:53:16]line = 200.03 [12:53:16]line НДС 12% НСП 1% [12:53:16]line > о реализуемом товаре [12:53:16]line ОКРУГЛЕНИЕ: -0.03 [12:53:16]line ИТОГО: 200.00 [12:53:16]line Внесено: 200.00 [12:53:16]line СДАЧА: 0.00 [12:53:16]line НСП 1% : 1.77 [12:53:16]line НДС 12% : 21.24 [12:53:16]line Наличными: 200.00 [12:53:16]line Безнал.: 0.00 [12:53:16]line Место: АЗС № 161 "Партнер Нефть" [12:53:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:53:16]line СНО: Общий режим [12:53:16]line Чек 147 22.10.2024 12:53 [12:53:16]line Смена: 536 ФФД: 1.0 [12:53:16]line ЗНМ: 0300000104 [12:53:16]line РНМ: 0000000000091764 [12:53:16]line Версия ККМ: 001 [12:53:16]line ФМ: 0000000000871759 [12:53:16]line ФД: 166392 [12:53:16]line ФПД: 190571069661905 [12:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166392&fm=190571069661905&tin=02508201610067®Number=0000000000091764&sum=20000 [12:53:16]OFD Sender: Processing packet 166392 [packets to send 48, broken 47] [12:53:16]ProducePacketName [12:53:16]name=ofd_packets/00166392 [12:53:16]OFD Sender: To server: pG, [12:53:16]CommunicateWithHost lk.salyk.kg:30040 [12:53:16]ConnectInit lk.salyk.kg [12:53:16]written 0, free lines is 4095 [12:53:17]Connected sock=11 [12:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 1A 07 01 D1 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3B A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 89 02 00 35 04 06 00 AD 52 C8 E9 62 D1 9C 3F 10 8A AF EE 81 6D [12:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF 8D 47 00 37 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 89 02 00 F4 03 04 00 A6 46 17 67 B6 04 01 00 00 31 2D 33 A6 89 03 4F BF [12:53:17]CommunicateWithHost err = 0 [12:53:17]CheckOFDResponse [12:53:17]1017 (14) - 77093643461234 [12:53:17]1041 (16) - 0000000000871759 [12:53:17]1040 (4) - 166392 [12:53:17]1012 (4) - 22.10.2024 06:31 [12:53:17]1206 (1) - 0 [12:53:17]OFD Sender: Remove packet 166392 [12:53:17]ProducePacketName [12:53:17]name=ofd_packets/00166392 [12:53:17]NVStorageDeleteData [12:53:17]Write to MH i2c: 01 00 00 30 0A 3A [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 07 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 C6 0C 13 [12:53:17]RasterBufferAndPrint [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]line [12:53:17]written 0, free lines is 3276 [12:53:17]MH_Cut [12:53:17]Write to MH i2c: D1 01 00 37 0A 01 13 [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 01 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: D1 01 00 37 0A 00 12 [12:53:17]Write to MH i2c: 01 00 00 38 0A 42 [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]OFD Sender: No OFD packet to send [12:53:18]*** Cut start [12:53:18]*** Partial cut [12:53:18]*** CUTSNS_PIN = 1 [12:53:18]*** CUTSNS_PIN = 0 [12:53:18]*** Brake cut motor [12:53:18]Read from MH i2c: 01 [12:53:18]MH_I2C_Read... [12:53:18]*** Stop cut motor [12:53:18]*** Cut end [12:53:18]Read from MH i2c: 01 07 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [12:53:18]process_action close_receipt done [12:53:18]requested_data is exist [12:53:18]produce_requested_data [12:53:18]requested_item fm.sn is exist - process it [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 11 00 00 [12:53:18]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [12:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:18]wFMCommunicate OK [12:53:18]requested_item fd.num is exist - process it [12:53:18]SAM_PROTO_GetFieldsCounters [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 13 00 00 [12:53:18]Write to MH i2c: E2 08 00 3A 0A 80 13 00 00 00 00 00 00 C0 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:19]Read from MH i2c: E2 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 62 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 62 00 3A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [12:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:19]wFMCommunicate OK [12:53:19]SAM_PROTO_GetFieldsCounters done [12:53:19]requested_item shift.num is exist - process it [12:53:19]requested_item shift.opened is exist - process it [12:53:19]req_shift_opened [12:53:19]FM_GetShiftState [12:53:19]SAM_PROTO_GetShiftState [12:53:19]wFMCommunicate request_size=4 [12:53:19]MH_SAM_APDU [12:53:19]CAPDU: 80 13 01 00 [12:53:19]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:19]Read from MH i2c: E2 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 15 [12:53:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:53:19]wFMCommunicate OK [12:53:19]SAM_PROTO_GetShiftState done [12:53:19]FM_GetShiftState done [12:53:19]req_shift_opened done [12:53:19]requested_item shift.open_date is exist - process it [12:53:19]req_shift_open_date [12:53:19]req_shift_open_date done [12:53:19]produce_requested_data done [12:53:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166392,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:53:19]process_action_free close_receipt [12:53:19]json_value_free [12:53:19]json_value_free done [12:53:19]process_json_proto returns [12:53:19]Send response to host [12:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166392,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:53:19]free response buf [12:53:19]execute_script done [12:53:19]execute_script returns [12:53:19]free content buf [12:53:19]Sock 9.Close socket [12:53:19]Sock 9.Thread stoped [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:53]accept exits with 7 [12:53:53]New connection [12:53:53]New thread 3067493732 created [12:53:53]Thread 3067637092 joined [12:53:53]Waiting for new connection... [12:53:53] Sock 7.Parse request [12:53:53]Sock 7.Check first char [12:53:53]Sock 7.First char is OK [12:53:53]request: POST /json_proto HTTP/1.0 [12:53:53]Method: POST [12:53:53]URL: /json_proto [12:53:53]Method is POST - this is cgi request [12:53:53]url: /json_proto [12:53:53]query_string will be loaded in cgi processing [12:53:53]execute_cgi json_proto POST (null) [12:53:53]execute_cgi path=json_proto method=POST [12:53:53]POST find Content-Length [12:53:53]Host: 172.17.53.195:8080 [12:53:53]Content-Length: 769 [12:53:53]Content-Type: application/json [12:53:53] [12:53:53]POST finish read [12:53:53]Found Content-Length = 769 [12:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:53]execute_script... [12:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:53]POST & json_proto [12:53:53]process_json_proto [12:53:53]json parsed OK: [12:53:53]protocol is kg_v1.0 [12:53:53]action value=close_receipt [12:53:53]process_action close_receipt [12:53:53]cmd_close_receipt [12:53:53]MH_GetDate [12:53:53]Write to MH i2c: F0 00 00 3C 0A 35 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 09 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: F0 09 00 3C 0A 00 62 A0 17 67 21 48 4A 65 D6 [12:53:53]GetLastDocTimeStamp 1729601595 [12:53:53]current date 1729601634 [12:53:53]FM_GetShiftState [12:53:53]SAM_PROTO_GetShiftState [12:53:53]wFMCommunicate request_size=4 [12:53:53]MH_SAM_APDU [12:53:53]CAPDU: 80 13 01 00 [12:53:53]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [12:53:53]Write i2c OK [12:53:53]MH_I2C_Read... [12:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:53]Read from MH i2c: E2 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0E 00 [12:53:53]MH_I2C_Read... [12:53:53]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 17 [12:53:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:53:53]wFMCommunicate OK [12:53:53]SAM_PROTO_GetShiftState done [12:53:53]FM_GetShiftState done [12:53:53]opened in 1729557463 [12:53:53]opened+sec_in_day 1729643863 [12:53:53]quantity*price = 100015 [12:53:53]sum+1 = 100017 [12:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 148 22.10.2024 12:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166393 ФПД: 241788359809876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125354&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166393&fm=241788359809876&tin=02508201610067®Number=0000000000091764&sum=100016 [12:53:54]StoreToDocumentArchive [12:53:54]shift 536 fd 166393 [12:53:54]save to /storage/0536/doc_00166393 [12:53:54]save last doc name /storage/0536/doc_00166393 to /storage/kkm_last_doc_name [12:53:54]save OK [12:53:54]Clear old archive folders... [12:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:54]tlvbuf is 00A38C90 [12:53:54]SAM_PROTO_ClearQueue [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 09 00 00 [12:53:54]Write to MH i2c: E2 08 00 4A 0A 80 09 00 00 00 00 00 00 C6 [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [12:53:54]RAPDU: 90 00 [12:53:54]wFMCommunicate OK [12:53:54]SAM_PROTO_ClearQueue done [12:53:54]KKMCreateOFDPacket [12:53:54]OFDProtocolAddRootSTLVToBuf [12:53:54]FM_MakeSignedData [12:53:54]FM_MakeSignedData [12:53:54]SAM_PROTO_SignData [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 0D 01 02 [12:53:54]Write to MH i2c: E2 08 00 4B 0A 80 0D 01 02 00 00 00 00 CE [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [12:53:54]RAPDU: 90 00 [12:53:54]wFMCommunicate OK [12:53:54]wFMCommunicate request_size=255 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 62 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 89 02 00 35 04 06 00 DB [12:53:54]Write to MH i2c: E2 02 01 4C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 62 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 89 02 00 35 04 06 00 DB 00 00 0B [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=10 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 02 02 05 E7 BD 4C 1B 54 [12:53:55]Write to MH i2c: E2 0D 00 4D 0A 80 0D 02 02 05 00 E7 BD 4C 1B 54 00 00 3A [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 03 02 [12:53:55]Write to MH i2c: E2 08 00 4E 0A 80 0D 03 02 00 00 00 00 D3 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 4E 0A 00 84 14 74 02 5F 5E 4B DA 90 00 C4 [12:53:55]RAPDU: 84 14 74 02 5F 5E 4B DA 90 00 [12:53:55]wFMCommunicate OK [12:53:55]SAM_PROTO_SignData done [12:53:55]FM_MakeSignedData done [12:53:55]CreateOFDProtocolMessage [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 11 00 00 [12:53:55]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [12:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:55]wFMCommunicate OK [12:53:55]CreateOFDProtocolMessage done [12:53:55]OFDSenderStorePacket 166393 [12:53:55]StoreOFDPacket docnum=166393 [12:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 21 07 01 AE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 62 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 89 02 00 35 04 06 00 DB E7 BD 4C 1B 54 84 14 74 02 5F 5E 4B DA [12:53:55]CheckFolder [12:53:55]dirname=/storage/ofd_packets [12:53:55]CheckFolder done [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00166393 [12:53:55]NVStorageSaveData ofd_packets/00166393 [12:53:55]File name is /storage/ofd_packets/00166393 [12:53:55]Write 301 bytes [12:53:55]NVStorageSaveData done [12:53:55]OFDSenderStorePacket done [12:53:55]KKMCreateOFDPacket done [12:53:55]NVStorageSaveData kkm_last_timestamp [12:53:55]File name is /storage/kkm_last_timestamp [12:53:55]Write 4 bytes [12:53:55]NVStorageSaveData done [12:53:55]ExternCall_PrintAddStr [12:53:55]wPrintStart [12:53:55]Write to MH i2c: 01 00 00 50 0A 5A [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [12:53:55]RasterBufferAndPrint [12:53:55]line Счет N : (1)220971 [12:53:55]line ИНН: 02508201610067 [12:53:55]line Контрольно-Кассовый Чек [12:53:55]line ПРОДАЖА [12:53:55]line ТРК (МРК, ГНК) : 33 [12:53:55]line Товар: 2710124130 [12:53:55]line Аи-92-К-5 [12:53:55]line 14.950 * 66.90 [12:53:55]line = 1000.16 [12:53:55]line НДС 12% НСП 1% [12:53:55]line > о реализуемом товаре [12:53:55]line ИТОГО: 1000.16 [12:53:55]line НСП 1% : 8.85 [12:53:55]line НДС 12% : 106.21 [12:53:55]line Наличными: 0.00 [12:53:55]line Безнал.: 1000.16 [12:53:55]line Место: АЗС № 161 "Партнер Нефть" [12:53:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:53:55]line СНО: Общий режим [12:53:55]line Чек 148 22.10.2024 12:53 [12:53:55]line Смена: 536 ФФД: 1.0 [12:53:55]line ЗНМ: 0300000104 [12:53:55]line РНМ: 0000000000091764 [12:53:55]line Версия ККМ: 001 [12:53:55]line Платежная система: Mbank [12:53:55]line ФМ: 0000000000871759 [12:53:55]line ФД: 166393 [12:53:55]line ФПД: 241788359809876 [12:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125354&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166393&fm=241788359809876&tin=02508201610067®Number=0000000000091764&sum=100016 [12:53:55]written 0, free lines is 4095 [12:53:55]OFD Sender: Processing packet 166393 [packets to send 48, broken 47] [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00166393 [12:53:55]OFD Sender: To server: pG, [12:53:55]CommunicateWithHost lk.salyk.kg:30040 [12:53:55]ConnectInit lk.salyk.kg [12:53:55]Connected sock=10 [12:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 21 07 01 AE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 62 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 89 02 00 35 04 06 00 DB E7 BD 4C 1B 54 84 14 74 02 5F 5E 4B DA [12:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 63 DD 47 00 D4 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 89 02 00 F4 03 04 00 CD 46 17 67 B6 04 01 00 00 58 4E 9D 7B 6C ED 01 9C [12:53:55]CommunicateWithHost err = 0 [12:53:55]CheckOFDResponse [12:53:55]1017 (14) - 77093643461234 [12:53:55]1041 (16) - 0000000000871759 [12:53:55]1040 (4) - 166393 [12:53:55]1012 (4) - 22.10.2024 06:31 [12:53:55]1206 (1) - 0 [12:53:55]OFD Sender: Remove packet 166393 [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00166393 [12:53:55]NVStorageDeleteData [12:53:56]Write to MH i2c: 01 00 00 79 0A 83 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 E7 0C 7D [12:53:56]RasterBufferAndPrint [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]written 0, free lines is 3310 [12:53:56]MH_Cut [12:53:56]Write to MH i2c: D1 01 00 80 0A 01 5C [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 80 0A 00 5B [12:53:56]Write to MH i2c: 01 00 00 81 0A 8B [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]OFD Sender: No OFD packet to send [12:53:56]*** Cut start [12:53:56]*** Partial cut [12:53:56]*** CUTSNS_PIN = 1 [12:53:56]*** CUTSNS_PIN = 0 [12:53:57]*** Brake cut motor [12:53:57]Read from MH i2c: 01 [12:53:57]MH_I2C_Read... [12:53:57]*** Stop cut motor [12:53:57]*** Cut end [12:53:57]Read from MH i2c: 01 07 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [12:53:57]process_action close_receipt done [12:53:57]requested_data is exist [12:53:57]produce_requested_data [12:53:57]requested_item fm.sn is exist - process it [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 11 00 00 [12:53:57]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 17 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [12:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:57]wFMCommunicate OK [12:53:57]requested_item fd.num is exist - process it [12:53:57]SAM_PROTO_GetFieldsCounters [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 00 00 [12:53:57]Write to MH i2c: E2 08 00 83 0A 80 13 00 00 00 00 00 00 09 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 62 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 62 00 83 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [12:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetFieldsCounters done [12:53:57]requested_item shift.num is exist - process it [12:53:57]requested_item shift.opened is exist - process it [12:53:57]req_shift_opened [12:53:57]FM_GetShiftState [12:53:57]SAM_PROTO_GetShiftState [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 01 00 [12:53:57]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5E [12:53:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetShiftState done [12:53:57]FM_GetShiftState done [12:53:57]req_shift_opened done [12:53:57]requested_item shift.open_date is exist - process it [12:53:57]req_shift_open_date [12:53:57]req_shift_open_date done [12:53:57]produce_requested_data done [12:53:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166393,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:53:57]process_action_free close_receipt [12:53:57]json_value_free [12:53:57]json_value_free done [12:53:57]process_json_proto returns [12:53:57]Send response to host [12:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166393,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:53:57]free response buf [12:53:57]execute_script done [12:53:57]execute_script returns [12:53:57]free content buf [12:53:57]Sock 7.Close socket [12:53:57]Sock 7.Thread stoped [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:10]accept exits with 9 [12:54:10]New connection [12:54:10]New thread 3067637092 created [12:54:10]Thread 3067493732 joined [12:54:10]Waiting for new connection... [12:54:10] Sock 9.Parse request [12:54:10]Sock 9.Check first char [12:54:10]Sock 9.First char is OK [12:54:10]request: POST /json_proto HTTP/1.0 [12:54:10]Method: POST [12:54:10]URL: /json_proto [12:54:10]Method is POST - this is cgi request [12:54:10]url: /json_proto [12:54:10]query_string will be loaded in cgi processing [12:54:10]execute_cgi json_proto POST (null) [12:54:10]execute_cgi path=json_proto method=POST [12:54:10]POST find Content-Length [12:54:10]Host: 172.17.53.195:8080 [12:54:10]Content-Length: 766 [12:54:10]Content-Type: application/json [12:54:10] [12:54:10]POST finish read [12:54:10]Found Content-Length = 766 [12:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:10]execute_script... [12:54:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:10]POST & json_proto [12:54:10]process_json_proto [12:54:10]json parsed OK: [12:54:10]protocol is kg_v1.0 [12:54:10]action value=close_receipt [12:54:10]process_action close_receipt [12:54:10]cmd_close_receipt [12:54:10]MH_GetDate [12:54:10]Write to MH i2c: F0 00 00 85 0A 7E [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: F0 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: F0 09 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: F0 09 00 85 0A 00 73 A0 17 67 21 48 4A 65 30 [12:54:10]GetLastDocTimeStamp 1729601634 [12:54:10]current date 1729601651 [12:54:10]FM_GetShiftState [12:54:10]SAM_PROTO_GetShiftState [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 13 01 00 [12:54:10]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:11]Read from MH i2c: E2 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 0E 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 60 [12:54:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:54:11]wFMCommunicate OK [12:54:11]SAM_PROTO_GetShiftState done [12:54:11]FM_GetShiftState done [12:54:11]opened in 1729557463 [12:54:11]opened+sec_in_day 1729643863 [12:54:11]quantity*price = 20003 [12:54:11]sum+1 = 20004 [12:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 149 22.10.2024 12:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166394 ФПД: 97994912249426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166394&fm=97994912249426&tin=02508201610067®Number=0000000000091764&sum=20003 [12:54:12]StoreToDocumentArchive [12:54:12]shift 536 fd 166394 [12:54:12]save to /storage/0536/doc_00166394 [12:54:12]save last doc name /storage/0536/doc_00166394 to /storage/kkm_last_doc_name [12:54:12]save OK [12:54:12]Clear old archive folders... [12:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:12]tlvbuf is 00A20DB0 [12:54:12]SAM_PROTO_ClearQueue [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 09 00 00 [12:54:12]Write to MH i2c: E2 08 00 93 0A 80 09 00 00 00 00 00 00 0F [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [12:54:12]RAPDU: 90 00 [12:54:12]wFMCommunicate OK [12:54:12]SAM_PROTO_ClearQueue done [12:54:12]KKMCreateOFDPacket [12:54:12]OFDProtocolAddRootSTLVToBuf [12:54:12]FM_MakeSignedData [12:54:12]FM_MakeSignedData [12:54:12]SAM_PROTO_SignData [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 0D 01 02 [12:54:12]Write to MH i2c: E2 08 00 94 0A 80 0D 01 02 00 00 00 00 17 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [12:54:12]RAPDU: 90 00 [12:54:12]wFMCommunicate OK [12:54:12]wFMCommunicate request_size=255 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 89 02 00 35 04 06 00 59 [12:54:12]Write to MH i2c: E2 02 01 95 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 89 02 00 35 04 06 00 59 00 00 93 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [12:54:12]RAPDU: 90 00 [12:54:12]wFMCommunicate OK [12:54:12]wFMCommunicate request_size=10 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 0D 02 02 05 20 37 EF 36 52 [12:54:12]Write to MH i2c: E2 0D 00 96 0A 80 0D 02 02 05 00 20 37 EF 36 52 00 00 F2 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [12:54:12]RAPDU: 90 00 [12:54:12]wFMCommunicate OK [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 0D 03 02 [12:54:12]Write to MH i2c: E2 08 00 97 0A 80 0D 03 02 00 00 00 00 1C [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0B 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0B 00 97 0A 00 02 C3 18 F1 A4 12 C4 E2 90 00 47 [12:54:12]RAPDU: 02 C3 18 F1 A4 12 C4 E2 90 00 [12:54:12]wFMCommunicate OK [12:54:12]SAM_PROTO_SignData done [12:54:12]FM_MakeSignedData done [12:54:12]CreateOFDProtocolMessage [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 11 00 00 [12:54:12]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [12:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:54:12]wFMCommunicate OK [12:54:12]CreateOFDProtocolMessage done [12:54:12]OFDSenderStorePacket 166394 [12:54:12]StoreOFDPacket docnum=166394 [12:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 26 07 01 F2 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 89 02 00 35 04 06 00 59 20 37 EF 36 52 02 C3 18 F1 A4 12 C4 E2 [12:54:12]CheckFolder [12:54:12]dirname=/storage/ofd_packets [12:54:12]CheckFolder done [12:54:12]ProducePacketName [12:54:12]name=ofd_packets/00166394 [12:54:12]NVStorageSaveData ofd_packets/00166394 [12:54:12]File name is /storage/ofd_packets/00166394 [12:54:12]Write 301 bytes [12:54:12]NVStorageSaveData done [12:54:12]OFDSenderStorePacket done [12:54:12]KKMCreateOFDPacket done [12:54:12]NVStorageSaveData kkm_last_timestamp [12:54:12]File name is /storage/kkm_last_timestamp [12:54:12]Write 4 bytes [12:54:12]NVStorageSaveData done [12:54:12]ExternCall_PrintAddStr [12:54:12]wPrintStart [12:54:12]Write to MH i2c: 01 00 00 99 0A A3 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: 01 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: 01 07 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [12:54:12]RasterBufferAndPrint [12:54:12]line Счет N : (1)220972 [12:54:12]line ИНН: 02508201610067 [12:54:12]line Контрольно-Кассовый Чек [12:54:12]line ПРОДАЖА [12:54:12]line ТРК (МРК, ГНК) : 43 [12:54:12]line Товар: 2710124130 [12:54:12]line Аи-92-К-5 [12:54:12]line 2.990 * 66.90 [12:54:12]line = 200.03 [12:54:12]line НДС 12% НСП 1% [12:54:12]line > о реализуемом товаре [12:54:12]line ИТОГО: 200.03 [12:54:12]line НСП 1% : 1.77 [12:54:12]line НДС 12% : 21.24 [12:54:12]line Наличными: 0.00 [12:54:12]line Безнал.: 200.03 [12:54:12]line Место: АЗС № 161 "Партнер Нефть" [12:54:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:54:12]line СНО: Общий режим [12:54:12]line Чек 149 22.10.2024 12:54 [12:54:12]line Смена: 536 ФФД: 1.0 [12:54:12]line ЗНМ: 0300000104 [12:54:12]line РНМ: 0000000000091764 [12:54:12]line Версия ККМ: 001 [12:54:12]line Платежная система: Mbank [12:54:12]line ФМ: 0000000000871759 [12:54:12]line ФД: 166394 [12:54:12]line ФПД: 97994912249426 [12:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166394&fm=97994912249426&tin=02508201610067®Number=0000000000091764&sum=20003 [12:54:12]written 0, free lines is 4095 [12:54:12]OFD Sender: Processing packet 166394 [packets to send 48, broken 47] [12:54:12]ProducePacketName [12:54:12]name=ofd_packets/00166394 [12:54:12]OFD Sender: To server: pG, [12:54:12]CommunicateWithHost lk.salyk.kg:30040 [12:54:12]ConnectInit lk.salyk.kg [12:54:12]Connected sock=10 [12:54:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 26 07 01 F2 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 73 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 89 02 00 35 04 06 00 59 20 37 EF 36 52 02 C3 18 F1 A4 12 C4 E2 [12:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F 30 47 00 2D E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 89 02 00 F4 03 04 00 DE 46 17 67 B6 04 01 00 00 B1 44 D9 B4 14 9C 2B 5F [12:54:13]CommunicateWithHost err = 0 [12:54:13]CheckOFDResponse [12:54:13]1017 (14) - 77093643461234 [12:54:13]1041 (16) - 0000000000871759 [12:54:13]1040 (4) - 166394 [12:54:13]1012 (4) - 22.10.2024 06:31 [12:54:13]1206 (1) - 0 [12:54:13]OFD Sender: Remove packet 166394 [12:54:13]ProducePacketName [12:54:13]name=ofd_packets/00166394 [12:54:13]NVStorageDeleteData [12:54:13]Write to MH i2c: 01 00 00 C2 0A CC [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: 01 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: 01 07 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: 01 07 00 C2 0A 00 00 00 00 00 FA 0C D9 [12:54:13]RasterBufferAndPrint [12:54:13]line [12:54:13]line [12:54:13]line [12:54:13]line [12:54:13]line [12:54:13]written 0, free lines is 3327 [12:54:13]MH_Cut [12:54:13]Write to MH i2c: D1 01 00 C9 0A 01 A5 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: D1 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: D1 01 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: D1 01 00 C9 0A 00 A4 [12:54:13]Write to MH i2c: 01 00 00 CA 0A D4 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]OFD Sender: No OFD packet to send [12:54:13]*** Cut start [12:54:13]*** Partial cut [12:54:13]*** CUTSNS_PIN = 1 [12:54:13]*** CUTSNS_PIN = 0 [12:54:14]*** Brake cut motor [12:54:14]Read from MH i2c: 01 [12:54:14]MH_I2C_Read... [12:54:14]*** Stop cut motor [12:54:14]*** Cut end [12:54:14]Read from MH i2c: 01 07 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 07 00 CA 0A 00 00 00 00 00 FF 0F E9 [12:54:14]process_action close_receipt done [12:54:14]requested_data is exist [12:54:14]produce_requested_data [12:54:14]requested_item fm.sn is exist - process it [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 11 00 00 [12:54:14]Write to MH i2c: E2 08 00 CB 0A 80 11 00 00 00 00 00 00 4F [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 17 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 17 00 CB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [12:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:54:14]wFMCommunicate OK [12:54:14]requested_item fd.num is exist - process it [12:54:14]SAM_PROTO_GetFieldsCounters [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 13 00 00 [12:54:14]Write to MH i2c: E2 08 00 CC 0A 80 13 00 00 00 00 00 00 52 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 62 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 62 00 CC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:14]wFMCommunicate OK [12:54:14]SAM_PROTO_GetFieldsCounters done [12:54:14]requested_item shift.num is exist - process it [12:54:14]requested_item shift.opened is exist - process it [12:54:14]req_shift_opened [12:54:14]FM_GetShiftState [12:54:14]SAM_PROTO_GetShiftState [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 13 01 00 [12:54:14]Write to MH i2c: E2 08 00 CD 0A 80 13 01 00 00 00 00 00 54 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 0E 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 0E 00 CD 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A7 [12:54:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:54:14]wFMCommunicate OK [12:54:14]SAM_PROTO_GetShiftState done [12:54:14]FM_GetShiftState done [12:54:14]req_shift_opened done [12:54:14]requested_item shift.open_date is exist - process it [12:54:14]req_shift_open_date [12:54:14]req_shift_open_date done [12:54:14]produce_requested_data done [12:54:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166394,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:54:14]process_action_free close_receipt [12:54:14]json_value_free [12:54:14]json_value_free done [12:54:14]process_json_proto returns [12:54:14]Send response to host [12:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166394,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:54:14]free response buf [12:54:14]execute_script done [12:54:14]execute_script returns [12:54:14]free content buf [12:54:14]Sock 9.Close socket [12:54:14]Sock 9.Thread stoped [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]accept exits with 7 [12:56:18]New connection [12:56:18]New thread 3067493732 created [12:56:18]Thread 3067637092 joined [12:56:18]Waiting for new connection... [12:56:18] Sock 7.Parse request [12:56:18]Sock 7.Check first char [12:56:18]Sock 7.First char is OK [12:56:18]request: POST /json_proto HTTP/1.0 [12:56:18]Method: POST [12:56:18]URL: /json_proto [12:56:18]Method is POST - this is cgi request [12:56:18]url: /json_proto [12:56:18]query_string will be loaded in cgi processing [12:56:18]execute_cgi json_proto POST (null) [12:56:18]execute_cgi path=json_proto method=POST [12:56:18]POST find Content-Length [12:56:18]Host: 172.17.53.195:8080 [12:56:18]Content-Length: 800 [12:56:18]Content-Type: application/json [12:56:18] [12:56:18]POST finish read [12:56:18]Found Content-Length = 800 [12:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:18]execute_script... [12:56: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)220973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:18]POST & json_proto [12:56:18]process_json_proto [12:56:18]json parsed OK: [12:56:18]protocol is kg_v1.0 [12:56:18]action value=close_receipt [12:56:18]process_action close_receipt [12:56:18]cmd_close_receipt [12:56:18]MH_GetDate [12:56:18]Write to MH i2c: F0 00 00 CE 0A C7 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 09 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 09 00 CE 0A 00 F2 A0 17 67 21 48 4A 65 F8 [12:56:18]GetLastDocTimeStamp 1729601651 [12:56:18]current date 1729601778 [12:56:18]FM_GetShiftState [12:56:18]SAM_PROTO_GetShiftState [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 13 01 00 [12:56:18]Write to MH i2c: E2 08 00 CF 0A 80 13 01 00 00 00 00 00 56 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:18]Read from MH i2c: E2 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 CF 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A9 [12:56:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:56:18]wFMCommunicate OK [12:56:18]SAM_PROTO_GetShiftState done [12:56:18]FM_GetShiftState done [12:56:18]opened in 1729557463 [12:56:18]opened+sec_in_day 1729643863 [12:56:18]quantity*price = 40006 [12:56:18]sum+1 = 40007 [12:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 150 22.10.2024 12:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871759 ФД: 166395 ФПД: 246080347240821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166395&fm=246080347240821&tin=02508201610067®Number=0000000000091764&sum=40006 [12:56:19]StoreToDocumentArchive [12:56:19]shift 536 fd 166395 [12:56:19]save to /storage/0536/doc_00166395 [12:56:19]save last doc name /storage/0536/doc_00166395 to /storage/kkm_last_doc_name [12:56:19]save OK [12:56:19]Clear old archive folders... [12:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:19]tlvbuf is 00A02DE0 [12:56:19]SAM_PROTO_ClearQueue [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 09 00 00 [12:56:19]Write to MH i2c: E2 08 00 DC 0A 80 09 00 00 00 00 00 00 58 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [12:56:19]RAPDU: 90 00 [12:56:19]wFMCommunicate OK [12:56:19]SAM_PROTO_ClearQueue done [12:56:19]KKMCreateOFDPacket [12:56:19]OFDProtocolAddRootSTLVToBuf [12:56:19]FM_MakeSignedData [12:56:19]FM_MakeSignedData [12:56:19]SAM_PROTO_SignData [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 0D 01 02 [12:56:19]Write to MH i2c: E2 08 00 DD 0A 80 0D 01 02 00 00 00 00 60 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [12:56:19]RAPDU: 90 00 [12:56:19]wFMCommunicate OK [12:56:19]wFMCommunicate request_size=255 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F2 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 89 02 00 35 04 06 00 DF [12:56:19]Write to MH i2c: E2 02 01 DE 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F2 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 89 02 00 35 04 06 00 DF 00 00 F6 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [12:56:19]RAPDU: 90 00 [12:56:19]wFMCommunicate OK [12:56:19]wFMCommunicate request_size=10 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 0D 02 02 05 CF 0B AE F9 75 [12:56:19]Write to MH i2c: E2 0D 00 DF 0A 80 0D 02 02 05 00 CF 0B AE F9 75 00 00 63 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [12:56:19]RAPDU: 90 00 [12:56:19]wFMCommunicate OK [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 0D 03 02 [12:56:19]Write to MH i2c: E2 08 00 E0 0A 80 0D 03 02 00 00 00 00 65 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0B 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0B 00 E0 0A 00 12 6D F6 2C 81 80 20 78 90 00 A0 [12:56:19]RAPDU: 12 6D F6 2C 81 80 20 78 90 00 [12:56:19]wFMCommunicate OK [12:56:19]SAM_PROTO_SignData done [12:56:19]FM_MakeSignedData done [12:56:19]CreateOFDProtocolMessage [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 11 00 00 [12:56:19]Write to MH i2c: E2 08 00 E1 0A 80 11 00 00 00 00 00 00 65 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 17 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 17 00 E1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [12:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:56:19]wFMCommunicate OK [12:56:19]CreateOFDProtocolMessage done [12:56:19]OFDSenderStorePacket 166395 [12:56:19]StoreOFDPacket docnum=166395 [12:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 E1 07 01 3F CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F2 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 89 02 00 35 04 06 00 DF CF 0B AE F9 75 12 6D F6 2C 81 80 20 78 [12:56:19]CheckFolder [12:56:19]dirname=/storage/ofd_packets [12:56:19]CheckFolder done [12:56:19]ProducePacketName [12:56:19]name=ofd_packets/00166395 [12:56:19]NVStorageSaveData ofd_packets/00166395 [12:56:19]File name is /storage/ofd_packets/00166395 [12:56:19]Write 301 bytes [12:56:19]NVStorageSaveData done [12:56:19]OFDSenderStorePacket done [12:56:19]KKMCreateOFDPacket done [12:56:19]NVStorageSaveData kkm_last_timestamp [12:56:19]File name is /storage/kkm_last_timestamp [12:56:19]Write 4 bytes [12:56:19]NVStorageSaveData done [12:56:19]ExternCall_PrintAddStr [12:56:19]wPrintStart [12:56:19]Write to MH i2c: 01 00 00 E2 0A EC [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: 01 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: 01 07 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [12:56:19]RasterBufferAndPrint [12:56:19]line Счет N : (1)220973 [12:56:19]line ИНН: 02508201610067 [12:56:19]line Контрольно-Кассовый Чек [12:56:19]line ПРОДАЖА [12:56:19]line ТРК (МРК, ГНК) : 13 [12:56:19]line Товар: 2710124130 [12:56:19]line Аи-92-К-5 [12:56:19]line 5.980 * 66.90 [12:56:19]line = 400.06 [12:56:19]line НДС 12% НСП 1% [12:56:19]line > о реализуемом товаре [12:56:19]line ИТОГО: 400.06 [12:56:19]line НСП 1% : 3.54 [12:56:19]line НДС 12% : 42.48 [12:56:19]line Наличными: 0.00 [12:56:19]line Безнал.: 400.06 [12:56:19]line Место: АЗС № 161 "Партнер Нефть" [12:56:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:56:19]line СНО: Общий режим [12:56:19]line Чек 150 22.10.2024 12:56 [12:56:19]line Смена: 536 ФФД: 1.0 [12:56:19]line ЗНМ: 0300000104 [12:56:19]line РНМ: 0000000000091764 [12:56:19]line Версия ККМ: 001 [12:56:19]line Платежная система: O! деньги [12:56:19]line ФМ: 0000000000871759 [12:56:19]line ФД: 166395 [12:56:19]line ФПД: 246080347240821 [12:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166395&fm=246080347240821&tin=02508201610067®Number=0000000000091764&sum=40006 [12:56:20]written 0, free lines is 4095 [12:56:20]OFD Sender: Processing packet 166395 [packets to send 48, broken 47] [12:56:20]ProducePacketName [12:56:20]name=ofd_packets/00166395 [12:56:20]OFD Sender: To server: pG, [12:56:20]CommunicateWithHost lk.salyk.kg:30040 [12:56:20]ConnectInit lk.salyk.kg [12:56:20]Connected sock=10 [12:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 E1 07 01 3F CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 F2 A0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 89 02 00 35 04 06 00 DF CF 0B AE F9 75 12 6D F6 2C 81 80 20 78 [12:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 E1 47 00 B0 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 89 02 00 F4 03 04 00 5D 47 17 67 B6 04 01 00 00 9F F8 74 2B 9E 42 04 B2 [12:56:20]CommunicateWithHost err = 0 [12:56:20]CheckOFDResponse [12:56:20]1017 (14) - 77093643461234 [12:56:20]1041 (16) - 0000000000871759 [12:56:20]1040 (4) - 166395 [12:56:20]1012 (4) - 22.10.2024 06:34 [12:56:20]1206 (1) - 0 [12:56:20]OFD Sender: Remove packet 166395 [12:56:20]ProducePacketName [12:56:20]name=ofd_packets/00166395 [12:56:20]NVStorageDeleteData [12:56:20]Write to MH i2c: 01 00 00 0C 0B 17 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 07 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 07 00 0C 0B 00 00 00 00 00 DE 0C 08 [12:56:20]RasterBufferAndPrint [12:56:20]line [12:56:20]line [12:56:20]line [12:56:20]line [12:56:20]line [12:56:20]written 0, free lines is 3300 [12:56:20]MH_Cut [12:56:20]Write to MH i2c: D1 01 00 13 0B 01 F0 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: D1 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: D1 01 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: D1 01 00 13 0B 00 EF [12:56:20]Write to MH i2c: 01 00 00 14 0B 1F [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]OFD Sender: No OFD packet to send [12:56:21]*** Cut start [12:56:21]*** Partial cut [12:56:21]*** CUTSNS_PIN = 1 [12:56:21]*** CUTSNS_PIN = 0 [12:56:21]*** Brake cut motor [12:56:21]Read from MH i2c: 01 [12:56:21]MH_I2C_Read... [12:56:21]*** Stop cut motor [12:56:21]*** Cut end [12:56:21]Read from MH i2c: 01 07 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 FF 0F 34 [12:56:21]process_action close_receipt done [12:56:21]requested_data is exist [12:56:21]produce_requested_data [12:56:21]requested_item fm.sn is exist - process it [12:56:21]wFMCommunicate request_size=4 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 11 00 00 [12:56:21]Write to MH i2c: E2 08 00 15 0B 80 11 00 00 00 00 00 00 9A [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 17 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 17 00 15 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [12:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:56:21]wFMCommunicate OK [12:56:21]requested_item fd.num is exist - process it [12:56:21]SAM_PROTO_GetFieldsCounters [12:56:21]wFMCommunicate request_size=4 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 13 00 00 [12:56:21]Write to MH i2c: E2 08 00 16 0B 80 13 00 00 00 00 00 00 9D [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 62 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 62 00 16 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_GetFieldsCounters done [12:56:22]requested_item shift.num is exist - process it [12:56:22]requested_item shift.opened is exist - process it [12:56:22]req_shift_opened [12:56:22]FM_GetShiftState [12:56:22]SAM_PROTO_GetShiftState [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 13 01 00 [12:56:22]Write to MH i2c: E2 08 00 17 0B 80 13 01 00 00 00 00 00 9F [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 17 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F2 [12:56:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [12:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_GetShiftState done [12:56:22]FM_GetShiftState done [12:56:22]req_shift_opened done [12:56:22]requested_item shift.open_date is exist - process it [12:56:22]req_shift_open_date [12:56:22]req_shift_open_date done [12:56:22]produce_requested_data done [12:56:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166395,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [12:56:22]process_action_free close_receipt [12:56:22]json_value_free [12:56:22]json_value_free done [12:56:22]process_json_proto returns [12:56:22]Send response to host [12:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166395,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [12:56:22]free response buf [12:56:22]execute_script done [12:56:22]execute_script returns [12:56:22]free content buf [12:56:22]Sock 7.Close socket [12:56:22]Sock 7.Thread stoped [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:32]accept exits with 9 [13:05:32]New connection [13:05:32]New thread 3067637092 created [13:05:32]Thread 3067493732 joined [13:05:32]Waiting for new connection... [13:05:32] Sock 9.Parse request [13:05:32]Sock 9.Check first char [13:05:32]Sock 9.First char is OK [13:05:32]request: POST /json_proto HTTP/1.0 [13:05:32]Method: POST [13:05:32]URL: /json_proto [13:05:32]Method is POST - this is cgi request [13:05:32]url: /json_proto [13:05:32]query_string will be loaded in cgi processing [13:05:32]execute_cgi json_proto POST (null) [13:05:32]execute_cgi path=json_proto method=POST [13:05:32]POST find Content-Length [13:05:32]Host: 172.17.53.195:8080 [13:05:32]Content-Length: 679 [13:05:32]Content-Type: application/json [13:05:32] [13:05:32]POST finish read [13:05:32]Found Content-Length = 679 [13:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:32]execute_script... [13:05:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:32]POST & json_proto [13:05:32]process_json_proto [13:05:32]json parsed OK: [13:05:32]protocol is kg_v1.0 [13:05:32]action value=close_receipt [13:05:32]process_action close_receipt [13:05:32]cmd_close_receipt [13:05:32]MH_GetDate [13:05:32]Write to MH i2c: F0 00 00 18 0B 12 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: F0 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: F0 09 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: F0 09 00 18 0B 00 1D A3 17 67 21 48 4A 65 71 [13:05:32]GetLastDocTimeStamp 1729601778 [13:05:32]current date 1729602333 [13:05:32]FM_GetShiftState [13:05:32]SAM_PROTO_GetShiftState [13:05:32]wFMCommunicate request_size=4 [13:05:32]MH_SAM_APDU [13:05:32]CAPDU: 80 13 01 00 [13:05:32]Write to MH i2c: E2 08 00 19 0B 80 13 01 00 00 00 00 00 A1 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:32]Read from MH i2c: E2 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 0E 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 0E 00 19 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F4 [13:05:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:05:32]wFMCommunicate OK [13:05:32]SAM_PROTO_GetShiftState done [13:05:32]FM_GetShiftState done [13:05:32]opened in 1729557463 [13:05:32]opened+sec_in_day 1729643863 [13:05:32]quantity*price = 150037 [13:05:32]sum+1 = 150039 [13:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 151 22.10.2024 13:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166396 ФПД: 126360542073087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166396&fm=126360542073087&tin=02508201610067®Number=0000000000091764&sum=150000 [13:05:33]StoreToDocumentArchive [13:05:33]shift 536 fd 166396 [13:05:33]save to /storage/0536/doc_00166396 [13:05:33]save last doc name /storage/0536/doc_00166396 to /storage/kkm_last_doc_name [13:05:33]save OK [13:05:33]Clear old archive folders... [13:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:05:33]tlvbuf is 00A2E8A0 [13:05:33]SAM_PROTO_ClearQueue [13:05:33]wFMCommunicate request_size=4 [13:05:33]MH_SAM_APDU [13:05:33]CAPDU: 80 09 00 00 [13:05:33]Write to MH i2c: E2 08 00 26 0B 80 09 00 00 00 00 00 00 A3 [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:33]Read from MH i2c: E2 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 03 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [13:05:33]RAPDU: 90 00 [13:05:33]wFMCommunicate OK [13:05:33]SAM_PROTO_ClearQueue done [13:05:33]KKMCreateOFDPacket [13:05:33]OFDProtocolAddRootSTLVToBuf [13:05:33]FM_MakeSignedData [13:05:33]FM_MakeSignedData [13:05:33]SAM_PROTO_SignData [13:05:33]wFMCommunicate request_size=4 [13:05:33]MH_SAM_APDU [13:05:33]CAPDU: 80 0D 01 02 [13:05:33]Write to MH i2c: E2 08 00 27 0B 80 0D 01 02 00 00 00 00 AB [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [13:05:34]RAPDU: 90 00 [13:05:34]wFMCommunicate OK [13:05:34]wFMCommunicate request_size=255 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 1D A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 89 02 00 35 04 06 00 72 EC 9B 39 [13:05:34]Write to MH i2c: E2 02 01 28 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 1D A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 89 02 00 35 04 06 00 72 EC 9B 39 00 00 56 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [13:05:34]RAPDU: 90 00 [13:05:34]wFMCommunicate OK [13:05:34]wFMCommunicate request_size=7 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 0D 02 02 02 50 FF [13:05:34]Write to MH i2c: E2 0A 00 29 0B 80 0D 02 02 02 00 50 FF 00 00 01 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 03 00 29 0B 00 90 00 A8 [13:05:34]RAPDU: 90 00 [13:05:34]wFMCommunicate OK [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 0D 03 02 [13:05:34]Write to MH i2c: E2 08 00 2A 0B 80 0D 03 02 00 00 00 00 B0 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0B 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0B 00 2A 0B 00 F1 7B 55 F0 98 6A E8 C6 90 00 12 [13:05:34]RAPDU: F1 7B 55 F0 98 6A E8 C6 90 00 [13:05:34]wFMCommunicate OK [13:05:34]SAM_PROTO_SignData done [13:05:34]FM_MakeSignedData done [13:05:34]CreateOFDProtocolMessage [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 11 00 00 [13:05:34]Write to MH i2c: E2 08 00 2B 0B 80 11 00 00 00 00 00 00 B0 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 17 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 17 00 2B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [13:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:34]wFMCommunicate OK [13:05:34]CreateOFDProtocolMessage done [13:05:34]OFDSenderStorePacket 166396 [13:05:34]StoreOFDPacket docnum=166396 [13:05:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 31 AB 04 01 90 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 1D A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 89 02 00 35 04 06 00 72 EC 9B 39 50 FF F1 7B 55 F0 98 6A E8 C6 [13:05:34]CheckFolder [13:05:34]dirname=/storage/ofd_packets [13:05:34]CheckFolder done [13:05:34]ProducePacketName [13:05:34]name=ofd_packets/00166396 [13:05:34]NVStorageSaveData ofd_packets/00166396 [13:05:34]File name is /storage/ofd_packets/00166396 [13:05:34]Write 298 bytes [13:05:34]NVStorageSaveData done [13:05:34]OFDSenderStorePacket done [13:05:34]KKMCreateOFDPacket done [13:05:34]NVStorageSaveData kkm_last_timestamp [13:05:34]File name is /storage/kkm_last_timestamp [13:05:34]Write 4 bytes [13:05:34]NVStorageSaveData done [13:05:34]ExternCall_PrintAddStr [13:05:34]wPrintStart [13:05:34]Write to MH i2c: 01 00 00 2C 0B 37 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: 01 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: 01 07 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 FF 0F 4C [13:05:34]RasterBufferAndPrint [13:05:34]line Счет N : (1)220974 [13:05:34]line ИНН: 02508201610067 [13:05:34]line Контрольно-Кассовый Чек [13:05:34]line ПРОДАЖА [13:05:34]line ТРК (МРК, ГНК) : 11 [13:05:34]line Товар: 2710194210 [13:05:34]line ДТ-К-5 [13:05:34]line 19.690 * 76.20 [13:05:34]line = 1500.38 [13:05:34]line НДС 12% НСП 1% [13:05:34]line > о реализуемом товаре [13:05:34]line ОКРУГЛЕНИЕ: -0.38 [13:05:34]line ИТОГО: 1500.00 [13:05:34]line Внесено: 1500.00 [13:05:34]line СДАЧА: 0.00 [13:05:34]line НСП 1% : 13.28 [13:05:34]line НДС 12% : 159.33 [13:05:34]line Наличными: 1500.00 [13:05:34]line Безнал.: 0.00 [13:05:34]line Место: АЗС № 161 "Партнер Нефть" [13:05:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:05:34]line СНО: Общий режим [13:05:34]line Чек 151 22.10.2024 13:05 [13:05:34]line Смена: 536 ФФД: 1.0 [13:05:34]line ЗНМ: 0300000104 [13:05:34]line РНМ: 0000000000091764 [13:05:34]line Версия ККМ: 001 [13:05:34]line ФМ: 0000000000871759 [13:05:34]line ФД: 166396 [13:05:34]line ФПД: 126360542073087 [13:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166396&fm=126360542073087&tin=02508201610067®Number=0000000000091764&sum=150000 [13:05:34]OFD Sender: Processing packet 166396 [packets to send 48, broken 47] [13:05:34]ProducePacketName [13:05:34]name=ofd_packets/00166396 [13:05:34]OFD Sender: To server: pG, [13:05:34]CommunicateWithHost lk.salyk.kg:30040 [13:05:34]ConnectInit lk.salyk.kg [13:05:34]written 0, free lines is 4095 [13:05:34]Connected sock=10 [13:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 31 AB 04 01 90 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 1D A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 89 02 00 35 04 06 00 72 EC 9B 39 50 FF F1 7B 55 F0 98 6A E8 C6 [13:05:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D AB 47 00 F5 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 89 02 00 F4 03 04 00 88 49 17 67 B6 04 01 00 00 43 D7 2E 4D 3A DA 0E 3D [13:05:35]CommunicateWithHost err = 0 [13:05:35]CheckOFDResponse [13:05:35]1017 (14) - 77093643461234 [13:05:35]1041 (16) - 0000000000871759 [13:05:35]1040 (4) - 166396 [13:05:35]1012 (4) - 22.10.2024 06:43 [13:05:35]1206 (1) - 0 [13:05:35]OFD Sender: Remove packet 166396 [13:05:35]ProducePacketName [13:05:35]name=ofd_packets/00166396 [13:05:35]NVStorageDeleteData [13:05:35]Write to MH i2c: 01 00 00 57 0B 62 [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: 01 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: 01 07 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: 01 07 00 57 0B 00 00 00 00 00 D4 0C 49 [13:05:35]RasterBufferAndPrint [13:05:35]line [13:05:35]line [13:05:35]line [13:05:35]line [13:05:35]line [13:05:35]written 0, free lines is 3289 [13:05:35]MH_Cut [13:05:35]Write to MH i2c: D1 01 00 5E 0B 01 3B [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: D1 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: D1 01 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: D1 01 00 5E 0B 00 3A [13:05:35]Write to MH i2c: 01 00 00 5F 0B 6A [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]OFD Sender: No OFD packet to send [13:05:36]*** Cut start [13:05:36]*** Partial cut [13:05:36]*** CUTSNS_PIN = 1 [13:05:36]*** CUTSNS_PIN = 0 [13:05:36]*** Brake cut motor [13:05:36]Read from MH i2c: 01 [13:05:36]MH_I2C_Read... [13:05:36]*** Stop cut motor [13:05:36]*** Cut end [13:05:36]Read from MH i2c: 01 07 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 5F 0B 00 00 00 00 00 FF 0F 7F [13:05:36]process_action close_receipt done [13:05:36]requested_data is exist [13:05:36]produce_requested_data [13:05:36]requested_item fm.sn is exist - process it [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 11 00 00 [13:05:36]Write to MH i2c: E2 08 00 60 0B 80 11 00 00 00 00 00 00 E5 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 60 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [13:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:36]wFMCommunicate OK [13:05:36]requested_item fd.num is exist - process it [13:05:36]SAM_PROTO_GetFieldsCounters [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 13 00 00 [13:05:36]Write to MH i2c: E2 08 00 61 0B 80 13 00 00 00 00 00 00 E8 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 62 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 62 00 61 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [13:05:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_GetFieldsCounters done [13:05:36]requested_item shift.num is exist - process it [13:05:36]requested_item shift.opened is exist - process it [13:05:36]req_shift_opened [13:05:36]FM_GetShiftState [13:05:36]SAM_PROTO_GetShiftState [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 13 01 00 [13:05:36]Write to MH i2c: E2 08 00 62 0B 80 13 01 00 00 00 00 00 EA [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0E 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0E 00 62 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [13:05:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_GetShiftState done [13:05:36]FM_GetShiftState done [13:05:36]req_shift_opened done [13:05:36]requested_item shift.open_date is exist - process it [13:05:36]req_shift_open_date [13:05:36]req_shift_open_date done [13:05:36]produce_requested_data done [13:05:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166396,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:05:36]process_action_free close_receipt [13:05:36]json_value_free [13:05:36]json_value_free done [13:05:36]process_json_proto returns [13:05:36]Send response to host [13:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166396,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:05:36]free response buf [13:05:36]execute_script done [13:05:36]execute_script returns [13:05:36]free content buf [13:05:36]Sock 9.Close socket [13:05:36]Sock 9.Thread stoped [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:54]accept exits with 7 [13:07:54]New connection [13:07:54]New thread 3067493732 created [13:07:54]Thread 3067637092 joined [13:07:54]Waiting for new connection... [13:07:54] Sock 7.Parse request [13:07:54]Sock 7.Check first char [13:07:54]Sock 7.First char is OK [13:07:54]request: POST /json_proto HTTP/1.0 [13:07:54]Method: POST [13:07:54]URL: /json_proto [13:07:54]Method is POST - this is cgi request [13:07:54]url: /json_proto [13:07:54]query_string will be loaded in cgi processing [13:07:54]execute_cgi json_proto POST (null) [13:07:54]execute_cgi path=json_proto method=POST [13:07:54]POST find Content-Length [13:07:54]Host: 172.17.53.195:8080 [13:07:54]Content-Length: 677 [13:07:54]Content-Type: application/json [13:07:54] [13:07:54]POST finish read [13:07:54]Found Content-Length = 677 [13:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:54]execute_script... [13:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:54]POST & json_proto [13:07:54]process_json_proto [13:07:54]json parsed OK: [13:07:54]protocol is kg_v1.0 [13:07:54]action value=close_receipt [13:07:54]process_action close_receipt [13:07:54]cmd_close_receipt [13:07:54]MH_GetDate [13:07:54]Write to MH i2c: F0 00 00 63 0B 5D [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: F0 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: F0 09 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: F0 09 00 63 0B 00 AB A3 17 67 21 48 4A 65 4A [13:07:54]GetLastDocTimeStamp 1729602333 [13:07:54]current date 1729602475 [13:07:54]FM_GetShiftState [13:07:54]SAM_PROTO_GetShiftState [13:07:54]wFMCommunicate request_size=4 [13:07:54]MH_SAM_APDU [13:07:54]CAPDU: 80 13 01 00 [13:07:54]Write to MH i2c: E2 08 00 64 0B 80 13 01 00 00 00 00 00 EC [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0E 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 0E 00 64 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3F [13:07:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:07:54]wFMCommunicate OK [13:07:54]SAM_PROTO_GetShiftState done [13:07:54]FM_GetShiftState done [13:07:54]opened in 1729557463 [13:07:54]opened+sec_in_day 1729643863 [13:07:54]quantity*price = 70044 [13:07:54]sum+1 = 70046 [13:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 152 22.10.2024 13:07 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166397 ФПД: 255910027865469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130755&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166397&fm=255910027865469&tin=02508201610067®Number=0000000000091764&sum=70000 [13:07:56]StoreToDocumentArchive [13:07:56]shift 536 fd 166397 [13:07:56]save to /storage/0536/doc_00166397 [13:07:56]save last doc name /storage/0536/doc_00166397 to /storage/kkm_last_doc_name [13:07:56]save OK [13:07:56]Clear old archive folders... [13:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:56]tlvbuf is 00A14440 [13:07:56]SAM_PROTO_ClearQueue [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 09 00 00 [13:07:56]Write to MH i2c: E2 08 00 71 0B 80 09 00 00 00 00 00 00 EE [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [13:07:56]RAPDU: 90 00 [13:07:56]wFMCommunicate OK [13:07:56]SAM_PROTO_ClearQueue done [13:07:56]KKMCreateOFDPacket [13:07:56]OFDProtocolAddRootSTLVToBuf [13:07:56]FM_MakeSignedData [13:07:56]FM_MakeSignedData [13:07:56]SAM_PROTO_SignData [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 0D 01 02 [13:07:56]Write to MH i2c: E2 08 00 72 0B 80 0D 01 02 00 00 00 00 F6 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [13:07:56]RAPDU: 90 00 [13:07:56]wFMCommunicate OK [13:07:56]wFMCommunicate request_size=255 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AB A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 89 02 00 35 04 06 00 E8 [13:07:56]Write to MH i2c: E2 02 01 73 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AB A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 89 02 00 35 04 06 00 E8 00 00 61 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [13:07:56]RAPDU: 90 00 [13:07:56]wFMCommunicate OK [13:07:56]wFMCommunicate request_size=10 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 0D 02 02 05 BF B2 4E 2D 7D [13:07:56]Write to MH i2c: E2 0D 00 74 0B 80 0D 02 02 05 00 BF B2 4E 2D 7D 00 00 6C [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [13:07:56]RAPDU: 90 00 [13:07:56]wFMCommunicate OK [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 0D 03 02 [13:07:56]Write to MH i2c: E2 08 00 75 0B 80 0D 03 02 00 00 00 00 FB [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 0B 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 0B 00 75 0B 00 65 D4 4F 3B 57 81 B3 E9 90 00 33 [13:07:56]RAPDU: 65 D4 4F 3B 57 81 B3 E9 90 00 [13:07:56]wFMCommunicate OK [13:07:56]SAM_PROTO_SignData done [13:07:56]FM_MakeSignedData done [13:07:56]CreateOFDProtocolMessage [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 11 00 00 [13:07:56]Write to MH i2c: E2 08 00 76 0B 80 11 00 00 00 00 00 00 FB [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 17 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 17 00 76 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [13:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:56]wFMCommunicate OK [13:07:56]CreateOFDProtocolMessage done [13:07:56]OFDSenderStorePacket 166397 [13:07:56]StoreOFDPacket docnum=166397 [13:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 00 07 01 16 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AB A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 89 02 00 35 04 06 00 E8 BF B2 4E 2D 7D 65 D4 4F 3B 57 81 B3 E9 [13:07:56]CheckFolder [13:07:56]dirname=/storage/ofd_packets [13:07:56]CheckFolder done [13:07:56]ProducePacketName [13:07:56]name=ofd_packets/00166397 [13:07:56]NVStorageSaveData ofd_packets/00166397 [13:07:56]File name is /storage/ofd_packets/00166397 [13:07:56]Write 301 bytes [13:07:56]NVStorageSaveData done [13:07:56]OFDSenderStorePacket done [13:07:56]KKMCreateOFDPacket done [13:07:56]NVStorageSaveData kkm_last_timestamp [13:07:56]File name is /storage/kkm_last_timestamp [13:07:56]Write 4 bytes [13:07:56]NVStorageSaveData done [13:07:56]ExternCall_PrintAddStr [13:07:56]wPrintStart [13:07:56]Write to MH i2c: 01 00 00 77 0B 82 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: 01 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: 01 07 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 FF 0F 97 [13:07:56]RasterBufferAndPrint [13:07:56]line Счет N : (1)220975 [13:07:56]line ИНН: 02508201610067 [13:07:56]line Контрольно-Кассовый Чек [13:07:56]line ПРОДАЖА [13:07:56]line ТРК (МРК, ГНК) : 24 [13:07:56]line Товар: 2710124500 [13:07:56]line Аи-95-К-5 [13:07:56]line 9.440 * 74.20 [13:07:56]line = 700.45 [13:07:56]line НДС 12% НСП 1% [13:07:56]line > о реализуемом товаре [13:07:56]line ОКРУГЛЕНИЕ: -0.45 [13:07:56]line ИТОГО: 700.00 [13:07:56]line Внесено: 700.00 [13:07:56]line СДАЧА: 0.00 [13:07:56]line НСП 1% : 6.20 [13:07:56]line НДС 12% : 74.38 [13:07:56]line Наличными: 700.00 [13:07:56]line Безнал.: 0.00 [13:07:56]line Место: АЗС № 161 "Партнер Нефть" [13:07:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:07:56]line СНО: Общий режим [13:07:56]line Чек 152 22.10.2024 13:07 [13:07:56]line Смена: 536 ФФД: 1.0 [13:07:56]line ЗНМ: 0300000104 [13:07:56]line РНМ: 0000000000091764 [13:07:56]line Версия ККМ: 001 [13:07:56]line ФМ: 0000000000871759 [13:07:56]line ФД: 166397 [13:07:56]line ФПД: 255910027865469 [13:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130755&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166397&fm=255910027865469&tin=02508201610067®Number=0000000000091764&sum=70000 [13:07:56]OFD Sender: Processing packet 166397 [packets to send 48, broken 47] [13:07:56]ProducePacketName [13:07:56]name=ofd_packets/00166397 [13:07:56]OFD Sender: To server: pG, [13:07:56]CommunicateWithHost lk.salyk.kg:30040 [13:07:56]ConnectInit lk.salyk.kg [13:07:56]written 0, free lines is 4095 [13:07:57]Connected sock=10 [13:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 00 07 01 16 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AB A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 89 02 00 35 04 06 00 E8 BF B2 4E 2D 7D 65 D4 4F 3B 57 81 B3 E9 [13:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF AF 47 00 86 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 89 02 00 F4 03 04 00 16 4A 17 67 B6 04 01 00 00 EA C7 09 63 39 0E 32 78 [13:07:57]CommunicateWithHost err = 0 [13:07:57]CheckOFDResponse [13:07:57]1017 (14) - 77093643461234 [13:07:57]1041 (16) - 0000000000871759 [13:07:57]1040 (4) - 166397 [13:07:57]1012 (4) - 22.10.2024 06:45 [13:07:57]1206 (1) - 0 [13:07:57]OFD Sender: Remove packet 166397 [13:07:57]ProducePacketName [13:07:57]name=ofd_packets/00166397 [13:07:57]NVStorageDeleteData [13:07:57]Write to MH i2c: 01 00 00 A2 0B AD [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 A2 0B 00 00 00 00 00 D4 0C 94 [13:07:57]RasterBufferAndPrint [13:07:57]line [13:07:57]line [13:07:57]line [13:07:57]line [13:07:57]line [13:07:57]written 0, free lines is 3292 [13:07:57]MH_Cut [13:07:57]Write to MH i2c: D1 01 00 A9 0B 01 86 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: D1 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: D1 01 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: D1 01 00 A9 0B 00 85 [13:07:57]Write to MH i2c: 01 00 00 AA 0B B5 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]OFD Sender: No OFD packet to send [13:07:58]*** Cut start [13:07:58]*** Partial cut [13:07:58]*** CUTSNS_PIN = 1 [13:07:58]*** CUTSNS_PIN = 0 [13:07:58]*** Brake cut motor [13:07:58]Read from MH i2c: 01 [13:07:58]MH_I2C_Read... [13:07:58]*** Stop cut motor [13:07:58]*** Cut end [13:07:58]Read from MH i2c: 01 07 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 FF 0F CA [13:07:58]process_action close_receipt done [13:07:58]requested_data is exist [13:07:58]produce_requested_data [13:07:58]requested_item fm.sn is exist - process it [13:07:58]wFMCommunicate request_size=4 [13:07:58]MH_SAM_APDU [13:07:58]CAPDU: 80 11 00 00 [13:07:58]Write to MH i2c: E2 08 00 AB 0B 80 11 00 00 00 00 00 00 30 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:58]Read from MH i2c: E2 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: E2 17 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: E2 17 00 AB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [13:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:58]wFMCommunicate OK [13:07:58]requested_item fd.num is exist - process it [13:07:58]SAM_PROTO_GetFieldsCounters [13:07:58]wFMCommunicate request_size=4 [13:07:58]MH_SAM_APDU [13:07:58]CAPDU: 80 13 00 00 [13:07:58]Write to MH i2c: E2 08 00 AC 0B 80 13 00 00 00 00 00 00 33 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:59]Read from MH i2c: E2 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 62 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 62 00 AC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [13:07:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:59]wFMCommunicate OK [13:07:59]SAM_PROTO_GetFieldsCounters done [13:07:59]requested_item shift.num is exist - process it [13:07:59]requested_item shift.opened is exist - process it [13:07:59]req_shift_opened [13:07:59]FM_GetShiftState [13:07:59]SAM_PROTO_GetShiftState [13:07:59]wFMCommunicate request_size=4 [13:07:59]MH_SAM_APDU [13:07:59]CAPDU: 80 13 01 00 [13:07:59]Write to MH i2c: E2 08 00 AD 0B 80 13 01 00 00 00 00 00 35 [13:07:59]Write i2c OK [13:07:59]MH_I2C_Read... [13:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:59]Read from MH i2c: E2 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 AD 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 88 [13:07:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:07:59]wFMCommunicate OK [13:07:59]SAM_PROTO_GetShiftState done [13:07:59]FM_GetShiftState done [13:07:59]req_shift_opened done [13:07:59]requested_item shift.open_date is exist - process it [13:07:59]req_shift_open_date [13:07:59]req_shift_open_date done [13:07:59]produce_requested_data done [13:07:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166397,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:07:59]process_action_free close_receipt [13:07:59]json_value_free [13:07:59]json_value_free done [13:07:59]process_json_proto returns [13:07:59]Send response to host [13:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166397,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:07:59]free response buf [13:07:59]execute_script done [13:07:59]execute_script returns [13:07:59]free content buf [13:07:59]Sock 7.Close socket [13:07:59]Sock 7.Thread stoped [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:55]accept exits with 9 [13:08:55]New connection [13:08:55]New thread 3067637092 created [13:08:55]Thread 3067493732 joined [13:08:55]Waiting for new connection... [13:08:55] Sock 9.Parse request [13:08:55]Sock 9.Check first char [13:08:55]Sock 9.First char is OK [13:08:55]request: POST /json_proto HTTP/1.0 [13:08:55]Method: POST [13:08:55]URL: /json_proto [13:08:55]Method is POST - this is cgi request [13:08:55]url: /json_proto [13:08:55]query_string will be loaded in cgi processing [13:08:55]execute_cgi json_proto POST (null) [13:08:55]execute_cgi path=json_proto method=POST [13:08:55]POST find Content-Length [13:08:55]Host: 172.17.53.195:8080 [13:08:55]Content-Length: 677 [13:08:55]Content-Type: application/json [13:08:55] [13:08:55]POST finish read [13:08:55]Found Content-Length = 677 [13:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:55]execute_script... [13:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:55]POST & json_proto [13:08:55]process_json_proto [13:08:55]json parsed OK: [13:08:55]protocol is kg_v1.0 [13:08:55]action value=close_receipt [13:08:55]process_action close_receipt [13:08:55]cmd_close_receipt [13:08:55]MH_GetDate [13:08:55]Write to MH i2c: F0 00 00 AE 0B A8 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: F0 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: F0 09 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: F0 09 00 AE 0B 00 E8 A3 17 67 21 48 4A 65 D2 [13:08:55]GetLastDocTimeStamp 1729602475 [13:08:55]current date 1729602536 [13:08:55]FM_GetShiftState [13:08:55]SAM_PROTO_GetShiftState [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 13 01 00 [13:08:55]Write to MH i2c: E2 08 00 AF 0B 80 13 01 00 00 00 00 00 37 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:55]Read from MH i2c: E2 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 0E 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 0E 00 AF 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8A [13:08:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:08:55]wFMCommunicate OK [13:08:55]SAM_PROTO_GetShiftState done [13:08:55]FM_GetShiftState done [13:08:55]opened in 1729557463 [13:08:55]opened+sec_in_day 1729643863 [13:08:55]quantity*price = 49974 [13:08:55]sum+1 = 49975 [13:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 153 22.10.2024 13:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166398 ФПД: 163516807272071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166398&fm=163516807272071&tin=02508201610067®Number=0000000000091764&sum=49900 [13:08:56]StoreToDocumentArchive [13:08:56]shift 536 fd 166398 [13:08:56]save to /storage/0536/doc_00166398 [13:08:56]save last doc name /storage/0536/doc_00166398 to /storage/kkm_last_doc_name [13:08:56]save OK [13:08:56]Clear old archive folders... [13:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:57]tlvbuf is 00A0D5F0 [13:08:57]SAM_PROTO_ClearQueue [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 09 00 00 [13:08:57]Write to MH i2c: E2 08 00 BC 0B 80 09 00 00 00 00 00 00 39 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]SAM_PROTO_ClearQueue done [13:08:57]KKMCreateOFDPacket [13:08:57]OFDProtocolAddRootSTLVToBuf [13:08:57]FM_MakeSignedData [13:08:57]FM_MakeSignedData [13:08:57]SAM_PROTO_SignData [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 01 02 [13:08:57]Write to MH i2c: E2 08 00 BD 0B 80 0D 01 02 00 00 00 00 41 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=255 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E8 A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 89 02 00 35 04 06 00 94 [13:08:57]Write to MH i2c: E2 02 01 BE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E8 A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 89 02 00 35 04 06 00 94 00 00 91 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=10 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 02 02 05 B7 B9 36 56 87 [13:08:57]Write to MH i2c: E2 0D 00 BF 0B 80 0D 02 02 05 00 B7 B9 36 56 87 00 00 D1 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 03 02 [13:08:57]Write to MH i2c: E2 08 00 C0 0B 80 0D 03 02 00 00 00 00 46 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 0B 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 0B 00 C0 0B 00 6C E6 DB E6 1B AE 3A F8 90 00 55 [13:08:57]RAPDU: 6C E6 DB E6 1B AE 3A F8 90 00 [13:08:57]wFMCommunicate OK [13:08:57]SAM_PROTO_SignData done [13:08:57]FM_MakeSignedData done [13:08:57]CreateOFDProtocolMessage [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 11 00 00 [13:08:57]Write to MH i2c: E2 08 00 C1 0B 80 11 00 00 00 00 00 00 46 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 17 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 17 00 C1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [13:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:57]wFMCommunicate OK [13:08:57]CreateOFDProtocolMessage done [13:08:57]OFDSenderStorePacket 166398 [13:08:57]StoreOFDPacket docnum=166398 [13:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 00 07 01 6F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E8 A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 89 02 00 35 04 06 00 94 B7 B9 36 56 87 6C E6 DB E6 1B AE 3A F8 [13:08:57]CheckFolder [13:08:57]dirname=/storage/ofd_packets [13:08:57]CheckFolder done [13:08:57]ProducePacketName [13:08:57]name=ofd_packets/00166398 [13:08:57]NVStorageSaveData ofd_packets/00166398 [13:08:57]File name is /storage/ofd_packets/00166398 [13:08:57]Write 301 bytes [13:08:57]NVStorageSaveData done [13:08:57]OFDSenderStorePacket done [13:08:57]KKMCreateOFDPacket done [13:08:57]NVStorageSaveData kkm_last_timestamp [13:08:57]File name is /storage/kkm_last_timestamp [13:08:57]Write 4 bytes [13:08:57]NVStorageSaveData done [13:08:57]ExternCall_PrintAddStr [13:08:57]wPrintStart [13:08:57]Write to MH i2c: 01 00 00 C2 0B CD [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 C2 0B 00 00 00 00 00 FF 0F E2 [13:08:57]RasterBufferAndPrint [13:08:57]line Счет N : (1)220977 [13:08:57]line ИНН: 02508201610067 [13:08:57]line Контрольно-Кассовый Чек [13:08:57]line ПРОДАЖА [13:08:57]line ТРК (МРК, ГНК) : 43 [13:08:57]line Товар: 2710124130 [13:08:57]line Аи-92-К-5 [13:08:57]line 7.470 * 66.90 [13:08:57]line = 499.74 [13:08:57]line НДС 12% НСП 1% [13:08:57]line > о реализуемом товаре [13:08:57]line ОКРУГЛЕНИЕ: -0.74 [13:08:57]line ИТОГО: 499.00 [13:08:57]line Внесено: 500.00 [13:08:57]line СДАЧА: 1.00 [13:08:57]line НСП 1% : 4.42 [13:08:57]line НДС 12% : 53.07 [13:08:57]line Наличными: 499.00 [13:08:57]line Безнал.: 0.00 [13:08:57]line Место: АЗС № 161 "Партнер Нефть" [13:08:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:08:57]line СНО: Общий режим [13:08:57]line Чек 153 22.10.2024 13:08 [13:08:57]line Смена: 536 ФФД: 1.0 [13:08:57]line ЗНМ: 0300000104 [13:08:57]line РНМ: 0000000000091764 [13:08:57]line Версия ККМ: 001 [13:08:57]line ФМ: 0000000000871759 [13:08:57]line ФД: 166398 [13:08:57]line ФПД: 163516807272071 [13:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166398&fm=163516807272071&tin=02508201610067®Number=0000000000091764&sum=49900 [13:08:57]OFD Sender: Processing packet 166398 [packets to send 48, broken 47] [13:08:57]ProducePacketName [13:08:57]name=ofd_packets/00166398 [13:08:57]OFD Sender: To server: pG, [13:08:57]CommunicateWithHost lk.salyk.kg:30040 [13:08:57]ConnectInit lk.salyk.kg [13:08:57]written 0, free lines is 4095 [13:08:57]Connected sock=10 [13:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 00 07 01 6F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E8 A3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 89 02 00 35 04 06 00 94 B7 B9 36 56 87 6C E6 DB E6 1B AE 3A F8 [13:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AE A2 47 00 2B FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 89 02 00 F4 03 04 00 53 4A 17 67 B6 04 01 00 00 40 A9 4D 92 FE 3B FA 11 [13:08:58]CommunicateWithHost err = 0 [13:08:58]CheckOFDResponse [13:08:58]1017 (14) - 77093643461234 [13:08:58]1041 (16) - 0000000000871759 [13:08:58]1040 (4) - 166398 [13:08:58]1012 (4) - 22.10.2024 06:46 [13:08:58]1206 (1) - 0 [13:08:58]OFD Sender: Remove packet 166398 [13:08:58]ProducePacketName [13:08:58]name=ofd_packets/00166398 [13:08:58]NVStorageDeleteData [13:08:58]Write to MH i2c: 01 00 00 ED 0B F8 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 E0 0C EB [13:08:58]RasterBufferAndPrint [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]written 0, free lines is 3302 [13:08:58]MH_Cut [13:08:58]Write to MH i2c: D1 01 00 F4 0B 01 D1 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 01 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 01 00 F4 0B 00 D0 [13:08:58]Write to MH i2c: 01 00 00 F5 0B 00 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]OFD Sender: No OFD packet to send [13:08:59]*** Cut start [13:08:59]*** Partial cut [13:08:59]*** CUTSNS_PIN = 1 [13:08:59]*** CUTSNS_PIN = 0 [13:08:59]*** Brake cut motor [13:08:59]Read from MH i2c: 01 [13:08:59]MH_I2C_Read... [13:08:59]*** Stop cut motor [13:08:59]*** Cut end [13:08:59]Read from MH i2c: 01 07 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 FF 0F 15 [13:08:59]process_action close_receipt done [13:08:59]requested_data is exist [13:08:59]produce_requested_data [13:08:59]requested_item fm.sn is exist - process it [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 11 00 00 [13:08:59]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 17 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [13:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:59]wFMCommunicate OK [13:08:59]requested_item fd.num is exist - process it [13:08:59]SAM_PROTO_GetFieldsCounters [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 13 00 00 [13:08:59]Write to MH i2c: E2 08 00 F7 0B 80 13 00 00 00 00 00 00 7E [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 62 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 62 00 F7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [13:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:59]wFMCommunicate OK [13:08:59]SAM_PROTO_GetFieldsCounters done [13:08:59]requested_item shift.num is exist - process it [13:08:59]requested_item shift.opened is exist - process it [13:08:59]req_shift_opened [13:08:59]FM_GetShiftState [13:08:59]SAM_PROTO_GetShiftState [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 13 01 00 [13:08:59]Write to MH i2c: E2 08 00 F8 0B 80 13 01 00 00 00 00 00 80 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 0E 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 0E 00 F8 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D3 [13:08:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:08:59]wFMCommunicate OK [13:08:59]SAM_PROTO_GetShiftState done [13:08:59]FM_GetShiftState done [13:08:59]req_shift_opened done [13:08:59]requested_item shift.open_date is exist - process it [13:08:59]req_shift_open_date [13:08:59]req_shift_open_date done [13:08:59]produce_requested_data done [13:08:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166398,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:08:59]process_action_free close_receipt [13:08:59]json_value_free [13:08:59]json_value_free done [13:08:59]process_json_proto returns [13:08:59]Send response to host [13:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166398,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:08:59]free response buf [13:08:59]execute_script done [13:08:59]execute_script returns [13:08:59]free content buf [13:08:59]Sock 9.Close socket [13:08:59]Sock 9.Thread stoped [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:30]accept exits with 7 [13:10:30]New connection [13:10:30]New thread 3067493732 created [13:10:30]Thread 3067637092 joined [13:10:30]Waiting for new connection... [13:10:30] Sock 7.Parse request [13:10:30]Sock 7.Check first char [13:10:30]Sock 7.First char is OK [13:10:30]request: POST /json_proto HTTP/1.0 [13:10:30]Method: POST [13:10:30]URL: /json_proto [13:10:30]Method is POST - this is cgi request [13:10:30]url: /json_proto [13:10:30]query_string will be loaded in cgi processing [13:10:30]execute_cgi json_proto POST (null) [13:10:30]execute_cgi path=json_proto method=POST [13:10:30]POST find Content-Length [13:10:30]Host: 172.17.53.195:8080 [13:10:30]Content-Length: 678 [13:10:30]Content-Type: application/json [13:10:30] [13:10:30]POST finish read [13:10:30]Found Content-Length = 678 [13:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:30]execute_script... [13:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:30]POST & json_proto [13:10:30]process_json_proto [13:10:30]json parsed OK: [13:10:30]protocol is kg_v1.0 [13:10:30]action value=close_receipt [13:10:30]process_action close_receipt [13:10:30]cmd_close_receipt [13:10:30]MH_GetDate [13:10:30]Write to MH i2c: F0 00 00 F9 0B F3 [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 09 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 09 00 F9 0B 00 46 A4 17 67 21 48 4A 65 7C [13:10:30]GetLastDocTimeStamp 1729602536 [13:10:30]current date 1729602630 [13:10:30]FM_GetShiftState [13:10:30]SAM_PROTO_GetShiftState [13:10:30]wFMCommunicate request_size=4 [13:10:30]MH_SAM_APDU [13:10:30]CAPDU: 80 13 01 00 [13:10:30]Write to MH i2c: E2 08 00 FA 0B 80 13 01 00 00 00 00 00 82 [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:30]Read from MH i2c: E2 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: E2 0E 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: E2 0E 00 FA 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D5 [13:10:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:10:30]wFMCommunicate OK [13:10:30]SAM_PROTO_GetShiftState done [13:10:30]FM_GetShiftState done [13:10:30]opened in 1729557463 [13:10:30]opened+sec_in_day 1729643863 [13:10:30]quantity*price = 81015 [13:10:30]sum+1 = 81017 [13:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.03 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 154 22.10.2024 13:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166399 ФПД: 143314827153402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166399&fm=143314827153402&tin=02508201610067®Number=0000000000091764&sum=81000 [13:10:31]StoreToDocumentArchive [13:10:31]shift 536 fd 166399 [13:10:31]save to /storage/0536/doc_00166399 [13:10:31]save last doc name /storage/0536/doc_00166399 to /storage/kkm_last_doc_name [13:10:31]save OK [13:10:31]Clear old archive folders... [13:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:31]tlvbuf is 00A14FA0 [13:10:31]SAM_PROTO_ClearQueue [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 09 00 00 [13:10:31]Write to MH i2c: E2 08 00 07 0C 80 09 00 00 00 00 00 00 85 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]SAM_PROTO_ClearQueue done [13:10:31]KKMCreateOFDPacket [13:10:31]OFDProtocolAddRootSTLVToBuf [13:10:31]FM_MakeSignedData [13:10:31]FM_MakeSignedData [13:10:31]SAM_PROTO_SignData [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 01 02 [13:10:31]Write to MH i2c: E2 08 00 08 0C 80 0D 01 02 00 00 00 00 8D [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]wFMCommunicate request_size=255 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 46 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 89 02 00 35 04 06 00 82 [13:10:31]Write to MH i2c: E2 02 01 09 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 46 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 89 02 00 35 04 06 00 82 00 00 09 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]wFMCommunicate request_size=10 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 02 02 05 58 15 5D 0F FA [13:10:31]Write to MH i2c: E2 0D 00 0A 0C 80 0D 02 02 05 00 58 15 5D 0F FA 00 00 6D [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 03 02 [13:10:31]Write to MH i2c: E2 08 00 0B 0C 80 0D 03 02 00 00 00 00 92 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 0B 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 0B 00 0B 0C 00 5E 16 E5 35 EA 17 43 FB 90 00 60 [13:10:31]RAPDU: 5E 16 E5 35 EA 17 43 FB 90 00 [13:10:31]wFMCommunicate OK [13:10:31]SAM_PROTO_SignData done [13:10:31]FM_MakeSignedData done [13:10:31]CreateOFDProtocolMessage [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 11 00 00 [13:10:31]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 17 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [13:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:10:31]wFMCommunicate OK [13:10:31]CreateOFDProtocolMessage done [13:10:31]OFDSenderStorePacket 166399 [13:10:31]StoreOFDPacket docnum=166399 [13:10:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 01 07 01 F1 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 46 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 89 02 00 35 04 06 00 82 58 15 5D 0F FA 5E 16 E5 35 EA 17 43 FB [13:10:31]CheckFolder [13:10:31]dirname=/storage/ofd_packets [13:10:31]CheckFolder done [13:10:31]ProducePacketName [13:10:31]name=ofd_packets/00166399 [13:10:31]NVStorageSaveData ofd_packets/00166399 [13:10:31]File name is /storage/ofd_packets/00166399 [13:10:31]Write 301 bytes [13:10:31]NVStorageSaveData done [13:10:31]OFDSenderStorePacket done [13:10:31]KKMCreateOFDPacket done [13:10:31]NVStorageSaveData kkm_last_timestamp [13:10:31]File name is /storage/kkm_last_timestamp [13:10:31]Write 4 bytes [13:10:31]NVStorageSaveData done [13:10:31]ExternCall_PrintAddStr [13:10:31]wPrintStart [13:10:31]Write to MH i2c: 01 00 00 0D 0C 19 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: 01 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: 01 07 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 FF 0F 2E [13:10:31]RasterBufferAndPrint [13:10:31]line Счет N : (1)220978 [13:10:31]line ИНН: 02508201610067 [13:10:31]line Контрольно-Кассовый Чек [13:10:31]line ПРОДАЖА [13:10:31]line ТРК (МРК, ГНК) : 13 [13:10:31]line Товар: 2710124130 [13:10:31]line Аи-92-К-5 [13:10:31]line 12.110 * 66.90 [13:10:31]line = 810.16 [13:10:31]line НДС 12% НСП 1% [13:10:31]line > о реализуемом товаре [13:10:31]line ОКРУГЛЕНИЕ: -0.16 [13:10:31]line ИТОГО: 810.00 [13:10:31]line Внесено: 810.00 [13:10:31]line СДАЧА: 0.00 [13:10:31]line НСП 1% : 7.17 [13:10:31]line НДС 12% : 86.03 [13:10:31]line Наличными: 810.00 [13:10:31]line Безнал.: 0.00 [13:10:31]line Место: АЗС № 161 "Партнер Нефть" [13:10:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:10:31]line СНО: Общий режим [13:10:31]line Чек 154 22.10.2024 13:10 [13:10:31]line Смена: 536 ФФД: 1.0 [13:10:31]line ЗНМ: 0300000104 [13:10:31]line РНМ: 0000000000091764 [13:10:31]line Версия ККМ: 001 [13:10:31]line ФМ: 0000000000871759 [13:10:31]line ФД: 166399 [13:10:31]line ФПД: 143314827153402 [13:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166399&fm=143314827153402&tin=02508201610067®Number=0000000000091764&sum=81000 [13:10:31]written 0, free lines is 4095 [13:10:31]OFD Sender: Processing packet 166399 [packets to send 48, broken 47] [13:10:31]ProducePacketName [13:10:31]name=ofd_packets/00166399 [13:10:31]OFD Sender: To server: pG, [13:10:31]CommunicateWithHost lk.salyk.kg:30040 [13:10:31]ConnectInit lk.salyk.kg [13:10:31]Connected sock=11 [13:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 01 07 01 F1 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 46 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 89 02 00 35 04 06 00 82 58 15 5D 0F FA 5E 16 E5 35 EA 17 43 FB [13:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F6 09 47 00 3D 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 89 02 00 F4 03 04 00 B1 4A 17 67 B6 04 01 00 00 FB C2 CC B3 ED EF 8B 3E [13:10:32]CommunicateWithHost err = 0 [13:10:32]CheckOFDResponse [13:10:32]1017 (14) - 77093643461234 [13:10:32]1041 (16) - 0000000000871759 [13:10:32]1040 (4) - 166399 [13:10:32]1012 (4) - 22.10.2024 06:48 [13:10:32]1206 (1) - 0 [13:10:32]OFD Sender: Remove packet 166399 [13:10:32]ProducePacketName [13:10:32]name=ofd_packets/00166399 [13:10:32]NVStorageDeleteData [13:10:32]Write to MH i2c: 01 00 00 38 0C 44 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 C6 0C 1D [13:10:32]RasterBufferAndPrint [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]written 0, free lines is 3276 [13:10:32]MH_Cut [13:10:32]Write to MH i2c: D1 01 00 3F 0C 01 1D [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 01 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 01 00 3F 0C 00 1C [13:10:32]Write to MH i2c: 01 00 00 40 0C 4C [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]OFD Sender: No OFD packet to send [13:10:33]*** Cut start [13:10:33]*** Partial cut [13:10:33]*** CUTSNS_PIN = 1 [13:10:33]*** CUTSNS_PIN = 0 [13:10:33]*** Brake cut motor [13:10:33]Read from MH i2c: 01 [13:10:33]MH_I2C_Read... [13:10:33]*** Stop cut motor [13:10:33]*** Cut end [13:10:33]Read from MH i2c: 01 07 00 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 FF 0F 61 [13:10:33]process_action close_receipt done [13:10:33]requested_data is exist [13:10:33]produce_requested_data [13:10:33]requested_item fm.sn is exist - process it [13:10:33]wFMCommunicate request_size=4 [13:10:33]MH_SAM_APDU [13:10:33]CAPDU: 80 11 00 00 [13:10:33]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [13:10:33]Write i2c OK [13:10:33]MH_I2C_Read... [13:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:33]Read from MH i2c: E2 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 17 00 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [13:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:10:33]wFMCommunicate OK [13:10:33]requested_item fd.num is exist - process it [13:10:33]SAM_PROTO_GetFieldsCounters [13:10:33]wFMCommunicate request_size=4 [13:10:33]MH_SAM_APDU [13:10:33]CAPDU: 80 13 00 00 [13:10:33]Write to MH i2c: E2 08 00 42 0C 80 13 00 00 00 00 00 00 CA [13:10:33]Write i2c OK [13:10:33]MH_I2C_Read... [13:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:33]Read from MH i2c: E2 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 62 00 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 62 00 42 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [13:10:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:33]wFMCommunicate OK [13:10:33]SAM_PROTO_GetFieldsCounters done [13:10:33]requested_item shift.num is exist - process it [13:10:33]requested_item shift.opened is exist - process it [13:10:33]req_shift_opened [13:10:33]FM_GetShiftState [13:10:33]SAM_PROTO_GetShiftState [13:10:33]wFMCommunicate request_size=4 [13:10:33]MH_SAM_APDU [13:10:33]CAPDU: 80 13 01 00 [13:10:33]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [13:10:33]Write i2c OK [13:10:33]MH_I2C_Read... [13:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:33]Read from MH i2c: E2 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 0E 00 [13:10:33]MH_I2C_Read... [13:10:33]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1F [13:10:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:10:33]wFMCommunicate OK [13:10:33]SAM_PROTO_GetShiftState done [13:10:33]FM_GetShiftState done [13:10:33]req_shift_opened done [13:10:33]requested_item shift.open_date is exist - process it [13:10:33]req_shift_open_date [13:10:33]req_shift_open_date done [13:10:33]produce_requested_data done [13:10:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166399,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:10:33]process_action_free close_receipt [13:10:33]json_value_free [13:10:33]json_value_free done [13:10:33]process_json_proto returns [13:10:33]Send response to host [13:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166399,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:10:33]free response buf [13:10:33]execute_script done [13:10:33]execute_script returns [13:10:33]free content buf [13:10:33]Sock 7.Close socket [13:10:33]Sock 7.Thread stoped [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:24]accept exits with 9 [13:11:24]New connection [13:11:24]New thread 3067637092 created [13:11:24]Thread 3067493732 joined [13:11:24]Waiting for new connection... [13:11:24] Sock 9.Parse request [13:11:24]Sock 9.Check first char [13:11:24]Sock 9.First char is OK [13:11:24]request: POST /json_proto HTTP/1.0 [13:11:24]Method: POST [13:11:24]URL: /json_proto [13:11:24]Method is POST - this is cgi request [13:11:24]url: /json_proto [13:11:24]query_string will be loaded in cgi processing [13:11:24]execute_cgi json_proto POST (null) [13:11:24]execute_cgi path=json_proto method=POST [13:11:24]POST find Content-Length [13:11:24]Host: 172.17.53.195:8080 [13:11:24]Content-Length: 679 [13:11:24]Content-Type: application/json [13:11:24] [13:11:24]POST finish read [13:11:24]Found Content-Length = 679 [13:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:24]execute_script... [13:11:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:24]POST & json_proto [13:11:24]process_json_proto [13:11:24]json parsed OK: [13:11:24]protocol is kg_v1.0 [13:11:24]action value=close_receipt [13:11:24]process_action close_receipt [13:11:24]cmd_close_receipt [13:11:24]MH_GetDate [13:11:24]Write to MH i2c: F0 00 00 44 0C 3F [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: F0 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: F0 09 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: F0 09 00 44 0C 00 7D A4 17 67 21 48 4A 65 FF [13:11:24]GetLastDocTimeStamp 1729602630 [13:11:24]current date 1729602685 [13:11:24]FM_GetShiftState [13:11:24]SAM_PROTO_GetShiftState [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 13 01 00 [13:11:24]Write to MH i2c: E2 08 00 45 0C 80 13 01 00 00 00 00 00 CE [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0E 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0E 00 45 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 21 [13:11:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:11:24]wFMCommunicate OK [13:11:24]SAM_PROTO_GetShiftState done [13:11:24]FM_GetShiftState done [13:11:24]opened in 1729557463 [13:11:24]opened+sec_in_day 1729643863 [13:11:24]quantity*price = 600075 [13:11:24]sum+1 = 600076 [13:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 155 22.10.2024 13:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166400 ФПД: 171868920771486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131125&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166400&fm=171868920771486&tin=02508201610067®Number=0000000000091764&sum=600000 [13:11:26]StoreToDocumentArchive [13:11:26]shift 536 fd 166400 [13:11:26]save to /storage/0536/doc_00166400 [13:11:26]save last doc name /storage/0536/doc_00166400 to /storage/kkm_last_doc_name [13:11:26]save OK [13:11:26]Clear old archive folders... [13:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:26]tlvbuf is 00A028E0 [13:11:26]SAM_PROTO_ClearQueue [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 09 00 00 [13:11:26]Write to MH i2c: E2 08 00 52 0C 80 09 00 00 00 00 00 00 D0 [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [13:11:26]RAPDU: 90 00 [13:11:26]wFMCommunicate OK [13:11:26]SAM_PROTO_ClearQueue done [13:11:26]KKMCreateOFDPacket [13:11:26]OFDProtocolAddRootSTLVToBuf [13:11:26]FM_MakeSignedData [13:11:26]FM_MakeSignedData [13:11:26]SAM_PROTO_SignData [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 0D 01 02 [13:11:26]Write to MH i2c: E2 08 00 53 0C 80 0D 01 02 00 00 00 00 D8 [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [13:11:26]RAPDU: 90 00 [13:11:26]wFMCommunicate OK [13:11:26]wFMCommunicate request_size=255 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7D A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8A 02 00 35 04 06 00 9C 50 59 F8 [13:11:26]Write to MH i2c: E2 02 01 54 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7D A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8A 02 00 35 04 06 00 9C 50 59 F8 00 00 DF [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [13:11:26]RAPDU: 90 00 [13:11:26]wFMCommunicate OK [13:11:26]wFMCommunicate request_size=7 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 0D 02 02 02 73 9E [13:11:26]Write to MH i2c: E2 0A 00 55 0C 80 0D 02 02 02 00 73 9E 00 00 F0 [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [13:11:26]RAPDU: 90 00 [13:11:26]wFMCommunicate OK [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 0D 03 02 [13:11:26]Write to MH i2c: E2 08 00 56 0C 80 0D 03 02 00 00 00 00 DD [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 0B 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 0B 00 56 0C 00 6C D4 72 82 61 83 C2 8E 90 00 46 [13:11:26]RAPDU: 6C D4 72 82 61 83 C2 8E 90 00 [13:11:26]wFMCommunicate OK [13:11:26]SAM_PROTO_SignData done [13:11:26]FM_MakeSignedData done [13:11:26]CreateOFDProtocolMessage [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 11 00 00 [13:11:26]Write to MH i2c: E2 08 00 57 0C 80 11 00 00 00 00 00 00 DD [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 17 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 17 00 57 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [13:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:26]wFMCommunicate OK [13:11:26]CreateOFDProtocolMessage done [13:11:26]OFDSenderStorePacket 166400 [13:11:26]StoreOFDPacket docnum=166400 [13:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E C6 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7D A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8A 02 00 35 04 06 00 9C 50 59 F8 73 9E 6C D4 72 82 61 83 C2 8E [13:11:26]CheckFolder [13:11:26]dirname=/storage/ofd_packets [13:11:26]CheckFolder done [13:11:26]ProducePacketName [13:11:26]name=ofd_packets/00166400 [13:11:26]NVStorageSaveData ofd_packets/00166400 [13:11:26]File name is /storage/ofd_packets/00166400 [13:11:26]Write 298 bytes [13:11:26]NVStorageSaveData done [13:11:26]OFDSenderStorePacket done [13:11:26]KKMCreateOFDPacket done [13:11:26]NVStorageSaveData kkm_last_timestamp [13:11:26]File name is /storage/kkm_last_timestamp [13:11:26]Write 4 bytes [13:11:26]NVStorageSaveData done [13:11:26]ExternCall_PrintAddStr [13:11:26]wPrintStart [13:11:26]Write to MH i2c: 01 00 00 58 0C 64 [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: 01 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: 01 07 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 FF 0F 79 [13:11:26]RasterBufferAndPrint [13:11:26]line Счет N : (1)220976 [13:11:26]line ИНН: 02508201610067 [13:11:26]line Контрольно-Кассовый Чек [13:11:26]line ПРОДАЖА [13:11:26]line ТРК (МРК, ГНК) : 31 [13:11:26]line Товар: 2710194210 [13:11:26]line ДТ-К-5 [13:11:26]line 78.750 * 76.20 [13:11:26]line = 6000.75 [13:11:26]line НДС 12% НСП 1% [13:11:26]line > о реализуемом товаре [13:11:26]line ОКРУГЛЕНИЕ: -0.75 [13:11:26]line ИТОГО: 6000.00 [13:11:26]line Внесено: 6000.00 [13:11:26]line СДАЧА: 0.00 [13:11:26]line НСП 1% : 53.10 [13:11:26]line НДС 12% : 637.25 [13:11:26]line Наличными: 6000.00 [13:11:26]line Безнал.: 0.00 [13:11:26]line Место: АЗС № 161 "Партнер Нефть" [13:11:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:26]line СНО: Общий режим [13:11:26]line Чек 155 22.10.2024 13:11 [13:11:26]line Смена: 536 ФФД: 1.0 [13:11:26]line ЗНМ: 0300000104 [13:11:26]line РНМ: 0000000000091764 [13:11:26]line Версия ККМ: 001 [13:11:26]line ФМ: 0000000000871759 [13:11:26]line ФД: 166400 [13:11:26]line ФПД: 171868920771486 [13:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131125&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166400&fm=171868920771486&tin=02508201610067®Number=0000000000091764&sum=600000 [13:11:26]OFD Sender: Processing packet 166400 [packets to send 48, broken 47] [13:11:26]ProducePacketName [13:11:26]name=ofd_packets/00166400 [13:11:26]OFD Sender: To server: pG, [13:11:26]CommunicateWithHost lk.salyk.kg:30040 [13:11:26]ConnectInit lk.salyk.kg [13:11:26]written 0, free lines is 4095 [13:11:27]Connected sock=10 [13:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E C6 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7D A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8A 02 00 35 04 06 00 9C 50 59 F8 73 9E 6C D4 72 82 61 83 C2 8E [13:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 89 E6 47 00 55 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 8A 02 00 F4 03 04 00 E8 4A 17 67 B6 04 01 00 00 B7 DC CB F3 F1 48 35 DF [13:11:27]CommunicateWithHost err = 0 [13:11:27]CheckOFDResponse [13:11:27]1017 (14) - 77093643461234 [13:11:27]1041 (16) - 0000000000871759 [13:11:27]1040 (4) - 166400 [13:11:27]1012 (4) - 22.10.2024 06:49 [13:11:27]1206 (1) - 0 [13:11:27]OFD Sender: Remove packet 166400 [13:11:27]ProducePacketName [13:11:27]name=ofd_packets/00166400 [13:11:27]NVStorageDeleteData [13:11:27]Write to MH i2c: 01 00 00 83 0C 8F [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: 01 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: 01 07 00 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 CE 0C 70 [13:11:27]RasterBufferAndPrint [13:11:27]line [13:11:27]line [13:11:27]line [13:11:27]line [13:11:27]line [13:11:27]written 0, free lines is 3287 [13:11:27]MH_Cut [13:11:27]Write to MH i2c: D1 01 00 8A 0C 01 68 [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: D1 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: D1 01 00 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: D1 01 00 8A 0C 00 67 [13:11:27]Write to MH i2c: 01 00 00 8B 0C 97 [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]OFD Sender: No OFD packet to send [13:11:28]*** Cut start [13:11:28]*** Partial cut [13:11:28]*** CUTSNS_PIN = 1 [13:11:28]*** CUTSNS_PIN = 0 [13:11:28]*** Brake cut motor [13:11:28]Read from MH i2c: 01 [13:11:28]MH_I2C_Read... [13:11:28]*** Stop cut motor [13:11:28]*** Cut end [13:11:28]Read from MH i2c: 01 07 00 [13:11:28]MH_I2C_Read... [13:11:28]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [13:11:28]process_action close_receipt done [13:11:28]requested_data is exist [13:11:28]produce_requested_data [13:11:28]requested_item fm.sn is exist - process it [13:11:28]wFMCommunicate request_size=4 [13:11:28]MH_SAM_APDU [13:11:28]CAPDU: 80 11 00 00 [13:11:28]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [13:11:28]Write i2c OK [13:11:28]MH_I2C_Read... [13:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:28]Read from MH i2c: E2 [13:11:28]MH_I2C_Read... [13:11:28]Read from MH i2c: E2 17 00 [13:11:28]MH_I2C_Read... [13:11:28]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 31 37 35 39 90 00 6A [13:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:28]wFMCommunicate OK [13:11:28]requested_item fd.num is exist - process it [13:11:28]SAM_PROTO_GetFieldsCounters [13:11:28]wFMCommunicate request_size=4 [13:11:28]MH_SAM_APDU [13:11:28]CAPDU: 80 13 00 00 [13:11:28]Write to MH i2c: E2 08 00 8D 0C 80 13 00 00 00 00 00 00 15 [13:11:28]Write i2c OK [13:11:28]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 62 00 [13:11:29]MH_I2C_Read... [13:11:29]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [13:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:29]wFMCommunicate OK [13:11:29]SAM_PROTO_GetFieldsCounters done [13:11:29]requested_item shift.num is exist - process it [13:11:29]requested_item shift.opened is exist - process it [13:11:29]req_shift_opened [13:11:29]FM_GetShiftState [13:11:29]SAM_PROTO_GetShiftState [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 13 01 00 [13:11:29]Write to MH i2c: E2 08 00 8E 0C 80 13 01 00 00 00 00 00 17 [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:29]Read from MH i2c: E2 0E 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 0E 00 8E 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6A [13:11:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:11:29]wFMCommunicate OK [13:11:29]SAM_PROTO_GetShiftState done [13:11:29]FM_GetShiftState done [13:11:29]req_shift_opened done [13:11:29]requested_item shift.open_date is exist - process it [13:11:29]req_shift_open_date [13:11:29]req_shift_open_date done [13:11:29]produce_requested_data done [13:11:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166400,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:11:29]process_action_free close_receipt [13:11:29]json_value_free [13:11:29]json_value_free done [13:11:29]process_json_proto returns [13:11:29]Send response to host [13:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166400,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:11:29]free response buf [13:11:29]execute_script done [13:11:29]execute_script returns [13:11:29]free content buf [13:11:29]Sock 9.Close socket [13:11:29]Sock 9.Thread stoped [13:11:29]accept exits with 7 [13:11:29]New connection [13:11:29]New thread 3067493732 created [13:11:29]Thread 3067637092 joined [13:11:29]Waiting for new connection... [13:11:29] Sock 7.Parse request [13:11:29]Sock 7.Check first char [13:11:29]Sock 7.First char is OK [13:11:29]request: POST /json_proto HTTP/1.0 [13:11:29]Method: POST [13:11:29]URL: /json_proto [13:11:29]Method is POST - this is cgi request [13:11:29]url: /json_proto [13:11:29]query_string will be loaded in cgi processing [13:11:29]execute_cgi json_proto POST (null) [13:11:29]execute_cgi path=json_proto method=POST [13:11:29]POST find Content-Length [13:11:29]Host: 172.17.53.195:8080 [13:11:29]Content-Length: 677 [13:11:29]Content-Type: application/json [13:11:29] [13:11:29]POST finish read [13:11:29]Found Content-Length = 677 [13:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.820, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:29]execute_script... [13:11:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.820, "sum" : 590.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:29]POST & json_proto [13:11:29]process_json_proto [13:11:29]json parsed OK: [13:11:29]protocol is kg_v1.0 [13:11:29]action value=close_receipt [13:11:29]process_action close_receipt [13:11:29]cmd_close_receipt [13:11:29]MH_GetDate [13:11:29]Write to MH i2c: F0 00 00 8F 0C 8A [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: F0 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: F0 09 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: F0 09 00 8F 0C 00 82 A4 17 67 21 48 4A 65 4F [13:11:29]GetLastDocTimeStamp 1729602685 [13:11:29]current date 1729602690 [13:11:29]FM_GetShiftState [13:11:29]SAM_PROTO_GetShiftState [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 13 01 00 [13:11:29]Write to MH i2c: E2 08 00 90 0C 80 13 01 00 00 00 00 00 19 [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 0E 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 0E 00 90 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6C [13:11:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:11:29]wFMCommunicate OK [13:11:29]SAM_PROTO_GetShiftState done [13:11:29]FM_GetShiftState done [13:11:29]opened in 1729557463 [13:11:29]opened+sec_in_day 1729643863 [13:11:29]quantity*price = 59005 [13:11:29]sum+1 = 59007 [13:11:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 156 22.10.2024 13:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166401 ФПД: 183455697498694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166401&fm=183455697498694&tin=02508201610067®Number=0000000000091764&sum=59000 [13:11:30]StoreToDocumentArchive [13:11:30]shift 536 fd 166401 [13:11:30]save to /storage/0536/doc_00166401 [13:11:30]save last doc name /storage/0536/doc_00166401 to /storage/kkm_last_doc_name [13:11:30]save OK [13:11:30]Clear old archive folders... [13:11:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:30]tlvbuf is B6F68410 [13:11:30]SAM_PROTO_ClearQueue [13:11:30]wFMCommunicate request_size=4 [13:11:30]MH_SAM_APDU [13:11:30]CAPDU: 80 09 00 00 [13:11:30]Write to MH i2c: E2 08 00 9D 0C 80 09 00 00 00 00 00 00 1B [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_ClearQueue done [13:11:31]KKMCreateOFDPacket [13:11:31]OFDProtocolAddRootSTLVToBuf [13:11:31]FM_MakeSignedData [13:11:31]FM_MakeSignedData [13:11:31]SAM_PROTO_SignData [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 01 02 [13:11:31]Write to MH i2c: E2 08 00 9E 0C 80 0D 01 02 00 00 00 00 23 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=255 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 82 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8A 02 00 35 04 06 00 A6 [13:11:31]Write to MH i2c: E2 02 01 9F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 82 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8A 02 00 35 04 06 00 A6 00 00 51 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=10 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 02 02 05 DA 1B AE 72 46 [13:11:31]Write to MH i2c: E2 0D 00 A0 0C 80 0D 02 02 05 00 DA 1B AE 72 46 00 00 8B [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 03 02 [13:11:31]Write to MH i2c: E2 08 00 A1 0C 80 0D 03 02 00 00 00 00 28 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0B 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0B 00 A1 0C 00 AE B4 5F 71 59 5A 2A D9 90 00 11 [13:11:31]RAPDU: AE B4 5F 71 59 5A 2A D9 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_SignData done [13:11:31]FM_MakeSignedData done [13:11:31]CreateOFDProtocolMessage [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 11 00 00 [13:11:31]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 17 00 [13:11:31]MH_I2C_Read... [13:11:31]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 31 37 35 39 90 00 80 [13:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:31]wFMCommunicate OK [13:11:31]CreateOFDProtocolMessage done [13:11:31]OFDSenderStorePacket 166401 [13:11:31]StoreOFDPacket docnum=166401 [13:11:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 E2 07 01 D2 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 82 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8A 02 00 35 04 06 00 A6 DA 1B AE 72 46 AE B4 5F 71 59 5A 2A D9 [13:11:31]CheckFolder [13:11:31]dirname=/storage/ofd_packets [13:11:31]CheckFolder done [13:11:31]ProducePacketName [13:11:31]name=ofd_packets/00166401 [13:11:31]NVStorageSaveData ofd_packets/00166401 [13:11:31]File name is /storage/ofd_packets/00166401 [13:11:31]Write 301 bytes [13:11:31]NVStorageSaveData done [13:11:31]OFDSenderStorePacket done [13:11:31]KKMCreateOFDPacket done [13:11:31]NVStorageSaveData kkm_last_timestamp [13:11:31]File name is /storage/kkm_last_timestamp [13:11:31]Write 4 bytes [13:11:31]NVStorageSaveData done [13:11:31]ExternCall_PrintAddStr [13:11:31]wPrintStart [13:11:31]Write to MH i2c: 01 00 00 A3 0C AF [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: 01 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: 01 07 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 FF 0F C4 [13:11:31]RasterBufferAndPrint [13:11:31]line Счет N : (1)220979 [13:11:31]line ИНН: 02508201610067 [13:11:31]line Контрольно-Кассовый Чек [13:11:31]line ПРОДАЖА [13:11:31]line ТРК (МРК, ГНК) : 23 [13:11:31]line Товар: 2710124130 [13:11:31]line Аи-92-К-5 [13:11:31]line 8.820 * 66.90 [13:11:31]line = 590.06 [13:11:31]line НДС 12% НСП 1% [13:11:31]line > о реализуемом товаре [13:11:31]line ОКРУГЛЕНИЕ: -0.06 [13:11:31]line ИТОГО: 590.00 [13:11:31]line Внесено: 590.00 [13:11:31]line СДАЧА: 0.00 [13:11:31]line НСП 1% : 5.22 [13:11:31]line НДС 12% : 62.66 [13:11:31]line Наличными: 590.00 [13:11:31]line Безнал.: 0.00 [13:11:31]line Место: АЗС № 161 "Партнер Нефть" [13:11:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:31]line СНО: Общий режим [13:11:31]line Чек 156 22.10.2024 13:11 [13:11:31]line Смена: 536 ФФД: 1.0 [13:11:32]line ЗНМ: 0300000104 [13:11:32]line РНМ: 0000000000091764 [13:11:32]line Версия ККМ: 001 [13:11:32]line ФМ: 0000000000871759 [13:11:32]line ФД: 166401 [13:11:32]line ФПД: 183455697498694 [13:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166401&fm=183455697498694&tin=02508201610067®Number=0000000000091764&sum=59000 [13:11:32]OFD Sender: Processing packet 166401 [packets to send 48, broken 47] [13:11:32]ProducePacketName [13:11:32]name=ofd_packets/00166401 [13:11:32]OFD Sender: To server: pG, [13:11:32]CommunicateWithHost lk.salyk.kg:30040 [13:11:32]ConnectInit lk.salyk.kg [13:11:32]written 0, free lines is 4095 [13:11:32]Connected sock=10 [13:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 E2 07 01 D2 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7E E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 82 A4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8A 02 00 35 04 06 00 A6 DA 1B AE 72 46 AE B4 5F 71 59 5A 2A D9 [13:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 4D 47 00 44 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 8A 02 00 F4 03 04 00 ED 4A 17 67 B6 04 01 00 00 39 D9 E6 9E E7 41 FC 62 [13:11:32]CommunicateWithHost err = 0 [13:11:32]CheckOFDResponse [13:11:32]1017 (14) - 77093643461234 [13:11:32]1041 (16) - 0000000000871759 [13:11:32]1040 (4) - 166401 [13:11:32]1012 (4) - 22.10.2024 06:49 [13:11:32]1206 (1) - 0 [13:11:32]OFD Sender: Remove packet 166401 [13:11:32]ProducePacketName [13:11:32]name=ofd_packets/00166401 [13:11:32]NVStorageDeleteData [13:11:32]Write to MH i2c: 01 00 00 CE 0C DA [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 DE 0C CB [13:11:32]RasterBufferAndPrint [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]written 0, free lines is 3306 [13:11:32]MH_Cut [13:11:32]Write to MH i2c: D1 01 00 D5 0C 01 B3 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 01 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 01 00 D5 0C 00 B2 [13:11:32]Write to MH i2c: 01 00 00 D6 0C E2 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]OFD Sender: No OFD packet to send [13:11:33]*** Cut start [13:11:33]*** Partial cut [13:11:33]*** CUTSNS_PIN = 1 [13:11:33]*** CUTSNS_PIN = 0 [13:11:33]*** Brake cut motor [13:11:33]Read from MH i2c: 01 [13:11:33]MH_I2C_Read... [13:11:33]*** Stop cut motor [13:11:33]*** Cut end [13:11:33]Read from MH i2c: 01 07 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: 01 07 00 D6 0C 00 00 00 00 00 FF 0F F7 [13:11:33]process_action close_receipt done [13:11:33]requested_data is exist [13:11:33]produce_requested_data [13:11:33]requested_item fm.sn is exist - process it [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 11 00 00 [13:11:33]Write to MH i2c: E2 08 00 D7 0C 80 11 00 00 00 00 00 00 5D [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:33]Read from MH i2c: E2 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 17 00 [13:11:33]MH_I2C_Read... [13:11:33]Read from MH i2c: E2 17 00 D7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [13:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:33]wFMCommunicate OK [13:11:33]requested_item fd.num is exist - process it [13:11:33]SAM_PROTO_GetFieldsCounters [13:11:33]wFMCommunicate request_size=4 [13:11:33]MH_SAM_APDU [13:11:33]CAPDU: 80 13 00 00 [13:11:33]Write to MH i2c: E2 08 00 D8 0C 80 13 00 00 00 00 00 00 60 [13:11:33]Write i2c OK [13:11:33]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 D8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetFieldsCounters done [13:11:34]requested_item shift.num is exist - process it [13:11:34]requested_item shift.opened is exist - process it [13:11:34]req_shift_opened [13:11:34]FM_GetShiftState [13:11:34]SAM_PROTO_GetShiftState [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 01 00 [13:11:34]Write to MH i2c: E2 08 00 D9 0C 80 13 01 00 00 00 00 00 62 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 D9 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B5 [13:11:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetShiftState done [13:11:34]FM_GetShiftState done [13:11:34]req_shift_opened done [13:11:34]requested_item shift.open_date is exist - process it [13:11:34]req_shift_open_date [13:11:34]req_shift_open_date done [13:11:34]produce_requested_data done [13:11:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166401,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:11:34]process_action_free close_receipt [13:11:34]json_value_free [13:11:34]json_value_free done [13:11:34]process_json_proto returns [13:11:34]Send response to host [13:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166401,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:11:34]free response buf [13:11:34]execute_script done [13:11:34]execute_script returns [13:11:34]free content buf [13:11:34]Sock 7.Close socket [13:11:34]Sock 7.Thread stoped [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:06]accept exits with 9 [13:15:06]New connection [13:15:06]New thread 3067637092 created [13:15:06]Thread 3067493732 joined [13:15:06]Waiting for new connection... [13:15:06] Sock 9.Parse request [13:15:06]Sock 9.Check first char [13:15:06]Sock 9.First char is OK [13:15:06]request: POST /json_proto HTTP/1.0 [13:15:06]Method: POST [13:15:06]URL: /json_proto [13:15:06]Method is POST - this is cgi request [13:15:06]url: /json_proto [13:15:06]query_string will be loaded in cgi processing [13:15:06]execute_cgi json_proto POST (null) [13:15:06]execute_cgi path=json_proto method=POST [13:15:06]POST find Content-Length [13:15:06]Host: 172.17.53.195:8080 [13:15:06]Content-Length: 674 [13:15:06]Content-Type: application/json [13:15:06] [13:15:06]POST finish read [13:15:06]Found Content-Length = 674 [13:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]execute_script... [13:15:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]POST & json_proto [13:15:06]process_json_proto [13:15:06]json parsed OK: [13:15:06]protocol is kg_v1.0 [13:15:06]action value=close_receipt [13:15:06]process_action close_receipt [13:15:06]cmd_close_receipt [13:15:06]MH_GetDate [13:15:06]Write to MH i2c: F0 00 00 DA 0C D5 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 DA 0C 00 5A A5 17 67 21 48 4A 65 73 [13:15:06]GetLastDocTimeStamp 1729602690 [13:15:06]current date 1729602906 [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 DB 0C 80 13 01 00 00 00 00 00 64 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 DB 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B7 [13:15:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]opened in 1729557463 [13:15:06]opened+sec_in_day 1729643863 [13:15:06]quantity*price = 49987 [13:15:06]sum+1 = 49988 [13:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 157 22.10.2024 13:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166402 ФПД: 26232406226981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166402&fm=26232406226981&tin=02508201610067®Number=0000000000091764&sum=49900 [13:15:07]StoreToDocumentArchive [13:15:07]shift 536 fd 166402 [13:15:07]save to /storage/0536/doc_00166402 [13:15:07]save last doc name /storage/0536/doc_00166402 to /storage/kkm_last_doc_name [13:15:07]save OK [13:15:07]Clear old archive folders... [13:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:07]tlvbuf is 009EB200 [13:15:07]SAM_PROTO_ClearQueue [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 09 00 00 [13:15:07]Write to MH i2c: E2 08 00 E8 0C 80 09 00 00 00 00 00 00 66 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_ClearQueue done [13:15:07]KKMCreateOFDPacket [13:15:07]OFDProtocolAddRootSTLVToBuf [13:15:07]FM_MakeSignedData [13:15:07]FM_MakeSignedData [13:15:07]SAM_PROTO_SignData [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 01 02 [13:15:07]Write to MH i2c: E2 08 00 E9 0C 80 0D 01 02 00 00 00 00 6E [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=255 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A A5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8A 02 00 35 04 06 00 17 DB B5 41 [13:15:07]Write to MH i2c: E2 02 01 EA 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A A5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8A 02 00 35 04 06 00 17 DB B5 41 00 00 03 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=7 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 02 38 25 [13:15:07]Write to MH i2c: E2 0A 00 EB 0C 80 0D 02 02 02 00 38 25 00 00 D2 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 EB 0C 00 90 00 6B [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 03 02 [13:15:07]Write to MH i2c: E2 08 00 EC 0C 80 0D 03 02 00 00 00 00 73 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 EC 0C 00 2E 3E 5B AE 61 19 D9 80 90 00 BC [13:15:07]RAPDU: 2E 3E 5B AE 61 19 D9 80 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_SignData done [13:15:07]FM_MakeSignedData done [13:15:07]CreateOFDProtocolMessage [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 11 00 00 [13:15:07]Write to MH i2c: E2 08 00 ED 0C 80 11 00 00 00 00 00 00 73 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 ED 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [13:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:15:07]wFMCommunicate OK [13:15:07]CreateOFDProtocolMessage done [13:15:07]OFDSenderStorePacket 166402 [13:15:07]StoreOFDPacket docnum=166402 [13:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C3 C5 04 01 60 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A A5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8A 02 00 35 04 06 00 17 DB B5 41 38 25 2E 3E 5B AE 61 19 D9 80 [13:15:07]CheckFolder [13:15:07]dirname=/storage/ofd_packets [13:15:07]CheckFolder done [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00166402 [13:15:07]NVStorageSaveData ofd_packets/00166402 [13:15:07]File name is /storage/ofd_packets/00166402 [13:15:07]Write 298 bytes [13:15:07]NVStorageSaveData done [13:15:07]OFDSenderStorePacket done [13:15:07]KKMCreateOFDPacket done [13:15:07]NVStorageSaveData kkm_last_timestamp [13:15:07]File name is /storage/kkm_last_timestamp [13:15:07]Write 4 bytes [13:15:07]NVStorageSaveData done [13:15:07]ExternCall_PrintAddStr [13:15:07]wPrintStart [13:15:07]Write to MH i2c: 01 00 00 EE 0C FA [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 FF 0F 0F [13:15:07]RasterBufferAndPrint [13:15:07]line Счет N : (1)220980 [13:15:07]line ИНН: 02508201610067 [13:15:07]line Контрольно-Кассовый Чек [13:15:07]line ПРОДАЖА [13:15:07]line ТРК (МРК, ГНК) : 11 [13:15:07]line Товар: 2710194210 [13:15:07]line ДТ-К-5 [13:15:07]line 6.560 * 76.20 [13:15:07]line = 499.87 [13:15:07]line НДС 12% НСП 1% [13:15:07]line > о реализуемом товаре [13:15:07]line ОКРУГЛЕНИЕ: -0.87 [13:15:07]line ИТОГО: 499.00 [13:15:07]line Внесено: 500.00 [13:15:07]line СДАЧА: 1.00 [13:15:07]line НСП 1% : 4.42 [13:15:07]line НДС 12% : 53.08 [13:15:07]line Наличными: 499.00 [13:15:07]line Безнал.: 0.00 [13:15:07]line Место: АЗС № 161 "Партнер Нефть" [13:15:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:15:07]line СНО: Общий режим [13:15:07]line Чек 157 22.10.2024 13:15 [13:15:07]line Смена: 536 ФФД: 1.0 [13:15:07]line ЗНМ: 0300000104 [13:15:07]line РНМ: 0000000000091764 [13:15:07]line Версия ККМ: 001 [13:15:07]line ФМ: 0000000000871759 [13:15:07]line ФД: 166402 [13:15:07]line ФПД: 26232406226981 [13:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166402&fm=26232406226981&tin=02508201610067®Number=0000000000091764&sum=49900 [13:15:08]OFD Sender: Processing packet 166402 [packets to send 48, broken 47] [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00166402 [13:15:08]OFD Sender: To server: pG, [13:15:08]CommunicateWithHost lk.salyk.kg:30040 [13:15:08]ConnectInit lk.salyk.kg [13:15:08]written 0, free lines is 4095 [13:15:08]Connected sock=7 [13:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C3 C5 04 01 60 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 5A A5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8A 02 00 35 04 06 00 17 DB B5 41 38 25 2E 3E 5B AE 61 19 D9 80 [13:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 23 B0 47 00 35 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 8A 02 00 F4 03 04 00 C5 4B 17 67 B6 04 01 00 00 66 0B 21 1F EF 8B E1 B5 [13:15:08]CommunicateWithHost err = 0 [13:15:08]CheckOFDResponse [13:15:08]1017 (14) - 77093643461234 [13:15:08]1041 (16) - 0000000000871759 [13:15:08]1040 (4) - 166402 [13:15:08]1012 (4) - 22.10.2024 06:52 [13:15:08]1206 (1) - 0 [13:15:08]OFD Sender: Remove packet 166402 [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00166402 [13:15:08]NVStorageDeleteData [13:15:08]Write to MH i2c: 01 00 00 19 0D 26 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 D2 0C 0B [13:15:08]RasterBufferAndPrint [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]written 0, free lines is 3289 [13:15:08]MH_Cut [13:15:08]Write to MH i2c: D1 01 00 20 0D 01 FF [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 20 0D 00 FE [13:15:08]Write to MH i2c: 01 00 00 21 0D 2E [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:09]OFD Sender: No OFD packet to send [13:15:09]*** Cut start [13:15:09]*** Partial cut [13:15:09]*** CUTSNS_PIN = 1 [13:15:09]*** CUTSNS_PIN = 0 [13:15:09]*** Brake cut motor [13:15:10]Read from MH i2c: 01 [13:15:10]MH_I2C_Read... [13:15:10]*** Stop cut motor [13:15:10]*** Cut end [13:15:10]Read from MH i2c: 01 07 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: 01 07 00 21 0D 00 00 00 00 00 FF 0F 43 [13:15:10]process_action close_receipt done [13:15:10]requested_data is exist [13:15:10]produce_requested_data [13:15:10]requested_item fm.sn is exist - process it [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 11 00 00 [13:15:10]Write to MH i2c: E2 08 00 22 0D 80 11 00 00 00 00 00 00 A9 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 22 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [13:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:15:10]wFMCommunicate OK [13:15:10]requested_item fd.num is exist - process it [13:15:10]SAM_PROTO_GetFieldsCounters [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 00 00 [13:15:10]Write to MH i2c: E2 08 00 23 0D 80 13 00 00 00 00 00 00 AC [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 23 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetFieldsCounters done [13:15:10]requested_item shift.num is exist - process it [13:15:10]requested_item shift.opened is exist - process it [13:15:10]req_shift_opened [13:15:10]FM_GetShiftState [13:15:10]SAM_PROTO_GetShiftState [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 01 00 [13:15:10]Write to MH i2c: E2 08 00 24 0D 80 13 01 00 00 00 00 00 AE [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 24 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 01 [13:15:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetShiftState done [13:15:10]FM_GetShiftState done [13:15:10]req_shift_opened done [13:15:10]requested_item shift.open_date is exist - process it [13:15:10]req_shift_open_date [13:15:10]req_shift_open_date done [13:15:10]produce_requested_data done [13:15:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166402,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:15:10]process_action_free close_receipt [13:15:10]json_value_free [13:15:10]json_value_free done [13:15:10]process_json_proto returns [13:15:10]Send response to host [13:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166402,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:15:10]free response buf [13:15:10]execute_script done [13:15:10]execute_script returns [13:15:10]free content buf [13:15:10]Sock 9.Close socket [13:15:10]Sock 9.Thread stoped [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:55]accept exits with 10 [13:17:55]New connection [13:17:55]New thread 3067493732 created [13:17:55]Thread 3067637092 joined [13:17:55]Waiting for new connection... [13:17:55] Sock 10.Parse request [13:17:55]Sock 10.Check first char [13:17:55]Sock 10.First char is OK [13:17:55]request: POST /json_proto HTTP/1.0 [13:17:55]Method: POST [13:17:55]URL: /json_proto [13:17:55]Method is POST - this is cgi request [13:17:55]url: /json_proto [13:17:55]query_string will be loaded in cgi processing [13:17:55]execute_cgi json_proto POST (null) [13:17:55]execute_cgi path=json_proto method=POST [13:17:55]POST find Content-Length [13:17:55]Host: 172.17.53.195:8080 [13:17:55]Content-Length: 677 [13:17:55]Content-Type: application/json [13:17:55] [13:17:55]POST finish read [13:17:55]Found Content-Length = 677 [13:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:55]execute_script... [13:17:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:55]POST & json_proto [13:17:55]process_json_proto [13:17:55]json parsed OK: [13:17:55]protocol is kg_v1.0 [13:17:55]action value=close_receipt [13:17:55]process_action close_receipt [13:17:55]cmd_close_receipt [13:17:55]MH_GetDate [13:17:55]Write to MH i2c: F0 00 00 25 0D 21 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 09 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 09 00 25 0D 00 04 A6 17 67 21 48 4A 65 6A [13:17:55]GetLastDocTimeStamp 1729602906 [13:17:55]current date 1729603076 [13:17:55]FM_GetShiftState [13:17:55]SAM_PROTO_GetShiftState [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 13 01 00 [13:17:55]Write to MH i2c: E2 08 00 26 0D 80 13 01 00 00 00 00 00 B0 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 26 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 03 [13:17:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:17:55]wFMCommunicate OK [13:17:55]SAM_PROTO_GetShiftState done [13:17:55]FM_GetShiftState done [13:17:55]opened in 1729557463 [13:17:55]opened+sec_in_day 1729643863 [13:17:55]quantity*price = 60009 [13:17:55]sum+1 = 60010 [13:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 158 22.10.2024 13:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166403 ФПД: 109689240447249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166403&fm=109689240447249&tin=02508201610067®Number=0000000000091764&sum=60000 [13:17:57]StoreToDocumentArchive [13:17:57]shift 536 fd 166403 [13:17:57]save to /storage/0536/doc_00166403 [13:17:57]save last doc name /storage/0536/doc_00166403 to /storage/kkm_last_doc_name [13:17:57]save OK [13:17:57]Clear old archive folders... [13:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:57]tlvbuf is 00A086E0 [13:17:57]SAM_PROTO_ClearQueue [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 09 00 00 [13:17:57]Write to MH i2c: E2 08 00 33 0D 80 09 00 00 00 00 00 00 B2 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]SAM_PROTO_ClearQueue done [13:17:57]KKMCreateOFDPacket [13:17:57]OFDProtocolAddRootSTLVToBuf [13:17:57]FM_MakeSignedData [13:17:57]FM_MakeSignedData [13:17:57]SAM_PROTO_SignData [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 01 02 [13:17:57]Write to MH i2c: E2 08 00 34 0D 80 0D 01 02 00 00 00 00 BA [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=255 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 04 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8A 02 00 35 04 06 00 63 [13:17:57]Write to MH i2c: E2 02 01 35 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 04 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8A 02 00 35 04 06 00 63 00 00 FF [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 35 0D 00 90 00 B6 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=10 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 02 02 05 C3 04 36 69 11 [13:17:57]Write to MH i2c: E2 0D 00 36 0D 80 0D 02 02 05 00 C3 04 36 69 11 00 00 3E [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 36 0D 00 90 00 B7 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 03 02 [13:17:57]Write to MH i2c: E2 08 00 37 0D 80 0D 03 02 00 00 00 00 BF [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 0B 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 0B 00 37 0D 00 C6 75 33 89 0A 72 45 7B 90 00 F3 [13:17:57]RAPDU: C6 75 33 89 0A 72 45 7B 90 00 [13:17:57]wFMCommunicate OK [13:17:57]SAM_PROTO_SignData done [13:17:57]FM_MakeSignedData done [13:17:57]CreateOFDProtocolMessage [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 11 00 00 [13:17:57]Write to MH i2c: E2 08 00 38 0D 80 11 00 00 00 00 00 00 BF [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 17 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 17 00 38 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [13:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:17:57]wFMCommunicate OK [13:17:57]CreateOFDProtocolMessage done [13:17:57]OFDSenderStorePacket 166403 [13:17:57]StoreOFDPacket docnum=166403 [13:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 53 3A 07 01 11 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 04 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8A 02 00 35 04 06 00 63 C3 04 36 69 11 C6 75 33 89 0A 72 45 7B [13:17:57]CheckFolder [13:17:57]dirname=/storage/ofd_packets [13:17:57]CheckFolder done [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00166403 [13:17:57]NVStorageSaveData ofd_packets/00166403 [13:17:57]File name is /storage/ofd_packets/00166403 [13:17:57]Write 301 bytes [13:17:57]NVStorageSaveData done [13:17:57]OFDSenderStorePacket done [13:17:57]KKMCreateOFDPacket done [13:17:57]NVStorageSaveData kkm_last_timestamp [13:17:57]File name is /storage/kkm_last_timestamp [13:17:57]Write 4 bytes [13:17:57]NVStorageSaveData done [13:17:57]ExternCall_PrintAddStr [13:17:57]wPrintStart [13:17:57]Write to MH i2c: 01 00 00 39 0D 46 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 39 0D 00 00 00 00 00 FF 0F 5B [13:17:57]RasterBufferAndPrint [13:17:57]line Счет N : (1)220981 [13:17:57]line ИНН: 02508201610067 [13:17:57]line Контрольно-Кассовый Чек [13:17:57]line ПРОДАЖА [13:17:57]line ТРК (МРК, ГНК) : 13 [13:17:57]line Товар: 2710124130 [13:17:57]line Аи-92-К-5 [13:17:57]line 8.970 * 66.90 [13:17:57]line = 600.09 [13:17:57]line НДС 12% НСП 1% [13:17:57]line > о реализуемом товаре [13:17:57]line ОКРУГЛЕНИЕ: -0.09 [13:17:57]line ИТОГО: 600.00 [13:17:57]line Внесено: 600.00 [13:17:57]line СДАЧА: 0.00 [13:17:57]line НСП 1% : 5.31 [13:17:57]line НДС 12% : 63.73 [13:17:57]line Наличными: 600.00 [13:17:57]line Безнал.: 0.00 [13:17:57]line Место: АЗС № 161 "Партнер Нефть" [13:17:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:17:57]line СНО: Общий режим [13:17:57]line Чек 158 22.10.2024 13:17 [13:17:57]line Смена: 536 ФФД: 1.0 [13:17:57]line ЗНМ: 0300000104 [13:17:57]line РНМ: 0000000000091764 [13:17:57]line Версия ККМ: 001 [13:17:57]line ФМ: 0000000000871759 [13:17:57]line ФД: 166403 [13:17:57]line ФПД: 109689240447249 [13:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166403&fm=109689240447249&tin=02508201610067®Number=0000000000091764&sum=60000 [13:17:57]OFD Sender: Processing packet 166403 [packets to send 48, broken 47] [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00166403 [13:17:57]OFD Sender: To server: pG, [13:17:57]CommunicateWithHost lk.salyk.kg:30040 [13:17:57]ConnectInit lk.salyk.kg [13:17:57]written 0, free lines is 4095 [13:17:58]Connected sock=9 [13:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 53 3A 07 01 11 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 04 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8A 02 00 35 04 06 00 63 C3 04 36 69 11 C6 75 33 89 0A 72 45 7B [13:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 4C 47 00 39 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 8A 02 00 F4 03 04 00 6F 4C 17 67 B6 04 01 00 00 88 7C 64 FC 32 88 53 1E [13:17:58]CommunicateWithHost err = 0 [13:17:58]CheckOFDResponse [13:17:58]1017 (14) - 77093643461234 [13:17:58]1041 (16) - 0000000000871759 [13:17:58]1040 (4) - 166403 [13:17:58]1012 (4) - 22.10.2024 06:55 [13:17:58]1206 (1) - 0 [13:17:58]OFD Sender: Remove packet 166403 [13:17:58]ProducePacketName [13:17:58]name=ofd_packets/00166403 [13:17:58]NVStorageDeleteData [13:17:58]Write to MH i2c: 01 00 00 64 0D 71 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 64 0D 00 00 00 00 00 D6 0C 5A [13:17:58]RasterBufferAndPrint [13:17:58]line [13:17:58]line [13:17:58]line [13:17:58]line [13:17:58]line [13:17:58]written 0, free lines is 3294 [13:17:58]MH_Cut [13:17:58]Write to MH i2c: D1 01 00 6B 0D 01 4A [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 01 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 01 00 6B 0D 00 49 [13:17:58]Write to MH i2c: 01 00 00 6C 0D 79 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]OFD Sender: No OFD packet to send [13:17:59]*** Cut start [13:17:59]*** Partial cut [13:17:59]*** CUTSNS_PIN = 1 [13:17:59]*** CUTSNS_PIN = 0 [13:17:59]*** Brake cut motor [13:17:59]Read from MH i2c: 01 [13:17:59]MH_I2C_Read... [13:17:59]*** Stop cut motor [13:17:59]*** Cut end [13:17:59]Read from MH i2c: 01 07 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 6C 0D 00 00 00 00 00 FF 0F 8E [13:17:59]process_action close_receipt done [13:17:59]requested_data is exist [13:17:59]produce_requested_data [13:17:59]requested_item fm.sn is exist - process it [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 11 00 00 [13:17:59]Write to MH i2c: E2 08 00 6D 0D 80 11 00 00 00 00 00 00 F4 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 6D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [13:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:17:59]wFMCommunicate OK [13:17:59]requested_item fd.num is exist - process it [13:17:59]SAM_PROTO_GetFieldsCounters [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 00 00 [13:17:59]Write to MH i2c: E2 08 00 6E 0D 80 13 00 00 00 00 00 00 F7 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 62 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 62 00 6E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [13:18:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_GetFieldsCounters done [13:18:00]requested_item shift.num is exist - process it [13:18:00]requested_item shift.opened is exist - process it [13:18:00]req_shift_opened [13:18:00]FM_GetShiftState [13:18:00]SAM_PROTO_GetShiftState [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 13 01 00 [13:18:00]Write to MH i2c: E2 08 00 6F 0D 80 13 01 00 00 00 00 00 F9 [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:00]Read from MH i2c: E2 0E 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 0E 00 6F 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4C [13:18:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_GetShiftState done [13:18:00]FM_GetShiftState done [13:18:00]req_shift_opened done [13:18:00]requested_item shift.open_date is exist - process it [13:18:00]req_shift_open_date [13:18:00]req_shift_open_date done [13:18:00]produce_requested_data done [13:18:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166403,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:18:00]process_action_free close_receipt [13:18:00]json_value_free [13:18:00]json_value_free done [13:18:00]process_json_proto returns [13:18:00]Send response to host [13:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166403,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:18:00]free response buf [13:18:00]execute_script done [13:18:00]execute_script returns [13:18:00]free content buf [13:18:00]Sock 10.Close socket [13:18:00]Sock 10.Thread stoped [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]accept exits with 7 [13:20:23]New connection [13:20:23]New thread 3067637092 created [13:20:23]Thread 3067493732 joined [13:20:23]Waiting for new connection... [13:20:23] Sock 7.Parse request [13:20:23]Sock 7.Check first char [13:20:23]Sock 7.First char is OK [13:20:23]request: POST /json_proto HTTP/1.0 [13:20:23]Method: POST [13:20:23]URL: /json_proto [13:20:23]Method is POST - this is cgi request [13:20:23]url: /json_proto [13:20:23]query_string will be loaded in cgi processing [13:20:23]execute_cgi json_proto POST (null) [13:20:23]execute_cgi path=json_proto method=POST [13:20:23]POST find Content-Length [13:20:23]Host: 172.17.53.195:8080 [13:20:23]Content-Length: 679 [13:20:23]Content-Type: application/json [13:20:23] [13:20:23]POST finish read [13:20:23]Found Content-Length = 679 [13:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:23]execute_script... [13:20:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:23]POST & json_proto [13:20:23]process_json_proto [13:20:23]json parsed OK: [13:20:23]protocol is kg_v1.0 [13:20:23]action value=close_receipt [13:20:23]process_action close_receipt [13:20:23]cmd_close_receipt [13:20:23]MH_GetDate [13:20:23]Write to MH i2c: F0 00 00 70 0D 6C [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: F0 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: F0 09 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: F0 09 00 70 0D 00 97 A6 17 67 21 48 4A 65 48 [13:20:23]GetLastDocTimeStamp 1729603076 [13:20:23]current date 1729603223 [13:20:23]FM_GetShiftState [13:20:23]SAM_PROTO_GetShiftState [13:20:23]wFMCommunicate request_size=4 [13:20:23]MH_SAM_APDU [13:20:23]CAPDU: 80 13 01 00 [13:20:23]Write to MH i2c: E2 08 00 71 0D 80 13 01 00 00 00 00 00 FB [13:20:23]Write i2c OK [13:20:23]MH_I2C_Read... [13:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:23]Read from MH i2c: E2 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 0E 00 [13:20:23]MH_I2C_Read... [13:20:23]Read from MH i2c: E2 0E 00 71 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4E [13:20:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:20:23]wFMCommunicate OK [13:20:23]SAM_PROTO_GetShiftState done [13:20:23]FM_GetShiftState done [13:20:23]opened in 1729557463 [13:20:23]opened+sec_in_day 1729643863 [13:20:23]quantity*price = 100050 [13:20:23]sum+1 = 100052 [13:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 159 22.10.2024 13:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166404 ФПД: 35396723172694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166404&fm=35396723172694&tin=02508201610067®Number=0000000000091764&sum=100000 [13:20:24]StoreToDocumentArchive [13:20:24]shift 536 fd 166404 [13:20:24]save to /storage/0536/doc_00166404 [13:20:24]save last doc name /storage/0536/doc_00166404 to /storage/kkm_last_doc_name [13:20:24]save OK [13:20:24]Clear old archive folders... [13:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:24]tlvbuf is 009EA500 [13:20:24]SAM_PROTO_ClearQueue [13:20:24]wFMCommunicate request_size=4 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 09 00 00 [13:20:24]Write to MH i2c: E2 08 00 7E 0D 80 09 00 00 00 00 00 00 FD [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [13:20:24]RAPDU: 90 00 [13:20:24]wFMCommunicate OK [13:20:24]SAM_PROTO_ClearQueue done [13:20:24]KKMCreateOFDPacket [13:20:24]OFDProtocolAddRootSTLVToBuf [13:20:24]FM_MakeSignedData [13:20:24]FM_MakeSignedData [13:20:24]SAM_PROTO_SignData [13:20:24]wFMCommunicate request_size=4 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 0D 01 02 [13:20:24]Write to MH i2c: E2 08 00 7F 0D 80 0D 01 02 00 00 00 00 05 [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [13:20:24]RAPDU: 90 00 [13:20:24]wFMCommunicate OK [13:20:24]wFMCommunicate request_size=255 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 97 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8A 02 00 35 04 06 00 20 31 71 1C [13:20:24]Write to MH i2c: E2 02 01 80 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 97 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8A 02 00 35 04 06 00 20 31 71 1C 00 00 73 [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 80 0D 00 90 00 01 [13:20:24]RAPDU: 90 00 [13:20:24]wFMCommunicate OK [13:20:24]wFMCommunicate request_size=7 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 0D 02 02 02 65 56 [13:20:24]Write to MH i2c: E2 0A 00 81 0D 80 0D 02 02 02 00 65 56 00 00 C7 [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 03 00 81 0D 00 90 00 02 [13:20:24]RAPDU: 90 00 [13:20:24]wFMCommunicate OK [13:20:24]wFMCommunicate request_size=4 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 0D 03 02 [13:20:24]Write to MH i2c: E2 08 00 82 0D 80 0D 03 02 00 00 00 00 0A [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 0B 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 0B 00 82 0D 00 63 A0 DA 63 25 0F AB 0F 90 00 39 [13:20:24]RAPDU: 63 A0 DA 63 25 0F AB 0F 90 00 [13:20:24]wFMCommunicate OK [13:20:24]SAM_PROTO_SignData done [13:20:24]FM_MakeSignedData done [13:20:24]CreateOFDProtocolMessage [13:20:24]wFMCommunicate request_size=4 [13:20:24]MH_SAM_APDU [13:20:24]CAPDU: 80 11 00 00 [13:20:24]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:24]Read from MH i2c: E2 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 17 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [13:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:20:24]wFMCommunicate OK [13:20:24]CreateOFDProtocolMessage done [13:20:24]OFDSenderStorePacket 166404 [13:20:24]StoreOFDPacket docnum=166404 [13:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E FF 04 01 76 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 97 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8A 02 00 35 04 06 00 20 31 71 1C 65 56 63 A0 DA 63 25 0F AB 0F [13:20:24]CheckFolder [13:20:24]dirname=/storage/ofd_packets [13:20:24]CheckFolder done [13:20:24]ProducePacketName [13:20:24]name=ofd_packets/00166404 [13:20:24]NVStorageSaveData ofd_packets/00166404 [13:20:24]File name is /storage/ofd_packets/00166404 [13:20:24]Write 298 bytes [13:20:24]NVStorageSaveData done [13:20:24]OFDSenderStorePacket done [13:20:24]KKMCreateOFDPacket done [13:20:24]NVStorageSaveData kkm_last_timestamp [13:20:24]File name is /storage/kkm_last_timestamp [13:20:24]Write 4 bytes [13:20:24]NVStorageSaveData done [13:20:24]ExternCall_PrintAddStr [13:20:24]wPrintStart [13:20:24]Write to MH i2c: 01 00 00 84 0D 91 [13:20:24]Write i2c OK [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: 01 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: 01 07 00 [13:20:24]MH_I2C_Read... [13:20:24]Read from MH i2c: 01 07 00 84 0D 00 00 00 00 00 FF 0F A6 [13:20:24]RasterBufferAndPrint [13:20:24]line Счет N : (1)220983 [13:20:24]line ИНН: 02508201610067 [13:20:24]line Контрольно-Кассовый Чек [13:20:24]line ПРОДАЖА [13:20:24]line ТРК (МРК, ГНК) : 21 [13:20:24]line Товар: 2710194210 [13:20:24]line ДТ-К-5 [13:20:24]line 13.130 * 76.20 [13:20:24]line = 1000.51 [13:20:24]line НДС 12% НСП 1% [13:20:24]line > о реализуемом товаре [13:20:24]line ОКРУГЛЕНИЕ: -0.51 [13:20:24]line ИТОГО: 1000.00 [13:20:24]line Внесено: 1000.00 [13:20:24]line СДАЧА: 0.00 [13:20:24]line НСП 1% : 8.85 [13:20:24]line НДС 12% : 106.25 [13:20:24]line Наличными: 1000.00 [13:20:24]line Безнал.: 0.00 [13:20:24]line Место: АЗС № 161 "Партнер Нефть" [13:20:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:20:24]line СНО: Общий режим [13:20:24]line Чек 159 22.10.2024 13:20 [13:20:24]line Смена: 536 ФФД: 1.0 [13:20:24]line ЗНМ: 0300000104 [13:20:24]line РНМ: 0000000000091764 [13:20:24]line Версия ККМ: 001 [13:20:24]line ФМ: 0000000000871759 [13:20:24]line ФД: 166404 [13:20:24]line ФПД: 35396723172694 [13:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166404&fm=35396723172694&tin=02508201610067®Number=0000000000091764&sum=100000 [13:20:25]written 0, free lines is 4095 [13:20:25]OFD Sender: Processing packet 166404 [packets to send 48, broken 47] [13:20:25]ProducePacketName [13:20:25]name=ofd_packets/00166404 [13:20:25]OFD Sender: To server: pG, [13:20:25]CommunicateWithHost lk.salyk.kg:30040 [13:20:25]ConnectInit lk.salyk.kg [13:20:25]Connected sock=9 [13:20:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8E FF 04 01 76 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 97 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8A 02 00 35 04 06 00 20 31 71 1C 65 56 63 A0 DA 63 25 0F AB 0F [13:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 72 44 47 00 43 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 8A 02 00 F4 03 04 00 02 4D 17 67 B6 04 01 00 00 D5 5C B8 9F 77 09 63 5C [13:20:25]CommunicateWithHost err = 0 [13:20:25]CheckOFDResponse [13:20:25]1017 (14) - 77093643461234 [13:20:25]1041 (16) - 0000000000871759 [13:20:25]1040 (4) - 166404 [13:20:25]1012 (4) - 22.10.2024 06:58 [13:20:25]1206 (1) - 0 [13:20:25]OFD Sender: Remove packet 166404 [13:20:25]ProducePacketName [13:20:25]name=ofd_packets/00166404 [13:20:25]NVStorageDeleteData [13:20:25]Write to MH i2c: 01 00 00 AF 0D BC [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: 01 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: 01 07 00 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 D3 0C A2 [13:20:25]RasterBufferAndPrint [13:20:25]line [13:20:25]line [13:20:25]line [13:20:25]line [13:20:25]line [13:20:25]written 0, free lines is 3289 [13:20:25]MH_Cut [13:20:25]Write to MH i2c: D1 01 00 B6 0D 01 95 [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: D1 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: D1 01 00 [13:20:25]MH_I2C_Read... [13:20:25]Read from MH i2c: D1 01 00 B6 0D 00 94 [13:20:25]Write to MH i2c: 01 00 00 B7 0D C4 [13:20:25]Write i2c OK [13:20:25]MH_I2C_Read... [13:20:25]OFD Sender: No OFD packet to send [13:20:26]*** Cut start [13:20:26]*** Partial cut [13:20:26]*** CUTSNS_PIN = 1 [13:20:26]*** CUTSNS_PIN = 0 [13:20:26]*** Brake cut motor [13:20:27]Read from MH i2c: 01 [13:20:27]MH_I2C_Read... [13:20:27]*** Stop cut motor [13:20:27]*** Cut end [13:20:27]Read from MH i2c: 01 07 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 FF 0F D9 [13:20:27]process_action close_receipt done [13:20:27]requested_data is exist [13:20:27]produce_requested_data [13:20:27]requested_item fm.sn is exist - process it [13:20:27]wFMCommunicate request_size=4 [13:20:27]MH_SAM_APDU [13:20:27]CAPDU: 80 11 00 00 [13:20:27]Write to MH i2c: E2 08 00 B8 0D 80 11 00 00 00 00 00 00 3F [13:20:27]Write i2c OK [13:20:27]MH_I2C_Read... [13:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:27]Read from MH i2c: E2 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 17 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 17 00 B8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [13:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:20:27]wFMCommunicate OK [13:20:27]requested_item fd.num is exist - process it [13:20:27]SAM_PROTO_GetFieldsCounters [13:20:27]wFMCommunicate request_size=4 [13:20:27]MH_SAM_APDU [13:20:27]CAPDU: 80 13 00 00 [13:20:27]Write to MH i2c: E2 08 00 B9 0D 80 13 00 00 00 00 00 00 42 [13:20:27]Write i2c OK [13:20:27]MH_I2C_Read... [13:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:27]Read from MH i2c: E2 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 62 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 62 00 B9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [13:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:27]wFMCommunicate OK [13:20:27]SAM_PROTO_GetFieldsCounters done [13:20:27]requested_item shift.num is exist - process it [13:20:27]requested_item shift.opened is exist - process it [13:20:27]req_shift_opened [13:20:27]FM_GetShiftState [13:20:27]SAM_PROTO_GetShiftState [13:20:27]wFMCommunicate request_size=4 [13:20:27]MH_SAM_APDU [13:20:27]CAPDU: 80 13 01 00 [13:20:27]Write to MH i2c: E2 08 00 BA 0D 80 13 01 00 00 00 00 00 44 [13:20:27]Write i2c OK [13:20:27]MH_I2C_Read... [13:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:27]Read from MH i2c: E2 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 0E 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 0E 00 BA 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 97 [13:20:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:20:27]wFMCommunicate OK [13:20:27]SAM_PROTO_GetShiftState done [13:20:27]FM_GetShiftState done [13:20:27]req_shift_opened done [13:20:27]requested_item shift.open_date is exist - process it [13:20:27]req_shift_open_date [13:20:27]req_shift_open_date done [13:20:27]produce_requested_data done [13:20:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166404,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:20:27]process_action_free close_receipt [13:20:27]json_value_free [13:20:27]json_value_free done [13:20:27]process_json_proto returns [13:20:27]Send response to host [13:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166404,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:20:27]free response buf [13:20:27]execute_script done [13:20:27]execute_script returns [13:20:27]free content buf [13:20:27]Sock 7.Close socket [13:20:27]Sock 7.Thread stoped [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]accept exits with 10 [13:21:41]New connection [13:21:41]New thread 3067493732 created [13:21:41]Thread 3067637092 joined [13:21:41]Waiting for new connection... [13:21:41] Sock 10.Parse request [13:21:41]Sock 10.Check first char [13:21:41]Sock 10.First char is OK [13:21:41]request: POST /json_proto HTTP/1.0 [13:21:41]Method: POST [13:21:41]URL: /json_proto [13:21:41]Method is POST - this is cgi request [13:21:41]url: /json_proto [13:21:41]query_string will be loaded in cgi processing [13:21:41]execute_cgi json_proto POST (null) [13:21:41]execute_cgi path=json_proto method=POST [13:21:41]POST find Content-Length [13:21:41]Host: 172.17.53.195:8080 [13:21:41]Content-Length: 677 [13:21:41]Content-Type: application/json [13:21:41] [13:21:41]POST finish read [13:21:41]Found Content-Length = 677 [13:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]execute_script... [13: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 : (1)220984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]POST & json_proto [13:21:41]process_json_proto [13:21:41]json parsed OK: [13:21:41]protocol is kg_v1.0 [13:21:41]action value=close_receipt [13:21:41]process_action close_receipt [13:21:41]cmd_close_receipt [13:21:41]MH_GetDate [13:21:41]Write to MH i2c: F0 00 00 BB 0D B7 [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 BB 0D 00 E5 A6 17 67 21 48 4A 65 E1 [13:21:41]GetLastDocTimeStamp 1729603223 [13:21:41]current date 1729603301 [13:21:41]FM_GetShiftState [13:21:41]SAM_PROTO_GetShiftState [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 01 00 [13:21:41]Write to MH i2c: E2 08 00 BC 0D 80 13 01 00 00 00 00 00 46 [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 BC 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 99 [13:21:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetShiftState done [13:21:41]FM_GetShiftState done [13:21:41]opened in 1729557463 [13:21:41]opened+sec_in_day 1729643863 [13:21:41]quantity*price = 50010 [13:21:41]sum+1 = 50012 [13:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 160 22.10.2024 13:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166405 ФПД: 46485918213346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166405&fm=46485918213346&tin=02508201610067®Number=0000000000091764&sum=50000 [13:21:42]StoreToDocumentArchive [13:21:42]shift 536 fd 166405 [13:21:42]save to /storage/0536/doc_00166405 [13:21:42]save last doc name /storage/0536/doc_00166405 to /storage/kkm_last_doc_name [13:21:42]save OK [13:21:42]Clear old archive folders... [13:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:42]tlvbuf is 00A12120 [13:21:42]SAM_PROTO_ClearQueue [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 09 00 00 [13:21:42]Write to MH i2c: E2 08 00 C9 0D 80 09 00 00 00 00 00 00 48 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 C9 0D 00 90 00 4A [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_ClearQueue done [13:21:42]KKMCreateOFDPacket [13:21:42]OFDProtocolAddRootSTLVToBuf [13:21:42]FM_MakeSignedData [13:21:42]FM_MakeSignedData [13:21:42]SAM_PROTO_SignData [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 01 02 [13:21:42]Write to MH i2c: E2 08 00 CA 0D 80 0D 01 02 00 00 00 00 50 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 CA 0D 00 90 00 4B [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=255 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E5 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8A 02 00 35 04 06 00 2A [13:21:42]Write to MH i2c: E2 02 01 CB 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E5 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8A 02 00 35 04 06 00 2A 00 00 3C [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 CB 0D 00 90 00 4C [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=10 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 02 02 05 47 58 A4 64 E2 [13:21:42]Write to MH i2c: E2 0D 00 CC 0D 80 0D 02 02 05 00 47 58 A4 64 E2 00 00 E6 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 03 02 [13:21:42]Write to MH i2c: E2 08 00 CD 0D 80 0D 03 02 00 00 00 00 55 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 0B 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 0B 00 CD 0D 00 F2 71 74 C0 16 22 43 C6 90 00 2E [13:21:42]RAPDU: F2 71 74 C0 16 22 43 C6 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_SignData done [13:21:42]FM_MakeSignedData done [13:21:42]CreateOFDProtocolMessage [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 11 00 00 [13:21:42]Write to MH i2c: E2 08 00 CE 0D 80 11 00 00 00 00 00 00 55 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 17 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 17 00 CE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [13:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:42]wFMCommunicate OK [13:21:42]CreateOFDProtocolMessage done [13:21:42]OFDSenderStorePacket 166405 [13:21:42]StoreOFDPacket docnum=166405 [13:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 37 86 07 01 76 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E5 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8A 02 00 35 04 06 00 2A 47 58 A4 64 E2 F2 71 74 C0 16 22 43 C6 [13:21:42]CheckFolder [13:21:42]dirname=/storage/ofd_packets [13:21:42]CheckFolder done [13:21:42]ProducePacketName [13:21:42]name=ofd_packets/00166405 [13:21:42]NVStorageSaveData ofd_packets/00166405 [13:21:42]File name is /storage/ofd_packets/00166405 [13:21:42]Write 301 bytes [13:21:42]NVStorageSaveData done [13:21:42]OFDSenderStorePacket done [13:21:42]KKMCreateOFDPacket done [13:21:42]NVStorageSaveData kkm_last_timestamp [13:21:42]File name is /storage/kkm_last_timestamp [13:21:42]Write 4 bytes [13:21:42]NVStorageSaveData done [13:21:42]ExternCall_PrintAddStr [13:21:42]wPrintStart [13:21:42]Write to MH i2c: 01 00 00 CF 0D DC [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 07 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 FF 0F F1 [13:21:42]RasterBufferAndPrint [13:21:42]line Счет N : (1)220984 [13:21:42]line ИНН: 02508201610067 [13:21:42]line Контрольно-Кассовый Чек [13:21:42]line ПРОДАЖА [13:21:42]line ТРК (МРК, ГНК) : 34 [13:21:42]line Товар: 2710124500 [13:21:42]line Аи-95-К-5 [13:21:42]line 6.740 * 74.20 [13:21:42]line = 500.11 [13:21:42]line НДС 12% НСП 1% [13:21:42]line > о реализуемом товаре [13:21:42]line ОКРУГЛЕНИЕ: -0.11 [13:21:42]line ИТОГО: 500.00 [13:21:42]line Внесено: 500.00 [13:21:42]line СДАЧА: 0.00 [13:21:42]line НСП 1% : 4.43 [13:21:42]line НДС 12% : 53.11 [13:21:42]line Наличными: 500.00 [13:21:42]line Безнал.: 0.00 [13:21:42]line Место: АЗС № 161 "Партнер Нефть" [13:21:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:21:42]line СНО: Общий режим [13:21:42]line Чек 160 22.10.2024 13:21 [13:21:42]line Смена: 536 ФФД: 1.0 [13:21:42]line ЗНМ: 0300000104 [13:21:42]line РНМ: 0000000000091764 [13:21:42]line Версия ККМ: 001 [13:21:42]line ФМ: 0000000000871759 [13:21:42]line ФД: 166405 [13:21:42]line ФПД: 46485918213346 [13:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166405&fm=46485918213346&tin=02508201610067®Number=0000000000091764&sum=50000 [13:21:43]OFD Sender: Processing packet 166405 [packets to send 48, broken 47] [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00166405 [13:21:43]OFD Sender: To server: pG, [13:21:43]CommunicateWithHost lk.salyk.kg:30040 [13:21:43]ConnectInit lk.salyk.kg [13:21:43]written 0, free lines is 4095 [13:21:43]Connected sock=9 [13:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 37 86 07 01 76 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E5 A6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8A 02 00 35 04 06 00 2A 47 58 A4 64 E2 F2 71 74 C0 16 22 43 C6 [13:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C 0E 47 00 6E AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 8A 02 00 F4 03 04 00 50 4D 17 67 B6 04 01 00 00 91 2B C0 0A 6C 44 D9 3B [13:21:43]CommunicateWithHost err = 0 [13:21:43]CheckOFDResponse [13:21:43]1017 (14) - 77093643461234 [13:21:43]1041 (16) - 0000000000871759 [13:21:43]1040 (4) - 166405 [13:21:43]1012 (4) - 22.10.2024 06:59 [13:21:43]1206 (1) - 0 [13:21:43]OFD Sender: Remove packet 166405 [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00166405 [13:21:43]NVStorageDeleteData [13:21:43]Write to MH i2c: 01 00 00 FA 0D 07 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 FA 0D 00 00 00 00 00 D2 0C EC [13:21:43]RasterBufferAndPrint [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]written 0, free lines is 3286 [13:21:43]MH_Cut [13:21:43]Write to MH i2c: D1 01 00 01 0E 01 E1 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 01 0E 00 E0 [13:21:43]Write to MH i2c: 01 00 00 02 0E 10 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]OFD Sender: No OFD packet to send [13:21:44]*** Cut start [13:21:44]*** Partial cut [13:21:44]*** CUTSNS_PIN = 1 [13:21:44]*** CUTSNS_PIN = 0 [13:21:44]*** Brake cut motor [13:21:44]Read from MH i2c: 01 [13:21:44]MH_I2C_Read... [13:21:44]*** Stop cut motor [13:21:44]*** Cut end [13:21:44]Read from MH i2c: 01 07 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 FF 0F 25 [13:21:44]process_action close_receipt done [13:21:44]requested_data is exist [13:21:44]produce_requested_data [13:21:44]requested_item fm.sn is exist - process it [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 11 00 00 [13:21:44]Write to MH i2c: E2 08 00 03 0E 80 11 00 00 00 00 00 00 8B [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:44]Read from MH i2c: E2 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 17 00 [13:21:44]MH_I2C_Read... [13:21:44]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 31 37 35 39 90 00 E3 [13:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:21:44]wFMCommunicate OK [13:21:44]requested_item fd.num is exist - process it [13:21:44]SAM_PROTO_GetFieldsCounters [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 13 00 00 [13:21:44]Write to MH i2c: E2 08 00 04 0E 80 13 00 00 00 00 00 00 8E [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 62 00 [13:21:45]MH_I2C_Read... [13:21:45]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [13:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_GetFieldsCounters done [13:21:45]requested_item shift.num is exist - process it [13:21:45]requested_item shift.opened is exist - process it [13:21:45]req_shift_opened [13:21:45]FM_GetShiftState [13:21:45]SAM_PROTO_GetShiftState [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 13 01 00 [13:21:45]Write to MH i2c: E2 08 00 05 0E 80 13 01 00 00 00 00 00 90 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0E 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0E 00 05 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E3 [13:21:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_GetShiftState done [13:21:45]FM_GetShiftState done [13:21:45]req_shift_opened done [13:21:45]requested_item shift.open_date is exist - process it [13:21:45]req_shift_open_date [13:21:45]req_shift_open_date done [13:21:45]produce_requested_data done [13:21:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166405,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:21:45]process_action_free close_receipt [13:21:45]json_value_free [13:21:45]json_value_free done [13:21:45]process_json_proto returns [13:21:45]Send response to host [13:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166405,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:21:45]free response buf [13:21:45]execute_script done [13:21:45]execute_script returns [13:21:45]free content buf [13:21:45]Sock 10.Close socket [13:21:45]Sock 10.Thread stoped [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:46]accept exits with 7 [13:23:46]New connection [13:23:46]New thread 3067637092 created [13:23:46]Thread 3067493732 joined [13:23:46]Waiting for new connection... [13:23:46] Sock 7.Parse request [13:23:46]Sock 7.Check first char [13:23:46]Sock 7.First char is OK [13:23:46]request: POST /json_proto HTTP/1.0 [13:23:46]Method: POST [13:23:46]URL: /json_proto [13:23:46]Method is POST - this is cgi request [13:23:46]url: /json_proto [13:23:46]query_string will be loaded in cgi processing [13:23:46]execute_cgi json_proto POST (null) [13:23:46]execute_cgi path=json_proto method=POST [13:23:46]POST find Content-Length [13:23:46]Host: 172.17.53.195:8080 [13:23:46]Content-Length: 676 [13:23:46]Content-Type: application/json [13:23:46] [13:23:46]POST finish read [13:23:46]Found Content-Length = 676 [13:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]execute_script... [13:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:46]POST & json_proto [13:23:46]process_json_proto [13:23:46]json parsed OK: [13:23:46]protocol is kg_v1.0 [13:23:46]action value=close_receipt [13:23:46]process_action close_receipt [13:23:46]cmd_close_receipt [13:23:46]MH_GetDate [13:23:46]Write to MH i2c: F0 00 00 06 0E 03 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: F0 09 00 06 0E 00 62 A7 17 67 21 48 4A 65 AB [13:23:46]GetLastDocTimeStamp 1729603301 [13:23:46]current date 1729603426 [13:23:46]FM_GetShiftState [13:23:46]SAM_PROTO_GetShiftState [13:23:46]wFMCommunicate request_size=4 [13:23:46]MH_SAM_APDU [13:23:46]CAPDU: 80 13 01 00 [13:23:46]Write to MH i2c: E2 08 00 07 0E 80 13 01 00 00 00 00 00 92 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:46]Read from MH i2c: E2 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 0E 00 07 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E5 [13:23:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:23:46]wFMCommunicate OK [13:23:46]SAM_PROTO_GetShiftState done [13:23:46]FM_GetShiftState done [13:23:46]opened in 1729557463 [13:23:46]opened+sec_in_day 1729643863 [13:23:46]quantity*price = 99974 [13:23:46]sum+1 = 99975 [13:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 161 22.10.2024 13:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166406 ФПД: 161770823494159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166406&fm=161770823494159&tin=02508201610067®Number=0000000000091764&sum=99900 [13:23:47]StoreToDocumentArchive [13:23:47]shift 536 fd 166406 [13:23:47]save to /storage/0536/doc_00166406 [13:23:47]save last doc name /storage/0536/doc_00166406 to /storage/kkm_last_doc_name [13:23:47]save OK [13:23:47]Clear old archive folders... [13:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:23:47]tlvbuf is 00A2E550 [13:23:47]SAM_PROTO_ClearQueue [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 09 00 00 [13:23:47]Write to MH i2c: E2 08 00 14 0E 80 09 00 00 00 00 00 00 94 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 14 0E 00 90 00 96 [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_ClearQueue done [13:23:47]KKMCreateOFDPacket [13:23:47]OFDProtocolAddRootSTLVToBuf [13:23:47]FM_MakeSignedData [13:23:47]FM_MakeSignedData [13:23:47]SAM_PROTO_SignData [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 01 02 [13:23:47]Write to MH i2c: E2 08 00 15 0E 80 0D 01 02 00 00 00 00 9C [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 15 0E 00 90 00 97 [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=255 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 62 A7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8A 02 00 35 04 06 00 93 21 34 78 [13:23:47]Write to MH i2c: E2 02 01 16 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 62 A7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8A 02 00 35 04 06 00 93 21 34 78 00 00 35 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 16 0E 00 90 00 98 [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=7 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 02 02 02 2A 0F [13:23:47]Write to MH i2c: E2 0A 00 17 0E 80 0D 02 02 02 00 2A 0F 00 00 DC [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 17 0E 00 90 00 99 [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 03 02 [13:23:47]Write to MH i2c: E2 08 00 18 0E 80 0D 03 02 00 00 00 00 A1 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0B 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0B 00 18 0E 00 6B 89 C5 65 BB 27 75 5D 90 00 74 [13:23:47]RAPDU: 6B 89 C5 65 BB 27 75 5D 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_SignData done [13:23:47]FM_MakeSignedData done [13:23:47]CreateOFDProtocolMessage [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 11 00 00 [13:23:47]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 17 00 [13:23:47]MH_I2C_Read... [13:23:47]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 31 37 35 39 90 00 F9 [13:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:23:47]wFMCommunicate OK [13:23:47]CreateOFDProtocolMessage done [13:23:47]OFDSenderStorePacket 166406 [13:23:47]StoreOFDPacket docnum=166406 [13:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 1C 04 01 C9 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 62 A7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8A 02 00 35 04 06 00 93 21 34 78 2A 0F 6B 89 C5 65 BB 27 75 5D [13:23:47]CheckFolder [13:23:47]dirname=/storage/ofd_packets [13:23:47]CheckFolder done [13:23:47]ProducePacketName [13:23:47]name=ofd_packets/00166406 [13:23:47]NVStorageSaveData ofd_packets/00166406 [13:23:47]File name is /storage/ofd_packets/00166406 [13:23:47]Write 298 bytes [13:23:47]NVStorageSaveData done [13:23:47]OFDSenderStorePacket done [13:23:47]KKMCreateOFDPacket done [13:23:47]NVStorageSaveData kkm_last_timestamp [13:23:47]File name is /storage/kkm_last_timestamp [13:23:47]Write 4 bytes [13:23:47]NVStorageSaveData done [13:23:47]ExternCall_PrintAddStr [13:23:47]wPrintStart [13:23:47]Write to MH i2c: 01 00 00 1A 0E 28 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 FF 0F 3D [13:23:47]RasterBufferAndPrint [13:23:47]line Счет N : (1)220985 [13:23:47]line ИНН: 02508201610067 [13:23:47]line Контрольно-Кассовый Чек [13:23:47]line ПРОДАЖА [13:23:47]line ТРК (МРК, ГНК) : 11 [13:23:47]line Товар: 2710194210 [13:23:47]line ДТ-К-5 [13:23:47]line 13.120 * 76.20 [13:23:47]line = 999.74 [13:23:47]line НДС 12% НСП 1% [13:23:47]line > о реализуемом товаре [13:23:47]line ОКРУГЛЕНИЕ: -0.74 [13:23:47]line ИТОГО: 999.00 [13:23:47]line Внесено: 1000.00 [13:23:47]line СДАЧА: 1.00 [13:23:47]line НСП 1% : 8.85 [13:23:47]line НДС 12% : 106.17 [13:23:47]line Наличными: 999.00 [13:23:47]line Безнал.: 0.00 [13:23:47]line Место: АЗС № 161 "Партнер Нефть" [13:23:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:23:47]line СНО: Общий режим [13:23:47]line Чек 161 22.10.2024 13:23 [13:23:47]line Смена: 536 ФФД: 1.0 [13:23:47]line ЗНМ: 0300000104 [13:23:47]line РНМ: 0000000000091764 [13:23:47]line Версия ККМ: 001 [13:23:47]line ФМ: 0000000000871759 [13:23:47]line ФД: 166406 [13:23:47]line ФПД: 161770823494159 [13:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132346&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166406&fm=161770823494159&tin=02508201610067®Number=0000000000091764&sum=99900 [13:23:48]OFD Sender: Processing packet 166406 [packets to send 48, broken 47] [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00166406 [13:23:48]OFD Sender: To server: pG, [13:23:48]CommunicateWithHost lk.salyk.kg:30040 [13:23:48]ConnectInit lk.salyk.kg [13:23:48]written 0, free lines is 4095 [13:23:48]Connected sock=10 [13:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 1C 04 01 C9 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 62 A7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8A 02 00 35 04 06 00 93 21 34 78 2A 0F 6B 89 C5 65 BB 27 75 5D [13:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 DC 47 00 CA E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 8A 02 00 F4 03 04 00 CD 4D 17 67 B6 04 01 00 00 9E B1 8D 1D 08 F0 8B 01 [13:23:48]CommunicateWithHost err = 0 [13:23:48]CheckOFDResponse [13:23:48]1017 (14) - 77093643461234 [13:23:48]1041 (16) - 0000000000871759 [13:23:48]1040 (4) - 166406 [13:23:48]1012 (4) - 22.10.2024 07:01 [13:23:48]1206 (1) - 0 [13:23:48]OFD Sender: Remove packet 166406 [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00166406 [13:23:48]NVStorageDeleteData [13:23:48]Write to MH i2c: 01 00 00 45 0E 53 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 45 0E 00 00 00 00 00 C2 0C 28 [13:23:48]RasterBufferAndPrint [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]line [13:23:48]written 0, free lines is 3272 [13:23:48]MH_Cut [13:23:48]Write to MH i2c: D1 01 00 4C 0E 01 2C [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 01 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: D1 01 00 4C 0E 00 2B [13:23:48]Write to MH i2c: 01 00 00 4D 0E 5B [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]OFD Sender: No OFD packet to send [13:23:49]*** Cut start [13:23:49]*** Partial cut [13:23:49]*** CUTSNS_PIN = 1 [13:23:49]*** CUTSNS_PIN = 0 [13:23:49]*** Brake cut motor [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]*** Stop cut motor [13:23:50]*** Cut end [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 FF 0F 70 [13:23:50]process_action close_receipt done [13:23:50]requested_data is exist [13:23:50]produce_requested_data [13:23:50]requested_item fm.sn is exist - process it [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 11 00 00 [13:23:50]Write to MH i2c: E2 08 00 4E 0E 80 11 00 00 00 00 00 00 D6 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 [13:23:50]MH_I2C_Read... [13:23:50]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 31 37 35 39 90 00 2E [13:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:23:50]wFMCommunicate OK [13:23:50]requested_item fd.num is exist - process it [13:23:50]SAM_PROTO_GetFieldsCounters [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 00 00 [13:23:50]Write to MH i2c: E2 08 00 4F 0E 80 13 00 00 00 00 00 00 D9 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 [13:23:50]MH_I2C_Read... [13:23:50]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [13:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetFieldsCounters done [13:23:50]requested_item shift.num is exist - process it [13:23:50]requested_item shift.opened is exist - process it [13:23:50]req_shift_opened [13:23:50]FM_GetShiftState [13:23:50]SAM_PROTO_GetShiftState [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 01 00 [13:23:50]Write to MH i2c: E2 08 00 50 0E 80 13 01 00 00 00 00 00 DB [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 50 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2E [13:23:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetShiftState done [13:23:50]FM_GetShiftState done [13:23:50]req_shift_opened done [13:23:50]requested_item shift.open_date is exist - process it [13:23:50]req_shift_open_date [13:23:50]req_shift_open_date done [13:23:50]produce_requested_data done [13:23:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166406,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:23:50]process_action_free close_receipt [13:23:50]json_value_free [13:23:50]json_value_free done [13:23:50]process_json_proto returns [13:23:50]Send response to host [13:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166406,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:23:50]free response buf [13:23:50]execute_script done [13:23:50]execute_script returns [13:23:50]free content buf [13:23:50]Sock 7.Close socket [13:23:50]Sock 7.Thread stoped [13:23:53]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:48]accept exits with 9 [13:30:48]New connection [13:30:48]New thread 3067493732 created [13:30:48]Thread 3067637092 joined [13:30:48]Waiting for new connection... [13:30:48] Sock 9.Parse request [13:30:48]Sock 9.Check first char [13:30:48]Sock 9.First char is OK [13:30:48]request: POST /json_proto HTTP/1.0 [13:30:48]Method: POST [13:30:48]URL: /json_proto [13:30:48]Method is POST - this is cgi request [13:30:48]url: /json_proto [13:30:48]query_string will be loaded in cgi processing [13:30:48]execute_cgi json_proto POST (null) [13:30:48]execute_cgi path=json_proto method=POST [13:30:48]POST find Content-Length [13:30:48]Host: 172.17.53.195:8080 [13:30:48]Content-Length: 679 [13:30:48]Content-Type: application/json [13:30:48] [13:30:48]POST finish read [13:30:48]Found Content-Length = 679 [13:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:48]execute_script... [13:30:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:48]POST & json_proto [13:30:48]process_json_proto [13:30:48]json parsed OK: [13:30:48]protocol is kg_v1.0 [13:30:48]action value=close_receipt [13:30:48]process_action close_receipt [13:30:48]cmd_close_receipt [13:30:48]MH_GetDate [13:30:48]Write to MH i2c: F0 00 00 51 0E 4E [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 09 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 09 00 51 0E 00 09 A9 17 67 21 48 4A 65 9F [13:30:48]GetLastDocTimeStamp 1729603426 [13:30:48]current date 1729603849 [13:30:48]FM_GetShiftState [13:30:48]SAM_PROTO_GetShiftState [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 13 01 00 [13:30:48]Write to MH i2c: E2 08 00 52 0E 80 13 01 00 00 00 00 00 DD [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0E 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0E 00 52 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 30 [13:30:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:30:48]wFMCommunicate OK [13:30:48]SAM_PROTO_GetShiftState done [13:30:48]FM_GetShiftState done [13:30:48]opened in 1729557463 [13:30:48]opened+sec_in_day 1729643863 [13:30:48]quantity*price = 99947 [13:30:48]sum+1 = 99948 [13:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 162 22.10.2024 13:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166407 ФПД: 223536046131463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133049&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166407&fm=223536046131463&tin=02508201610067®Number=0000000000091764&sum=99900 [13:30:49]StoreToDocumentArchive [13:30:49]shift 536 fd 166407 [13:30:49]save to /storage/0536/doc_00166407 [13:30:49]save last doc name /storage/0536/doc_00166407 to /storage/kkm_last_doc_name [13:30:49]save OK [13:30:49]Clear old archive folders... [13:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:49]tlvbuf is 00993A20 [13:30:49]SAM_PROTO_ClearQueue [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 09 00 00 [13:30:49]Write to MH i2c: E2 08 00 5F 0E 80 09 00 00 00 00 00 00 DF [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_ClearQueue done [13:30:49]KKMCreateOFDPacket [13:30:49]OFDProtocolAddRootSTLVToBuf [13:30:49]FM_MakeSignedData [13:30:49]FM_MakeSignedData [13:30:49]SAM_PROTO_SignData [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 01 02 [13:30:49]Write to MH i2c: E2 08 00 60 0E 80 0D 01 02 00 00 00 00 E7 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 60 0E 00 90 00 E2 [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]wFMCommunicate request_size=255 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 09 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8A 02 00 35 04 06 00 CB [13:30:49]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 09 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8A 02 00 35 04 06 00 CB 00 00 BE [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 61 0E 00 90 00 E3 [13:30:50]RAPDU: 90 00 [13:30:50]wFMCommunicate OK [13:30:50]wFMCommunicate request_size=10 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 0D 02 02 05 4E 0A 9F C9 07 [13:30:50]Write to MH i2c: E2 0D 00 62 0E 80 0D 02 02 05 00 4E 0A 9F C9 07 00 00 BB [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [13:30:50]RAPDU: 90 00 [13:30:50]wFMCommunicate OK [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 0D 03 02 [13:30:50]Write to MH i2c: E2 08 00 63 0E 80 0D 03 02 00 00 00 00 EC [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0B 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0B 00 63 0E 00 84 C8 30 98 75 15 37 61 90 00 23 [13:30:50]RAPDU: 84 C8 30 98 75 15 37 61 90 00 [13:30:50]wFMCommunicate OK [13:30:50]SAM_PROTO_SignData done [13:30:50]FM_MakeSignedData done [13:30:50]CreateOFDProtocolMessage [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 11 00 00 [13:30:50]Write to MH i2c: E2 08 00 64 0E 80 11 00 00 00 00 00 00 EC [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 [13:30:50]MH_I2C_Read... [13:30:50]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 31 37 35 39 90 00 44 [13:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:30:50]wFMCommunicate OK [13:30:50]CreateOFDProtocolMessage done [13:30:50]OFDSenderStorePacket 166407 [13:30:50]StoreOFDPacket docnum=166407 [13:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 9C 07 01 6F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 09 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8A 02 00 35 04 06 00 CB 4E 0A 9F C9 07 84 C8 30 98 75 15 37 61 [13:30:50]CheckFolder [13:30:50]dirname=/storage/ofd_packets [13:30:50]CheckFolder done [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00166407 [13:30:50]NVStorageSaveData ofd_packets/00166407 [13:30:50]File name is /storage/ofd_packets/00166407 [13:30:50]Write 301 bytes [13:30:50]NVStorageSaveData done [13:30:50]OFDSenderStorePacket done [13:30:50]KKMCreateOFDPacket done [13:30:50]NVStorageSaveData kkm_last_timestamp [13:30:50]File name is /storage/kkm_last_timestamp [13:30:50]Write 4 bytes [13:30:50]NVStorageSaveData done [13:30:50]ExternCall_PrintAddStr [13:30:50]wPrintStart [13:30:50]Write to MH i2c: 01 00 00 65 0E 73 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 FF 0F 88 [13:30:50]RasterBufferAndPrint [13:30:50]line Счет N : (1)220986 [13:30:50]line ИНН: 02508201610067 [13:30:50]line Контрольно-Кассовый Чек [13:30:50]line ПРОДАЖА [13:30:50]line ТРК (МРК, ГНК) : 44 [13:30:50]line Товар: 2710124500 [13:30:50]line Аи-95-К-5 [13:30:50]line 13.470 * 74.20 [13:30:50]line = 999.47 [13:30:50]line НДС 12% НСП 1% [13:30:50]line > о реализуемом товаре [13:30:50]line ОКРУГЛЕНИЕ: -0.47 [13:30:50]line ИТОГО: 999.00 [13:30:50]line Внесено: 1000.00 [13:30:50]line СДАЧА: 1.00 [13:30:50]line НСП 1% : 8.84 [13:30:50]line НДС 12% : 106.14 [13:30:50]line Наличными: 999.00 [13:30:50]line Безнал.: 0.00 [13:30:50]line Место: АЗС № 161 "Партнер Нефть" [13:30:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:30:50]line СНО: Общий режим [13:30:50]line Чек 162 22.10.2024 13:30 [13:30:50]line Смена: 536 ФФД: 1.0 [13:30:50]line ЗНМ: 0300000104 [13:30:50]line РНМ: 0000000000091764 [13:30:50]line Версия ККМ: 001 [13:30:50]line ФМ: 0000000000871759 [13:30:50]line ФД: 166407 [13:30:50]line ФПД: 223536046131463 [13:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133049&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166407&fm=223536046131463&tin=02508201610067®Number=0000000000091764&sum=99900 [13:30:50]OFD Sender: Processing packet 166407 [packets to send 48, broken 47] [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00166407 [13:30:50]OFD Sender: To server: pG, [13:30:50]CommunicateWithHost lk.salyk.kg:30040 [13:30:50]ConnectInit lk.salyk.kg [13:30:50]written 0, free lines is 4095 [13:30:50]Connected sock=10 [13:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 9C 07 01 6F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 09 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8A 02 00 35 04 06 00 CB 4E 0A 9F C9 07 84 C8 30 98 75 15 37 61 [13:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 2F 47 00 ED 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 8A 02 00 F4 03 04 00 74 4F 17 67 B6 04 01 00 00 E2 D6 72 EE 49 2C FD 1F [13:30:51]CommunicateWithHost err = 0 [13:30:51]CheckOFDResponse [13:30:51]1017 (14) - 77093643461234 [13:30:51]1041 (16) - 0000000000871759 [13:30:51]1040 (4) - 166407 [13:30:51]1012 (4) - 22.10.2024 07:08 [13:30:51]1206 (1) - 0 [13:30:51]OFD Sender: Remove packet 166407 [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00166407 [13:30:51]NVStorageDeleteData [13:30:51]Write to MH i2c: 01 00 00 90 0E 9E [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 90 0E 00 00 00 00 00 D3 0C 84 [13:30:51]RasterBufferAndPrint [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]written 0, free lines is 3288 [13:30:51]MH_Cut [13:30:51]Write to MH i2c: D1 01 00 97 0E 01 77 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 01 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 01 00 97 0E 00 76 [13:30:51]Write to MH i2c: 01 00 00 98 0E A6 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]OFD Sender: No OFD packet to send [13:30:51]*** Cut start [13:30:51]*** Partial cut [13:30:51]*** CUTSNS_PIN = 1 [13:30:51]*** CUTSNS_PIN = 0 [13:30:52]*** Brake cut motor [13:30:52]Read from MH i2c: 01 [13:30:52]MH_I2C_Read... [13:30:52]*** Stop cut motor [13:30:52]*** Cut end [13:30:52]Read from MH i2c: 01 07 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: 01 07 00 98 0E 00 00 00 00 00 FF 0F BB [13:30:52]process_action close_receipt done [13:30:52]requested_data is exist [13:30:52]produce_requested_data [13:30:52]requested_item fm.sn is exist - process it [13:30:52]wFMCommunicate request_size=4 [13:30:52]MH_SAM_APDU [13:30:52]CAPDU: 80 11 00 00 [13:30:52]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:52]Read from MH i2c: E2 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 17 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 17 00 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [13:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:30:52]wFMCommunicate OK [13:30:52]requested_item fd.num is exist - process it [13:30:52]SAM_PROTO_GetFieldsCounters [13:30:52]wFMCommunicate request_size=4 [13:30:52]MH_SAM_APDU [13:30:52]CAPDU: 80 13 00 00 [13:30:52]Write to MH i2c: E2 08 00 9A 0E 80 13 00 00 00 00 00 00 24 [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:52]Read from MH i2c: E2 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 62 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 62 00 9A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:52]wFMCommunicate OK [13:30:52]SAM_PROTO_GetFieldsCounters done [13:30:52]requested_item shift.num is exist - process it [13:30:52]requested_item shift.opened is exist - process it [13:30:52]req_shift_opened [13:30:52]FM_GetShiftState [13:30:52]SAM_PROTO_GetShiftState [13:30:52]wFMCommunicate request_size=4 [13:30:52]MH_SAM_APDU [13:30:52]CAPDU: 80 13 01 00 [13:30:52]Write to MH i2c: E2 08 00 9B 0E 80 13 01 00 00 00 00 00 26 [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:52]Read from MH i2c: E2 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 0E 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: E2 0E 00 9B 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 79 [13:30:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:30:52]wFMCommunicate OK [13:30:52]SAM_PROTO_GetShiftState done [13:30:52]FM_GetShiftState done [13:30:52]req_shift_opened done [13:30:52]requested_item shift.open_date is exist - process it [13:30:52]req_shift_open_date [13:30:52]req_shift_open_date done [13:30:52]produce_requested_data done [13:30:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166407,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:30:52]process_action_free close_receipt [13:30:52]json_value_free [13:30:52]json_value_free done [13:30:52]process_json_proto returns [13:30:52]Send response to host [13:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166407,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:30:52]free response buf [13:30:52]execute_script done [13:30:52]execute_script returns [13:30:52]free content buf [13:30:52]Sock 9.Close socket [13:30:52]Sock 9.Thread stoped [13:30:56]OFD Sender: No OFD packet to send [13:30:57]accept exits with 7 [13:30:57]New connection [13:30:57]New thread 3067637092 created [13:30:57]Thread 3067493732 joined [13:30:57]Waiting for new connection... [13:30:57] Sock 7.Parse request [13:30:57]Sock 7.Check first char [13:30:57]Sock 7.First char is OK [13:30:57]request: POST /json_proto HTTP/1.0 [13:30:57]Method: POST [13:30:57]URL: /json_proto [13:30:57]Method is POST - this is cgi request [13:30:57]url: /json_proto [13:30:57]query_string will be loaded in cgi processing [13:30:57]execute_cgi json_proto POST (null) [13:30:57]execute_cgi path=json_proto method=POST [13:30:57]POST find Content-Length [13:30:57]Host: 172.17.53.195:8080 [13:30:57]Content-Length: 674 [13:30:57]Content-Type: application/json [13:30:57] [13:30:57]POST finish read [13:30:57]Found Content-Length = 674 [13:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:57]execute_script... [13:30:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:57]POST & json_proto [13:30:57]process_json_proto [13:30:57]json parsed OK: [13:30:57]protocol is kg_v1.0 [13:30:57]action value=close_receipt [13:30:57]process_action close_receipt [13:30:57]cmd_close_receipt [13:30:57]MH_GetDate [13:30:57]Write to MH i2c: F0 00 00 9C 0E 99 [13:30:57]Write i2c OK [13:30:57]MH_I2C_Read... [13:30:57]Read from MH i2c: F0 [13:30:57]MH_I2C_Read... [13:30:57]Read from MH i2c: F0 09 00 [13:30:57]MH_I2C_Read... [13:30:57]Read from MH i2c: F0 09 00 9C 0E 00 12 A9 17 67 21 48 4A 65 F3 [13:30:57]GetLastDocTimeStamp 1729603849 [13:30:57]current date 1729603858 [13:30:57]FM_GetShiftState [13:30:57]SAM_PROTO_GetShiftState [13:30:57]wFMCommunicate request_size=4 [13:30:57]MH_SAM_APDU [13:30:57]CAPDU: 80 13 01 00 [13:30:57]Write to MH i2c: E2 08 00 9D 0E 80 13 01 00 00 00 00 00 28 [13:30:57]Write i2c OK [13:30:57]MH_I2C_Read... [13:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:57]Read from MH i2c: E2 [13:30:57]MH_I2C_Read... [13:30:57]Read from MH i2c: E2 0E 00 [13:30:57]MH_I2C_Read... [13:30:57]Read from MH i2c: E2 0E 00 9D 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7B [13:30:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:30:57]wFMCommunicate OK [13:30:57]SAM_PROTO_GetShiftState done [13:30:57]FM_GetShiftState done [13:30:57]opened in 1729557463 [13:30:57]opened+sec_in_day 1729643863 [13:30:57]quantity*price = 49987 [13:30:57]sum+1 = 49988 [13:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 163 22.10.2024 13:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166408 ФПД: 25079901975572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166408&fm=25079901975572&tin=02508201610067®Number=0000000000091764&sum=49900 [13:30:59]StoreToDocumentArchive [13:30:59]shift 536 fd 166408 [13:30:59]save to /storage/0536/doc_00166408 [13:30:59]save last doc name /storage/0536/doc_00166408 to /storage/kkm_last_doc_name [13:30:59]save OK [13:30:59]Clear old archive folders... [13:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:59]tlvbuf is 009EF5A0 [13:30:59]SAM_PROTO_ClearQueue [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 09 00 00 [13:30:59]Write to MH i2c: E2 08 00 AA 0E 80 09 00 00 00 00 00 00 2A [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]SAM_PROTO_ClearQueue done [13:30:59]KKMCreateOFDPacket [13:30:59]OFDProtocolAddRootSTLVToBuf [13:30:59]FM_MakeSignedData [13:30:59]FM_MakeSignedData [13:30:59]SAM_PROTO_SignData [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 01 02 [13:30:59]Write to MH i2c: E2 08 00 AB 0E 80 0D 01 02 00 00 00 00 32 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 AB 0E 00 90 00 2D [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=255 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 12 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8A 02 00 35 04 06 00 16 CF 5E A5 [13:30:59]Write to MH i2c: E2 02 01 AC 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 12 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8A 02 00 35 04 06 00 16 CF 5E A5 00 00 8F [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 AC 0E 00 90 00 2E [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=7 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 02 02 02 F4 14 [13:30:59]Write to MH i2c: E2 0A 00 AD 0E 80 0D 02 02 02 00 F4 14 00 00 41 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 03 02 [13:30:59]Write to MH i2c: E2 08 00 AE 0E 80 0D 03 02 00 00 00 00 37 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 0B 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 0B 00 AE 0E 00 31 FE 37 D8 D4 A4 79 F1 90 00 58 [13:30:59]RAPDU: 31 FE 37 D8 D4 A4 79 F1 90 00 [13:30:59]wFMCommunicate OK [13:30:59]SAM_PROTO_SignData done [13:30:59]FM_MakeSignedData done [13:30:59]CreateOFDProtocolMessage [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 11 00 00 [13:30:59]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 17 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [13:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:30:59]wFMCommunicate OK [13:30:59]CreateOFDProtocolMessage done [13:30:59]OFDSenderStorePacket 166408 [13:30:59]StoreOFDPacket docnum=166408 [13:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 03 04 01 25 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 12 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8A 02 00 35 04 06 00 16 CF 5E A5 F4 14 31 FE 37 D8 D4 A4 79 F1 [13:30:59]CheckFolder [13:30:59]dirname=/storage/ofd_packets [13:30:59]CheckFolder done [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00166408 [13:30:59]NVStorageSaveData ofd_packets/00166408 [13:30:59]File name is /storage/ofd_packets/00166408 [13:30:59]Write 298 bytes [13:30:59]NVStorageSaveData done [13:30:59]OFDSenderStorePacket done [13:30:59]KKMCreateOFDPacket done [13:30:59]NVStorageSaveData kkm_last_timestamp [13:30:59]File name is /storage/kkm_last_timestamp [13:30:59]Write 4 bytes [13:30:59]NVStorageSaveData done [13:30:59]ExternCall_PrintAddStr [13:30:59]wPrintStart [13:30:59]Write to MH i2c: 01 00 00 B0 0E BE [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 07 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 07 00 B0 0E 00 00 00 00 00 FF 0F D3 [13:30:59]RasterBufferAndPrint [13:30:59]line Счет N : (1)220987 [13:30:59]line ИНН: 02508201610067 [13:30:59]line Контрольно-Кассовый Чек [13:30:59]line ПРОДАЖА [13:30:59]line ТРК (МРК, ГНК) : 11 [13:30:59]line Товар: 2710194210 [13:30:59]line ДТ-К-5 [13:30:59]line 6.560 * 76.20 [13:30:59]line = 499.87 [13:30:59]line НДС 12% НСП 1% [13:30:59]line > о реализуемом товаре [13:30:59]line ОКРУГЛЕНИЕ: -0.87 [13:30:59]line ИТОГО: 499.00 [13:30:59]line Внесено: 500.00 [13:30:59]line СДАЧА: 1.00 [13:30:59]line НСП 1% : 4.42 [13:30:59]line НДС 12% : 53.08 [13:30:59]line Наличными: 499.00 [13:30:59]line Безнал.: 0.00 [13:30:59]line Место: АЗС № 161 "Партнер Нефть" [13:30:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:30:59]line СНО: Общий режим [13:30:59]line Чек 163 22.10.2024 13:30 [13:30:59]line Смена: 536 ФФД: 1.0 [13:30:59]line ЗНМ: 0300000104 [13:30:59]line РНМ: 0000000000091764 [13:30:59]line Версия ККМ: 001 [13:30:59]line ФМ: 0000000000871759 [13:30:59]line ФД: 166408 [13:30:59]line ФПД: 25079901975572 [13:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166408&fm=25079901975572&tin=02508201610067®Number=0000000000091764&sum=49900 [13:30:59]written 0, free lines is 4095 [13:30:59]OFD Sender: Processing packet 166408 [packets to send 48, broken 47] [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00166408 [13:30:59]OFD Sender: To server: pG, [13:30:59]CommunicateWithHost lk.salyk.kg:30040 [13:30:59]ConnectInit lk.salyk.kg [13:30:59]Connected sock=10 [13:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 27 03 04 01 25 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 12 A9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8A 02 00 35 04 06 00 16 CF 5E A5 F4 14 31 FE 37 D8 D4 A4 79 F1 [13:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 CF 47 00 C0 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 8A 02 00 F4 03 04 00 7D 4F 17 67 B6 04 01 00 00 24 71 A8 33 26 CD 27 EE [13:30:59]CommunicateWithHost err = 0 [13:30:59]CheckOFDResponse [13:30:59]1017 (14) - 77093643461234 [13:30:59]1041 (16) - 0000000000871759 [13:30:59]1040 (4) - 166408 [13:30:59]1012 (4) - 22.10.2024 07:08 [13:30:59]1206 (1) - 0 [13:30:59]OFD Sender: Remove packet 166408 [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00166408 [13:30:59]NVStorageDeleteData [13:31:00]Write to MH i2c: 01 00 00 DB 0E E9 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 C8 0C C4 [13:31:00]RasterBufferAndPrint [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]written 0, free lines is 3285 [13:31:00]MH_Cut [13:31:00]Write to MH i2c: D1 01 00 E2 0E 01 C2 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: D1 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: D1 01 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: D1 01 00 E2 0E 00 C1 [13:31:00]Write to MH i2c: 01 00 00 E3 0E F1 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]OFD Sender: No OFD packet to send [13:31:00]*** Cut start [13:31:00]*** Partial cut [13:31:00]*** CUTSNS_PIN = 1 [13:31:00]*** CUTSNS_PIN = 0 [13:31:01]*** Brake cut motor [13:31:01]Read from MH i2c: 01 [13:31:01]MH_I2C_Read... [13:31:01]*** Stop cut motor [13:31:01]*** Cut end [13:31:01]Read from MH i2c: 01 07 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 FF 0F 06 [13:31:01]process_action close_receipt done [13:31:01]requested_data is exist [13:31:01]produce_requested_data [13:31:01]requested_item fm.sn is exist - process it [13:31:01]wFMCommunicate request_size=4 [13:31:01]MH_SAM_APDU [13:31:01]CAPDU: 80 11 00 00 [13:31:01]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:01]Read from MH i2c: E2 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 17 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [13:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:31:01]wFMCommunicate OK [13:31:01]requested_item fd.num is exist - process it [13:31:01]SAM_PROTO_GetFieldsCounters [13:31:01]wFMCommunicate request_size=4 [13:31:01]MH_SAM_APDU [13:31:01]CAPDU: 80 13 00 00 [13:31:01]Write to MH i2c: E2 08 00 E5 0E 80 13 00 00 00 00 00 00 6F [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:01]Read from MH i2c: E2 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 62 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 62 00 E5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [13:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:01]wFMCommunicate OK [13:31:01]SAM_PROTO_GetFieldsCounters done [13:31:01]requested_item shift.num is exist - process it [13:31:01]requested_item shift.opened is exist - process it [13:31:01]req_shift_opened [13:31:01]FM_GetShiftState [13:31:01]SAM_PROTO_GetShiftState [13:31:01]wFMCommunicate request_size=4 [13:31:01]MH_SAM_APDU [13:31:01]CAPDU: 80 13 01 00 [13:31:01]Write to MH i2c: E2 08 00 E6 0E 80 13 01 00 00 00 00 00 71 [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:01]Read from MH i2c: E2 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 0E 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 0E 00 E6 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C4 [13:31:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:31:01]wFMCommunicate OK [13:31:01]SAM_PROTO_GetShiftState done [13:31:01]FM_GetShiftState done [13:31:01]req_shift_opened done [13:31:01]requested_item shift.open_date is exist - process it [13:31:01]req_shift_open_date [13:31:01]req_shift_open_date done [13:31:01]produce_requested_data done [13:31:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166408,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:31:01]process_action_free close_receipt [13:31:01]json_value_free [13:31:01]json_value_free done [13:31:01]process_json_proto returns [13:31:01]Send response to host [13:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166408,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:31:01]free response buf [13:31:01]execute_script done [13:31:01]execute_script returns [13:31:01]free content buf [13:31:01]Sock 7.Close socket [13:31:01]Sock 7.Thread stoped [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:30]accept exits with 9 [13:45:30]New connection [13:45:30]New thread 3067493732 created [13:45:30]Thread 3067637092 joined [13:45:30]Waiting for new connection... [13:45:30] Sock 9.Parse request [13:45:30]Sock 9.Check first char [13:45:30]Sock 9.First char is OK [13:45:30]request: POST /json_proto HTTP/1.0 [13:45:30]Method: POST [13:45:30]URL: /json_proto [13:45:30]Method is POST - this is cgi request [13:45:30]url: /json_proto [13:45:30]query_string will be loaded in cgi processing [13:45:30]execute_cgi json_proto POST (null) [13:45:30]execute_cgi path=json_proto method=POST [13:45:30]POST find Content-Length [13:45:30]Host: 172.17.53.195:8080 [13:45:30]Content-Length: 678 [13:45:30]Content-Type: application/json [13:45:30] [13:45:30]POST finish read [13:45:30]Found Content-Length = 678 [13:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.650, "sum" : 980.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 980.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:30]execute_script... [13:45:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.650, "sum" : 980.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 980.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:30]POST & json_proto [13:45:30]process_json_proto [13:45:30]json parsed OK: [13:45:30]protocol is kg_v1.0 [13:45:30]action value=close_receipt [13:45:30]process_action close_receipt [13:45:30]cmd_close_receipt [13:45:30]MH_GetDate [13:45:30]Write to MH i2c: F0 00 00 E7 0E E4 [13:45:30]Write i2c OK [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: F0 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: F0 09 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: F0 09 00 E7 0E 00 7B AC 17 67 21 48 4A 65 AA [13:45:30]GetLastDocTimeStamp 1729603858 [13:45:30]current date 1729604731 [13:45:30]FM_GetShiftState [13:45:30]SAM_PROTO_GetShiftState [13:45:30]wFMCommunicate request_size=4 [13:45:30]MH_SAM_APDU [13:45:30]CAPDU: 80 13 01 00 [13:45:30]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [13:45:30]Write i2c OK [13:45:30]MH_I2C_Read... [13:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:30]Read from MH i2c: E2 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C6 [13:45:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:45:30]wFMCommunicate OK [13:45:30]SAM_PROTO_GetShiftState done [13:45:30]FM_GetShiftState done [13:45:30]opened in 1729557463 [13:45:30]opened+sec_in_day 1729643863 [13:45:30]quantity*price = 98008 [13:45:30]sum+1 = 98010 [13:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 980.00 Внесено: 980.00 СДАЧА: 0.00 НСП 1% : 8.67 НДС 12% : 104.08 Наличными: 980.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 164 22.10.2024 13:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166409 ФПД: 109785399380359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134531&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166409&fm=109785399380359&tin=02508201610067®Number=0000000000091764&sum=98000 [13:45:31]StoreToDocumentArchive [13:45:31]shift 536 fd 166409 [13:45:31]save to /storage/0536/doc_00166409 [13:45:31]save last doc name /storage/0536/doc_00166409 to /storage/kkm_last_doc_name [13:45:31]save OK [13:45:31]Clear old archive folders... [13:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:31]tlvbuf is 009EA940 [13:45:31]SAM_PROTO_ClearQueue [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 09 00 00 [13:45:31]Write to MH i2c: E2 08 00 F5 0E 80 09 00 00 00 00 00 00 75 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 F5 0E 00 90 00 77 [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_ClearQueue done [13:45:31]KKMCreateOFDPacket [13:45:31]OFDProtocolAddRootSTLVToBuf [13:45:31]FM_MakeSignedData [13:45:31]FM_MakeSignedData [13:45:31]SAM_PROTO_SignData [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 01 02 [13:45:31]Write to MH i2c: E2 08 00 F6 0E 80 0D 01 02 00 00 00 00 7D [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 F6 0E 00 90 00 78 [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]wFMCommunicate request_size=255 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 7B AC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8A 02 00 35 04 06 00 63 [13:45:31]Write to MH i2c: E2 02 01 F7 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 3A 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 7B AC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8A 02 00 35 04 06 00 63 00 00 C4 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:32]Read from MH i2c: E2 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 03 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [13:45:32]RAPDU: 90 00 [13:45:32]wFMCommunicate OK [13:45:32]wFMCommunicate request_size=10 [13:45:32]MH_SAM_APDU [13:45:32]CAPDU: 80 0D 02 02 05 D9 67 BB 49 87 [13:45:32]Write to MH i2c: E2 0D 00 F8 0E 80 0D 02 02 05 00 D9 67 BB 49 87 00 00 55 [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:32]Read from MH i2c: E2 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 03 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [13:45:32]RAPDU: 90 00 [13:45:32]wFMCommunicate OK [13:45:32]wFMCommunicate request_size=4 [13:45:32]MH_SAM_APDU [13:45:32]CAPDU: 80 0D 03 02 [13:45:32]Write to MH i2c: E2 08 00 F9 0E 80 0D 03 02 00 00 00 00 82 [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:32]Read from MH i2c: E2 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 0B 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 0B 00 F9 0E 00 02 EA AA 03 0D 43 CA 2A 90 00 60 [13:45:32]RAPDU: 02 EA AA 03 0D 43 CA 2A 90 00 [13:45:32]wFMCommunicate OK [13:45:32]SAM_PROTO_SignData done [13:45:32]FM_MakeSignedData done [13:45:32]CreateOFDProtocolMessage [13:45:32]wFMCommunicate request_size=4 [13:45:32]MH_SAM_APDU [13:45:32]CAPDU: 80 11 00 00 [13:45:32]Write to MH i2c: E2 08 00 FA 0E 80 11 00 00 00 00 00 00 82 [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:32]Read from MH i2c: E2 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 17 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: E2 17 00 FA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [13:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:45:32]wFMCommunicate OK [13:45:32]CreateOFDProtocolMessage done [13:45:32]OFDSenderStorePacket 166409 [13:45:32]StoreOFDPacket docnum=166409 [13:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D8 B7 07 01 27 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 7B AC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8A 02 00 35 04 06 00 63 D9 67 BB 49 87 02 EA AA 03 0D 43 CA 2A [13:45:32]CheckFolder [13:45:32]dirname=/storage/ofd_packets [13:45:32]CheckFolder done [13:45:32]ProducePacketName [13:45:32]name=ofd_packets/00166409 [13:45:32]NVStorageSaveData ofd_packets/00166409 [13:45:32]File name is /storage/ofd_packets/00166409 [13:45:32]Write 301 bytes [13:45:32]NVStorageSaveData done [13:45:32]OFDSenderStorePacket done [13:45:32]KKMCreateOFDPacket done [13:45:32]NVStorageSaveData kkm_last_timestamp [13:45:32]File name is /storage/kkm_last_timestamp [13:45:32]Write 4 bytes [13:45:32]NVStorageSaveData done [13:45:32]ExternCall_PrintAddStr [13:45:32]wPrintStart [13:45:32]Write to MH i2c: 01 00 00 FB 0E 09 [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 07 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 FF 0F 1E [13:45:32]RasterBufferAndPrint [13:45:32]line Счет N : (1)220988 [13:45:32]line ИНН: 02508201610067 [13:45:32]line Контрольно-Кассовый Чек [13:45:32]line ПРОДАЖА [13:45:32]line ТРК (МРК, ГНК) : 23 [13:45:32]line Товар: 2710124130 [13:45:32]line Аи-92-К-5 [13:45:32]line 14.650 * 66.90 [13:45:32]line = 980.09 [13:45:32]line НДС 12% НСП 1% [13:45:32]line > о реализуемом товаре [13:45:32]line ОКРУГЛЕНИЕ: -0.09 [13:45:32]line ИТОГО: 980.00 [13:45:32]line Внесено: 980.00 [13:45:32]line СДАЧА: 0.00 [13:45:32]line НСП 1% : 8.67 [13:45:32]line НДС 12% : 104.08 [13:45:32]line Наличными: 980.00 [13:45:32]line Безнал.: 0.00 [13:45:32]line Место: АЗС № 161 "Партнер Нефть" [13:45:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:45:32]line СНО: Общий режим [13:45:32]line Чек 164 22.10.2024 13:45 [13:45:32]line Смена: 536 ФФД: 1.0 [13:45:32]line ЗНМ: 0300000104 [13:45:32]line РНМ: 0000000000091764 [13:45:32]line Версия ККМ: 001 [13:45:32]line ФМ: 0000000000871759 [13:45:32]line ФД: 166409 [13:45:32]line ФПД: 109785399380359 [13:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134531&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166409&fm=109785399380359&tin=02508201610067®Number=0000000000091764&sum=98000 [13:45:32]OFD Sender: Processing packet 166409 [packets to send 48, broken 47] [13:45:32]ProducePacketName [13:45:32]name=ofd_packets/00166409 [13:45:32]OFD Sender: To server: pG, [13:45:32]CommunicateWithHost lk.salyk.kg:30040 [13:45:32]ConnectInit lk.salyk.kg [13:45:32]written 0, free lines is 4095 [13:45:32]Connected sock=10 [13:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D8 B7 07 01 27 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 7B AC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8A 02 00 35 04 06 00 63 D9 67 BB 49 87 02 EA AA 03 0D 43 CA 2A [13:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 24 47 00 E1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 8A 02 00 F4 03 04 00 E6 52 17 67 B6 04 01 00 00 63 36 F8 DE 59 A1 F5 C9 [13:45:32]CommunicateWithHost err = 0 [13:45:32]CheckOFDResponse [13:45:32]1017 (14) - 77093643461234 [13:45:32]1041 (16) - 0000000000871759 [13:45:32]1040 (4) - 166409 [13:45:32]1012 (4) - 22.10.2024 07:23 [13:45:32]1206 (1) - 0 [13:45:32]OFD Sender: Remove packet 166409 [13:45:32]ProducePacketName [13:45:32]name=ofd_packets/00166409 [13:45:32]NVStorageDeleteData [13:45:33]Write to MH i2c: 01 00 00 26 0F 35 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: 01 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: 01 07 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: 01 07 00 26 0F 00 00 00 00 00 D9 0C 21 [13:45:33]RasterBufferAndPrint [13:45:33]line [13:45:33]line [13:45:33]line [13:45:33]line [13:45:33]line [13:45:33]written 0, free lines is 3296 [13:45:33]MH_Cut [13:45:33]Write to MH i2c: D1 01 00 2D 0F 01 0E [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: D1 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: D1 01 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: D1 01 00 2D 0F 00 0D [13:45:33]Write to MH i2c: 01 00 00 2E 0F 3D [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]OFD Sender: No OFD packet to send [13:45:33]*** Cut start [13:45:33]*** Partial cut [13:45:33]*** CUTSNS_PIN = 1 [13:45:33]*** CUTSNS_PIN = 0 [13:45:34]*** Brake cut motor [13:45:34]Read from MH i2c: 01 [13:45:34]MH_I2C_Read... [13:45:34]*** Stop cut motor [13:45:34]*** Cut end [13:45:34]Read from MH i2c: 01 07 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 FF 0F 52 [13:45:34]process_action close_receipt done [13:45:34]requested_data is exist [13:45:34]produce_requested_data [13:45:34]requested_item fm.sn is exist - process it [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 11 00 00 [13:45:34]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 17 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [13:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:45:34]wFMCommunicate OK [13:45:34]requested_item fd.num is exist - process it [13:45:34]SAM_PROTO_GetFieldsCounters [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 13 00 00 [13:45:34]Write to MH i2c: E2 08 00 30 0F 80 13 00 00 00 00 00 00 BB [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 62 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 62 00 30 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [13:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:34]wFMCommunicate OK [13:45:34]SAM_PROTO_GetFieldsCounters done [13:45:34]requested_item shift.num is exist - process it [13:45:34]requested_item shift.opened is exist - process it [13:45:34]req_shift_opened [13:45:34]FM_GetShiftState [13:45:34]SAM_PROTO_GetShiftState [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 13 01 00 [13:45:34]Write to MH i2c: E2 08 00 31 0F 80 13 01 00 00 00 00 00 BD [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 0E 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 0E 00 31 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 10 [13:45:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:45:34]wFMCommunicate OK [13:45:34]SAM_PROTO_GetShiftState done [13:45:34]FM_GetShiftState done [13:45:34]req_shift_opened done [13:45:34]requested_item shift.open_date is exist - process it [13:45:34]req_shift_open_date [13:45:34]req_shift_open_date done [13:45:34]produce_requested_data done [13:45:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166409,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:45:34]process_action_free close_receipt [13:45:34]json_value_free [13:45:34]json_value_free done [13:45:34]process_json_proto returns [13:45:34]Send response to host [13:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166409,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:45:34]free response buf [13:45:34]execute_script done [13:45:34]execute_script returns [13:45:34]free content buf [13:45:34]Sock 9.Close socket [13:45:34]Sock 9.Thread stoped [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]accept exits with 7 [13:51:48]New connection [13:51:48]New thread 3067637092 created [13:51:48]Thread 3067493732 joined [13:51:48]Waiting for new connection... [13:51:48] Sock 7.Parse request [13:51:48]Sock 7.Check first char [13:51:48]Sock 7.First char is OK [13:51:48]request: POST /json_proto HTTP/1.0 [13:51:48]Method: POST [13:51:48]URL: /json_proto [13:51:48]Method is POST - this is cgi request [13:51:48]url: /json_proto [13:51:48]query_string will be loaded in cgi processing [13:51:48]execute_cgi json_proto POST (null) [13:51:48]execute_cgi path=json_proto method=POST [13:51:48]POST find Content-Length [13:51:48]Host: 172.17.53.195:8080 [13:51:48]Content-Length: 682 [13:51:48]Content-Type: application/json [13:51:48] [13:51:48]POST finish read [13:51:48]Found Content-Length = 682 [13:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:48]execute_script... [13:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:48]POST & json_proto [13:51:48]process_json_proto [13:51:48]json parsed OK: [13:51:48]protocol is kg_v1.0 [13:51:48]action value=close_receipt [13:51:48]process_action close_receipt [13:51:48]cmd_close_receipt [13:51:48]MH_GetDate [13:51:48]Write to MH i2c: F0 00 00 32 0F 30 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 09 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: F0 09 00 32 0F 00 F4 AD 17 67 21 48 4A 65 70 [13:51:48]GetLastDocTimeStamp 1729604731 [13:51:48]current date 1729605108 [13:51:48]FM_GetShiftState [13:51:48]SAM_PROTO_GetShiftState [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 13 01 00 [13:51:48]Write to MH i2c: E2 08 00 33 0F 80 13 01 00 00 00 00 00 BF [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0E 00 33 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 12 [13:51:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_GetShiftState done [13:51:48]FM_GetShiftState done [13:51:48]opened in 1729557463 [13:51:48]opened+sec_in_day 1729643863 [13:51:48]quantity*price = 100015 [13:51:48]sum+1 = 100017 [13:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 165 22.10.2024 13:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166410 ФПД: 118388985121049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166410&fm=118388985121049&tin=02508201610067®Number=0000000000091764&sum=100000 [13:51:49]StoreToDocumentArchive [13:51:49]shift 536 fd 166410 [13:51:49]save to /storage/0536/doc_00166410 [13:51:49]save last doc name /storage/0536/doc_00166410 to /storage/kkm_last_doc_name [13:51:49]save OK [13:51:49]Clear old archive folders... [13:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:49]tlvbuf is 00A205D0 [13:51:49]SAM_PROTO_ClearQueue [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 09 00 00 [13:51:49]Write to MH i2c: E2 08 00 40 0F 80 09 00 00 00 00 00 00 C1 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 40 0F 00 90 00 C3 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_ClearQueue done [13:51:49]KKMCreateOFDPacket [13:51:49]OFDProtocolAddRootSTLVToBuf [13:51:49]FM_MakeSignedData [13:51:49]FM_MakeSignedData [13:51:49]SAM_PROTO_SignData [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 0D 01 02 [13:51:49]Write to MH i2c: E2 08 00 41 0F 80 0D 01 02 00 00 00 00 C9 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 41 0F 00 90 00 C4 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]wFMCommunicate request_size=255 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F4 AD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8A 02 00 35 04 06 00 6B [13:51:49]Write to MH i2c: E2 02 01 42 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F4 AD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8A 02 00 35 04 06 00 6B 00 00 38 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]wFMCommunicate request_size=10 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 0D 02 02 05 AC 95 67 49 19 [13:51:49]Write to MH i2c: E2 0D 00 43 0F 80 0D 02 02 05 00 AC 95 67 49 19 00 00 E0 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [13:51:49]RAPDU: 90 00 [13:51:49]wFMCommunicate OK [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 0D 03 02 [13:51:49]Write to MH i2c: E2 08 00 44 0F 80 0D 03 02 00 00 00 00 CE [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0B 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0B 00 44 0F 00 3D 9E F9 0B 56 FD 6F 3E 90 00 AE [13:51:49]RAPDU: 3D 9E F9 0B 56 FD 6F 3E 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_SignData done [13:51:49]FM_MakeSignedData done [13:51:49]CreateOFDProtocolMessage [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 11 00 00 [13:51:49]Write to MH i2c: E2 08 00 45 0F 80 11 00 00 00 00 00 00 CE [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 45 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [13:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:49]wFMCommunicate OK [13:51:49]CreateOFDProtocolMessage done [13:51:49]OFDSenderStorePacket 166410 [13:51:49]StoreOFDPacket docnum=166410 [13:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 D7 07 01 8A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F4 AD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8A 02 00 35 04 06 00 6B AC 95 67 49 19 3D 9E F9 0B 56 FD 6F 3E [13:51:49]CheckFolder [13:51:49]dirname=/storage/ofd_packets [13:51:49]CheckFolder done [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00166410 [13:51:49]NVStorageSaveData ofd_packets/00166410 [13:51:49]File name is /storage/ofd_packets/00166410 [13:51:49]Write 301 bytes [13:51:49]NVStorageSaveData done [13:51:49]OFDSenderStorePacket done [13:51:49]KKMCreateOFDPacket done [13:51:49]NVStorageSaveData kkm_last_timestamp [13:51:49]File name is /storage/kkm_last_timestamp [13:51:49]Write 4 bytes [13:51:49]NVStorageSaveData done [13:51:49]ExternCall_PrintAddStr [13:51:49]wPrintStart [13:51:49]Write to MH i2c: 01 00 00 46 0F 55 [13:51:49]OFD Sender: Processing packet 166410 [packets to send 48, broken 47] [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00166410 [13:51:49]OFD Sender: To server: pG, [13:51:49]CommunicateWithHost lk.salyk.kg:30040 [13:51:49]ConnectInit lk.salyk.kg [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 46 0F 00 00 00 00 00 FF 0F 6A [13:51:49]RasterBufferAndPrint [13:51:49]line Счет N : (1)220989 [13:51:49]line ИНН: 02508201610067 [13:51:49]line Контрольно-Кассовый Чек [13:51:49]line ПРОДАЖА [13:51:49]line ТРК (МРК, ГНК) : 13 [13:51:49]line Товар: 2710124130 [13:51:49]line Аи-92-К-5 [13:51:49]line 14.950 * 66.90 [13:51:49]line = 1000.16 [13:51:49]line НДС 12% НСП 1% [13:51:49]line > о реализуемом товаре [13:51:49]line ОКРУГЛЕНИЕ: -0.16 [13:51:49]line ИТОГО: 1000.00 [13:51:49]line Внесено: 1000.00 [13:51:49]line СДАЧА: 0.00 [13:51:49]line НСП 1% : 8.85 [13:51:49]line НДС 12% : 106.21 [13:51:49]line Наличными: 1000.00 [13:51:49]line Безнал.: 0.00 [13:51:49]line Место: АЗС № 161 "Партнер Нефть" [13:51:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:51:49]line СНО: Общий режим [13:51:49]line Чек 165 22.10.2024 13:51 [13:51:49]line Смена: 536 ФФД: 1.0 [13:51:49]line ЗНМ: 0300000104 [13:51:49]line РНМ: 0000000000091764 [13:51:49]line Версия ККМ: 001 [13:51:49]line ФМ: 0000000000871759 [13:51:49]line ФД: 166410 [13:51:49]line ФПД: 118388985121049 [13:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166410&fm=118388985121049&tin=02508201610067®Number=0000000000091764&sum=100000 [13:51:50]Connected sock=9 [13:51:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 D7 07 01 8A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F4 AD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8A 02 00 35 04 06 00 6B AC 95 67 49 19 3D 9E F9 0B 56 FD 6F 3E [13:51:50]written 0, free lines is 4095 [13:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 CB 47 00 FC 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 8A 02 00 F4 03 04 00 5F 54 17 67 B6 04 01 00 00 3E E5 AF 86 91 D7 D9 04 [13:51:50]CommunicateWithHost err = 0 [13:51:50]CheckOFDResponse [13:51:50]1017 (14) - 77093643461234 [13:51:50]1041 (16) - 0000000000871759 [13:51:50]1040 (4) - 166410 [13:51:50]1012 (4) - 22.10.2024 07:29 [13:51:50]1206 (1) - 0 [13:51:50]OFD Sender: Remove packet 166410 [13:51:50]ProducePacketName [13:51:50]name=ofd_packets/00166410 [13:51:50]NVStorageDeleteData [13:51:50]Write to MH i2c: 01 00 00 71 0F 80 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 07 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: 01 07 00 71 0F 00 00 00 00 00 CA 0C 5D [13:51:50]RasterBufferAndPrint [13:51:50]line [13:51:50]line [13:51:50]line [13:51:50]line [13:51:50]line [13:51:50]written 0, free lines is 3280 [13:51:50]MH_Cut [13:51:50]Write to MH i2c: D1 01 00 78 0F 01 59 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: D1 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: D1 01 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: D1 01 00 78 0F 00 58 [13:51:50]Write to MH i2c: 01 00 00 79 0F 88 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]OFD Sender: No OFD packet to send [13:51:51]*** Cut start [13:51:51]*** Partial cut [13:51:51]*** CUTSNS_PIN = 1 [13:51:51]*** CUTSNS_PIN = 0 [13:51:51]*** Brake cut motor [13:51:51]Read from MH i2c: 01 [13:51:51]MH_I2C_Read... [13:51:51]*** Stop cut motor [13:51:52]*** Cut end [13:51:52]Read from MH i2c: 01 07 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 FF 0F 9D [13:51:52]process_action close_receipt done [13:51:52]requested_data is exist [13:51:52]produce_requested_data [13:51:52]requested_item fm.sn is exist - process it [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 11 00 00 [13:51:52]Write to MH i2c: E2 08 00 7A 0F 80 11 00 00 00 00 00 00 03 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 17 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 17 00 7A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [13:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:52]wFMCommunicate OK [13:51:52]requested_item fd.num is exist - process it [13:51:52]SAM_PROTO_GetFieldsCounters [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 13 00 00 [13:51:52]Write to MH i2c: E2 08 00 7B 0F 80 13 00 00 00 00 00 00 06 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 62 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 62 00 7B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [13:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:52]wFMCommunicate OK [13:51:52]SAM_PROTO_GetFieldsCounters done [13:51:52]requested_item shift.num is exist - process it [13:51:52]requested_item shift.opened is exist - process it [13:51:52]req_shift_opened [13:51:52]FM_GetShiftState [13:51:52]SAM_PROTO_GetShiftState [13:51:52]wFMCommunicate request_size=4 [13:51:52]MH_SAM_APDU [13:51:52]CAPDU: 80 13 01 00 [13:51:52]Write to MH i2c: E2 08 00 7C 0F 80 13 01 00 00 00 00 00 08 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 [13:51:52]MH_I2C_Read... [13:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:52]Read from MH i2c: E2 0E 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: E2 0E 00 7C 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5B [13:51:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:51:52]wFMCommunicate OK [13:51:52]SAM_PROTO_GetShiftState done [13:51:52]FM_GetShiftState done [13:51:52]req_shift_opened done [13:51:52]requested_item shift.open_date is exist - process it [13:51:52]req_shift_open_date [13:51:52]req_shift_open_date done [13:51:52]produce_requested_data done [13:51:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166410,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:51:52]process_action_free close_receipt [13:51:52]json_value_free [13:51:52]json_value_free done [13:51:52]process_json_proto returns [13:51:52]Send response to host [13:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166410,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:51:52]free response buf [13:51:52]execute_script done [13:51:52]execute_script returns [13:51:52]free content buf [13:51:52]Sock 7.Close socket [13:51:52]Sock 7.Thread stoped [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57: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:07]accept exits with 10 [13:58:07]New connection [13:58:07]New thread 3067493732 created [13:58:07]Thread 3067637092 joined [13:58:07]Waiting for new connection... [13:58:07] Sock 10.Parse request [13:58:07]Sock 10.Check first char [13:58:07]Sock 10.First char is OK [13:58:07]request: POST /json_proto HTTP/1.0 [13:58:07]Method: POST [13:58:07]URL: /json_proto [13:58:07]Method is POST - this is cgi request [13:58:07]url: /json_proto [13:58:07]query_string will be loaded in cgi processing [13:58:07]execute_cgi json_proto POST (null) [13:58:07]execute_cgi path=json_proto method=POST [13:58:07]POST find Content-Length [13:58:07]Host: 172.17.53.195:8080 [13:58:07]Content-Length: 789 [13:58:07]Content-Type: application/json [13:58:07] [13:58:07]POST finish read [13:58:07]Found Content-Length = 789 [13:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A61759", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]execute_script... [13:58:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A61759", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]POST & json_proto [13:58:07]process_json_proto [13:58:07]json parsed OK: [13:58:07]protocol is kg_v1.0 [13:58:07]action value=close_receipt [13:58:07]process_action close_receipt [13:58:07]cmd_close_receipt [13:58:07]MH_GetDate [13:58:07]Write to MH i2c: F0 00 00 7D 0F 7B [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 7D 0F 00 6F AF 17 67 21 48 4A 65 38 [13:58:07]GetLastDocTimeStamp 1729605108 [13:58:07]current date 1729605487 [13:58:07]FM_GetShiftState [13:58:07]SAM_PROTO_GetShiftState [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 13 01 00 [13:58:07]Write to MH i2c: E2 08 00 7E 0F 80 13 01 00 00 00 00 00 0A [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 7E 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5D [13:58:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_GetShiftState done [13:58:07]FM_GetShiftState done [13:58:07]opened in 1729557463 [13:58:07]opened+sec_in_day 1729643863 [13:58:07]quantity*price = 0 [13:58:07]sum+1 = 1 [13:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 166 22.10.2024 13:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 61759 ФМ: 0000000000871759 ФД: 166411 ФПД: 179274762695151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166411&fm=179274762695151&tin=02508201610067®Number=0000000000091764&sum=0 [13:58:08]StoreToDocumentArchive [13:58:08]shift 536 fd 166411 [13:58:08]save to /storage/0536/doc_00166411 [13:58:08]save last doc name /storage/0536/doc_00166411 to /storage/kkm_last_doc_name [13:58:08]save OK [13:58:08]Clear old archive folders... [13:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:08]tlvbuf is 009F5F00 [13:58:08]SAM_PROTO_ClearQueue [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 09 00 00 [13:58:08]Write to MH i2c: E2 08 00 8B 0F 80 09 00 00 00 00 00 00 0C [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 8B 0F 00 90 00 0E [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_ClearQueue done [13:58:08]KKMCreateOFDPacket [13:58:08]OFDProtocolAddRootSTLVToBuf [13:58:08]FM_MakeSignedData [13:58:08]FM_MakeSignedData [13:58:08]SAM_PROTO_SignData [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 01 02 [13:58:08]Write to MH i2c: E2 08 00 8C 0F 80 0D 01 02 00 00 00 00 14 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=255 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 68 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6F AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8A 02 00 35 04 06 00 A3 0C A8 8C [13:58:08]Write to MH i2c: E2 02 01 8D 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 68 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6F AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8A 02 00 35 04 06 00 A3 0C A8 8C 00 00 D0 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=7 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 02 02 02 31 EF [13:58:08]Write to MH i2c: E2 0A 00 8E 0F 80 0D 02 02 02 00 31 EF 00 00 3B [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 03 02 [13:58:08]Write to MH i2c: E2 08 00 8F 0F 80 0D 03 02 00 00 00 00 19 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0B 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0B 00 8F 0F 00 3F 76 4A F9 4F 1D 86 4F 90 00 53 [13:58:08]RAPDU: 3F 76 4A F9 4F 1D 86 4F 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_SignData done [13:58:08]FM_MakeSignedData done [13:58:08]CreateOFDProtocolMessage [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 11 00 00 [13:58:08]Write to MH i2c: E2 08 00 90 0F 80 11 00 00 00 00 00 00 19 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 90 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [13:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:08]wFMCommunicate OK [13:58:08]CreateOFDProtocolMessage done [13:58:08]OFDSenderStorePacket 166411 [13:58:08]StoreOFDPacket docnum=166411 [13:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 60 55 04 01 1E D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 68 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6F AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8A 02 00 35 04 06 00 A3 0C A8 8C 31 EF 3F 76 4A F9 4F 1D 86 4F [13:58:08]CheckFolder [13:58:08]dirname=/storage/ofd_packets [13:58:08]CheckFolder done [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00166411 [13:58:08]NVStorageSaveData ofd_packets/00166411 [13:58:08]File name is /storage/ofd_packets/00166411 [13:58:08]Write 298 bytes [13:58:08]NVStorageSaveData done [13:58:08]OFDSenderStorePacket done [13:58:08]KKMCreateOFDPacket done [13:58:08]NVStorageSaveData kkm_last_timestamp [13:58:08]File name is /storage/kkm_last_timestamp [13:58:08]Write 4 bytes [13:58:08]NVStorageSaveData done [13:58:08]ExternCall_PrintAddStr [13:58:08]wPrintStart [13:58:08]Write to MH i2c: 01 00 00 91 0F A0 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 FF 0F B5 [13:58:08]RasterBufferAndPrint [13:58:08]line Счет N : (1)220990 [13:58:08]line ИНН: 02508201610067 [13:58:08]line Контрольно-Кассовый Чек [13:58:08]line ПРОДАЖА [13:58:08]line ТРК (МРК, ГНК) : 31 [13:58:08]line Товар: 2710194210 [13:58:08]line ДТ-К-5 [13:58:08]line 26.650 * 0.00 [13:58:08]line = 0.00 [13:58:08]line НДС 12% НСП 1% [13:58:08]line > о реализуемом товаре [13:58:08]line ИТОГО: 0.00 [13:58:08]line НСП 1% : 0.00 [13:58:08]line НДС 12% : 0.00 [13:58:08]line Наличными: 0.00 [13:58:08]line Безнал.: 0.00 [13:58:08]line Место: АЗС № 161 "Партнер Нефть" [13:58:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:58:08]line СНО: Общий режим [13:58:08]line Чек 166 22.10.2024 13:58 [13:58:08]line Смена: 536 ФФД: 1.0 [13:58:08]line ЗНМ: 0300000104 [13:58:08]line РНМ: 0000000000091764 [13:58:08]line Версия ККМ: 001 [13:58:08]line Талоны: Топливная Карта [13:58:08]line 61759 [13:58:08]line ФМ: 0000000000871759 [13:58:08]line ФД: 166411 [13:58:08]line ФПД: 179274762695151 [13:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166411&fm=179274762695151&tin=02508201610067®Number=0000000000091764&sum=0 [13:58:09]OFD Sender: Processing packet 166411 [packets to send 48, broken 47] [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00166411 [13:58:09]OFD Sender: To server: pG, [13:58:09]CommunicateWithHost lk.salyk.kg:30040 [13:58:09]ConnectInit lk.salyk.kg [13:58:09]written 0, free lines is 4095 [13:58:09]Connected sock=9 [13:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 60 55 04 01 1E D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 68 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6F AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8A 02 00 35 04 06 00 A3 0C A8 8C 31 EF 3F 76 4A F9 4F 1D 86 4F [13:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 52 54 47 00 ED B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 8A 02 00 F4 03 04 00 DA 55 17 67 B6 04 01 00 00 AD DF 33 52 80 C3 51 06 [13:58:09]CommunicateWithHost err = 0 [13:58:09]CheckOFDResponse [13:58:09]1017 (14) - 77093643461234 [13:58:09]1041 (16) - 0000000000871759 [13:58:09]1040 (4) - 166411 [13:58:09]1012 (4) - 22.10.2024 07:35 [13:58:09]1206 (1) - 0 [13:58:09]OFD Sender: Remove packet 166411 [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00166411 [13:58:09]NVStorageDeleteData [13:58:09]Write to MH i2c: 01 00 00 BB 0F CA [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 BB 0F 00 00 00 00 00 D5 0C B2 [13:58:09]RasterBufferAndPrint [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]written 0, free lines is 3291 [13:58:09]MH_Cut [13:58:09]Write to MH i2c: D1 01 00 C2 0F 01 A3 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 C2 0F 00 A2 [13:58:09]Write to MH i2c: 01 00 00 C3 0F D2 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]OFD Sender: No OFD packet to send [13:58:10]*** Cut start [13:58:10]*** Partial cut [13:58:10]*** CUTSNS_PIN = 1 [13:58:10]*** CUTSNS_PIN = 0 [13:58:10]*** Brake cut motor [13:58:10]Read from MH i2c: 01 [13:58:10]MH_I2C_Read... [13:58:10]*** Stop cut motor [13:58:10]*** Cut end [13:58:10]Read from MH i2c: 01 07 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [13:58:10]process_action close_receipt done [13:58:10]requested_data is exist [13:58:10]produce_requested_data [13:58:10]requested_item fm.sn is exist - process it [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 11 00 00 [13:58:10]Write to MH i2c: E2 08 00 C4 0F 80 11 00 00 00 00 00 00 4D [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 17 00 [13:58:10]MH_I2C_Read... [13:58:10]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 31 37 35 39 90 00 A5 [13:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:10]wFMCommunicate OK [13:58:10]requested_item fd.num is exist - process it [13:58:10]SAM_PROTO_GetFieldsCounters [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 13 00 00 [13:58:10]Write to MH i2c: E2 08 00 C5 0F 80 13 00 00 00 00 00 00 50 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 [13:58:11]MH_I2C_Read... [13:58:11]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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [13:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetFieldsCounters done [13:58:11]requested_item shift.num is exist - process it [13:58:11]requested_item shift.opened is exist - process it [13:58:11]req_shift_opened [13:58:11]FM_GetShiftState [13:58:11]SAM_PROTO_GetShiftState [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 01 00 [13:58:11]Write to MH i2c: E2 08 00 C6 0F 80 13 01 00 00 00 00 00 52 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 C6 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A5 [13:58:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetShiftState done [13:58:11]FM_GetShiftState done [13:58:11]req_shift_opened done [13:58:11]requested_item shift.open_date is exist - process it [13:58:11]req_shift_open_date [13:58:11]req_shift_open_date done [13:58:11]produce_requested_data done [13:58:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166411,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:58:11]process_action_free close_receipt [13:58:11]json_value_free [13:58:11]json_value_free done [13:58:11]process_json_proto returns [13:58:11]Send response to host [13:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166411,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:58:11]free response buf [13:58:11]execute_script done [13:58:11]execute_script returns [13:58:11]free content buf [13:58:11]Sock 10.Close socket [13:58:11]Sock 10.Thread stoped [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:23]accept exits with 7 [13:58:23]New connection [13:58:23]New thread 3067637092 created [13:58:23]Thread 3067493732 joined [13:58:23]Waiting for new connection... [13:58:23] Sock 7.Parse request [13:58:23]Sock 7.Check first char [13:58:23]Sock 7.First char is OK [13:58:23]request: POST /json_proto HTTP/1.0 [13:58:23]Method: POST [13:58:23]URL: /json_proto [13:58:23]Method is POST - this is cgi request [13:58:23]url: /json_proto [13:58:23]query_string will be loaded in cgi processing [13:58:23]execute_cgi json_proto POST (null) [13:58:23]execute_cgi path=json_proto method=POST [13:58:23]POST find Content-Length [13:58:23]Host: 172.17.53.195:8080 [13:58:23]Content-Length: 677 [13:58:23]Content-Type: application/json [13:58:23] [13:58:23]POST finish read [13:58:23]Found Content-Length = 677 [13:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:23]execute_script... [13:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:23]POST & json_proto [13:58:23]process_json_proto [13:58:23]json parsed OK: [13:58:23]protocol is kg_v1.0 [13:58:23]action value=close_receipt [13:58:23]process_action close_receipt [13:58:23]cmd_close_receipt [13:58:23]MH_GetDate [13:58:23]Write to MH i2c: F0 00 00 C7 0F C5 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 C7 0F 00 80 AF 17 67 21 48 4A 65 93 [13:58:23]GetLastDocTimeStamp 1729605487 [13:58:23]current date 1729605504 [13:58:23]FM_GetShiftState [13:58:23]SAM_PROTO_GetShiftState [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 01 00 [13:58:23]Write to MH i2c: E2 08 00 C8 0F 80 13 01 00 00 00 00 00 54 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 C8 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A7 [13:58:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_GetShiftState done [13:58:23]FM_GetShiftState done [13:58:23]opened in 1729557463 [13:58:23]opened+sec_in_day 1729643863 [13:58:23]quantity*price = 59942 [13:58:23]sum+1 = 59943 [13:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.30 НДС 12% : 63.65 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 167 22.10.2024 13:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166412 ФПД: 86516413706660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166412&fm=86516413706660&tin=02508201610067®Number=0000000000091764&sum=59900 [13:58:24]StoreToDocumentArchive [13:58:24]shift 536 fd 166412 [13:58:24]save to /storage/0536/doc_00166412 [13:58:24]save last doc name /storage/0536/doc_00166412 to /storage/kkm_last_doc_name [13:58:24]save OK [13:58:24]Clear old archive folders... [13:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:24]tlvbuf is B6F81C80 [13:58:24]SAM_PROTO_ClearQueue [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 09 00 00 [13:58:24]Write to MH i2c: E2 08 00 D5 0F 80 09 00 00 00 00 00 00 56 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 D5 0F 00 90 00 58 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_ClearQueue done [13:58:24]KKMCreateOFDPacket [13:58:24]OFDProtocolAddRootSTLVToBuf [13:58:24]FM_MakeSignedData [13:58:24]FM_MakeSignedData [13:58:24]SAM_PROTO_SignData [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 01 02 [13:58:24]Write to MH i2c: E2 08 00 D6 0F 80 0D 01 02 00 00 00 00 5E [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 D6 0F 00 90 00 59 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=255 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8A 02 00 35 04 06 00 4E [13:58:24]Write to MH i2c: E2 02 01 D7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8A 02 00 35 04 06 00 4E 00 00 05 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]OFD Sender: No OFD packet to send [13:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 D7 0F 00 90 00 5A [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=10 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 02 02 05 AF AC 1B 31 A4 [13:58:24]Write to MH i2c: E2 0D 00 D8 0F 80 0D 02 02 05 00 AF AC 1B 31 A4 00 00 B6 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 03 02 [13:58:25]Write to MH i2c: E2 08 00 D9 0F 80 0D 03 02 00 00 00 00 63 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 D9 0F 00 4D B5 0F 1F DC 3F CA FC 90 00 75 [13:58:25]RAPDU: 4D B5 0F 1F DC 3F CA FC 90 00 [13:58:25]wFMCommunicate OK [13:58:25]SAM_PROTO_SignData done [13:58:25]FM_MakeSignedData done [13:58:25]CreateOFDProtocolMessage [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 11 00 00 [13:58:25]Write to MH i2c: E2 08 00 DA 0F 80 11 00 00 00 00 00 00 63 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 17 00 [13:58:25]MH_I2C_Read... [13:58:25]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 31 37 35 39 90 00 BB [13:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:25]wFMCommunicate OK [13:58:25]CreateOFDProtocolMessage done [13:58:25]OFDSenderStorePacket 166412 [13:58:25]StoreOFDPacket docnum=166412 [13:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9C 90 07 01 D3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8A 02 00 35 04 06 00 4E AF AC 1B 31 A4 4D B5 0F 1F DC 3F CA FC [13:58:25]CheckFolder [13:58:25]dirname=/storage/ofd_packets [13:58:25]CheckFolder done [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00166412 [13:58:25]NVStorageSaveData ofd_packets/00166412 [13:58:25]File name is /storage/ofd_packets/00166412 [13:58:25]Write 301 bytes [13:58:25]NVStorageSaveData done [13:58:25]OFDSenderStorePacket done [13:58:25]KKMCreateOFDPacket done [13:58:25]NVStorageSaveData kkm_last_timestamp [13:58:25]File name is /storage/kkm_last_timestamp [13:58:25]Write 4 bytes [13:58:25]NVStorageSaveData done [13:58:25]ExternCall_PrintAddStr [13:58:25]wPrintStart [13:58:25]Write to MH i2c: 01 00 00 DB 0F EA [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 DB 0F 00 00 00 00 00 FF 0F FF [13:58:25]RasterBufferAndPrint [13:58:25]line Счет N : (1)220991 [13:58:25]line ИНН: 02508201610067 [13:58:25]line Контрольно-Кассовый Чек [13:58:25]line ПРОДАЖА [13:58:25]line ТРК (МРК, ГНК) : 13 [13:58:25]line Товар: 2710124130 [13:58:25]line Аи-92-К-5 [13:58:25]line 8.960 * 66.90 [13:58:25]line = 599.42 [13:58:25]line НДС 12% НСП 1% [13:58:25]line > о реализуемом товаре [13:58:25]line ОКРУГЛЕНИЕ: -0.42 [13:58:25]line ИТОГО: 599.00 [13:58:25]line Внесено: 600.00 [13:58:25]line СДАЧА: 1.00 [13:58:25]line НСП 1% : 5.30 [13:58:25]line НДС 12% : 63.65 [13:58:25]line Наличными: 599.00 [13:58:25]line Безнал.: 0.00 [13:58:25]line Место: АЗС № 161 "Партнер Нефть" [13:58:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:58:25]line СНО: Общий режим [13:58:25]line Чек 167 22.10.2024 13:58 [13:58:25]line Смена: 536 ФФД: 1.0 [13:58:25]line ЗНМ: 0300000104 [13:58:25]line РНМ: 0000000000091764 [13:58:25]line Версия ККМ: 001 [13:58:25]line ФМ: 0000000000871759 [13:58:25]line ФД: 166412 [13:58:25]line ФПД: 86516413706660 [13:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166412&fm=86516413706660&tin=02508201610067®Number=0000000000091764&sum=59900 [13:58:25]OFD Sender: Processing packet 166412 [packets to send 48, broken 47] [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00166412 [13:58:25]OFD Sender: To server: pG, [13:58:25]CommunicateWithHost lk.salyk.kg:30040 [13:58:25]ConnectInit lk.salyk.kg [13:58:25]written 0, free lines is 4095 [13:58:25]Connected sock=10 [13:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9C 90 07 01 D3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 80 AF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8A 02 00 35 04 06 00 4E AF AC 1B 31 A4 4D B5 0F 1F DC 3F CA FC [13:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5F 44 47 00 18 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 8A 02 00 F4 03 04 00 EB 55 17 67 B6 04 01 00 00 8A AC F5 88 5D B1 BF 89 [13:58:25]CommunicateWithHost err = 0 [13:58:25]CheckOFDResponse [13:58:25]1017 (14) - 77093643461234 [13:58:25]1041 (16) - 0000000000871759 [13:58:25]1040 (4) - 166412 [13:58:25]1012 (4) - 22.10.2024 07:36 [13:58:25]1206 (1) - 0 [13:58:25]OFD Sender: Remove packet 166412 [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00166412 [13:58:25]NVStorageDeleteData [13:58:25]Write to MH i2c: 01 00 00 06 10 16 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 DA 0C 03 [13:58:25]RasterBufferAndPrint [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]line [13:58:25]written 0, free lines is 3297 [13:58:25]MH_Cut [13:58:25]Write to MH i2c: D1 01 00 0D 10 01 EF [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 01 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: D1 01 00 0D 10 00 EE [13:58:25]Write to MH i2c: 01 00 00 0E 10 1E [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:26]OFD Sender: No OFD packet to send [13:58:26]*** Cut start [13:58:26]*** Partial cut [13:58:26]*** CUTSNS_PIN = 1 [13:58:26]*** CUTSNS_PIN = 0 [13:58:27]*** Brake cut motor [13:58:27]Read from MH i2c: 01 [13:58:27]MH_I2C_Read... [13:58:27]*** Stop cut motor [13:58:27]*** Cut end [13:58:27]Read from MH i2c: 01 07 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 FF 0F 33 [13:58:27]process_action close_receipt done [13:58:27]requested_data is exist [13:58:27]produce_requested_data [13:58:27]requested_item fm.sn is exist - process it [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 11 00 00 [13:58:27]Write to MH i2c: E2 08 00 0F 10 80 11 00 00 00 00 00 00 99 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 0F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [13:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:27]wFMCommunicate OK [13:58:27]requested_item fd.num is exist - process it [13:58:27]SAM_PROTO_GetFieldsCounters [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 00 00 [13:58:27]Write to MH i2c: E2 08 00 10 10 80 13 00 00 00 00 00 00 9C [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 10 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetFieldsCounters done [13:58:27]requested_item shift.num is exist - process it [13:58:27]requested_item shift.opened is exist - process it [13:58:27]req_shift_opened [13:58:27]FM_GetShiftState [13:58:27]SAM_PROTO_GetShiftState [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 01 00 [13:58:27]Write to MH i2c: E2 08 00 11 10 80 13 01 00 00 00 00 00 9E [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 11 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F1 [13:58:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetShiftState done [13:58:27]FM_GetShiftState done [13:58:27]req_shift_opened done [13:58:27]requested_item shift.open_date is exist - process it [13:58:27]req_shift_open_date [13:58:27]req_shift_open_date done [13:58:27]produce_requested_data done [13:58:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166412,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [13:58:27]process_action_free close_receipt [13:58:27]json_value_free [13:58:27]json_value_free done [13:58:27]process_json_proto returns [13:58:27]Send response to host [13:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166412,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [13:58:27]free response buf [13:58:27]execute_script done [13:58:27]execute_script returns [13:58:27]free content buf [13:58:27]Sock 7.Close socket [13:58:27]Sock 7.Thread stoped [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:51]accept exits with 9 [14:02:51]New connection [14:02:51]New thread 3067493732 created [14:02:51]Thread 3067637092 joined [14:02:51]Waiting for new connection... [14:02:51] Sock 9.Parse request [14:02:51]Sock 9.Check first char [14:02:51]Sock 9.First char is OK [14:02:51]request: POST /json_proto HTTP/1.0 [14:02:51]Method: POST [14:02:51]URL: /json_proto [14:02:51]Method is POST - this is cgi request [14:02:51]url: /json_proto [14:02:51]query_string will be loaded in cgi processing [14:02:51]execute_cgi json_proto POST (null) [14:02:51]execute_cgi path=json_proto method=POST [14:02:51]POST find Content-Length [14:02:51]Host: 172.17.53.195:8080 [14:02:51]Content-Length: 800 [14:02:51]Content-Type: application/json [14:02:51] [14:02:51]POST finish read [14:02:51]Found Content-Length = 800 [14:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646171", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:51]execute_script... [14:02:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646171", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:51]POST & json_proto [14:02:51]process_json_proto [14:02:51]json parsed OK: [14:02:51]protocol is kg_v1.0 [14:02:51]action value=close_receipt [14:02:51]process_action close_receipt [14:02:51]cmd_close_receipt [14:02:51]MH_GetDate [14:02:51]Write to MH i2c: F0 00 00 12 10 11 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: F0 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: F0 09 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: F0 09 00 12 10 00 8C B0 17 67 21 48 4A 65 EC [14:02:51]GetLastDocTimeStamp 1729605504 [14:02:51]current date 1729605772 [14:02:51]FM_GetShiftState [14:02:51]SAM_PROTO_GetShiftState [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 13 01 00 [14:02:51]Write to MH i2c: E2 08 00 13 10 80 13 01 00 00 00 00 00 A0 [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 13 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F3 [14:02:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:02:51]wFMCommunicate OK [14:02:51]SAM_PROTO_GetShiftState done [14:02:51]FM_GetShiftState done [14:02:51]opened in 1729557463 [14:02:51]opened+sec_in_day 1729643863 [14:02:51]quantity*price = 0 [14:02:51]sum+1 = 1 [14:02:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 168 22.10.2024 14:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 1646171 ФМ: 0000000000871759 ФД: 166413 ФПД: 160845332891502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166413&fm=160845332891502&tin=02508201610067®Number=0000000000091764&sum=0 [14:02:52]StoreToDocumentArchive [14:02:52]shift 536 fd 166413 [14:02:52]save to /storage/0536/doc_00166413 [14:02:52]save last doc name /storage/0536/doc_00166413 to /storage/kkm_last_doc_name [14:02:52]save OK [14:02:52]Clear old archive folders... [14:02:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:52]tlvbuf is 00994BF0 [14:02:52]SAM_PROTO_ClearQueue [14:02:52]wFMCommunicate request_size=4 [14:02:52]MH_SAM_APDU [14:02:52]CAPDU: 80 09 00 00 [14:02:52]Write to MH i2c: E2 08 00 20 10 80 09 00 00 00 00 00 00 A2 [14:02:52]Write i2c OK [14:02:52]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [14:02:53]RAPDU: 90 00 [14:02:53]wFMCommunicate OK [14:02:53]SAM_PROTO_ClearQueue done [14:02:53]KKMCreateOFDPacket [14:02:53]OFDProtocolAddRootSTLVToBuf [14:02:53]FM_MakeSignedData [14:02:53]FM_MakeSignedData [14:02:53]SAM_PROTO_SignData [14:02:53]wFMCommunicate request_size=4 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 0D 01 02 [14:02:53]Write to MH i2c: E2 08 00 21 10 80 0D 01 02 00 00 00 00 AA [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 21 10 00 90 00 A5 [14:02:53]RAPDU: 90 00 [14:02:53]wFMCommunicate OK [14:02:53]wFMCommunicate request_size=255 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C B0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8A 02 00 35 04 06 00 92 [14:02:53]Write to MH i2c: E2 02 01 22 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C B0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8A 02 00 35 04 06 00 92 00 00 D4 [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 22 10 00 90 00 A6 [14:02:53]RAPDU: 90 00 [14:02:53]wFMCommunicate OK [14:02:53]wFMCommunicate request_size=10 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 0D 02 02 05 49 B8 EE 47 6E [14:02:53]Write to MH i2c: E2 0D 00 23 10 80 0D 02 02 05 00 49 B8 EE 47 6E 00 00 5B [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [14:02:53]RAPDU: 90 00 [14:02:53]wFMCommunicate OK [14:02:53]wFMCommunicate request_size=4 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 0D 03 02 [14:02:53]Write to MH i2c: E2 08 00 24 10 80 0D 03 02 00 00 00 00 AF [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0B 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0B 00 24 10 00 9B 79 05 A8 BB 32 87 A6 90 00 8B [14:02:53]RAPDU: 9B 79 05 A8 BB 32 87 A6 90 00 [14:02:53]wFMCommunicate OK [14:02:53]SAM_PROTO_SignData done [14:02:53]FM_MakeSignedData done [14:02:53]CreateOFDProtocolMessage [14:02:53]wFMCommunicate request_size=4 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 11 00 00 [14:02:53]Write to MH i2c: E2 08 00 25 10 80 11 00 00 00 00 00 00 AF [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 17 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 17 00 25 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [14:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:53]wFMCommunicate OK [14:02:53]CreateOFDProtocolMessage done [14:02:53]OFDSenderStorePacket 166413 [14:02:53]StoreOFDPacket docnum=166413 [14:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 72 07 01 65 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C B0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8A 02 00 35 04 06 00 92 49 B8 EE 47 6E 9B 79 05 A8 BB 32 87 A6 [14:02:53]CheckFolder [14:02:53]dirname=/storage/ofd_packets [14:02:53]CheckFolder done [14:02:53]ProducePacketName [14:02:53]name=ofd_packets/00166413 [14:02:53]NVStorageSaveData ofd_packets/00166413 [14:02:53]File name is /storage/ofd_packets/00166413 [14:02:53]Write 301 bytes [14:02:53]NVStorageSaveData done [14:02:53]OFDSenderStorePacket done [14:02:53]KKMCreateOFDPacket done [14:02:53]NVStorageSaveData kkm_last_timestamp [14:02:53]File name is /storage/kkm_last_timestamp [14:02:53]Write 4 bytes [14:02:53]NVStorageSaveData done [14:02:53]ExternCall_PrintAddStr [14:02:53]wPrintStart [14:02:53]Write to MH i2c: 01 00 00 26 10 36 [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: 01 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: 01 07 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: 01 07 00 26 10 00 00 00 00 00 FF 0F 4B [14:02:53]RasterBufferAndPrint [14:02:53]line Счет N : (1)220992 [14:02:53]line ИНН: 02508201610067 [14:02:53]line Контрольно-Кассовый Чек [14:02:53]line ПРОДАЖА [14:02:53]line ТРК (МРК, ГНК) : 24 [14:02:53]line Товар: 2710124500 [14:02:53]line Аи-95-К-5 [14:02:53]line 20.000 * 0.00 [14:02:53]line = 0.00 [14:02:53]line НДС 12% НСП 1% [14:02:53]line > о реализуемом товаре [14:02:53]line ИТОГО: 0.00 [14:02:53]line НСП 1% : 0.00 [14:02:53]line НДС 12% : 0.00 [14:02:53]line Наличными: 0.00 [14:02:53]line Безнал.: 0.00 [14:02:53]line Место: АЗС № 161 "Партнер Нефть" [14:02:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:02:53]line СНО: Общий режим [14:02:53]line Чек 168 22.10.2024 14:02 [14:02:53]line Смена: 536 ФФД: 1.0 [14:02:53]line ЗНМ: 0300000104 [14:02:53]line РНМ: 0000000000091764 [14:02:53]line Версия ККМ: 001 [14:02:53]line Талоны: Топливные Талоны [14:02:53]line 1646171 [14:02:53]line ФМ: 0000000000871759 [14:02:53]line ФД: 166413 [14:02:53]line ФПД: 160845332891502 [14:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166413&fm=160845332891502&tin=02508201610067®Number=0000000000091764&sum=0 [14:02:53]OFD Sender: Processing packet 166413 [packets to send 48, broken 47] [14:02:53]ProducePacketName [14:02:53]name=ofd_packets/00166413 [14:02:53]OFD Sender: To server: pG, [14:02:53]CommunicateWithHost lk.salyk.kg:30040 [14:02:53]ConnectInit lk.salyk.kg [14:02:53]written 0, free lines is 4095 [14:02:53]Connected sock=10 [14:02:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB 72 07 01 65 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 8C B0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8A 02 00 35 04 06 00 92 49 B8 EE 47 6E 9B 79 05 A8 BB 32 87 A6 [14:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 E8 47 00 15 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 8A 02 00 F4 03 04 00 F7 56 17 67 B6 04 01 00 00 38 E6 47 10 2C DA 58 AA [14:02:54]CommunicateWithHost err = 0 [14:02:54]CheckOFDResponse [14:02:54]1017 (14) - 77093643461234 [14:02:54]1041 (16) - 0000000000871759 [14:02:54]1040 (4) - 166413 [14:02:54]1012 (4) - 22.10.2024 07:40 [14:02:54]1206 (1) - 0 [14:02:54]OFD Sender: Remove packet 166413 [14:02:54]ProducePacketName [14:02:54]name=ofd_packets/00166413 [14:02:54]NVStorageDeleteData [14:02:54]Write to MH i2c: 01 00 00 50 10 60 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 DF 0C 52 [14:02:54]RasterBufferAndPrint [14:02:54]line [14:02:54]line [14:02:54]line [14:02:54]line [14:02:54]line [14:02:54]written 0, free lines is 3301 [14:02:54]MH_Cut [14:02:54]Write to MH i2c: D1 01 00 57 10 01 39 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: D1 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: D1 01 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: D1 01 00 57 10 00 38 [14:02:54]Write to MH i2c: 01 00 00 58 10 68 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]OFD Sender: No OFD packet to send [14:02:55]*** Cut start [14:02:55]*** Partial cut [14:02:55]*** CUTSNS_PIN = 1 [14:02:55]*** CUTSNS_PIN = 0 [14:02:55]*** Brake cut motor [14:02:55]Read from MH i2c: 01 [14:02:55]MH_I2C_Read... [14:02:55]*** Stop cut motor [14:02:55]*** Cut end [14:02:55]Read from MH i2c: 01 07 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 07 00 58 10 00 00 00 00 00 FF 0F 7D [14:02:55]process_action close_receipt done [14:02:55]requested_data is exist [14:02:55]produce_requested_data [14:02:55]requested_item fm.sn is exist - process it [14:02:55]wFMCommunicate request_size=4 [14:02:55]MH_SAM_APDU [14:02:55]CAPDU: 80 11 00 00 [14:02:55]Write to MH i2c: E2 08 00 59 10 80 11 00 00 00 00 00 00 E3 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:55]Read from MH i2c: E2 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 17 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 17 00 59 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [14:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:02:55]wFMCommunicate OK [14:02:55]requested_item fd.num is exist - process it [14:02:55]SAM_PROTO_GetFieldsCounters [14:02:55]wFMCommunicate request_size=4 [14:02:55]MH_SAM_APDU [14:02:55]CAPDU: 80 13 00 00 [14:02:55]Write to MH i2c: E2 08 00 5A 10 80 13 00 00 00 00 00 00 E6 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:55]Read from MH i2c: E2 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 62 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 62 00 5A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:55]wFMCommunicate OK [14:02:55]SAM_PROTO_GetFieldsCounters done [14:02:55]requested_item shift.num is exist - process it [14:02:55]requested_item shift.opened is exist - process it [14:02:55]req_shift_opened [14:02:55]FM_GetShiftState [14:02:55]SAM_PROTO_GetShiftState [14:02:55]wFMCommunicate request_size=4 [14:02:55]MH_SAM_APDU [14:02:55]CAPDU: 80 13 01 00 [14:02:55]Write to MH i2c: E2 08 00 5B 10 80 13 01 00 00 00 00 00 E8 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:55]Read from MH i2c: E2 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 0E 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: E2 0E 00 5B 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3B [14:02:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:02:55]wFMCommunicate OK [14:02:55]SAM_PROTO_GetShiftState done [14:02:55]FM_GetShiftState done [14:02:55]req_shift_opened done [14:02:55]requested_item shift.open_date is exist - process it [14:02:55]req_shift_open_date [14:02:55]req_shift_open_date done [14:02:55]produce_requested_data done [14:02:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166413,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:02:55]process_action_free close_receipt [14:02:55]json_value_free [14:02:55]json_value_free done [14:02:55]process_json_proto returns [14:02:55]Send response to host [14:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166413,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:02:55]free response buf [14:02:55]execute_script done [14:02:55]execute_script returns [14:02:55]free content buf [14:02:55]Sock 9.Close socket [14:02:55]Sock 9.Thread stoped [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]accept exits with 7 [14:06:54]New connection [14:06:54]New thread 3067637092 created [14:06:54]Thread 3067493732 joined [14:06:54]Waiting for new connection... [14:06:54] Sock 7.Parse request [14:06:54]Sock 7.Check first char [14:06:54]Sock 7.First char is OK [14:06:54]request: POST /json_proto HTTP/1.0 [14:06:54]Method: POST [14:06:54]URL: /json_proto [14:06:54]Method is POST - this is cgi request [14:06:54]url: /json_proto [14:06:54]query_string will be loaded in cgi processing [14:06:54]execute_cgi json_proto POST (null) [14:06:54]execute_cgi path=json_proto method=POST [14:06:54]POST find Content-Length [14:06:54]Host: 172.17.53.195:8080 [14:06:54]Content-Length: 677 [14:06:54]Content-Type: application/json [14:06:54] [14:06:54]POST finish read [14:06:54]Found Content-Length = 677 [14:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:54]execute_script... [14:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:54]POST & json_proto [14:06:54]process_json_proto [14:06:54]json parsed OK: [14:06:54]protocol is kg_v1.0 [14:06:54]action value=close_receipt [14:06:54]process_action close_receipt [14:06:54]cmd_close_receipt [14:06:54]MH_GetDate [14:06:54]Write to MH i2c: F0 00 00 5C 10 5B [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 09 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 09 00 5C 10 00 7F B1 17 67 21 48 4A 65 2A [14:06:54]GetLastDocTimeStamp 1729605772 [14:06:54]current date 1729606015 [14:06:54]FM_GetShiftState [14:06:54]SAM_PROTO_GetShiftState [14:06:54]wFMCommunicate request_size=4 [14:06:54]MH_SAM_APDU [14:06:54]CAPDU: 80 13 01 00 [14:06:54]Write to MH i2c: E2 08 00 5D 10 80 13 01 00 00 00 00 00 EA [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:54]Read from MH i2c: E2 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 0E 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 0E 00 5D 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [14:06:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:06:54]wFMCommunicate OK [14:06:54]SAM_PROTO_GetShiftState done [14:06:54]FM_GetShiftState done [14:06:54]opened in 1729557463 [14:06:54]opened+sec_in_day 1729643863 [14:06:54]quantity*price = 30038 [14:06:54]sum+1 = 30039 [14:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 169 22.10.2024 14:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166414 ФПД: 246053646407898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166414&fm=246053646407898&tin=02508201610067®Number=0000000000091764&sum=30000 [14:06:55]StoreToDocumentArchive [14:06:55]shift 536 fd 166414 [14:06:55]save to /storage/0536/doc_00166414 [14:06:55]save last doc name /storage/0536/doc_00166414 to /storage/kkm_last_doc_name [14:06:55]save OK [14:06:55]Clear old archive folders... [14:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:55]tlvbuf is 00A11920 [14:06:55]SAM_PROTO_ClearQueue [14:06:55]wFMCommunicate request_size=4 [14:06:55]MH_SAM_APDU [14:06:55]CAPDU: 80 09 00 00 [14:06:55]Write to MH i2c: E2 08 00 6A 10 80 09 00 00 00 00 00 00 EC [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:55]Read from MH i2c: E2 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 6A 10 00 90 00 EE [14:06:55]RAPDU: 90 00 [14:06:55]wFMCommunicate OK [14:06:55]SAM_PROTO_ClearQueue done [14:06:55]KKMCreateOFDPacket [14:06:55]OFDProtocolAddRootSTLVToBuf [14:06:55]FM_MakeSignedData [14:06:55]FM_MakeSignedData [14:06:55]SAM_PROTO_SignData [14:06:55]wFMCommunicate request_size=4 [14:06:55]MH_SAM_APDU [14:06:55]CAPDU: 80 0D 01 02 [14:06:55]Write to MH i2c: E2 08 00 6B 10 80 0D 01 02 00 00 00 00 F4 [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:55]Read from MH i2c: E2 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 6B 10 00 90 00 EF [14:06:55]RAPDU: 90 00 [14:06:55]wFMCommunicate OK [14:06:55]wFMCommunicate request_size=255 [14:06:55]MH_SAM_APDU [14:06:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 7F B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8A 02 00 35 04 06 00 DF [14:06:55]Write to MH i2c: E2 02 01 6C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 7F B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8A 02 00 35 04 06 00 DF 00 00 68 [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 6C 10 00 90 00 F0 [14:06:56]RAPDU: 90 00 [14:06:56]wFMCommunicate OK [14:06:56]wFMCommunicate request_size=10 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 0D 02 02 05 C8 D4 30 98 DA [14:06:56]Write to MH i2c: E2 0D 00 6D 10 80 0D 02 02 05 00 C8 D4 30 98 DA 00 00 3F [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 6D 10 00 90 00 F1 [14:06:56]RAPDU: 90 00 [14:06:56]wFMCommunicate OK [14:06:56]wFMCommunicate request_size=4 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 0D 03 02 [14:06:56]Write to MH i2c: E2 08 00 6E 10 80 0D 03 02 00 00 00 00 F9 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 0B 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 0B 00 6E 10 00 50 01 38 22 E5 5F 84 03 90 00 70 [14:06:56]RAPDU: 50 01 38 22 E5 5F 84 03 90 00 [14:06:56]wFMCommunicate OK [14:06:56]SAM_PROTO_SignData done [14:06:56]FM_MakeSignedData done [14:06:56]CreateOFDProtocolMessage [14:06:56]wFMCommunicate request_size=4 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 11 00 00 [14:06:56]Write to MH i2c: E2 08 00 6F 10 80 11 00 00 00 00 00 00 F9 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 17 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 17 00 6F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [14:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:56]wFMCommunicate OK [14:06:56]CreateOFDProtocolMessage done [14:06:56]OFDSenderStorePacket 166414 [14:06:56]StoreOFDPacket docnum=166414 [14:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B 56 07 01 2D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 7F B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8A 02 00 35 04 06 00 DF C8 D4 30 98 DA 50 01 38 22 E5 5F 84 03 [14:06:56]CheckFolder [14:06:56]dirname=/storage/ofd_packets [14:06:56]CheckFolder done [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00166414 [14:06:56]NVStorageSaveData ofd_packets/00166414 [14:06:56]File name is /storage/ofd_packets/00166414 [14:06:56]Write 301 bytes [14:06:56]NVStorageSaveData done [14:06:56]OFDSenderStorePacket done [14:06:56]KKMCreateOFDPacket done [14:06:56]NVStorageSaveData kkm_last_timestamp [14:06:56]File name is /storage/kkm_last_timestamp [14:06:56]Write 4 bytes [14:06:56]NVStorageSaveData done [14:06:56]ExternCall_PrintAddStr [14:06:56]wPrintStart [14:06:56]Write to MH i2c: 01 00 00 70 10 80 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 70 10 00 00 00 00 00 FF 0F 95 [14:06:56]RasterBufferAndPrint [14:06:56]line Счет N : (1)220993 [14:06:56]line ИНН: 02508201610067 [14:06:56]line Контрольно-Кассовый Чек [14:06:56]line ПРОДАЖА [14:06:56]line ТРК (МРК, ГНК) : 33 [14:06:56]line Товар: 2710124130 [14:06:56]line Аи-92-К-5 [14:06:56]line 4.490 * 66.90 [14:06:56]line = 300.38 [14:06:56]line НДС 12% НСП 1% [14:06:56]line > о реализуемом товаре [14:06:56]line ОКРУГЛЕНИЕ: -0.38 [14:06:56]line ИТОГО: 300.00 [14:06:56]line Внесено: 300.00 [14:06:56]line СДАЧА: 0.00 [14:06:56]line НСП 1% : 2.66 [14:06:56]line НДС 12% : 31.90 [14:06:56]line Наличными: 300.00 [14:06:56]line Безнал.: 0.00 [14:06:56]line Место: АЗС № 161 "Партнер Нефть" [14:06:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:06:56]line СНО: Общий режим [14:06:56]line Чек 169 22.10.2024 14:06 [14:06:56]line Смена: 536 ФФД: 1.0 [14:06:56]line ЗНМ: 0300000104 [14:06:56]line РНМ: 0000000000091764 [14:06:56]line Версия ККМ: 001 [14:06:56]line ФМ: 0000000000871759 [14:06:56]line ФД: 166414 [14:06:56]line ФПД: 246053646407898 [14:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140655&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166414&fm=246053646407898&tin=02508201610067®Number=0000000000091764&sum=30000 [14:06:56]OFD Sender: Processing packet 166414 [packets to send 48, broken 47] [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00166414 [14:06:56]OFD Sender: To server: pG, [14:06:56]CommunicateWithHost lk.salyk.kg:30040 [14:06:56]ConnectInit lk.salyk.kg [14:06:56]written 0, free lines is 4095 [14:06:56]Connected sock=10 [14:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B 56 07 01 2D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 7F B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8A 02 00 35 04 06 00 DF C8 D4 30 98 DA 50 01 38 22 E5 5F 84 03 [14:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 DC 47 00 79 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 8A 02 00 F4 03 04 00 EA 57 17 67 B6 04 01 00 00 88 B9 61 70 07 76 CB E3 [14:06:56]CommunicateWithHost err = 0 [14:06:56]CheckOFDResponse [14:06:56]1017 (14) - 77093643461234 [14:06:56]1041 (16) - 0000000000871759 [14:06:56]1040 (4) - 166414 [14:06:56]1012 (4) - 22.10.2024 07:44 [14:06:56]1206 (1) - 0 [14:06:56]OFD Sender: Remove packet 166414 [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00166414 [14:06:56]NVStorageDeleteData [14:06:57]Write to MH i2c: 01 00 00 9B 10 AB [14:06:57]Write i2c OK [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: 01 [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: 01 07 00 [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 C0 0C 7E [14:06:57]RasterBufferAndPrint [14:06:57]line [14:06:57]line [14:06:57]line [14:06:57]line [14:06:57]line [14:06:57]written 0, free lines is 3270 [14:06:57]MH_Cut [14:06:57]Write to MH i2c: D1 01 00 A2 10 01 84 [14:06:57]Write i2c OK [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: D1 [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: D1 01 00 [14:06:57]MH_I2C_Read... [14:06:57]Read from MH i2c: D1 01 00 A2 10 00 83 [14:06:57]Write to MH i2c: 01 00 00 A3 10 B3 [14:06:57]Write i2c OK [14:06:57]MH_I2C_Read... [14:06:57]OFD Sender: No OFD packet to send [14:06:57]*** Cut start [14:06:57]*** Partial cut [14:06:57]*** CUTSNS_PIN = 1 [14:06:57]*** CUTSNS_PIN = 0 [14:06:58]*** Brake cut motor [14:06:58]Read from MH i2c: 01 [14:06:58]MH_I2C_Read... [14:06:58]*** Stop cut motor [14:06:58]*** Cut end [14:06:58]Read from MH i2c: 01 07 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: 01 07 00 A3 10 00 00 00 00 00 FF 0F C8 [14:06:58]process_action close_receipt done [14:06:58]requested_data is exist [14:06:58]produce_requested_data [14:06:58]requested_item fm.sn is exist - process it [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 11 00 00 [14:06:58]Write to MH i2c: E2 08 00 A4 10 80 11 00 00 00 00 00 00 2E [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 17 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 17 00 A4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [14:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:06:58]wFMCommunicate OK [14:06:58]requested_item fd.num is exist - process it [14:06:58]SAM_PROTO_GetFieldsCounters [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 13 00 00 [14:06:58]Write to MH i2c: E2 08 00 A5 10 80 13 00 00 00 00 00 00 31 [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 62 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 62 00 A5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [14:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:58]wFMCommunicate OK [14:06:58]SAM_PROTO_GetFieldsCounters done [14:06:58]requested_item shift.num is exist - process it [14:06:58]requested_item shift.opened is exist - process it [14:06:58]req_shift_opened [14:06:58]FM_GetShiftState [14:06:58]SAM_PROTO_GetShiftState [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 13 01 00 [14:06:58]Write to MH i2c: E2 08 00 A6 10 80 13 01 00 00 00 00 00 33 [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 0E 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 0E 00 A6 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [14:06:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:06:58]wFMCommunicate OK [14:06:58]SAM_PROTO_GetShiftState done [14:06:58]FM_GetShiftState done [14:06:58]req_shift_opened done [14:06:58]requested_item shift.open_date is exist - process it [14:06:58]req_shift_open_date [14:06:58]req_shift_open_date done [14:06:58]produce_requested_data done [14:06:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166414,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:06:58]process_action_free close_receipt [14:06:58]json_value_free [14:06:58]json_value_free done [14:06:58]process_json_proto returns [14:06:58]Send response to host [14:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166414,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:06:58]free response buf [14:06:58]execute_script done [14:06:58]execute_script returns [14:06:58]free content buf [14:06:58]Sock 7.Close socket [14:06:58]Sock 7.Thread stoped [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:29]accept exits with 9 [14:08:29]New connection [14:08:29]New thread 3067493732 created [14:08:29]Thread 3067637092 joined [14:08:29]Waiting for new connection... [14:08:29] Sock 9.Parse request [14:08:29]Sock 9.Check first char [14:08:29]Sock 9.First char is OK [14:08:29]request: POST /json_proto HTTP/1.0 [14:08:29]Method: POST [14:08:29]URL: /json_proto [14:08:29]Method is POST - this is cgi request [14:08:29]url: /json_proto [14:08:29]query_string will be loaded in cgi processing [14:08:29]execute_cgi json_proto POST (null) [14:08:29]execute_cgi path=json_proto method=POST [14:08:29]POST find Content-Length [14:08:29]Host: 172.17.53.195:8080 [14:08:29]Content-Length: 769 [14:08:29]Content-Type: application/json [14:08:29] [14:08:29]POST finish read [14:08:29]Found Content-Length = 769 [14:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:29]execute_script... [14:08:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:29]POST & json_proto [14:08:29]process_json_proto [14:08:29]json parsed OK: [14:08:29]protocol is kg_v1.0 [14:08:29]action value=close_receipt [14:08:29]process_action close_receipt [14:08:29]cmd_close_receipt [14:08:29]MH_GetDate [14:08:29]Write to MH i2c: F0 00 00 A7 10 A6 [14:08:29]Write i2c OK [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: F0 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: F0 09 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: F0 09 00 A7 10 00 DE B1 17 67 21 48 4A 65 D4 [14:08:29]GetLastDocTimeStamp 1729606015 [14:08:29]current date 1729606110 [14:08:29]FM_GetShiftState [14:08:29]SAM_PROTO_GetShiftState [14:08:29]wFMCommunicate request_size=4 [14:08:29]MH_SAM_APDU [14:08:29]CAPDU: 80 13 01 00 [14:08:29]Write to MH i2c: E2 08 00 A8 10 80 13 01 00 00 00 00 00 35 [14:08:29]Write i2c OK [14:08:29]MH_I2C_Read... [14:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:29]Read from MH i2c: E2 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 0E 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 0E 00 A8 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 88 [14:08:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:08:29]wFMCommunicate OK [14:08:29]SAM_PROTO_GetShiftState done [14:08:29]FM_GetShiftState done [14:08:29]opened in 1729557463 [14:08:29]opened+sec_in_day 1729643863 [14:08:29]quantity*price = 100015 [14:08:29]sum+1 = 100017 [14:08:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 170 22.10.2024 14:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166415 ФПД: 200826350383779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166415&fm=200826350383779&tin=02508201610067®Number=0000000000091764&sum=100016 [14:08:30]StoreToDocumentArchive [14:08:30]shift 536 fd 166415 [14:08:30]save to /storage/0536/doc_00166415 [14:08:30]save last doc name /storage/0536/doc_00166415 to /storage/kkm_last_doc_name [14:08:30]save OK [14:08:30]Clear old archive folders... [14:08:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:30]tlvbuf is B6F68CF0 [14:08:30]SAM_PROTO_ClearQueue [14:08:30]wFMCommunicate request_size=4 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 09 00 00 [14:08:30]Write to MH i2c: E2 08 00 B5 10 80 09 00 00 00 00 00 00 37 [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [14:08:30]RAPDU: 90 00 [14:08:30]wFMCommunicate OK [14:08:30]SAM_PROTO_ClearQueue done [14:08:30]KKMCreateOFDPacket [14:08:30]OFDProtocolAddRootSTLVToBuf [14:08:30]FM_MakeSignedData [14:08:30]FM_MakeSignedData [14:08:30]SAM_PROTO_SignData [14:08:30]wFMCommunicate request_size=4 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 0D 01 02 [14:08:30]Write to MH i2c: E2 08 00 B6 10 80 0D 01 02 00 00 00 00 3F [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [14:08:30]RAPDU: 90 00 [14:08:30]wFMCommunicate OK [14:08:30]wFMCommunicate request_size=255 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 DE B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8A 02 00 35 04 06 00 B6 [14:08:30]Write to MH i2c: E2 02 01 B7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 DE B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8A 02 00 35 04 06 00 B6 00 00 11 [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [14:08:30]RAPDU: 90 00 [14:08:30]wFMCommunicate OK [14:08:30]wFMCommunicate request_size=10 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 0D 02 02 05 A6 87 46 B2 A3 [14:08:30]Write to MH i2c: E2 0D 00 B8 10 80 0D 02 02 05 00 A6 87 46 B2 A3 00 00 14 [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [14:08:30]RAPDU: 90 00 [14:08:30]wFMCommunicate OK [14:08:30]wFMCommunicate request_size=4 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 0D 03 02 [14:08:30]Write to MH i2c: E2 08 00 B9 10 80 0D 03 02 00 00 00 00 44 [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 0B 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 0B 00 B9 10 00 C2 B7 F4 1F 53 BB 7D 4E 90 00 AA [14:08:30]RAPDU: C2 B7 F4 1F 53 BB 7D 4E 90 00 [14:08:30]wFMCommunicate OK [14:08:30]SAM_PROTO_SignData done [14:08:30]FM_MakeSignedData done [14:08:30]CreateOFDProtocolMessage [14:08:30]wFMCommunicate request_size=4 [14:08:30]MH_SAM_APDU [14:08:30]CAPDU: 80 11 00 00 [14:08:30]Write to MH i2c: E2 08 00 BA 10 80 11 00 00 00 00 00 00 44 [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:30]Read from MH i2c: E2 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: E2 17 00 [14:08:30]MH_I2C_Read... [14:08:30]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 31 37 35 39 90 00 9C [14:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:30]wFMCommunicate OK [14:08:30]CreateOFDProtocolMessage done [14:08:30]OFDSenderStorePacket 166415 [14:08:30]StoreOFDPacket docnum=166415 [14:08:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 45 07 01 DD 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 DE B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8A 02 00 35 04 06 00 B6 A6 87 46 B2 A3 C2 B7 F4 1F 53 BB 7D 4E [14:08:30]CheckFolder [14:08:30]dirname=/storage/ofd_packets [14:08:30]CheckFolder done [14:08:30]ProducePacketName [14:08:30]name=ofd_packets/00166415 [14:08:30]NVStorageSaveData ofd_packets/00166415 [14:08:30]File name is /storage/ofd_packets/00166415 [14:08:30]Write 301 bytes [14:08:30]NVStorageSaveData done [14:08:30]OFDSenderStorePacket done [14:08:30]KKMCreateOFDPacket done [14:08:30]NVStorageSaveData kkm_last_timestamp [14:08:30]File name is /storage/kkm_last_timestamp [14:08:30]Write 4 bytes [14:08:30]NVStorageSaveData done [14:08:30]ExternCall_PrintAddStr [14:08:30]wPrintStart [14:08:30]Write to MH i2c: 01 00 00 BB 10 CB [14:08:30]Write i2c OK [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: 01 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: 01 07 00 [14:08:30]MH_I2C_Read... [14:08:30]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 FF 0F E0 [14:08:30]RasterBufferAndPrint [14:08:30]line Счет N : (1)220994 [14:08:30]line ИНН: 02508201610067 [14:08:30]line Контрольно-Кассовый Чек [14:08:30]line ПРОДАЖА [14:08:30]line ТРК (МРК, ГНК) : 13 [14:08:30]line Товар: 2710124130 [14:08:30]line Аи-92-К-5 [14:08:30]line 14.950 * 66.90 [14:08:30]line = 1000.16 [14:08:30]line НДС 12% НСП 1% [14:08:30]line > о реализуемом товаре [14:08:30]line ИТОГО: 1000.16 [14:08:30]line НСП 1% : 8.85 [14:08:30]line НДС 12% : 106.21 [14:08:30]line Наличными: 0.00 [14:08:30]line Безнал.: 1000.16 [14:08:30]line Место: АЗС № 161 "Партнер Нефть" [14:08:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:08:30]line СНО: Общий режим [14:08:30]line Чек 170 22.10.2024 14:08 [14:08:30]line Смена: 536 ФФД: 1.0 [14:08:30]line ЗНМ: 0300000104 [14:08:30]line РНМ: 0000000000091764 [14:08:30]line Версия ККМ: 001 [14:08:30]line Платежная система: Mbank [14:08:30]line ФМ: 0000000000871759 [14:08:30]line ФД: 166415 [14:08:30]line ФПД: 200826350383779 [14:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140830&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166415&fm=200826350383779&tin=02508201610067®Number=0000000000091764&sum=100016 [14:08:31]written 0, free lines is 4095 [14:08:31]OFD Sender: Processing packet 166415 [packets to send 48, broken 47] [14:08:31]ProducePacketName [14:08:31]name=ofd_packets/00166415 [14:08:31]OFD Sender: To server: pG, [14:08:31]CommunicateWithHost lk.salyk.kg:30040 [14:08:31]ConnectInit lk.salyk.kg [14:08:31]Connected sock=10 [14:08:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 94 45 07 01 DD 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 DE B1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8A 02 00 35 04 06 00 B6 A6 87 46 B2 A3 C2 B7 F4 1F 53 BB 7D 4E [14:08:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D0 86 47 00 55 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 8A 02 00 F4 03 04 00 48 58 17 67 B6 04 01 00 00 57 C6 BB E4 20 5F 60 AE [14:08:31]CommunicateWithHost err = 0 [14:08:31]CheckOFDResponse [14:08:31]1017 (14) - 77093643461234 [14:08:31]1041 (16) - 0000000000871759 [14:08:31]1040 (4) - 166415 [14:08:31]1012 (4) - 22.10.2024 07:46 [14:08:31]1206 (1) - 0 [14:08:31]OFD Sender: Remove packet 166415 [14:08:31]ProducePacketName [14:08:31]name=ofd_packets/00166415 [14:08:31]NVStorageDeleteData [14:08:31]Write to MH i2c: 01 00 00 E4 10 F4 [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: 01 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: 01 07 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: 01 07 00 E4 10 00 00 00 00 00 EA 0C F1 [14:08:31]RasterBufferAndPrint [14:08:31]line [14:08:31]line [14:08:31]line [14:08:31]line [14:08:31]line [14:08:31]written 0, free lines is 3312 [14:08:31]MH_Cut [14:08:31]Write to MH i2c: D1 01 00 EB 10 01 CD [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: D1 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: D1 01 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: D1 01 00 EB 10 00 CC [14:08:31]Write to MH i2c: 01 00 00 EC 10 FC [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:32]OFD Sender: No OFD packet to send [14:08:32]*** Cut start [14:08:32]*** Partial cut [14:08:32]*** CUTSNS_PIN = 1 [14:08:32]*** CUTSNS_PIN = 0 [14:08:32]*** Brake cut motor [14:08:33]Read from MH i2c: 01 [14:08:33]MH_I2C_Read... [14:08:33]*** Stop cut motor [14:08:33]*** Cut end [14:08:33]Read from MH i2c: 01 07 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 FF 0F 11 [14:08:33]process_action close_receipt done [14:08:33]requested_data is exist [14:08:33]produce_requested_data [14:08:33]requested_item fm.sn is exist - process it [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 11 00 00 [14:08:33]Write to MH i2c: E2 08 00 ED 10 80 11 00 00 00 00 00 00 77 [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 17 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 17 00 ED 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [14:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:33]wFMCommunicate OK [14:08:33]requested_item fd.num is exist - process it [14:08:33]SAM_PROTO_GetFieldsCounters [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 13 00 00 [14:08:33]Write to MH i2c: E2 08 00 EE 10 80 13 00 00 00 00 00 00 7A [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 62 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 62 00 EE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:08:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_GetFieldsCounters done [14:08:33]requested_item shift.num is exist - process it [14:08:33]requested_item shift.opened is exist - process it [14:08:33]req_shift_opened [14:08:33]FM_GetShiftState [14:08:33]SAM_PROTO_GetShiftState [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 13 01 00 [14:08:33]Write to MH i2c: E2 08 00 EF 10 80 13 01 00 00 00 00 00 7C [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 EF 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CF [14:08:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_GetShiftState done [14:08:33]FM_GetShiftState done [14:08:33]req_shift_opened done [14:08:33]requested_item shift.open_date is exist - process it [14:08:33]req_shift_open_date [14:08:33]req_shift_open_date done [14:08:33]produce_requested_data done [14:08:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166415,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:08:33]process_action_free close_receipt [14:08:33]json_value_free [14:08:33]json_value_free done [14:08:33]process_json_proto returns [14:08:33]Send response to host [14:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166415,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:08:33]free response buf [14:08:33]execute_script done [14:08:33]execute_script returns [14:08:33]free content buf [14:08:33]Sock 9.Close socket [14:08:33]Sock 9.Thread stoped [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:49]accept exits with 7 [14:09:49]New connection [14:09:49]New thread 3067637092 created [14:09:49]Thread 3067493732 joined [14:09:49]Waiting for new connection... [14:09:49] Sock 7.Parse request [14:09:49]Sock 7.Check first char [14:09:49]Sock 7.First char is OK [14:09:49]request: POST /json_proto HTTP/1.0 [14:09:49]Method: POST [14:09:49]URL: /json_proto [14:09:49]Method is POST - this is cgi request [14:09:49]url: /json_proto [14:09:49]query_string will be loaded in cgi processing [14:09:49]execute_cgi json_proto POST (null) [14:09:49]execute_cgi path=json_proto method=POST [14:09:49]POST find Content-Length [14:09:49]Host: 172.17.53.195:8080 [14:09:49]Content-Length: 677 [14:09:49]Content-Type: application/json [14:09:49] [14:09:49]POST finish read [14:09:49]Found Content-Length = 677 [14:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:49]execute_script... [14:09:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:49]POST & json_proto [14:09:49]process_json_proto [14:09:49]json parsed OK: [14:09:49]protocol is kg_v1.0 [14:09:49]action value=close_receipt [14:09:49]process_action close_receipt [14:09:49]cmd_close_receipt [14:09:49]MH_GetDate [14:09:49]Write to MH i2c: F0 00 00 F0 10 EF [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: F0 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: F0 09 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: F0 09 00 F0 10 00 2D B2 17 67 21 48 4A 65 6D [14:09:49]GetLastDocTimeStamp 1729606110 [14:09:49]current date 1729606189 [14:09:49]FM_GetShiftState [14:09:49]SAM_PROTO_GetShiftState [14:09:49]wFMCommunicate request_size=4 [14:09:49]MH_SAM_APDU [14:09:49]CAPDU: 80 13 01 00 [14:09:49]Write to MH i2c: E2 08 00 F1 10 80 13 01 00 00 00 00 00 7E [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:49]Read from MH i2c: E2 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 0E 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 0E 00 F1 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [14:09:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:09:49]wFMCommunicate OK [14:09:49]SAM_PROTO_GetShiftState done [14:09:49]FM_GetShiftState done [14:09:49]opened in 1729557463 [14:09:49]opened+sec_in_day 1729643863 [14:09:49]quantity*price = 50041 [14:09:49]sum+1 = 50042 [14:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 171 22.10.2024 14:09 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166416 ФПД: 63149832353757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166416&fm=63149832353757&tin=02508201610067®Number=0000000000091764&sum=50000 [14:09:50]StoreToDocumentArchive [14:09:50]shift 536 fd 166416 [14:09:50]save to /storage/0536/doc_00166416 [14:09:50]save last doc name /storage/0536/doc_00166416 to /storage/kkm_last_doc_name [14:09:50]save OK [14:09:50]Clear old archive folders... [14:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:50]tlvbuf is 00A268F0 [14:09:50]SAM_PROTO_ClearQueue [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 09 00 00 [14:09:50]Write to MH i2c: E2 08 00 FE 10 80 09 00 00 00 00 00 00 80 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 FE 10 00 90 00 82 [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_ClearQueue done [14:09:50]KKMCreateOFDPacket [14:09:50]OFDProtocolAddRootSTLVToBuf [14:09:50]FM_MakeSignedData [14:09:50]FM_MakeSignedData [14:09:50]SAM_PROTO_SignData [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 01 02 [14:09:50]Write to MH i2c: E2 08 00 FF 10 80 0D 01 02 00 00 00 00 88 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 FF 10 00 90 00 83 [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=255 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2D B2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8A 02 00 35 04 06 00 39 [14:09:50]Write to MH i2c: E2 02 01 00 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2D B2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8A 02 00 35 04 06 00 39 00 00 16 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=10 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 02 02 05 6F 37 53 37 DD [14:09:50]Write to MH i2c: E2 0D 00 01 11 80 0D 02 02 05 00 6F 37 53 37 DD 00 00 A3 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 01 11 00 90 00 86 [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 03 02 [14:09:50]Write to MH i2c: E2 08 00 02 11 80 0D 03 02 00 00 00 00 8E [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0B 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0B 00 02 11 00 F0 00 87 93 32 D7 C9 65 90 00 D0 [14:09:50]RAPDU: F0 00 87 93 32 D7 C9 65 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_SignData done [14:09:50]FM_MakeSignedData done [14:09:50]CreateOFDProtocolMessage [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 11 00 00 [14:09:50]Write to MH i2c: E2 08 00 03 11 80 11 00 00 00 00 00 00 8E [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 03 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [14:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:09:50]wFMCommunicate OK [14:09:50]CreateOFDProtocolMessage done [14:09:50]OFDSenderStorePacket 166416 [14:09:50]StoreOFDPacket docnum=166416 [14:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 C8 07 01 5C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2D B2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8A 02 00 35 04 06 00 39 6F 37 53 37 DD F0 00 87 93 32 D7 C9 65 [14:09:50]CheckFolder [14:09:50]dirname=/storage/ofd_packets [14:09:50]CheckFolder done [14:09:50]ProducePacketName [14:09:50]name=ofd_packets/00166416 [14:09:50]NVStorageSaveData ofd_packets/00166416 [14:09:50]File name is /storage/ofd_packets/00166416 [14:09:50]Write 301 bytes [14:09:50]NVStorageSaveData done [14:09:50]OFDSenderStorePacket done [14:09:50]KKMCreateOFDPacket done [14:09:50]NVStorageSaveData kkm_last_timestamp [14:09:50]File name is /storage/kkm_last_timestamp [14:09:50]Write 4 bytes [14:09:50]NVStorageSaveData done [14:09:50]ExternCall_PrintAddStr [14:09:50]wPrintStart [14:09:50]Write to MH i2c: 01 00 00 04 11 15 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 04 11 00 00 00 00 00 FF 0F 2A [14:09:50]RasterBufferAndPrint [14:09:50]line Счет N : (1)220995 [14:09:50]line ИНН: 02508201610067 [14:09:50]line Контрольно-Кассовый Чек [14:09:50]line ПРОДАЖА [14:09:50]line ТРК (МРК, ГНК) : 23 [14:09:50]line Товар: 2710124130 [14:09:50]line Аи-92-К-5 [14:09:50]line 7.480 * 66.90 [14:09:50]line = 500.41 [14:09:50]line НДС 12% НСП 1% [14:09:50]line > о реализуемом товаре [14:09:50]line ОКРУГЛЕНИЕ: -0.41 [14:09:50]line ИТОГО: 500.00 [14:09:50]line Внесено: 500.00 [14:09:50]line СДАЧА: 0.00 [14:09:50]line НСП 1% : 4.43 [14:09:50]line НДС 12% : 53.14 [14:09:50]line Наличными: 500.00 [14:09:50]line Безнал.: 0.00 [14:09:50]line Место: АЗС № 161 "Партнер Нефть" [14:09:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:09:50]line СНО: Общий режим [14:09:50]line Чек 171 22.10.2024 14:09 [14:09:50]line Смена: 536 ФФД: 1.0 [14:09:50]line ЗНМ: 0300000104 [14:09:50]line РНМ: 0000000000091764 [14:09:50]line Версия ККМ: 001 [14:09:50]line ФМ: 0000000000871759 [14:09:50]line ФД: 166416 [14:09:50]line ФПД: 63149832353757 [14:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166416&fm=63149832353757&tin=02508201610067®Number=0000000000091764&sum=50000 [14:09:51]OFD Sender: Processing packet 166416 [packets to send 48, broken 47] [14:09:51]ProducePacketName [14:09:51]name=ofd_packets/00166416 [14:09:51]OFD Sender: To server: pG, [14:09:51]CommunicateWithHost lk.salyk.kg:30040 [14:09:51]ConnectInit lk.salyk.kg [14:09:51]written 0, free lines is 4095 [14:09:51]Connected sock=10 [14:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 C8 07 01 5C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2D B2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 8A 02 00 35 04 06 00 39 6F 37 53 37 DD F0 00 87 93 32 D7 C9 65 [14:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A 15 47 00 FC 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 31 37 35 39 10 04 04 00 10 8A 02 00 F4 03 04 00 98 58 17 67 B6 04 01 00 00 D6 35 72 6B C8 FD 43 5D [14:09:51]CommunicateWithHost err = 0 [14:09:51]CheckOFDResponse [14:09:51]1017 (14) - 77093643461234 [14:09:51]1041 (16) - 0000000000871759 [14:09:51]1040 (4) - 166416 [14:09:51]1012 (4) - 22.10.2024 07:47 [14:09:51]1206 (1) - 0 [14:09:51]OFD Sender: Remove packet 166416 [14:09:51]ProducePacketName [14:09:51]name=ofd_packets/00166416 [14:09:51]NVStorageDeleteData [14:09:51]Write to MH i2c: 01 00 00 2F 11 40 [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 07 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 BF 0C 12 [14:09:51]RasterBufferAndPrint [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]written 0, free lines is 3269 [14:09:51]MH_Cut [14:09:51]Write to MH i2c: D1 01 00 36 11 01 19 [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 01 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 01 00 36 11 00 18 [14:09:51]Write to MH i2c: 01 00 00 37 11 48 [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]OFD Sender: No OFD packet to send [14:09:52]*** Cut start [14:09:52]*** Partial cut [14:09:52]*** CUTSNS_PIN = 1 [14:09:52]*** CUTSNS_PIN = 0 [14:09:52]*** Brake cut motor [14:09:52]Read from MH i2c: 01 [14:09:52]MH_I2C_Read... [14:09:52]*** Stop cut motor [14:09:52]*** Cut end [14:09:52]Read from MH i2c: 01 07 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: 01 07 00 37 11 00 00 00 00 00 FF 0F 5D [14:09:52]process_action close_receipt done [14:09:52]requested_data is exist [14:09:52]produce_requested_data [14:09:52]requested_item fm.sn is exist - process it [14:09:52]wFMCommunicate request_size=4 [14:09:52]MH_SAM_APDU [14:09:52]CAPDU: 80 11 00 00 [14:09:52]Write to MH i2c: E2 08 00 38 11 80 11 00 00 00 00 00 00 C3 [14:09:52]Write i2c OK [14:09:52]MH_I2C_Read... [14:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:52]Read from MH i2c: E2 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 17 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 17 00 38 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [14:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:09:52]wFMCommunicate OK [14:09:52]requested_item fd.num is exist - process it [14:09:52]SAM_PROTO_GetFieldsCounters [14:09:52]wFMCommunicate request_size=4 [14:09:52]MH_SAM_APDU [14:09:52]CAPDU: 80 13 00 00 [14:09:52]Write to MH i2c: E2 08 00 39 11 80 13 00 00 00 00 00 00 C6 [14:09:52]Write i2c OK [14:09:52]MH_I2C_Read... [14:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:53]Read from MH i2c: E2 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 62 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 62 00 39 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:53]wFMCommunicate OK [14:09:53]SAM_PROTO_GetFieldsCounters done [14:09:53]requested_item shift.num is exist - process it [14:09:53]requested_item shift.opened is exist - process it [14:09:53]req_shift_opened [14:09:53]FM_GetShiftState [14:09:53]SAM_PROTO_GetShiftState [14:09:53]wFMCommunicate request_size=4 [14:09:53]MH_SAM_APDU [14:09:53]CAPDU: 80 13 01 00 [14:09:53]Write to MH i2c: E2 08 00 3A 11 80 13 01 00 00 00 00 00 C8 [14:09:53]Write i2c OK [14:09:53]MH_I2C_Read... [14:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:53]Read from MH i2c: E2 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 [14:09:53]MH_I2C_Read... [14:09:53]Read from MH i2c: E2 0E 00 3A 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1B [14:09:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:09:53]wFMCommunicate OK [14:09:53]SAM_PROTO_GetShiftState done [14:09:53]FM_GetShiftState done [14:09:53]req_shift_opened done [14:09:53]requested_item shift.open_date is exist - process it [14:09:53]req_shift_open_date [14:09:53]req_shift_open_date done [14:09:53]produce_requested_data done [14:09:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166416,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:09:53]process_action_free close_receipt [14:09:53]json_value_free [14:09:53]json_value_free done [14:09:53]process_json_proto returns [14:09:53]Send response to host [14:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166416,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:09:53]free response buf [14:09:53]execute_script done [14:09:53]execute_script returns [14:09:53]free content buf [14:09:53]Sock 7.Close socket [14:09:53]Sock 7.Thread stoped [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:06]accept exits with 9 [14:20:06]New connection [14:20:06]New thread 3067493732 created [14:20:06]Thread 3067637092 joined [14:20:06]Waiting for new connection... [14:20:06] Sock 9.Parse request [14:20:06]Sock 9.Check first char [14:20:06]Sock 9.First char is OK [14:20:06]request: POST /json_proto HTTP/1.0 [14:20:06]Method: POST [14:20:06]URL: /json_proto [14:20:06]Method is POST - this is cgi request [14:20:06]url: /json_proto [14:20:06]query_string will be loaded in cgi processing [14:20:06]execute_cgi json_proto POST (null) [14:20:06]execute_cgi path=json_proto method=POST [14:20:06]POST find Content-Length [14:20:06]Host: 172.17.53.195:8080 [14:20:06]Content-Length: 769 [14:20:06]Content-Type: application/json [14:20:06] [14:20:06]POST finish read [14:20:06]Found Content-Length = 769 [14:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]execute_script... [14:20:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]POST & json_proto [14:20:06]process_json_proto [14:20:06]json parsed OK: [14:20:06]protocol is kg_v1.0 [14:20:06]action value=close_receipt [14:20:06]process_action close_receipt [14:20:06]cmd_close_receipt [14:20:06]MH_GetDate [14:20:06]Write to MH i2c: F0 00 00 3B 11 3B [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 3B 11 00 97 B4 17 67 21 48 4A 65 25 [14:20:06]GetLastDocTimeStamp 1729606189 [14:20:06]current date 1729606807 [14:20:06]FM_GetShiftState [14:20:06]SAM_PROTO_GetShiftState [14:20:06]wFMCommunicate request_size=4 [14:20:06]MH_SAM_APDU [14:20:06]CAPDU: 80 13 01 00 [14:20:06]Write to MH i2c: E2 08 00 3C 11 80 13 01 00 00 00 00 00 CA [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:06]Read from MH i2c: E2 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 3C 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1D [14:20:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:20:06]wFMCommunicate OK [14:20:06]SAM_PROTO_GetShiftState done [14:20:06]FM_GetShiftState done [14:20:06]opened in 1729557463 [14:20:06]opened+sec_in_day 1729643863 [14:20:06]quantity*price = 100015 [14:20:06]sum+1 = 100017 [14:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 172 22.10.2024 14:20 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166417 ФПД: 28295318840646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142007&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166417&fm=28295318840646&tin=02508201610067®Number=0000000000091764&sum=100016 [14:20:07]StoreToDocumentArchive [14:20:07]shift 536 fd 166417 [14:20:07]save to /storage/0536/doc_00166417 [14:20:07]save last doc name /storage/0536/doc_00166417 to /storage/kkm_last_doc_name [14:20:07]save OK [14:20:07]Clear old archive folders... [14:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:07]tlvbuf is 00A13EE0 [14:20:07]SAM_PROTO_ClearQueue [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 09 00 00 [14:20:07]Write to MH i2c: E2 08 00 49 11 80 09 00 00 00 00 00 00 CC [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]SAM_PROTO_ClearQueue done [14:20:07]KKMCreateOFDPacket [14:20:07]OFDProtocolAddRootSTLVToBuf [14:20:07]FM_MakeSignedData [14:20:07]FM_MakeSignedData [14:20:07]SAM_PROTO_SignData [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 01 02 [14:20:07]Write to MH i2c: E2 08 00 4A 11 80 0D 01 02 00 00 00 00 D4 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]wFMCommunicate request_size=255 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 97 B4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8A 02 00 35 04 06 00 19 [14:20:07]Write to MH i2c: E2 02 01 4B 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 97 B4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8A 02 00 35 04 06 00 19 00 00 C9 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 4B 11 00 90 00 D0 [14:20:08]RAPDU: 90 00 [14:20:08]wFMCommunicate OK [14:20:08]wFMCommunicate request_size=10 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 0D 02 02 05 BC 04 6D A5 46 [14:20:08]Write to MH i2c: E2 0D 00 4C 11 80 0D 02 02 05 00 BC 04 6D A5 46 00 00 F9 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 4C 11 00 90 00 D1 [14:20:08]RAPDU: 90 00 [14:20:08]wFMCommunicate OK [14:20:08]wFMCommunicate request_size=4 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 0D 03 02 [14:20:08]Write to MH i2c: E2 08 00 4D 11 80 0D 03 02 00 00 00 00 D9 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 0B 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 0B 00 4D 11 00 62 01 2E FD 99 26 F2 48 90 00 61 [14:20:08]RAPDU: 62 01 2E FD 99 26 F2 48 90 00 [14:20:08]wFMCommunicate OK [14:20:08]SAM_PROTO_SignData done [14:20:08]FM_MakeSignedData done [14:20:08]CreateOFDProtocolMessage [14:20:08]wFMCommunicate request_size=4 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 11 00 00 [14:20:08]Write to MH i2c: E2 08 00 4E 11 80 11 00 00 00 00 00 00 D9 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 17 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 17 00 4E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [14:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:08]wFMCommunicate OK [14:20:08]CreateOFDProtocolMessage done [14:20:08]OFDSenderStorePacket 166417 [14:20:08]StoreOFDPacket docnum=166417 [14:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 DC 07 01 6A 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 97 B4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8A 02 00 35 04 06 00 19 BC 04 6D A5 46 62 01 2E FD 99 26 F2 48 [14:20:08]CheckFolder [14:20:08]dirname=/storage/ofd_packets [14:20:08]CheckFolder done [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00166417 [14:20:08]NVStorageSaveData ofd_packets/00166417 [14:20:08]File name is /storage/ofd_packets/00166417 [14:20:08]Write 301 bytes [14:20:08]NVStorageSaveData done [14:20:08]OFDSenderStorePacket done [14:20:08]KKMCreateOFDPacket done [14:20:08]NVStorageSaveData kkm_last_timestamp [14:20:08]File name is /storage/kkm_last_timestamp [14:20:08]Write 4 bytes [14:20:08]NVStorageSaveData done [14:20:08]ExternCall_PrintAddStr [14:20:08]wPrintStart [14:20:08]Write to MH i2c: 01 00 00 4F 11 60 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 4F 11 00 00 00 00 00 FF 0F 75 [14:20:08]RasterBufferAndPrint [14:20:08]line Счет N : (1)220996 [14:20:08]line ИНН: 02508201610067 [14:20:08]line Контрольно-Кассовый Чек [14:20:08]line ПРОДАЖА [14:20:08]line ТРК (МРК, ГНК) : 23 [14:20:08]line Товар: 2710124130 [14:20:08]line Аи-92-К-5 [14:20:08]line 14.950 * 66.90 [14:20:08]line = 1000.16 [14:20:08]line НДС 12% НСП 1% [14:20:08]line > о реализуемом товаре [14:20:08]line ИТОГО: 1000.16 [14:20:08]line НСП 1% : 8.85 [14:20:08]line НДС 12% : 106.21 [14:20:08]line Наличными: 0.00 [14:20:08]line Безнал.: 1000.16 [14:20:08]line Место: АЗС № 161 "Партнер Нефть" [14:20:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:20:08]line СНО: Общий режим [14:20:08]line Чек 172 22.10.2024 14:20 [14:20:08]line Смена: 536 ФФД: 1.0 [14:20:08]line ЗНМ: 0300000104 [14:20:08]line РНМ: 0000000000091764 [14:20:08]line Версия ККМ: 001 [14:20:08]line Платежная система: Mbank [14:20:08]line ФМ: 0000000000871759 [14:20:08]line ФД: 166417 [14:20:08]line ФПД: 28295318840646 [14:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142007&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166417&fm=28295318840646&tin=02508201610067®Number=0000000000091764&sum=100016 [14:20:08]written 0, free lines is 4095 [14:20:08]OFD Sender: Processing packet 166417 [packets to send 48, broken 47] [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00166417 [14:20:08]OFD Sender: To server: pG, [14:20:08]CommunicateWithHost lk.salyk.kg:30040 [14:20:08]ConnectInit lk.salyk.kg [14:20:08]Connected sock=10 [14:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 DC 07 01 6A 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 97 B4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8A 02 00 35 04 06 00 19 BC 04 6D A5 46 62 01 2E FD 99 26 F2 48 [14:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D 46 47 00 03 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 8A 02 00 F4 03 04 00 02 5B 17 67 B6 04 01 00 00 8B 6F BA 2F 60 7E 2B 39 [14:20:08]CommunicateWithHost err = 0 [14:20:08]CheckOFDResponse [14:20:08]1017 (14) - 77093643461234 [14:20:08]1041 (16) - 0000000000871759 [14:20:08]1040 (4) - 166417 [14:20:08]1012 (4) - 22.10.2024 07:57 [14:20:08]1206 (1) - 0 [14:20:08]OFD Sender: Remove packet 166417 [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00166417 [14:20:08]NVStorageDeleteData [14:20:09]Write to MH i2c: 01 00 00 78 11 89 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: 01 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: 01 07 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: 01 07 00 78 11 00 00 00 00 00 E4 0C 80 [14:20:09]RasterBufferAndPrint [14:20:09]line [14:20:09]line [14:20:09]line [14:20:09]line [14:20:09]line [14:20:09]written 0, free lines is 3307 [14:20:09]MH_Cut [14:20:09]Write to MH i2c: D1 01 00 7F 11 01 62 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: D1 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: D1 01 00 [14:20:09]MH_I2C_Read... [14:20:09]Read from MH i2c: D1 01 00 7F 11 00 61 [14:20:09]Write to MH i2c: 01 00 00 80 11 91 [14:20:09]Write i2c OK [14:20:09]MH_I2C_Read... [14:20:09]OFD Sender: No OFD packet to send [14:20:09]*** Cut start [14:20:09]*** Partial cut [14:20:09]*** CUTSNS_PIN = 1 [14:20:09]*** CUTSNS_PIN = 0 [14:20:10]*** Brake cut motor [14:20:10]Read from MH i2c: 01 [14:20:10]MH_I2C_Read... [14:20:10]*** Stop cut motor [14:20:10]*** Cut end [14:20:10]Read from MH i2c: 01 07 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 FF 0F A6 [14:20:10]process_action close_receipt done [14:20:10]requested_data is exist [14:20:10]produce_requested_data [14:20:10]requested_item fm.sn is exist - process it [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 11 00 00 [14:20:10]Write to MH i2c: E2 08 00 81 11 80 11 00 00 00 00 00 00 0C [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 17 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 17 00 81 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [14:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:10]wFMCommunicate OK [14:20:10]requested_item fd.num is exist - process it [14:20:10]SAM_PROTO_GetFieldsCounters [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 13 00 00 [14:20:10]Write to MH i2c: E2 08 00 82 11 80 13 00 00 00 00 00 00 0F [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 82 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetFieldsCounters done [14:20:10]requested_item shift.num is exist - process it [14:20:10]requested_item shift.opened is exist - process it [14:20:10]req_shift_opened [14:20:10]FM_GetShiftState [14:20:10]SAM_PROTO_GetShiftState [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 13 01 00 [14:20:10]Write to MH i2c: E2 08 00 83 11 80 13 01 00 00 00 00 00 11 [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 83 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 64 [14:20:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetShiftState done [14:20:10]FM_GetShiftState done [14:20:10]req_shift_opened done [14:20:10]requested_item shift.open_date is exist - process it [14:20:10]req_shift_open_date [14:20:10]req_shift_open_date done [14:20:10]produce_requested_data done [14:20:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166417,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:20:10]process_action_free close_receipt [14:20:10]json_value_free [14:20:10]json_value_free done [14:20:10]process_json_proto returns [14:20:10]Send response to host [14:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166417,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:20:10]free response buf [14:20:10]execute_script done [14:20:10]execute_script returns [14:20:10]free content buf [14:20:10]Sock 9.Close socket [14:20:10]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:28]accept exits with 7 [14:24:28]New connection [14:24:28]New thread 3067637092 created [14:24:28]Thread 3067493732 joined [14:24:28]Waiting for new connection... [14:24:28] Sock 7.Parse request [14:24:28]Sock 7.Check first char [14:24:28]Sock 7.First char is OK [14:24:28]request: POST /json_proto HTTP/1.0 [14:24:28]Method: POST [14:24:28]URL: /json_proto [14:24:28]Method is POST - this is cgi request [14:24:28]url: /json_proto [14:24:28]query_string will be loaded in cgi processing [14:24:28]execute_cgi json_proto POST (null) [14:24:28]execute_cgi path=json_proto method=POST [14:24:28]POST find Content-Length [14:24:28]Host: 172.17.53.195:8080 [14:24:28]Content-Length: 679 [14:24:28]Content-Type: application/json [14:24:28] [14:24:28]POST finish read [14:24:28]Found Content-Length = 679 [14:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:28]execute_script... [14:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:28]POST & json_proto [14:24:28]process_json_proto [14:24:28]json parsed OK: [14:24:28]protocol is kg_v1.0 [14:24:28]action value=close_receipt [14:24:28]process_action close_receipt [14:24:28]cmd_close_receipt [14:24:28]MH_GetDate [14:24:28]Write to MH i2c: F0 00 00 84 11 84 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 09 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: F0 09 00 84 11 00 9D B5 17 67 21 48 4A 65 75 [14:24:28]GetLastDocTimeStamp 1729606807 [14:24:28]current date 1729607069 [14:24:28]FM_GetShiftState [14:24:28]SAM_PROTO_GetShiftState [14:24:28]wFMCommunicate request_size=4 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 13 01 00 [14:24:28]Write to MH i2c: E2 08 00 85 11 80 13 01 00 00 00 00 00 13 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0E 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0E 00 85 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 66 [14:24:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:24:28]wFMCommunicate OK [14:24:28]SAM_PROTO_GetShiftState done [14:24:28]FM_GetShiftState done [14:24:28]opened in 1729557463 [14:24:28]opened+sec_in_day 1729643863 [14:24:28]quantity*price = 149961 [14:24:28]sum+1 = 149963 [14:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 173 22.10.2024 14:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166418 ФПД: 3432692982192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142429&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166418&fm=3432692982192&tin=02508201610067®Number=0000000000091764&sum=149900 [14:24:29]StoreToDocumentArchive [14:24:29]shift 536 fd 166418 [14:24:29]save to /storage/0536/doc_00166418 [14:24:29]save last doc name /storage/0536/doc_00166418 to /storage/kkm_last_doc_name [14:24:29]save OK [14:24:29]Clear old archive folders... [14:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:29]tlvbuf is 00A11610 [14:24:29]SAM_PROTO_ClearQueue [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 09 00 00 [14:24:29]Write to MH i2c: E2 08 00 92 11 80 09 00 00 00 00 00 00 15 [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 92 11 00 90 00 17 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_ClearQueue done [14:24:29]KKMCreateOFDPacket [14:24:29]OFDProtocolAddRootSTLVToBuf [14:24:29]FM_MakeSignedData [14:24:29]FM_MakeSignedData [14:24:29]SAM_PROTO_SignData [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 01 02 [14:24:29]Write to MH i2c: E2 08 00 93 11 80 0D 01 02 00 00 00 00 1D [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [14:24:29]RAPDU: 90 00 [14:24:29]wFMCommunicate OK [14:24:29]wFMCommunicate request_size=255 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9D B5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8A 02 00 35 04 06 00 03 1F 3C 72 [14:24:29]Write to MH i2c: E2 02 01 94 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9D B5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8A 02 00 35 04 06 00 03 1F 3C 72 00 00 FD [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [14:24:30]RAPDU: 90 00 [14:24:30]wFMCommunicate OK [14:24:30]wFMCommunicate request_size=7 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 0D 02 02 02 21 B0 [14:24:30]Write to MH i2c: E2 0A 00 95 11 80 0D 02 02 02 00 21 B0 00 00 F5 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [14:24:30]RAPDU: 90 00 [14:24:30]wFMCommunicate OK [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 0D 03 02 [14:24:30]Write to MH i2c: E2 08 00 96 11 80 0D 03 02 00 00 00 00 22 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 0B 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 0B 00 96 11 00 A3 73 E4 33 ED 8B 70 8B 90 00 C3 [14:24:30]RAPDU: A3 73 E4 33 ED 8B 70 8B 90 00 [14:24:30]wFMCommunicate OK [14:24:30]SAM_PROTO_SignData done [14:24:30]FM_MakeSignedData done [14:24:30]CreateOFDProtocolMessage [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 11 00 00 [14:24:30]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [14:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:24:30]wFMCommunicate OK [14:24:30]CreateOFDProtocolMessage done [14:24:30]OFDSenderStorePacket 166418 [14:24:30]StoreOFDPacket docnum=166418 [14:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FB 38 04 01 17 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9D B5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8A 02 00 35 04 06 00 03 1F 3C 72 21 B0 A3 73 E4 33 ED 8B 70 8B [14:24:30]CheckFolder [14:24:30]dirname=/storage/ofd_packets [14:24:30]CheckFolder done [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00166418 [14:24:30]NVStorageSaveData ofd_packets/00166418 [14:24:30]File name is /storage/ofd_packets/00166418 [14:24:30]Write 298 bytes [14:24:30]NVStorageSaveData done [14:24:30]OFDSenderStorePacket done [14:24:30]KKMCreateOFDPacket done [14:24:30]NVStorageSaveData kkm_last_timestamp [14:24:30]File name is /storage/kkm_last_timestamp [14:24:30]Write 4 bytes [14:24:30]NVStorageSaveData done [14:24:30]ExternCall_PrintAddStr [14:24:30]wPrintStart [14:24:30]Write to MH i2c: 01 00 00 98 11 A9 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 98 11 00 00 00 00 00 FF 0F BE [14:24:30]RasterBufferAndPrint [14:24:30]line Счет N : (1)220997 [14:24:30]line ИНН: 02508201610067 [14:24:30]line Контрольно-Кассовый Чек [14:24:30]line ПРОДАЖА [14:24:30]line ТРК (МРК, ГНК) : 41 [14:24:30]line Товар: 2710194210 [14:24:30]line ДТ-К-5 [14:24:30]line 19.680 * 76.20 [14:24:30]line = 1499.62 [14:24:30]line НДС 12% НСП 1% [14:24:30]line > о реализуемом товаре [14:24:30]line ОКРУГЛЕНИЕ: -0.62 [14:24:30]line ИТОГО: 1499.00 [14:24:30]line Внесено: 1500.00 [14:24:30]line СДАЧА: 1.00 [14:24:30]line НСП 1% : 13.27 [14:24:30]line НДС 12% : 159.25 [14:24:30]line Наличными: 1499.00 [14:24:30]line Безнал.: 0.00 [14:24:30]line Место: АЗС № 161 "Партнер Нефть" [14:24:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:24:30]line СНО: Общий режим [14:24:30]line Чек 173 22.10.2024 14:24 [14:24:30]line Смена: 536 ФФД: 1.0 [14:24:30]line ЗНМ: 0300000104 [14:24:30]line РНМ: 0000000000091764 [14:24:30]line Версия ККМ: 001 [14:24:30]line ФМ: 0000000000871759 [14:24:30]line ФД: 166418 [14:24:30]line ФПД: 3432692982192 [14:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142429&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166418&fm=3432692982192&tin=02508201610067®Number=0000000000091764&sum=149900 [14:24:30]OFD Sender: Processing packet 166418 [packets to send 48, broken 47] [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00166418 [14:24:30]OFD Sender: To server: pG, [14:24:30]CommunicateWithHost lk.salyk.kg:30040 [14:24:30]ConnectInit lk.salyk.kg [14:24:30]written 0, free lines is 4095 [14:24:30]Connected sock=10 [14:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FB 38 04 01 17 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9D B5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8A 02 00 35 04 06 00 03 1F 3C 72 21 B0 A3 73 E4 33 ED 8B 70 8B [14:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 E3 47 00 8C B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 8A 02 00 F4 03 04 00 08 5C 17 67 B6 04 01 00 00 59 5D 2A 20 DA 54 97 E1 [14:24:30]CommunicateWithHost err = 0 [14:24:30]CheckOFDResponse [14:24:30]1017 (14) - 77093643461234 [14:24:30]1041 (16) - 0000000000871759 [14:24:30]1040 (4) - 166418 [14:24:30]1012 (4) - 22.10.2024 08:02 [14:24:30]1206 (1) - 0 [14:24:30]OFD Sender: Remove packet 166418 [14:24:30]ProducePacketName [14:24:30]name=ofd_packets/00166418 [14:24:30]NVStorageDeleteData [14:24:31]Write to MH i2c: 01 00 00 C3 11 D4 [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 07 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 C8 0C AF [14:24:31]RasterBufferAndPrint [14:24:31]line [14:24:31]line [14:24:31]line [14:24:31]line [14:24:31]line [14:24:31]written 0, free lines is 3277 [14:24:31]MH_Cut [14:24:31]Write to MH i2c: D1 01 00 CA 11 01 AD [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: D1 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: D1 01 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: D1 01 00 CA 11 00 AC [14:24:31]Write to MH i2c: 01 00 00 CB 11 DC [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]OFD Sender: No OFD packet to send [14:24:31]*** Cut start [14:24:31]*** Partial cut [14:24:31]*** CUTSNS_PIN = 1 [14:24:31]*** CUTSNS_PIN = 0 [14:24:32]*** Brake cut motor [14:24:32]Read from MH i2c: 01 [14:24:32]MH_I2C_Read... [14:24:32]*** Stop cut motor [14:24:32]*** Cut end [14:24:32]Read from MH i2c: 01 07 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [14:24:32]process_action close_receipt done [14:24:32]requested_data is exist [14:24:32]produce_requested_data [14:24:32]requested_item fm.sn is exist - process it [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 11 00 00 [14:24:32]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 17 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [14:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:24:32]wFMCommunicate OK [14:24:32]requested_item fd.num is exist - process it [14:24:32]SAM_PROTO_GetFieldsCounters [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 13 00 00 [14:24:32]Write to MH i2c: E2 08 00 CD 11 80 13 00 00 00 00 00 00 5A [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 62 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 62 00 CD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:32]wFMCommunicate OK [14:24:32]SAM_PROTO_GetFieldsCounters done [14:24:32]requested_item shift.num is exist - process it [14:24:32]requested_item shift.opened is exist - process it [14:24:32]req_shift_opened [14:24:32]FM_GetShiftState [14:24:32]SAM_PROTO_GetShiftState [14:24:32]wFMCommunicate request_size=4 [14:24:32]MH_SAM_APDU [14:24:32]CAPDU: 80 13 01 00 [14:24:32]Write to MH i2c: E2 08 00 CE 11 80 13 01 00 00 00 00 00 5C [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:32]Read from MH i2c: E2 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 0E 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: E2 0E 00 CE 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AF [14:24:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:24:32]wFMCommunicate OK [14:24:32]SAM_PROTO_GetShiftState done [14:24:32]FM_GetShiftState done [14:24:32]req_shift_opened done [14:24:32]requested_item shift.open_date is exist - process it [14:24:32]req_shift_open_date [14:24:32]req_shift_open_date done [14:24:32]produce_requested_data done [14:24:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166418,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:24:32]process_action_free close_receipt [14:24:32]json_value_free [14:24:32]json_value_free done [14:24:32]process_json_proto returns [14:24:32]Send response to host [14:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166418,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:24:32]free response buf [14:24:32]execute_script done [14:24:32]execute_script returns [14:24:32]free content buf [14:24:32]Sock 7.Close socket [14:24:32]Sock 7.Thread stoped [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:35:57]accept exits with 9 [14:35:57]New connection [14:35:57]New thread 3067493732 created [14:35:57]Thread 3067637092 joined [14:35:57]Waiting for new connection... [14:35:57] Sock 9.Parse request [14:35:57]Sock 9.Check first char [14:35:57]Sock 9.First char is OK [14:35:57]request: POST /json_proto HTTP/1.0 [14:35:57]Method: POST [14:35:57]URL: /json_proto [14:35:57]Method is POST - this is cgi request [14:35:57]url: /json_proto [14:35:57]query_string will be loaded in cgi processing [14:35:57]execute_cgi json_proto POST (null) [14:35:57]execute_cgi path=json_proto method=POST [14:35:57]POST find Content-Length [14:35:57]Host: 172.17.53.195:8080 [14:35:57]Content-Length: 679 [14:35:57]Content-Type: application/json [14:35:57] [14:35:57]POST finish read [14:35:57]Found Content-Length = 679 [14:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.870, "sum" : 2199.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2199.00, "payments": [ { "type": 0, "sum" : 2199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:57]execute_script... [14:35:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.870, "sum" : 2199.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2199.00, "payments": [ { "type": 0, "sum" : 2199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:57]POST & json_proto [14:35:57]process_json_proto [14:35:57]json parsed OK: [14:35:57]protocol is kg_v1.0 [14:35:57]action value=close_receipt [14:35:57]process_action close_receipt [14:35:57]cmd_close_receipt [14:35:57]MH_GetDate [14:35:57]Write to MH i2c: F0 00 00 CF 11 CF [14:35:57]Write i2c OK [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: F0 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: F0 09 00 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: F0 09 00 CF 11 00 4E B8 17 67 21 48 4A 65 74 [14:35:57]GetLastDocTimeStamp 1729607069 [14:35:57]current date 1729607758 [14:35:57]FM_GetShiftState [14:35:57]SAM_PROTO_GetShiftState [14:35:57]wFMCommunicate request_size=4 [14:35:57]MH_SAM_APDU [14:35:57]CAPDU: 80 13 01 00 [14:35:57]Write to MH i2c: E2 08 00 D0 11 80 13 01 00 00 00 00 00 5E [14:35:57]Write i2c OK [14:35:57]MH_I2C_Read... [14:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:57]Read from MH i2c: E2 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: E2 0E 00 [14:35:57]MH_I2C_Read... [14:35:57]Read from MH i2c: E2 0E 00 D0 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B1 [14:35:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:35:57]wFMCommunicate OK [14:35:57]SAM_PROTO_GetShiftState done [14:35:57]FM_GetShiftState done [14:35:57]opened in 1729557463 [14:35:57]opened+sec_in_day 1729643863 [14:35:57]quantity*price = 219989 [14:35:57]sum+1 = 219990 [14:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 2199.00 Внесено: 2200.00 СДАЧА: 1.00 НСП 1% : 19.47 НДС 12% : 233.62 Наличными: 2199.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 174 22.10.2024 14:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166419 ФПД: 72924214551174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166419&fm=72924214551174&tin=02508201610067®Number=0000000000091764&sum=219900 [14:35:58]StoreToDocumentArchive [14:35:58]shift 536 fd 166419 [14:35:58]save to /storage/0536/doc_00166419 [14:35:58]save last doc name /storage/0536/doc_00166419 to /storage/kkm_last_doc_name [14:35:58]save OK [14:35:58]Clear old archive folders... [14:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:58]tlvbuf is 009ADFE0 [14:35:58]SAM_PROTO_ClearQueue [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 09 00 00 [14:35:58]Write to MH i2c: E2 08 00 DD 11 80 09 00 00 00 00 00 00 60 [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 03 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 03 00 DD 11 00 90 00 62 [14:35:58]RAPDU: 90 00 [14:35:58]wFMCommunicate OK [14:35:58]SAM_PROTO_ClearQueue done [14:35:58]KKMCreateOFDPacket [14:35:58]OFDProtocolAddRootSTLVToBuf [14:35:58]FM_MakeSignedData [14:35:58]FM_MakeSignedData [14:35:58]SAM_PROTO_SignData [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 0D 01 02 [14:35:58]Write to MH i2c: E2 08 00 DE 11 80 0D 01 02 00 00 00 00 68 [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 03 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 03 00 DE 11 00 90 00 63 [14:35:58]RAPDU: 90 00 [14:35:58]wFMCommunicate OK [14:35:58]wFMCommunicate request_size=255 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 5B 00 00 00 00 07 04 06 00 FC 5A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 4E B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8A 02 00 35 04 06 00 42 52 FD E7 [14:35:58]Write to MH i2c: E2 02 01 DF 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 5B 00 00 00 00 07 04 06 00 FC 5A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 4E B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8A 02 00 35 04 06 00 42 52 FD E7 00 00 EA [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 DF 11 00 90 00 64 [14:35:59]RAPDU: 90 00 [14:35:59]wFMCommunicate OK [14:35:59]wFMCommunicate request_size=7 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 0D 02 02 02 62 86 [14:35:59]Write to MH i2c: E2 0A 00 E0 11 80 0D 02 02 02 00 62 86 00 00 57 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [14:35:59]RAPDU: 90 00 [14:35:59]wFMCommunicate OK [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 0D 03 02 [14:35:59]Write to MH i2c: E2 08 00 E1 11 80 0D 03 02 00 00 00 00 6D [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0B 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0B 00 E1 11 00 3D 58 E5 DC 5F DF FB 61 90 00 5E [14:35:59]RAPDU: 3D 58 E5 DC 5F DF FB 61 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_SignData done [14:35:59]FM_MakeSignedData done [14:35:59]CreateOFDProtocolMessage [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 11 00 00 [14:35:59]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 17 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [14:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:35:59]wFMCommunicate OK [14:35:59]CreateOFDProtocolMessage done [14:35:59]OFDSenderStorePacket 166419 [14:35:59]StoreOFDPacket docnum=166419 [14:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5D A2 04 01 BD 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 5B 00 00 00 00 07 04 06 00 FC 5A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 4E B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8A 02 00 35 04 06 00 42 52 FD E7 62 86 3D 58 E5 DC 5F DF FB 61 [14:35:59]CheckFolder [14:35:59]dirname=/storage/ofd_packets [14:35:59]CheckFolder done [14:35:59]ProducePacketName [14:35:59]name=ofd_packets/00166419 [14:35:59]NVStorageSaveData ofd_packets/00166419 [14:35:59]File name is /storage/ofd_packets/00166419 [14:35:59]Write 298 bytes [14:35:59]NVStorageSaveData done [14:35:59]OFDSenderStorePacket done [14:35:59]KKMCreateOFDPacket done [14:35:59]NVStorageSaveData kkm_last_timestamp [14:35:59]File name is /storage/kkm_last_timestamp [14:35:59]Write 4 bytes [14:35:59]NVStorageSaveData done [14:35:59]ExternCall_PrintAddStr [14:35:59]wPrintStart [14:35:59]Write to MH i2c: 01 00 00 E3 11 F4 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 07 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [14:35:59]RasterBufferAndPrint [14:35:59]line Счет N : (1)220999 [14:35:59]line ИНН: 02508201610067 [14:35:59]line Контрольно-Кассовый Чек [14:35:59]line ПРОДАЖА [14:35:59]line ТРК (МРК, ГНК) : 41 [14:35:59]line Товар: 2710194210 [14:35:59]line ДТ-К-5 [14:35:59]line 28.870 * 76.20 [14:35:59]line = 2199.89 [14:35:59]line НДС 12% НСП 1% [14:35:59]line > о реализуемом товаре [14:35:59]line ОКРУГЛЕНИЕ: -0.89 [14:35:59]line ИТОГО: 2199.00 [14:35:59]line Внесено: 2200.00 [14:35:59]line СДАЧА: 1.00 [14:35:59]line НСП 1% : 19.47 [14:35:59]line НДС 12% : 233.62 [14:35:59]line Наличными: 2199.00 [14:35:59]line Безнал.: 0.00 [14:35:59]line Место: АЗС № 161 "Партнер Нефть" [14:35:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:35:59]line СНО: Общий режим [14:35:59]line Чек 174 22.10.2024 14:35 [14:35:59]line Смена: 536 ФФД: 1.0 [14:35:59]line ЗНМ: 0300000104 [14:35:59]line РНМ: 0000000000091764 [14:35:59]line Версия ККМ: 001 [14:35:59]line ФМ: 0000000000871759 [14:35:59]line ФД: 166419 [14:35:59]line ФПД: 72924214551174 [14:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143558&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166419&fm=72924214551174&tin=02508201610067®Number=0000000000091764&sum=219900 [14:35:59]OFD Sender: Processing packet 166419 [packets to send 48, broken 47] [14:35:59]ProducePacketName [14:35:59]name=ofd_packets/00166419 [14:35:59]OFD Sender: To server: pG, [14:35:59]CommunicateWithHost lk.salyk.kg:30040 [14:35:59]ConnectInit lk.salyk.kg [14:35:59]written 0, free lines is 4095 [14:35:59]Connected sock=10 [14:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5D A2 04 01 BD 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 5B 00 00 00 00 07 04 06 00 FC 5A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 4E B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8A 02 00 35 04 06 00 42 52 FD E7 62 86 3D 58 E5 DC 5F DF FB 61 [14:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 0C 47 00 C0 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 8A 02 00 F4 03 04 00 B9 5E 17 67 B6 04 01 00 00 DC A4 30 B3 94 29 15 43 [14:35:59]CommunicateWithHost err = 0 [14:35:59]CheckOFDResponse [14:35:59]1017 (14) - 77093643461234 [14:35:59]1041 (16) - 0000000000871759 [14:35:59]1040 (4) - 166419 [14:35:59]1012 (4) - 22.10.2024 08:13 [14:35:59]1206 (1) - 0 [14:35:59]OFD Sender: Remove packet 166419 [14:35:59]ProducePacketName [14:35:59]name=ofd_packets/00166419 [14:35:59]NVStorageDeleteData [14:35:59]Write to MH i2c: 01 00 00 0E 12 20 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 07 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: 01 07 00 0E 12 00 00 00 00 00 CC 0C FF [14:35:59]RasterBufferAndPrint [14:35:59]line [14:35:59]line [14:35:59]line [14:35:59]line [14:35:59]line [14:35:59]written 0, free lines is 3281 [14:36:00]MH_Cut [14:36:00]Write to MH i2c: D1 01 00 15 12 01 F9 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: D1 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: D1 01 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: D1 01 00 15 12 00 F8 [14:36:00]Write to MH i2c: 01 00 00 16 12 28 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]OFD Sender: No OFD packet to send [14:36:00]*** Cut start [14:36:00]*** Partial cut [14:36:00]*** CUTSNS_PIN = 1 [14:36:00]*** CUTSNS_PIN = 0 [14:36:01]*** Brake cut motor [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]*** Stop cut motor [14:36:01]*** Cut end [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 FF 0F 3D [14:36:01]process_action close_receipt done [14:36:01]requested_data is exist [14:36:01]produce_requested_data [14:36:01]requested_item fm.sn is exist - process it [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 11 00 00 [14:36:01]Write to MH i2c: E2 08 00 17 12 80 11 00 00 00 00 00 00 A3 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 17 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [14:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:01]wFMCommunicate OK [14:36:01]requested_item fd.num is exist - process it [14:36:01]SAM_PROTO_GetFieldsCounters [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 13 00 00 [14:36:01]Write to MH i2c: E2 08 00 18 12 80 13 00 00 00 00 00 00 A6 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 62 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 62 00 18 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [14:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:01]wFMCommunicate OK [14:36:01]SAM_PROTO_GetFieldsCounters done [14:36:01]requested_item shift.num is exist - process it [14:36:01]requested_item shift.opened is exist - process it [14:36:01]req_shift_opened [14:36:01]FM_GetShiftState [14:36:01]SAM_PROTO_GetShiftState [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 13 01 00 [14:36:01]Write to MH i2c: E2 08 00 19 12 80 13 01 00 00 00 00 00 A8 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0E 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0E 00 19 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [14:36:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:36:01]wFMCommunicate OK [14:36:01]SAM_PROTO_GetShiftState done [14:36:01]FM_GetShiftState done [14:36:01]req_shift_opened done [14:36:01]requested_item shift.open_date is exist - process it [14:36:01]req_shift_open_date [14:36:01]req_shift_open_date done [14:36:01]produce_requested_data done [14:36:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166419,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:36:01]process_action_free close_receipt [14:36:01]json_value_free [14:36:01]json_value_free done [14:36:01]process_json_proto returns [14:36:01]Send response to host [14:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166419,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:36:01]free response buf [14:36:01]execute_script done [14:36:01]execute_script returns [14:36:01]free content buf [14:36:01]Sock 9.Close socket [14:36:01]Sock 9.Thread stoped [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:22]accept exits with 7 [14:36:22]New connection [14:36:22]New thread 3067637092 created [14:36:22]Thread 3067493732 joined [14:36:22]Waiting for new connection... [14:36:22] Sock 7.Parse request [14:36:22]Sock 7.Check first char [14:36:22]Sock 7.First char is OK [14:36:22]request: POST /json_proto HTTP/1.0 [14:36:22]Method: POST [14:36:22]URL: /json_proto [14:36:22]Method is POST - this is cgi request [14:36:22]url: /json_proto [14:36:22]query_string will be loaded in cgi processing [14:36:22]execute_cgi json_proto POST (null) [14:36:22]execute_cgi path=json_proto method=POST [14:36:22]POST find Content-Length [14:36:22]Host: 172.17.53.195:8080 [14:36:22]Content-Length: 682 [14:36:22]Content-Type: application/json [14:36:22] [14:36:22]POST finish read [14:36:22]Found Content-Length = 682 [14:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 23.920, "sum" : 1774.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1774.00, "payments": [ { "type": 0, "sum" : 1774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:22]execute_script... [14:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 23.920, "sum" : 1774.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1774.00, "payments": [ { "type": 0, "sum" : 1774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:22]POST & json_proto [14:36:22]process_json_proto [14:36:22]json parsed OK: [14:36:22]protocol is kg_v1.0 [14:36:22]action value=close_receipt [14:36:22]process_action close_receipt [14:36:22]cmd_close_receipt [14:36:22]MH_GetDate [14:36:22]Write to MH i2c: F0 00 00 1A 12 1B [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 09 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 09 00 1A 12 00 67 B8 17 67 21 48 4A 65 D9 [14:36:22]GetLastDocTimeStamp 1729607758 [14:36:22]current date 1729607783 [14:36:22]FM_GetShiftState [14:36:22]SAM_PROTO_GetShiftState [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 13 01 00 [14:36:22]Write to MH i2c: E2 08 00 1B 12 80 13 01 00 00 00 00 00 AA [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 0E 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 0E 00 1B 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FD [14:36:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:36:22]wFMCommunicate OK [14:36:22]SAM_PROTO_GetShiftState done [14:36:22]FM_GetShiftState done [14:36:22]opened in 1729557463 [14:36:22]opened+sec_in_day 1729643863 [14:36:22]quantity*price = 177486 [14:36:22]sum+1 = 177487 [14:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.86 ИТОГО: 1774.00 Внесено: 2000.00 СДАЧА: 226.00 НСП 1% : 15.71 НДС 12% : 188.48 Наличными: 1774.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 175 22.10.2024 14:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166420 ФПД: 181514931933832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166420&fm=181514931933832&tin=02508201610067®Number=0000000000091764&sum=177400 [14:36:23]StoreToDocumentArchive [14:36:23]shift 536 fd 166420 [14:36:23]save to /storage/0536/doc_00166420 [14:36:23]save last doc name /storage/0536/doc_00166420 to /storage/kkm_last_doc_name [14:36:23]save OK [14:36:23]Clear old archive folders... [14:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:23]tlvbuf is 00A3FCC0 [14:36:23]SAM_PROTO_ClearQueue [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 09 00 00 [14:36:23]Write to MH i2c: E2 08 00 28 12 80 09 00 00 00 00 00 00 AC [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 28 12 00 90 00 AE [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]SAM_PROTO_ClearQueue done [14:36:23]KKMCreateOFDPacket [14:36:23]OFDProtocolAddRootSTLVToBuf [14:36:23]FM_MakeSignedData [14:36:23]FM_MakeSignedData [14:36:23]SAM_PROTO_SignData [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 01 02 [14:36:23]Write to MH i2c: E2 08 00 29 12 80 0D 01 02 00 00 00 00 B4 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 29 12 00 90 00 AF [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=255 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 67 B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8A 02 00 35 04 06 00 A5 [14:36:23]Write to MH i2c: E2 02 01 2A 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 67 B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8A 02 00 35 04 06 00 A5 00 00 CC [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=10 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 02 02 05 16 3D 0A 12 88 [14:36:23]Write to MH i2c: E2 0D 00 2B 12 80 0D 02 02 05 00 16 3D 0A 12 88 00 00 B8 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 03 02 [14:36:23]Write to MH i2c: E2 08 00 2C 12 80 0D 03 02 00 00 00 00 B9 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 2C 12 00 AE 8B 78 99 3D F2 1C 3A 90 00 89 [14:36:23]RAPDU: AE 8B 78 99 3D F2 1C 3A 90 00 [14:36:23]wFMCommunicate OK [14:36:23]SAM_PROTO_SignData done [14:36:23]FM_MakeSignedData done [14:36:23]CreateOFDProtocolMessage [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 11 00 00 [14:36:23]Write to MH i2c: E2 08 00 2D 12 80 11 00 00 00 00 00 00 B9 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:24]Read from MH i2c: E2 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 17 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 17 00 2D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [14:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:24]wFMCommunicate OK [14:36:24]CreateOFDProtocolMessage done [14:36:24]OFDSenderStorePacket 166420 [14:36:24]StoreOFDPacket docnum=166420 [14:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 00 C0 07 01 2A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 67 B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8A 02 00 35 04 06 00 A5 16 3D 0A 12 88 AE 8B 78 99 3D F2 1C 3A [14:36:24]CheckFolder [14:36:24]dirname=/storage/ofd_packets [14:36:24]CheckFolder done [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00166420 [14:36:24]NVStorageSaveData ofd_packets/00166420 [14:36:24]File name is /storage/ofd_packets/00166420 [14:36:24]Write 301 bytes [14:36:24]NVStorageSaveData done [14:36:24]OFDSenderStorePacket done [14:36:24]KKMCreateOFDPacket done [14:36:24]NVStorageSaveData kkm_last_timestamp [14:36:24]File name is /storage/kkm_last_timestamp [14:36:24]Write 4 bytes [14:36:24]NVStorageSaveData done [14:36:24]ExternCall_PrintAddStr [14:36:24]wPrintStart [14:36:24]Write to MH i2c: 01 00 00 2E 12 40 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 2E 12 00 00 00 00 00 FF 0F 55 [14:36:24]RasterBufferAndPrint [14:36:24]line Счет N : (1)220998 [14:36:24]line ИНН: 02508201610067 [14:36:24]line Контрольно-Кассовый Чек [14:36:24]line ПРОДАЖА [14:36:24]line ТРК (МРК, ГНК) : 24 [14:36:24]line Товар: 2710124500 [14:36:24]line Аи-95-К-5 [14:36:24]line 23.920 * 74.20 [14:36:24]line = 1774.86 [14:36:24]line НДС 12% НСП 1% [14:36:24]line > о реализуемом товаре [14:36:24]line ОКРУГЛЕНИЕ: -0.86 [14:36:24]line ИТОГО: 1774.00 [14:36:24]line Внесено: 2000.00 [14:36:24]line СДАЧА: 226.00 [14:36:24]line НСП 1% : 15.71 [14:36:24]line НДС 12% : 188.48 [14:36:24]line Наличными: 1774.00 [14:36:24]line Безнал.: 0.00 [14:36:24]line Место: АЗС № 161 "Партнер Нефть" [14:36:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:36:24]line СНО: Общий режим [14:36:24]line Чек 175 22.10.2024 14:36 [14:36:24]line Смена: 536 ФФД: 1.0 [14:36:24]line ЗНМ: 0300000104 [14:36:24]line РНМ: 0000000000091764 [14:36:24]line Версия ККМ: 001 [14:36:24]line ФМ: 0000000000871759 [14:36:24]line ФД: 166420 [14:36:24]line ФПД: 181514931933832 [14:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166420&fm=181514931933832&tin=02508201610067®Number=0000000000091764&sum=177400 [14:36:24]OFD Sender: Processing packet 166420 [packets to send 48, broken 47] [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00166420 [14:36:24]OFD Sender: To server: pG, [14:36:24]CommunicateWithHost lk.salyk.kg:30040 [14:36:24]ConnectInit lk.salyk.kg [14:36:24]written 0, free lines is 4095 [14:36:24]Connected sock=10 [14:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 00 C0 07 01 2A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E B5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 49 00 00 00 00 07 04 06 00 F8 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 67 B8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8A 02 00 35 04 06 00 A5 16 3D 0A 12 88 AE 8B 78 99 3D F2 1C 3A [14:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F9 18 47 00 5C C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 8A 02 00 F4 03 04 00 D2 5E 17 67 B6 04 01 00 00 98 23 CE E2 D1 C0 84 D4 [14:36:24]CommunicateWithHost err = 0 [14:36:24]CheckOFDResponse [14:36:24]1017 (14) - 77093643461234 [14:36:24]1041 (16) - 0000000000871759 [14:36:24]1040 (4) - 166420 [14:36:24]1012 (4) - 22.10.2024 08:14 [14:36:24]1206 (1) - 0 [14:36:24]OFD Sender: Remove packet 166420 [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00166420 [14:36:24]NVStorageDeleteData [14:36:24]Write to MH i2c: 01 00 00 59 12 6B [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 C2 0C 40 [14:36:24]RasterBufferAndPrint [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]written 0, free lines is 3271 [14:36:24]MH_Cut [14:36:24]Write to MH i2c: D1 01 00 60 12 01 44 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 60 12 00 43 [14:36:24]Write to MH i2c: 01 00 00 61 12 73 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:25]OFD Sender: No OFD packet to send [14:36:25]*** Cut start [14:36:25]*** Partial cut [14:36:25]*** CUTSNS_PIN = 1 [14:36:25]*** CUTSNS_PIN = 0 [14:36:25]*** Brake cut motor [14:36:26]Read from MH i2c: 01 [14:36:26]MH_I2C_Read... [14:36:26]*** Stop cut motor [14:36:26]*** Cut end [14:36:26]Read from MH i2c: 01 07 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: 01 07 00 61 12 00 00 00 00 00 FF 0F 88 [14:36:26]process_action close_receipt done [14:36:26]requested_data is exist [14:36:26]produce_requested_data [14:36:26]requested_item fm.sn is exist - process it [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 11 00 00 [14:36:26]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 17 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [14:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:26]wFMCommunicate OK [14:36:26]requested_item fd.num is exist - process it [14:36:26]SAM_PROTO_GetFieldsCounters [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 13 00 00 [14:36:26]Write to MH i2c: E2 08 00 63 12 80 13 00 00 00 00 00 00 F1 [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 62 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 62 00 63 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:26]wFMCommunicate OK [14:36:26]SAM_PROTO_GetFieldsCounters done [14:36:26]requested_item shift.num is exist - process it [14:36:26]requested_item shift.opened is exist - process it [14:36:26]req_shift_opened [14:36:26]FM_GetShiftState [14:36:26]SAM_PROTO_GetShiftState [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 13 01 00 [14:36:26]Write to MH i2c: E2 08 00 64 12 80 13 01 00 00 00 00 00 F3 [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 0E 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 0E 00 64 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [14:36:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:36:26]wFMCommunicate OK [14:36:26]SAM_PROTO_GetShiftState done [14:36:26]FM_GetShiftState done [14:36:26]req_shift_opened done [14:36:26]requested_item shift.open_date is exist - process it [14:36:26]req_shift_open_date [14:36:26]req_shift_open_date done [14:36:26]produce_requested_data done [14:36:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166420,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:36:26]process_action_free close_receipt [14:36:26]json_value_free [14:36:26]json_value_free done [14:36:26]process_json_proto returns [14:36:26]Send response to host [14:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166420,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:36:26]free response buf [14:36:26]execute_script done [14:36:26]execute_script returns [14:36:26]free content buf [14:36:26]Sock 7.Close socket [14:36:26]Sock 7.Thread stoped [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:28]accept exits with 9 [14:42:28]New connection [14:42:28]New thread 3067493732 created [14:42:28]Thread 3067637092 joined [14:42:28]Waiting for new connection... [14:42:28] Sock 9.Parse request [14:42:28]Sock 9.Check first char [14:42:28]Sock 9.First char is OK [14:42:28]request: POST /json_proto HTTP/1.0 [14:42:28]Method: POST [14:42:28]URL: /json_proto [14:42:28]Method is POST - this is cgi request [14:42:28]url: /json_proto [14:42:28]query_string will be loaded in cgi processing [14:42:28]execute_cgi json_proto POST (null) [14:42:28]execute_cgi path=json_proto method=POST [14:42:28]POST find Content-Length [14:42:28]Host: 172.17.53.195:8080 [14:42:28]Content-Length: 677 [14:42:28]Content-Type: application/json [14:42:28] [14:42:28]POST finish read [14:42:28]Found Content-Length = 677 [14:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:28]execute_script... [14:42:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:28]POST & json_proto [14:42:28]process_json_proto [14:42:28]json parsed OK: [14:42:28]protocol is kg_v1.0 [14:42:28]action value=close_receipt [14:42:28]process_action close_receipt [14:42:28]cmd_close_receipt [14:42:28]MH_GetDate [14:42:28]Write to MH i2c: F0 00 00 65 12 66 [14:42:28]Write i2c OK [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: F0 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: F0 09 00 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: F0 09 00 65 12 00 D5 B9 17 67 21 48 4A 65 93 [14:42:28]GetLastDocTimeStamp 1729607783 [14:42:28]current date 1729608149 [14:42:28]FM_GetShiftState [14:42:28]SAM_PROTO_GetShiftState [14:42:28]wFMCommunicate request_size=4 [14:42:28]MH_SAM_APDU [14:42:28]CAPDU: 80 13 01 00 [14:42:28]Write to MH i2c: E2 08 00 66 12 80 13 01 00 00 00 00 00 F5 [14:42:28]Write i2c OK [14:42:28]MH_I2C_Read... [14:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:28]Read from MH i2c: E2 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: E2 0E 00 [14:42:28]MH_I2C_Read... [14:42:28]Read from MH i2c: E2 0E 00 66 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 48 [14:42:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:42:28]wFMCommunicate OK [14:42:28]SAM_PROTO_GetShiftState done [14:42:28]FM_GetShiftState done [14:42:28]opened in 1729557463 [14:42:28]opened+sec_in_day 1729643863 [14:42:28]quantity*price = 40006 [14:42:28]sum+1 = 40007 [14:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 176 22.10.2024 14:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166421 ФПД: 2096690710378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166421&fm=2096690710378&tin=02508201610067®Number=0000000000091764&sum=40000 [14:42:29]StoreToDocumentArchive [14:42:29]shift 536 fd 166421 [14:42:29]save to /storage/0536/doc_00166421 [14:42:29]save last doc name /storage/0536/doc_00166421 to /storage/kkm_last_doc_name [14:42:29]save OK [14:42:29]Clear old archive folders... [14:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:29]tlvbuf is 00A350F0 [14:42:29]SAM_PROTO_ClearQueue [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 09 00 00 [14:42:29]Write to MH i2c: E2 08 00 73 12 80 09 00 00 00 00 00 00 F7 [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 03 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [14:42:29]RAPDU: 90 00 [14:42:29]wFMCommunicate OK [14:42:29]SAM_PROTO_ClearQueue done [14:42:29]KKMCreateOFDPacket [14:42:29]OFDProtocolAddRootSTLVToBuf [14:42:29]FM_MakeSignedData [14:42:29]FM_MakeSignedData [14:42:29]SAM_PROTO_SignData [14:42:29]wFMCommunicate request_size=4 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 0D 01 02 [14:42:29]Write to MH i2c: E2 08 00 74 12 80 0D 01 02 00 00 00 00 FF [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:29]Read from MH i2c: E2 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 03 00 [14:42:29]MH_I2C_Read... [14:42:29]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [14:42:29]RAPDU: 90 00 [14:42:29]wFMCommunicate OK [14:42:29]wFMCommunicate request_size=255 [14:42:29]MH_SAM_APDU [14:42:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D5 B9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8A 02 00 35 04 06 00 01 [14:42:29]Write to MH i2c: E2 02 01 75 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D5 B9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8A 02 00 35 04 06 00 01 00 00 DC [14:42:29]Write i2c OK [14:42:29]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]wFMCommunicate request_size=10 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 0D 02 02 05 E8 2C 81 47 6A [14:42:30]Write to MH i2c: E2 0D 00 76 12 80 0D 02 02 05 00 E8 2C 81 47 6A 00 00 52 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [14:42:30]RAPDU: 90 00 [14:42:30]wFMCommunicate OK [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 0D 03 02 [14:42:30]Write to MH i2c: E2 08 00 77 12 80 0D 03 02 00 00 00 00 04 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 0B 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 0B 00 77 12 00 F3 40 A1 23 9D A4 DA 6A 90 00 81 [14:42:30]RAPDU: F3 40 A1 23 9D A4 DA 6A 90 00 [14:42:30]wFMCommunicate OK [14:42:30]SAM_PROTO_SignData done [14:42:30]FM_MakeSignedData done [14:42:30]CreateOFDProtocolMessage [14:42:30]wFMCommunicate request_size=4 [14:42:30]MH_SAM_APDU [14:42:30]CAPDU: 80 11 00 00 [14:42:30]Write to MH i2c: E2 08 00 78 12 80 11 00 00 00 00 00 00 04 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:30]Read from MH i2c: E2 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 17 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: E2 17 00 78 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [14:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:42:30]wFMCommunicate OK [14:42:30]CreateOFDProtocolMessage done [14:42:30]OFDSenderStorePacket 166421 [14:42:30]StoreOFDPacket docnum=166421 [14:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 59 07 01 41 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D5 B9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8A 02 00 35 04 06 00 01 E8 2C 81 47 6A F3 40 A1 23 9D A4 DA 6A [14:42:30]CheckFolder [14:42:30]dirname=/storage/ofd_packets [14:42:30]CheckFolder done [14:42:30]ProducePacketName [14:42:30]name=ofd_packets/00166421 [14:42:30]NVStorageSaveData ofd_packets/00166421 [14:42:30]File name is /storage/ofd_packets/00166421 [14:42:30]Write 301 bytes [14:42:30]NVStorageSaveData done [14:42:30]OFDSenderStorePacket done [14:42:30]KKMCreateOFDPacket done [14:42:30]NVStorageSaveData kkm_last_timestamp [14:42:30]File name is /storage/kkm_last_timestamp [14:42:30]Write 4 bytes [14:42:30]NVStorageSaveData done [14:42:30]ExternCall_PrintAddStr [14:42:30]wPrintStart [14:42:30]Write to MH i2c: 01 00 00 79 12 8B [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 79 12 00 00 00 00 00 FF 0F A0 [14:42:30]RasterBufferAndPrint [14:42:30]line Счет N : (1)221000 [14:42:30]line ИНН: 02508201610067 [14:42:30]line Контрольно-Кассовый Чек [14:42:30]line ПРОДАЖА [14:42:30]line ТРК (МРК, ГНК) : 13 [14:42:30]line Товар: 2710124130 [14:42:30]line Аи-92-К-5 [14:42:30]line 5.980 * 66.90 [14:42:30]line = 400.06 [14:42:30]line НДС 12% НСП 1% [14:42:30]line > о реализуемом товаре [14:42:30]line ОКРУГЛЕНИЕ: -0.06 [14:42:30]line ИТОГО: 400.00 [14:42:30]line Внесено: 400.00 [14:42:30]line СДАЧА: 0.00 [14:42:30]line НСП 1% : 3.54 [14:42:30]line НДС 12% : 42.48 [14:42:30]line Наличными: 400.00 [14:42:30]line Безнал.: 0.00 [14:42:30]line Место: АЗС № 161 "Партнер Нефть" [14:42:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:42:30]line СНО: Общий режим [14:42:30]line Чек 176 22.10.2024 14:42 [14:42:30]line Смена: 536 ФФД: 1.0 [14:42:30]line ЗНМ: 0300000104 [14:42:30]line РНМ: 0000000000091764 [14:42:30]line Версия ККМ: 001 [14:42:30]line ФМ: 0000000000871759 [14:42:30]line ФД: 166421 [14:42:30]line ФПД: 2096690710378 [14:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144229&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166421&fm=2096690710378&tin=02508201610067®Number=0000000000091764&sum=40000 [14:42:30]OFD Sender: Processing packet 166421 [packets to send 48, broken 47] [14:42:30]ProducePacketName [14:42:30]name=ofd_packets/00166421 [14:42:30]OFD Sender: To server: pG, [14:42:30]CommunicateWithHost lk.salyk.kg:30040 [14:42:30]ConnectInit lk.salyk.kg [14:42:30]written 0, free lines is 4095 [14:42:30]Connected sock=10 [14:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 59 07 01 41 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D5 B9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8A 02 00 35 04 06 00 01 E8 2C 81 47 6A F3 40 A1 23 9D A4 DA 6A [14:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 53 EB 47 00 0E D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 8A 02 00 F4 03 04 00 40 60 17 67 B6 04 01 00 00 C3 7A 35 13 51 98 0A D6 [14:42:30]CommunicateWithHost err = 0 [14:42:30]CheckOFDResponse [14:42:30]1017 (14) - 77093643461234 [14:42:30]1041 (16) - 0000000000871759 [14:42:30]1040 (4) - 166421 [14:42:30]1012 (4) - 22.10.2024 08:20 [14:42:30]1206 (1) - 0 [14:42:30]OFD Sender: Remove packet 166421 [14:42:30]ProducePacketName [14:42:30]name=ofd_packets/00166421 [14:42:30]NVStorageDeleteData [14:42:30]Write to MH i2c: 01 00 00 A4 12 B6 [14:42:30]Write i2c OK [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 [14:42:30]MH_I2C_Read... [14:42:30]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 C0 0C 89 [14:42:30]RasterBufferAndPrint [14:42:30]line [14:42:30]line [14:42:30]line [14:42:30]line [14:42:30]line [14:42:30]written 0, free lines is 3270 [14:42:31]MH_Cut [14:42:31]Write to MH i2c: D1 01 00 AB 12 01 8F [14:42:31]Write i2c OK [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 01 00 [14:42:31]MH_I2C_Read... [14:42:31]Read from MH i2c: D1 01 00 AB 12 00 8E [14:42:31]Write to MH i2c: 01 00 00 AC 12 BE [14:42:31]Write i2c OK [14:42:31]MH_I2C_Read... [14:42:31]OFD Sender: No OFD packet to send [14:42:31]*** Cut start [14:42:31]*** Partial cut [14:42:31]*** CUTSNS_PIN = 1 [14:42:31]*** CUTSNS_PIN = 0 [14:42:32]*** Brake cut motor [14:42:32]Read from MH i2c: 01 [14:42:32]MH_I2C_Read... [14:42:32]*** Stop cut motor [14:42:32]*** Cut end [14:42:32]Read from MH i2c: 01 07 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: 01 07 00 AC 12 00 00 00 00 00 FF 0F D3 [14:42:32]process_action close_receipt done [14:42:32]requested_data is exist [14:42:32]produce_requested_data [14:42:32]requested_item fm.sn is exist - process it [14:42:32]wFMCommunicate request_size=4 [14:42:32]MH_SAM_APDU [14:42:32]CAPDU: 80 11 00 00 [14:42:32]Write to MH i2c: E2 08 00 AD 12 80 11 00 00 00 00 00 00 39 [14:42:32]Write i2c OK [14:42:32]MH_I2C_Read... [14:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:32]Read from MH i2c: E2 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 17 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 17 00 AD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [14:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:42:32]wFMCommunicate OK [14:42:32]requested_item fd.num is exist - process it [14:42:32]SAM_PROTO_GetFieldsCounters [14:42:32]wFMCommunicate request_size=4 [14:42:32]MH_SAM_APDU [14:42:32]CAPDU: 80 13 00 00 [14:42:32]Write to MH i2c: E2 08 00 AE 12 80 13 00 00 00 00 00 00 3C [14:42:32]Write i2c OK [14:42:32]MH_I2C_Read... [14:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:32]Read from MH i2c: E2 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 62 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 62 00 AE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:42:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:32]wFMCommunicate OK [14:42:32]SAM_PROTO_GetFieldsCounters done [14:42:32]requested_item shift.num is exist - process it [14:42:32]requested_item shift.opened is exist - process it [14:42:32]req_shift_opened [14:42:32]FM_GetShiftState [14:42:32]SAM_PROTO_GetShiftState [14:42:32]wFMCommunicate request_size=4 [14:42:32]MH_SAM_APDU [14:42:32]CAPDU: 80 13 01 00 [14:42:32]Write to MH i2c: E2 08 00 AF 12 80 13 01 00 00 00 00 00 3E [14:42:32]Write i2c OK [14:42:32]MH_I2C_Read... [14:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:32]Read from MH i2c: E2 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 0E 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 0E 00 AF 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [14:42:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:42:32]wFMCommunicate OK [14:42:32]SAM_PROTO_GetShiftState done [14:42:32]FM_GetShiftState done [14:42:32]req_shift_opened done [14:42:32]requested_item shift.open_date is exist - process it [14:42:32]req_shift_open_date [14:42:32]req_shift_open_date done [14:42:32]produce_requested_data done [14:42:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166421,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:42:32]process_action_free close_receipt [14:42:32]json_value_free [14:42:32]json_value_free done [14:42:32]process_json_proto returns [14:42:32]Send response to host [14:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166421,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:42:32]free response buf [14:42:32]execute_script done [14:42:32]execute_script returns [14:42:32]free content buf [14:42:32]Sock 9.Close socket [14:42:32]Sock 9.Thread stoped [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:25]accept exits with 7 [14:44:25]New connection [14:44:25]New thread 3067637092 created [14:44:25]Thread 3067493732 joined [14:44:25]Waiting for new connection... [14:44:25] Sock 7.Parse request [14:44:25]Sock 7.Check first char [14:44:25]Sock 7.First char is OK [14:44:25]request: POST /json_proto HTTP/1.0 [14:44:25]Method: POST [14:44:25]URL: /json_proto [14:44:25]Method is POST - this is cgi request [14:44:25]url: /json_proto [14:44:25]query_string will be loaded in cgi processing [14:44:25]execute_cgi json_proto POST (null) [14:44:25]execute_cgi path=json_proto method=POST [14:44:25]POST find Content-Length [14:44:25]Host: 172.17.53.195:8080 [14:44:25]Content-Length: 682 [14:44:25]Content-Type: application/json [14:44:25] [14:44:25]POST finish read [14:44:25]Found Content-Length = 682 [14:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:25]execute_script... [14:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:25]POST & json_proto [14:44:25]process_json_proto [14:44:25]json parsed OK: [14:44:25]protocol is kg_v1.0 [14:44:25]action value=close_receipt [14:44:25]process_action close_receipt [14:44:25]cmd_close_receipt [14:44:25]MH_GetDate [14:44:25]Write to MH i2c: F0 00 00 B0 12 B1 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: F0 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: F0 09 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: F0 09 00 B0 12 00 49 BA 17 67 21 48 4A 65 53 [14:44:25]GetLastDocTimeStamp 1729608149 [14:44:25]current date 1729608265 [14:44:25]FM_GetShiftState [14:44:25]SAM_PROTO_GetShiftState [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 13 01 00 [14:44:25]Write to MH i2c: E2 08 00 B1 12 80 13 01 00 00 00 00 00 40 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0E 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0E 00 B1 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 93 [14:44:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:44:25]wFMCommunicate OK [14:44:25]SAM_PROTO_GetShiftState done [14:44:25]FM_GetShiftState done [14:44:25]opened in 1729557463 [14:44:25]opened+sec_in_day 1729643863 [14:44:25]quantity*price = 100021 [14:44:25]sum+1 = 100023 [14:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 177 22.10.2024 14:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166422 ФПД: 74575054447882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144426&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166422&fm=74575054447882&tin=02508201610067®Number=0000000000091764&sum=100000 [14:44:26]StoreToDocumentArchive [14:44:26]shift 536 fd 166422 [14:44:26]save to /storage/0536/doc_00166422 [14:44:26]save last doc name /storage/0536/doc_00166422 to /storage/kkm_last_doc_name [14:44:26]save OK [14:44:26]Clear old archive folders... [14:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:26]tlvbuf is 009AE2A0 [14:44:26]SAM_PROTO_ClearQueue [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 09 00 00 [14:44:26]Write to MH i2c: E2 08 00 BE 12 80 09 00 00 00 00 00 00 42 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [14:44:26]RAPDU: 90 00 [14:44:26]wFMCommunicate OK [14:44:26]SAM_PROTO_ClearQueue done [14:44:26]KKMCreateOFDPacket [14:44:26]OFDProtocolAddRootSTLVToBuf [14:44:26]FM_MakeSignedData [14:44:26]FM_MakeSignedData [14:44:26]SAM_PROTO_SignData [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 0D 01 02 [14:44:26]Write to MH i2c: E2 08 00 BF 12 80 0D 01 02 00 00 00 00 4A [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [14:44:26]RAPDU: 90 00 [14:44:26]wFMCommunicate OK [14:44:26]wFMCommunicate request_size=255 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 4A BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8A 02 00 35 04 06 00 43 [14:44:26]Write to MH i2c: E2 02 01 C0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 4A BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8A 02 00 35 04 06 00 43 00 00 2F [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]OFD Sender: No OFD packet to send [14:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [14:44:26]RAPDU: 90 00 [14:44:26]wFMCommunicate OK [14:44:26]wFMCommunicate request_size=10 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 0D 02 02 05 D3 5B A1 25 0A [14:44:26]Write to MH i2c: E2 0D 00 C1 12 80 0D 02 02 05 00 D3 5B A1 25 0A 00 00 55 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [14:44:26]RAPDU: 90 00 [14:44:26]wFMCommunicate OK [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 0D 03 02 [14:44:26]Write to MH i2c: E2 08 00 C2 12 80 0D 03 02 00 00 00 00 4F [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 0B 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 0B 00 C2 12 00 9C F4 3D BE 64 74 5F DF 90 00 F1 [14:44:26]RAPDU: 9C F4 3D BE 64 74 5F DF 90 00 [14:44:26]wFMCommunicate OK [14:44:26]SAM_PROTO_SignData done [14:44:26]FM_MakeSignedData done [14:44:26]CreateOFDProtocolMessage [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 11 00 00 [14:44:26]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 17 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [14:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:44:26]wFMCommunicate OK [14:44:26]CreateOFDProtocolMessage done [14:44:26]OFDSenderStorePacket 166422 [14:44:26]StoreOFDPacket docnum=166422 [14:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 29 07 01 F6 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 4A BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8A 02 00 35 04 06 00 43 D3 5B A1 25 0A 9C F4 3D BE 64 74 5F DF [14:44:26]CheckFolder [14:44:26]dirname=/storage/ofd_packets [14:44:26]CheckFolder done [14:44:26]ProducePacketName [14:44:26]name=ofd_packets/00166422 [14:44:26]NVStorageSaveData ofd_packets/00166422 [14:44:26]File name is /storage/ofd_packets/00166422 [14:44:26]Write 301 bytes [14:44:26]NVStorageSaveData done [14:44:26]OFDSenderStorePacket done [14:44:26]KKMCreateOFDPacket done [14:44:26]NVStorageSaveData kkm_last_timestamp [14:44:26]File name is /storage/kkm_last_timestamp [14:44:26]Write 4 bytes [14:44:26]NVStorageSaveData done [14:44:26]ExternCall_PrintAddStr [14:44:26]wPrintStart [14:44:26]Write to MH i2c: 01 00 00 C4 12 D6 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 C4 12 00 00 00 00 00 FF 0F EB [14:44:26]RasterBufferAndPrint [14:44:26]line Счет N : (1)221001 [14:44:26]line ИНН: 02508201610067 [14:44:26]line Контрольно-Кассовый Чек [14:44:26]line ПРОДАЖА [14:44:26]line ТРК (МРК, ГНК) : 34 [14:44:26]line Товар: 2710124500 [14:44:26]line Аи-95-К-5 [14:44:26]line 13.480 * 74.20 [14:44:26]line = 1000.22 [14:44:26]line НДС 12% НСП 1% [14:44:26]line > о реализуемом товаре [14:44:26]line ОКРУГЛЕНИЕ: -0.22 [14:44:26]line ИТОГО: 1000.00 [14:44:26]line Внесено: 1000.00 [14:44:26]line СДАЧА: 0.00 [14:44:26]line НСП 1% : 8.85 [14:44:26]line НДС 12% : 106.22 [14:44:26]line Наличными: 1000.00 [14:44:26]line Безнал.: 0.00 [14:44:26]line Место: АЗС № 161 "Партнер Нефть" [14:44:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:44:26]line СНО: Общий режим [14:44:26]line Чек 177 22.10.2024 14:44 [14:44:26]line Смена: 536 ФФД: 1.0 [14:44:26]line ЗНМ: 0300000104 [14:44:26]line РНМ: 0000000000091764 [14:44:26]line Версия ККМ: 001 [14:44:26]line ФМ: 0000000000871759 [14:44:26]line ФД: 166422 [14:44:26]line ФПД: 74575054447882 [14:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144426&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166422&fm=74575054447882&tin=02508201610067®Number=0000000000091764&sum=100000 [14:44:27]OFD Sender: Processing packet 166422 [packets to send 48, broken 47] [14:44:27]ProducePacketName [14:44:27]name=ofd_packets/00166422 [14:44:27]OFD Sender: To server: pG, [14:44:27]CommunicateWithHost lk.salyk.kg:30040 [14:44:27]ConnectInit lk.salyk.kg [14:44:27]written 0, free lines is 4095 [14:44:27]Connected sock=10 [14:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1A 29 07 01 F6 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 4A BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8A 02 00 35 04 06 00 43 D3 5B A1 25 0A 9C F4 3D BE 64 74 5F DF [14:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C6 63 47 00 48 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 8A 02 00 F4 03 04 00 B4 60 17 67 B6 04 01 00 00 2E 4B F7 EE F1 D8 C6 81 [14:44:27]CommunicateWithHost err = 0 [14:44:27]CheckOFDResponse [14:44:27]1017 (14) - 77093643461234 [14:44:27]1041 (16) - 0000000000871759 [14:44:27]1040 (4) - 166422 [14:44:27]1012 (4) - 22.10.2024 08:22 [14:44:27]1206 (1) - 0 [14:44:27]OFD Sender: Remove packet 166422 [14:44:27]ProducePacketName [14:44:27]name=ofd_packets/00166422 [14:44:27]NVStorageDeleteData [14:44:27]Write to MH i2c: 01 00 00 EF 12 01 [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: 01 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: 01 07 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 C8 0C DC [14:44:27]RasterBufferAndPrint [14:44:27]line [14:44:27]line [14:44:27]line [14:44:27]line [14:44:27]line [14:44:27]written 0, free lines is 3277 [14:44:27]MH_Cut [14:44:27]Write to MH i2c: D1 01 00 F6 12 01 DA [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: D1 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: D1 01 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: D1 01 00 F6 12 00 D9 [14:44:27]Write to MH i2c: 01 00 00 F7 12 09 [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]OFD Sender: No OFD packet to send [14:44:28]*** Cut start [14:44:28]*** Partial cut [14:44:28]*** CUTSNS_PIN = 1 [14:44:28]*** CUTSNS_PIN = 0 [14:44:28]*** Brake cut motor [14:44:28]Read from MH i2c: 01 [14:44:28]MH_I2C_Read... [14:44:28]*** Stop cut motor [14:44:28]*** Cut end [14:44:28]Read from MH i2c: 01 07 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [14:44:28]process_action close_receipt done [14:44:28]requested_data is exist [14:44:28]produce_requested_data [14:44:28]requested_item fm.sn is exist - process it [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 11 00 00 [14:44:28]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:29]Read from MH i2c: E2 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 17 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [14:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:44:29]wFMCommunicate OK [14:44:29]requested_item fd.num is exist - process it [14:44:29]SAM_PROTO_GetFieldsCounters [14:44:29]wFMCommunicate request_size=4 [14:44:29]MH_SAM_APDU [14:44:29]CAPDU: 80 13 00 00 [14:44:29]Write to MH i2c: E2 08 00 F9 12 80 13 00 00 00 00 00 00 87 [14:44:29]Write i2c OK [14:44:29]MH_I2C_Read... [14:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:29]Read from MH i2c: E2 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 62 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 62 00 F9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:29]wFMCommunicate OK [14:44:29]SAM_PROTO_GetFieldsCounters done [14:44:29]requested_item shift.num is exist - process it [14:44:29]requested_item shift.opened is exist - process it [14:44:29]req_shift_opened [14:44:29]FM_GetShiftState [14:44:29]SAM_PROTO_GetShiftState [14:44:29]wFMCommunicate request_size=4 [14:44:29]MH_SAM_APDU [14:44:29]CAPDU: 80 13 01 00 [14:44:29]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [14:44:29]Write i2c OK [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 [14:44:29]MH_I2C_Read... [14:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:29]Read from MH i2c: E2 0E 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DC [14:44:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:44:29]wFMCommunicate OK [14:44:29]SAM_PROTO_GetShiftState done [14:44:29]FM_GetShiftState done [14:44:29]req_shift_opened done [14:44:29]requested_item shift.open_date is exist - process it [14:44:29]req_shift_open_date [14:44:29]req_shift_open_date done [14:44:29]produce_requested_data done [14:44:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166422,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:44:29]process_action_free close_receipt [14:44:29]json_value_free [14:44:29]json_value_free done [14:44:29]process_json_proto returns [14:44:29]Send response to host [14:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166422,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:44:29]free response buf [14:44:29]execute_script done [14:44:29]execute_script returns [14:44:29]free content buf [14:44:29]Sock 7.Close socket [14:44:29]Sock 7.Thread stoped [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:19]accept exits with 9 [14:46:19]New connection [14:46:19]New thread 3067493732 created [14:46:19]Thread 3067637092 joined [14:46:19]Waiting for new connection... [14:46:19] Sock 9.Parse request [14:46:19]Sock 9.Check first char [14:46:19]Sock 9.First char is OK [14:46:19]request: POST /json_proto HTTP/1.0 [14:46:19]Method: POST [14:46:19]URL: /json_proto [14:46:19]Method is POST - this is cgi request [14:46:19]url: /json_proto [14:46:19]query_string will be loaded in cgi processing [14:46:19]execute_cgi json_proto POST (null) [14:46:19]execute_cgi path=json_proto method=POST [14:46:19]POST find Content-Length [14:46:19]Host: 172.17.53.195:8080 [14:46:19]Content-Length: 677 [14:46:19]Content-Type: application/json [14:46:19] [14:46:19]POST finish read [14:46:19]Found Content-Length = 677 [14:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.390, "sum" : 399.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:19]execute_script... [14:46:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.390, "sum" : 399.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:19]POST & json_proto [14:46:19]process_json_proto [14:46:19]json parsed OK: [14:46:19]protocol is kg_v1.0 [14:46:19]action value=close_receipt [14:46:19]process_action close_receipt [14:46:19]cmd_close_receipt [14:46:19]MH_GetDate [14:46:19]Write to MH i2c: F0 00 00 FB 12 FC [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 09 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: F0 09 00 FB 12 00 BC BA 17 67 21 48 4A 65 11 [14:46:19]GetLastDocTimeStamp 1729608266 [14:46:19]current date 1729608380 [14:46:19]FM_GetShiftState [14:46:19]SAM_PROTO_GetShiftState [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 13 01 00 [14:46:19]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DE [14:46:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_GetShiftState done [14:46:19]FM_GetShiftState done [14:46:19]opened in 1729557463 [14:46:19]opened+sec_in_day 1729643863 [14:46:19]quantity*price = 39993 [14:46:19]sum+1 = 39995 [14:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 399.00 Внесено: 400.00 СДАЧА: 1.00 НСП 1% : 3.54 НДС 12% : 42.47 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 178 22.10.2024 14:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166423 ФПД: 94852618768334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144620&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166423&fm=94852618768334&tin=02508201610067®Number=0000000000091764&sum=39900 [14:46:21]StoreToDocumentArchive [14:46:21]shift 536 fd 166423 [14:46:21]save to /storage/0536/doc_00166423 [14:46:21]save last doc name /storage/0536/doc_00166423 to /storage/kkm_last_doc_name [14:46:21]save OK [14:46:21]Clear old archive folders... [14:46:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:21]tlvbuf is 00A40300 [14:46:21]SAM_PROTO_ClearQueue [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 09 00 00 [14:46:21]Write to MH i2c: E2 08 00 09 13 80 09 00 00 00 00 00 00 8E [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_ClearQueue done [14:46:21]KKMCreateOFDPacket [14:46:21]OFDProtocolAddRootSTLVToBuf [14:46:21]FM_MakeSignedData [14:46:21]FM_MakeSignedData [14:46:21]SAM_PROTO_SignData [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 01 02 [14:46:21]Write to MH i2c: E2 08 00 0A 13 80 0D 01 02 00 00 00 00 96 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]wFMCommunicate request_size=255 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 BC BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8A 02 00 35 04 06 00 56 [14:46:21]Write to MH i2c: E2 02 01 0B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 BC BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8A 02 00 35 04 06 00 56 00 00 6D [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]wFMCommunicate request_size=10 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 02 02 05 44 98 A5 CF CE [14:46:21]Write to MH i2c: E2 0D 00 0C 13 80 0D 02 02 05 00 44 98 A5 CF CE 00 00 C1 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [14:46:21]RAPDU: 90 00 [14:46:21]wFMCommunicate OK [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 0D 03 02 [14:46:21]Write to MH i2c: E2 08 00 0D 13 80 0D 03 02 00 00 00 00 9B [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0B 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0B 00 0D 13 00 1C AC 5D 58 DB BB 86 79 90 00 AE [14:46:21]RAPDU: 1C AC 5D 58 DB BB 86 79 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_SignData done [14:46:21]FM_MakeSignedData done [14:46:21]CreateOFDProtocolMessage [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 11 00 00 [14:46:21]Write to MH i2c: E2 08 00 0E 13 80 11 00 00 00 00 00 00 9B [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 0E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [14:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:21]wFMCommunicate OK [14:46:21]CreateOFDProtocolMessage done [14:46:21]OFDSenderStorePacket 166423 [14:46:21]StoreOFDPacket docnum=166423 [14:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 68 07 01 51 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 BC BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8A 02 00 35 04 06 00 56 44 98 A5 CF CE 1C AC 5D 58 DB BB 86 79 [14:46:21]CheckFolder [14:46:21]dirname=/storage/ofd_packets [14:46:21]CheckFolder done [14:46:21]ProducePacketName [14:46:21]name=ofd_packets/00166423 [14:46:21]NVStorageSaveData ofd_packets/00166423 [14:46:21]File name is /storage/ofd_packets/00166423 [14:46:21]Write 301 bytes [14:46:21]NVStorageSaveData done [14:46:21]OFDSenderStorePacket done [14:46:21]KKMCreateOFDPacket done [14:46:21]NVStorageSaveData kkm_last_timestamp [14:46:21]File name is /storage/kkm_last_timestamp [14:46:21]Write 4 bytes [14:46:21]NVStorageSaveData done [14:46:21]ExternCall_PrintAddStr [14:46:21]wPrintStart [14:46:21]Write to MH i2c: 01 00 00 0F 13 22 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [14:46:21]RasterBufferAndPrint [14:46:21]line Счет N : (1)221003 [14:46:21]line ИНН: 02508201610067 [14:46:21]line Контрольно-Кассовый Чек [14:46:21]line ПРОДАЖА [14:46:21]line ТРК (МРК, ГНК) : 14 [14:46:21]line Товар: 2710124500 [14:46:21]line Аи-95-К-5 [14:46:21]line 5.390 * 74.20 [14:46:21]line = 399.94 [14:46:21]line НДС 12% НСП 1% [14:46:21]line > о реализуемом товаре [14:46:21]line ОКРУГЛЕНИЕ: -0.94 [14:46:21]line ИТОГО: 399.00 [14:46:21]line Внесено: 400.00 [14:46:21]line СДАЧА: 1.00 [14:46:21]line НСП 1% : 3.54 [14:46:21]line НДС 12% : 42.47 [14:46:21]line Наличными: 399.00 [14:46:21]line Безнал.: 0.00 [14:46:21]line Место: АЗС № 161 "Партнер Нефть" [14:46:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:46:21]line СНО: Общий режим [14:46:21]line Чек 178 22.10.2024 14:46 [14:46:21]line Смена: 536 ФФД: 1.0 [14:46:21]line ЗНМ: 0300000104 [14:46:21]line РНМ: 0000000000091764 [14:46:21]line Версия ККМ: 001 [14:46:21]line ФМ: 0000000000871759 [14:46:21]line ФД: 166423 [14:46:21]line ФПД: 94852618768334 [14:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144620&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166423&fm=94852618768334&tin=02508201610067®Number=0000000000091764&sum=39900 [14:46:21]OFD Sender: Processing packet 166423 [packets to send 48, broken 47] [14:46:21]ProducePacketName [14:46:21]name=ofd_packets/00166423 [14:46:21]OFD Sender: To server: pG, [14:46:21]CommunicateWithHost lk.salyk.kg:30040 [14:46:21]ConnectInit lk.salyk.kg [14:46:21]written 0, free lines is 4095 [14:46:22]Connected sock=10 [14:46:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 68 07 01 51 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 BC BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8A 02 00 35 04 06 00 56 44 98 A5 CF CE 1C AC 5D 58 DB BB 86 79 [14:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EC 86 47 00 DC C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 8A 02 00 F4 03 04 00 27 61 17 67 B6 04 01 00 00 C4 72 76 99 42 C4 B1 36 [14:46:22]CommunicateWithHost err = 0 [14:46:22]CheckOFDResponse [14:46:22]1017 (14) - 77093643461234 [14:46:22]1041 (16) - 0000000000871759 [14:46:22]1040 (4) - 166423 [14:46:22]1012 (4) - 22.10.2024 08:24 [14:46:22]1206 (1) - 0 [14:46:22]OFD Sender: Remove packet 166423 [14:46:22]ProducePacketName [14:46:22]name=ofd_packets/00166423 [14:46:22]NVStorageDeleteData [14:46:22]Write to MH i2c: 01 00 00 3A 13 4D [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 07 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 C3 0C 23 [14:46:22]RasterBufferAndPrint [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]line [14:46:22]written 0, free lines is 3273 [14:46:22]MH_Cut [14:46:22]Write to MH i2c: D1 01 00 41 13 01 26 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 01 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: D1 01 00 41 13 00 25 [14:46:22]Write to MH i2c: 01 00 00 42 13 55 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]OFD Sender: No OFD packet to send [14:46:23]*** Cut start [14:46:23]*** Partial cut [14:46:23]*** CUTSNS_PIN = 1 [14:46:23]*** CUTSNS_PIN = 0 [14:46:23]*** Brake cut motor [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]*** Stop cut motor [14:46:23]*** Cut end [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [14:46:23]process_action close_receipt done [14:46:23]requested_data is exist [14:46:23]produce_requested_data [14:46:23]requested_item fm.sn is exist - process it [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 11 00 00 [14:46:23]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [14:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:23]wFMCommunicate OK [14:46:23]requested_item fd.num is exist - process it [14:46:23]SAM_PROTO_GetFieldsCounters [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 13 00 00 [14:46:23]Write to MH i2c: E2 08 00 44 13 80 13 00 00 00 00 00 00 D3 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 62 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 62 00 44 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [14:46:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:24]wFMCommunicate OK [14:46:24]SAM_PROTO_GetFieldsCounters done [14:46:24]requested_item shift.num is exist - process it [14:46:24]requested_item shift.opened is exist - process it [14:46:24]req_shift_opened [14:46:24]FM_GetShiftState [14:46:24]SAM_PROTO_GetShiftState [14:46:24]wFMCommunicate request_size=4 [14:46:24]MH_SAM_APDU [14:46:24]CAPDU: 80 13 01 00 [14:46:24]Write to MH i2c: E2 08 00 45 13 80 13 01 00 00 00 00 00 D5 [14:46:24]Write i2c OK [14:46:24]MH_I2C_Read... [14:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:24]Read from MH i2c: E2 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 0E 00 [14:46:24]MH_I2C_Read... [14:46:24]Read from MH i2c: E2 0E 00 45 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 28 [14:46:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:46:24]wFMCommunicate OK [14:46:24]SAM_PROTO_GetShiftState done [14:46:24]FM_GetShiftState done [14:46:24]req_shift_opened done [14:46:24]requested_item shift.open_date is exist - process it [14:46:24]req_shift_open_date [14:46:24]req_shift_open_date done [14:46:24]produce_requested_data done [14:46:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166423,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:46:24]process_action_free close_receipt [14:46:24]json_value_free [14:46:24]json_value_free done [14:46:24]process_json_proto returns [14:46:24]Send response to host [14:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166423,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:46:24]free response buf [14:46:24]execute_script done [14:46:24]execute_script returns [14:46:24]free content buf [14:46:24]Sock 9.Close socket [14:46:24]Sock 9.Thread stoped [14:46:27]OFD Sender: No OFD packet to send [14:46:30]accept exits with 7 [14:46:30]New connection [14:46:30]New thread 3067637092 created [14:46:30]Thread 3067493732 joined [14:46:30]Waiting for new connection... [14:46:30] Sock 7.Parse request [14:46:30]Sock 7.Check first char [14:46:30]Sock 7.First char is OK [14:46:30]request: POST /json_proto HTTP/1.0 [14:46:30]Method: POST [14:46:30]URL: /json_proto [14:46:30]Method is POST - this is cgi request [14:46:30]url: /json_proto [14:46:30]query_string will be loaded in cgi processing [14:46:30]execute_cgi json_proto POST (null) [14:46:30]execute_cgi path=json_proto method=POST [14:46:30]POST find Content-Length [14:46:30]Host: 172.17.53.195:8080 [14:46:30]Content-Length: 674 [14:46:30]Content-Type: application/json [14:46:30] [14:46:30]POST finish read [14:46:30]Found Content-Length = 674 [14:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:30]execute_script... [14:46:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:30]POST & json_proto [14:46:30]process_json_proto [14:46:30]json parsed OK: [14:46:30]protocol is kg_v1.0 [14:46:30]action value=close_receipt [14:46:30]process_action close_receipt [14:46:30]cmd_close_receipt [14:46:30]MH_GetDate [14:46:30]Write to MH i2c: F0 00 00 46 13 48 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 09 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 09 00 46 13 00 C7 BA 17 67 21 48 4A 65 68 [14:46:30]GetLastDocTimeStamp 1729608380 [14:46:30]current date 1729608391 [14:46:30]FM_GetShiftState [14:46:30]SAM_PROTO_GetShiftState [14:46:30]wFMCommunicate request_size=4 [14:46:30]MH_SAM_APDU [14:46:30]CAPDU: 80 13 01 00 [14:46:30]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:30]Read from MH i2c: E2 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 0E 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2A [14:46:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:46:30]wFMCommunicate OK [14:46:30]SAM_PROTO_GetShiftState done [14:46:30]FM_GetShiftState done [14:46:30]opened in 1729557463 [14:46:30]opened+sec_in_day 1729643863 [14:46:30]quantity*price = 70027 [14:46:30]sum+1 = 70029 [14:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 179 22.10.2024 14:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166424 ФПД: 198280850324622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144631&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166424&fm=198280850324622&tin=02508201610067®Number=0000000000091764&sum=70000 [14:46:31]StoreToDocumentArchive [14:46:31]shift 536 fd 166424 [14:46:31]save to /storage/0536/doc_00166424 [14:46:31]save last doc name /storage/0536/doc_00166424 to /storage/kkm_last_doc_name [14:46:31]save OK [14:46:31]Clear old archive folders... [14:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:31]tlvbuf is 00994B50 [14:46:31]SAM_PROTO_ClearQueue [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 09 00 00 [14:46:31]Write to MH i2c: E2 08 00 54 13 80 09 00 00 00 00 00 00 D9 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_ClearQueue done [14:46:31]KKMCreateOFDPacket [14:46:31]OFDProtocolAddRootSTLVToBuf [14:46:31]FM_MakeSignedData [14:46:31]FM_MakeSignedData [14:46:31]SAM_PROTO_SignData [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 01 02 [14:46:31]Write to MH i2c: E2 08 00 55 13 80 0D 01 02 00 00 00 00 E1 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=255 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 C7 BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8A 02 00 35 04 06 00 B4 55 DB A6 [14:46:31]Write to MH i2c: E2 02 01 56 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 C7 BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8A 02 00 35 04 06 00 B4 55 DB A6 00 00 63 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=7 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 02 02 02 3C 8E [14:46:32]Write to MH i2c: E2 0A 00 57 13 80 0D 02 02 02 00 3C 8E 00 00 B2 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 03 02 [14:46:32]Write to MH i2c: E2 08 00 58 13 80 0D 03 02 00 00 00 00 E6 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0B 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0B 00 58 13 00 F4 29 F6 FB 05 E0 C0 11 90 00 AB [14:46:32]RAPDU: F4 29 F6 FB 05 E0 C0 11 90 00 [14:46:32]wFMCommunicate OK [14:46:32]SAM_PROTO_SignData done [14:46:32]FM_MakeSignedData done [14:46:32]CreateOFDProtocolMessage [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 11 00 00 [14:46:32]Write to MH i2c: E2 08 00 59 13 80 11 00 00 00 00 00 00 E6 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 17 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 17 00 59 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [14:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:32]wFMCommunicate OK [14:46:32]CreateOFDProtocolMessage done [14:46:32]OFDSenderStorePacket 166424 [14:46:32]StoreOFDPacket docnum=166424 [14:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 19 15 04 01 DB 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 C7 BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8A 02 00 35 04 06 00 B4 55 DB A6 3C 8E F4 29 F6 FB 05 E0 C0 11 [14:46:32]CheckFolder [14:46:32]dirname=/storage/ofd_packets [14:46:32]CheckFolder done [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00166424 [14:46:32]NVStorageSaveData ofd_packets/00166424 [14:46:32]File name is /storage/ofd_packets/00166424 [14:46:32]Write 298 bytes [14:46:32]NVStorageSaveData done [14:46:32]OFDSenderStorePacket done [14:46:32]KKMCreateOFDPacket done [14:46:32]NVStorageSaveData kkm_last_timestamp [14:46:32]File name is /storage/kkm_last_timestamp [14:46:32]Write 4 bytes [14:46:32]NVStorageSaveData done [14:46:32]ExternCall_PrintAddStr [14:46:32]wPrintStart [14:46:32]Write to MH i2c: 01 00 00 5A 13 6D [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 5A 13 00 00 00 00 00 FF 0F 82 [14:46:32]RasterBufferAndPrint [14:46:32]line Счет N : (1)221002 [14:46:32]line ИНН: 02508201610067 [14:46:32]line Контрольно-Кассовый Чек [14:46:32]line ПРОДАЖА [14:46:32]line ТРК (МРК, ГНК) : 21 [14:46:32]line Товар: 2710194210 [14:46:32]line ДТ-К-5 [14:46:32]line 9.190 * 76.20 [14:46:32]line = 700.28 [14:46:32]line НДС 12% НСП 1% [14:46:32]line > о реализуемом товаре [14:46:32]line ОКРУГЛЕНИЕ: -0.28 [14:46:32]line ИТОГО: 700.00 [14:46:32]line Внесено: 700.00 [14:46:32]line СДАЧА: 0.00 [14:46:32]line НСП 1% : 6.20 [14:46:32]line НДС 12% : 74.37 [14:46:32]line Наличными: 700.00 [14:46:32]line Безнал.: 0.00 [14:46:32]line Место: АЗС № 161 "Партнер Нефть" [14:46:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:46:32]line СНО: Общий режим [14:46:32]line Чек 179 22.10.2024 14:46 [14:46:32]line Смена: 536 ФФД: 1.0 [14:46:32]line ЗНМ: 0300000104 [14:46:32]line РНМ: 0000000000091764 [14:46:32]line Версия ККМ: 001 [14:46:32]line ФМ: 0000000000871759 [14:46:32]line ФД: 166424 [14:46:32]line ФПД: 198280850324622 [14:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144631&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166424&fm=198280850324622&tin=02508201610067®Number=0000000000091764&sum=70000 [14:46:32]OFD Sender: Processing packet 166424 [packets to send 48, broken 47] [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00166424 [14:46:32]OFD Sender: To server: pG, [14:46:32]CommunicateWithHost lk.salyk.kg:30040 [14:46:32]ConnectInit lk.salyk.kg [14:46:32]written 0, free lines is 4095 [14:46:32]Connected sock=10 [14:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 19 15 04 01 DB 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 C7 BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8A 02 00 35 04 06 00 B4 55 DB A6 3C 8E F4 29 F6 FB 05 E0 C0 11 [14:46:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B8 6F 47 00 4F 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 8A 02 00 F4 03 04 00 32 61 17 67 B6 04 01 00 00 E1 56 B2 02 37 BA 15 47 [14:46:33]CommunicateWithHost err = 0 [14:46:33]CheckOFDResponse [14:46:33]1017 (14) - 77093643461234 [14:46:33]1041 (16) - 0000000000871759 [14:46:33]1040 (4) - 166424 [14:46:33]1012 (4) - 22.10.2024 08:24 [14:46:33]1206 (1) - 0 [14:46:33]OFD Sender: Remove packet 166424 [14:46:33]ProducePacketName [14:46:33]name=ofd_packets/00166424 [14:46:33]NVStorageDeleteData [14:46:33]Write to MH i2c: 01 00 00 85 13 98 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 CD 0C 78 [14:46:33]RasterBufferAndPrint [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]written 0, free lines is 3283 [14:46:33]MH_Cut [14:46:33]Write to MH i2c: D1 01 00 8C 13 01 71 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 8C 13 00 70 [14:46:33]Write to MH i2c: 01 00 00 8D 13 A0 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]OFD Sender: No OFD packet to send [14:46:33]*** Cut start [14:46:33]*** Partial cut [14:46:33]*** CUTSNS_PIN = 1 [14:46:33]*** CUTSNS_PIN = 0 [14:46:34]*** Brake cut motor [14:46:34]Read from MH i2c: 01 [14:46:34]MH_I2C_Read... [14:46:34]*** Stop cut motor [14:46:34]*** Cut end [14:46:34]Read from MH i2c: 01 07 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [14:46:34]process_action close_receipt done [14:46:34]requested_data is exist [14:46:34]produce_requested_data [14:46:34]requested_item fm.sn is exist - process it [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 11 00 00 [14:46:34]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [14:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:46:34]wFMCommunicate OK [14:46:34]requested_item fd.num is exist - process it [14:46:34]SAM_PROTO_GetFieldsCounters [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 13 00 00 [14:46:34]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 62 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 62 00 8F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_GetFieldsCounters done [14:46:34]requested_item shift.num is exist - process it [14:46:34]requested_item shift.opened is exist - process it [14:46:34]req_shift_opened [14:46:34]FM_GetShiftState [14:46:34]SAM_PROTO_GetShiftState [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 13 01 00 [14:46:34]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 73 [14:46:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_GetShiftState done [14:46:34]FM_GetShiftState done [14:46:34]req_shift_opened done [14:46:34]requested_item shift.open_date is exist - process it [14:46:34]req_shift_open_date [14:46:34]req_shift_open_date done [14:46:34]produce_requested_data done [14:46:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166424,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:46:34]process_action_free close_receipt [14:46:34]json_value_free [14:46:34]json_value_free done [14:46:34]process_json_proto returns [14:46:34]Send response to host [14:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166424,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:46:34]free response buf [14:46:34]execute_script done [14:46:34]execute_script returns [14:46:34]free content buf [14:46:34]Sock 7.Close socket [14:46:34]Sock 7.Thread stoped [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:06]accept exits with 9 [14:47:06]New connection [14:47:06]New thread 3067493732 created [14:47:06]Thread 3067637092 joined [14:47:06]Waiting for new connection... [14:47:06] Sock 9.Parse request [14:47:06]Sock 9.Check first char [14:47:06]Sock 9.First char is OK [14:47:06]request: POST /json_proto HTTP/1.0 [14:47:06]Method: POST [14:47:06]URL: /json_proto [14:47:06]Method is POST - this is cgi request [14:47:06]url: /json_proto [14:47:06]query_string will be loaded in cgi processing [14:47:06]execute_cgi json_proto POST (null) [14:47:06]execute_cgi path=json_proto method=POST [14:47:06]POST find Content-Length [14:47:06]Host: 172.17.53.195:8080 [14:47:06]Content-Length: 678 [14:47:06]Content-Type: application/json [14:47:06] [14:47:06]POST finish read [14:47:06]Found Content-Length = 678 [14:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]execute_script... [14:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]POST & json_proto [14:47:06]process_json_proto [14:47:06]json parsed OK: [14:47:06]protocol is kg_v1.0 [14:47:06]action value=close_receipt [14:47:06]process_action close_receipt [14:47:06]cmd_close_receipt [14:47:06]MH_GetDate [14:47:06]Write to MH i2c: F0 00 00 91 13 93 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 91 13 00 EB BA 17 67 21 48 4A 65 D7 [14:47:06]GetLastDocTimeStamp 1729608391 [14:47:06]current date 1729608427 [14:47:06]FM_GetShiftState [14:47:06]SAM_PROTO_GetShiftState [14:47:06]wFMCommunicate request_size=4 [14:47:06]MH_SAM_APDU [14:47:06]CAPDU: 80 13 01 00 [14:47:06]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:06]Read from MH i2c: E2 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 75 [14:47:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:47:06]wFMCommunicate OK [14:47:06]SAM_PROTO_GetShiftState done [14:47:06]FM_GetShiftState done [14:47:06]opened in 1729557463 [14:47:06]opened+sec_in_day 1729643863 [14:47:06]quantity*price = 90047 [14:47:06]sum+1 = 90048 [14:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 180 22.10.2024 14:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166425 ФПД: 215888465008356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144707&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166425&fm=215888465008356&tin=02508201610067®Number=0000000000091764&sum=90000 [14:47:07]StoreToDocumentArchive [14:47:07]shift 536 fd 166425 [14:47:07]save to /storage/0536/doc_00166425 [14:47:07]save last doc name /storage/0536/doc_00166425 to /storage/kkm_last_doc_name [14:47:07]save OK [14:47:07]Clear old archive folders... [14:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:07]tlvbuf is 00A21160 [14:47:07]SAM_PROTO_ClearQueue [14:47:07]wFMCommunicate request_size=4 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 09 00 00 [14:47:07]Write to MH i2c: E2 08 00 9F 13 80 09 00 00 00 00 00 00 24 [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:07]Read from MH i2c: E2 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 03 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [14:47:07]RAPDU: 90 00 [14:47:07]wFMCommunicate OK [14:47:07]SAM_PROTO_ClearQueue done [14:47:07]KKMCreateOFDPacket [14:47:07]OFDProtocolAddRootSTLVToBuf [14:47:07]FM_MakeSignedData [14:47:07]FM_MakeSignedData [14:47:07]SAM_PROTO_SignData [14:47:07]wFMCommunicate request_size=4 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 0D 01 02 [14:47:07]Write to MH i2c: E2 08 00 A0 13 80 0D 01 02 00 00 00 00 2C [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:07]Read from MH i2c: E2 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 03 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [14:47:07]RAPDU: 90 00 [14:47:07]wFMCommunicate OK [14:47:07]wFMCommunicate request_size=255 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8A 02 00 35 04 06 00 C4 [14:47:07]Write to MH i2c: E2 02 01 A1 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8A 02 00 35 04 06 00 C4 00 00 39 [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=10 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 02 02 05 59 73 44 96 E4 [14:47:08]Write to MH i2c: E2 0D 00 A2 13 80 0D 02 02 05 00 59 73 44 96 E4 00 00 C3 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 03 02 [14:47:08]Write to MH i2c: E2 08 00 A3 13 80 0D 03 02 00 00 00 00 31 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 A3 13 00 1C E2 AE 7A D2 97 10 70 90 00 41 [14:47:08]RAPDU: 1C E2 AE 7A D2 97 10 70 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_SignData done [14:47:08]FM_MakeSignedData done [14:47:08]CreateOFDProtocolMessage [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 11 00 00 [14:47:08]Write to MH i2c: E2 08 00 A4 13 80 11 00 00 00 00 00 00 31 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 A4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [14:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:08]wFMCommunicate OK [14:47:08]CreateOFDProtocolMessage done [14:47:08]OFDSenderStorePacket 166425 [14:47:08]StoreOFDPacket docnum=166425 [14:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 39 07 01 25 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8A 02 00 35 04 06 00 C4 59 73 44 96 E4 1C E2 AE 7A D2 97 10 70 [14:47:08]CheckFolder [14:47:08]dirname=/storage/ofd_packets [14:47:08]CheckFolder done [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00166425 [14:47:08]NVStorageSaveData ofd_packets/00166425 [14:47:08]File name is /storage/ofd_packets/00166425 [14:47:08]Write 301 bytes [14:47:08]NVStorageSaveData done [14:47:08]OFDSenderStorePacket done [14:47:08]KKMCreateOFDPacket done [14:47:08]NVStorageSaveData kkm_last_timestamp [14:47:08]File name is /storage/kkm_last_timestamp [14:47:08]Write 4 bytes [14:47:08]NVStorageSaveData done [14:47:08]ExternCall_PrintAddStr [14:47:08]wPrintStart [14:47:08]Write to MH i2c: 01 00 00 A5 13 B8 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 A5 13 00 00 00 00 00 FF 0F CD [14:47:08]RasterBufferAndPrint [14:47:08]line Счет N : (1)221004 [14:47:08]line ИНН: 02508201610067 [14:47:08]line Контрольно-Кассовый Чек [14:47:08]line ПРОДАЖА [14:47:08]line ТРК (МРК, ГНК) : 23 [14:47:08]line Товар: 2710124130 [14:47:08]line Аи-92-К-5 [14:47:08]line 13.460 * 66.90 [14:47:08]line = 900.47 [14:47:08]line НДС 12% НСП 1% [14:47:08]line > о реализуемом товаре [14:47:08]line ОКРУГЛЕНИЕ: -0.47 [14:47:08]line ИТОГО: 900.00 [14:47:08]line Внесено: 900.00 [14:47:08]line СДАЧА: 0.00 [14:47:08]line НСП 1% : 7.97 [14:47:08]line НДС 12% : 95.62 [14:47:08]line Наличными: 900.00 [14:47:08]line Безнал.: 0.00 [14:47:08]line Место: АЗС № 161 "Партнер Нефть" [14:47:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:47:08]line СНО: Общий режим [14:47:08]line Чек 180 22.10.2024 14:47 [14:47:08]line Смена: 536 ФФД: 1.0 [14:47:08]line ЗНМ: 0300000104 [14:47:08]line РНМ: 0000000000091764 [14:47:08]line Версия ККМ: 001 [14:47:08]line ФМ: 0000000000871759 [14:47:08]line ФД: 166425 [14:47:08]line ФПД: 215888465008356 [14:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144707&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166425&fm=215888465008356&tin=02508201610067®Number=0000000000091764&sum=90000 [14:47:08]OFD Sender: Processing packet 166425 [packets to send 48, broken 47] [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00166425 [14:47:08]OFD Sender: To server: pG, [14:47:08]CommunicateWithHost lk.salyk.kg:30040 [14:47:08]ConnectInit lk.salyk.kg [14:47:08]written 0, free lines is 4095 [14:47:08]Connected sock=10 [14:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 39 07 01 25 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 EB BA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8A 02 00 35 04 06 00 C4 59 73 44 96 E4 1C E2 AE 7A D2 97 10 70 [14:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 67 57 47 00 AB C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 8A 02 00 F4 03 04 00 56 61 17 67 B6 04 01 00 00 B5 10 6D 94 3F E8 5F 0F [14:47:08]CommunicateWithHost err = 0 [14:47:08]CheckOFDResponse [14:47:08]1017 (14) - 77093643461234 [14:47:08]1041 (16) - 0000000000871759 [14:47:08]1040 (4) - 166425 [14:47:08]1012 (4) - 22.10.2024 08:24 [14:47:08]1206 (1) - 0 [14:47:08]OFD Sender: Remove packet 166425 [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00166425 [14:47:08]NVStorageDeleteData [14:47:09]Write to MH i2c: 01 00 00 D0 13 E3 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 D0 13 00 00 00 00 00 D1 0C C7 [14:47:09]RasterBufferAndPrint [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]written 0, free lines is 3288 [14:47:09]MH_Cut [14:47:09]Write to MH i2c: D1 01 00 D7 13 01 BC [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 D7 13 00 BB [14:47:09]Write to MH i2c: 01 00 00 D8 13 EB [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]OFD Sender: No OFD packet to send [14:47:09]*** Cut start [14:47:09]*** Partial cut [14:47:09]*** CUTSNS_PIN = 1 [14:47:09]*** CUTSNS_PIN = 0 [14:47:10]*** Brake cut motor [14:47:10]Read from MH i2c: 01 [14:47:10]MH_I2C_Read... [14:47:10]*** Stop cut motor [14:47:10]*** Cut end [14:47:10]Read from MH i2c: 01 07 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 D8 13 00 00 00 00 00 FF 0F 00 [14:47:10]process_action close_receipt done [14:47:10]requested_data is exist [14:47:10]produce_requested_data [14:47:10]requested_item fm.sn is exist - process it [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 11 00 00 [14:47:10]Write to MH i2c: E2 08 00 D9 13 80 11 00 00 00 00 00 00 66 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 17 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 17 00 D9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [14:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:10]wFMCommunicate OK [14:47:10]requested_item fd.num is exist - process it [14:47:10]SAM_PROTO_GetFieldsCounters [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 13 00 00 [14:47:10]Write to MH i2c: E2 08 00 DA 13 80 13 00 00 00 00 00 00 69 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 62 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 62 00 DA 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:10]wFMCommunicate OK [14:47:10]SAM_PROTO_GetFieldsCounters done [14:47:10]requested_item shift.num is exist - process it [14:47:10]requested_item shift.opened is exist - process it [14:47:10]req_shift_opened [14:47:10]FM_GetShiftState [14:47:10]SAM_PROTO_GetShiftState [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 13 01 00 [14:47:10]Write to MH i2c: E2 08 00 DB 13 80 13 01 00 00 00 00 00 6B [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 0E 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 0E 00 DB 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BE [14:47:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:47:10]wFMCommunicate OK [14:47:10]SAM_PROTO_GetShiftState done [14:47:10]FM_GetShiftState done [14:47:10]req_shift_opened done [14:47:10]requested_item shift.open_date is exist - process it [14:47:10]req_shift_open_date [14:47:10]req_shift_open_date done [14:47:10]produce_requested_data done [14:47:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166425,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:47:10]process_action_free close_receipt [14:47:10]json_value_free [14:47:10]json_value_free done [14:47:10]process_json_proto returns [14:47:10]Send response to host [14:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166425,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:47:10]free response buf [14:47:10]execute_script done [14:47:10]execute_script returns [14:47:10]free content buf [14:47:10]Sock 9.Close socket [14:47:10]Sock 9.Thread stoped [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:32]accept exits with 7 [14:47:32]New connection [14:47:32]New thread 3067637092 created [14:47:32]Thread 3067493732 joined [14:47:32]Waiting for new connection... [14:47:32] Sock 7.Parse request [14:47:32]Sock 7.Check first char [14:47:32]Sock 7.First char is OK [14:47:32]request: POST /json_proto HTTP/1.0 [14:47:32]Method: POST [14:47:32]URL: /json_proto [14:47:32]Method is POST - this is cgi request [14:47:32]url: /json_proto [14:47:32]query_string will be loaded in cgi processing [14:47:32]execute_cgi json_proto POST (null) [14:47:32]execute_cgi path=json_proto method=POST [14:47:32]POST find Content-Length [14:47:32]Host: 172.17.53.195:8080 [14:47:32]Content-Length: 682 [14:47:32]Content-Type: application/json [14:47:32] [14:47:32]POST finish read [14:47:32]Found Content-Length = 682 [14:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:32]execute_script... [14:47:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:32]POST & json_proto [14:47:32]process_json_proto [14:47:32]json parsed OK: [14:47:32]protocol is kg_v1.0 [14:47:32]action value=close_receipt [14:47:32]process_action close_receipt [14:47:32]cmd_close_receipt [14:47:32]MH_GetDate [14:47:32]Write to MH i2c: F0 00 00 DC 13 DE [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: F0 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: F0 09 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: F0 09 00 DC 13 00 05 BB 17 67 21 48 4A 65 3D [14:47:32]GetLastDocTimeStamp 1729608427 [14:47:32]current date 1729608453 [14:47:32]FM_GetShiftState [14:47:32]SAM_PROTO_GetShiftState [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 13 01 00 [14:47:32]Write to MH i2c: E2 08 00 DD 13 80 13 01 00 00 00 00 00 6D [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:32]Read from MH i2c: E2 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0E 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: E2 0E 00 DD 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C0 [14:47:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:47:32]wFMCommunicate OK [14:47:32]SAM_PROTO_GetShiftState done [14:47:32]FM_GetShiftState done [14:47:32]opened in 1729557463 [14:47:32]opened+sec_in_day 1729643863 [14:47:32]quantity*price = 100015 [14:47:32]sum+1 = 100017 [14:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 181 22.10.2024 14:47 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166426 ФПД: 131517557395367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166426&fm=131517557395367&tin=02508201610067®Number=0000000000091764&sum=100000 [14:47:33]StoreToDocumentArchive [14:47:33]shift 536 fd 166426 [14:47:33]save to /storage/0536/doc_00166426 [14:47:33]save last doc name /storage/0536/doc_00166426 to /storage/kkm_last_doc_name [14:47:33]save OK [14:47:33]Clear old archive folders... [14:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:33]tlvbuf is B6F68600 [14:47:33]SAM_PROTO_ClearQueue [14:47:33]wFMCommunicate request_size=4 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 09 00 00 [14:47:33]Write to MH i2c: E2 08 00 EA 13 80 09 00 00 00 00 00 00 6F [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [14:47:34]RAPDU: 90 00 [14:47:34]wFMCommunicate OK [14:47:34]SAM_PROTO_ClearQueue done [14:47:34]KKMCreateOFDPacket [14:47:34]OFDProtocolAddRootSTLVToBuf [14:47:34]FM_MakeSignedData [14:47:34]FM_MakeSignedData [14:47:34]SAM_PROTO_SignData [14:47:34]wFMCommunicate request_size=4 [14:47:34]MH_SAM_APDU [14:47:34]CAPDU: 80 0D 01 02 [14:47:34]Write to MH i2c: E2 08 00 EB 13 80 0D 01 02 00 00 00 00 77 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [14:47:34]RAPDU: 90 00 [14:47:34]wFMCommunicate OK [14:47:34]wFMCommunicate request_size=255 [14:47:34]MH_SAM_APDU [14:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8A 02 00 35 04 06 00 77 [14:47:34]Write to MH i2c: E2 02 01 EC 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8A 02 00 35 04 06 00 77 00 00 31 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [14:47:34]RAPDU: 90 00 [14:47:34]wFMCommunicate OK [14:47:34]wFMCommunicate request_size=10 [14:47:34]MH_SAM_APDU [14:47:34]CAPDU: 80 0D 02 02 05 9D 51 4A 4F A7 [14:47:34]Write to MH i2c: E2 0D 00 ED 13 80 0D 02 02 05 00 9D 51 4A 4F A7 00 00 B2 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [14:47:34]RAPDU: 90 00 [14:47:34]wFMCommunicate OK [14:47:34]wFMCommunicate request_size=4 [14:47:34]MH_SAM_APDU [14:47:34]CAPDU: 80 0D 03 02 [14:47:34]Write to MH i2c: E2 08 00 EE 13 80 0D 03 02 00 00 00 00 7C [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:34]OFD Sender: No OFD packet to send [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 0B 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 0B 00 EE 13 00 CF FE 84 F1 23 44 F3 C7 90 00 E0 [14:47:34]RAPDU: CF FE 84 F1 23 44 F3 C7 90 00 [14:47:34]wFMCommunicate OK [14:47:34]SAM_PROTO_SignData done [14:47:34]FM_MakeSignedData done [14:47:34]CreateOFDProtocolMessage [14:47:34]wFMCommunicate request_size=4 [14:47:34]MH_SAM_APDU [14:47:34]CAPDU: 80 11 00 00 [14:47:34]Write to MH i2c: E2 08 00 EF 13 80 11 00 00 00 00 00 00 7C [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:34]Read from MH i2c: E2 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 17 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: E2 17 00 EF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [14:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:34]wFMCommunicate OK [14:47:34]CreateOFDProtocolMessage done [14:47:34]OFDSenderStorePacket 166426 [14:47:34]StoreOFDPacket docnum=166426 [14:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 02 38 07 01 DA C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8A 02 00 35 04 06 00 77 9D 51 4A 4F A7 CF FE 84 F1 23 44 F3 C7 [14:47:34]CheckFolder [14:47:34]dirname=/storage/ofd_packets [14:47:34]CheckFolder done [14:47:34]ProducePacketName [14:47:34]name=ofd_packets/00166426 [14:47:34]NVStorageSaveData ofd_packets/00166426 [14:47:34]File name is /storage/ofd_packets/00166426 [14:47:34]Write 301 bytes [14:47:34]NVStorageSaveData done [14:47:34]OFDSenderStorePacket done [14:47:34]KKMCreateOFDPacket done [14:47:34]NVStorageSaveData kkm_last_timestamp [14:47:34]File name is /storage/kkm_last_timestamp [14:47:34]Write 4 bytes [14:47:34]NVStorageSaveData done [14:47:34]ExternCall_PrintAddStr [14:47:34]wPrintStart [14:47:34]Write to MH i2c: 01 00 00 F0 13 03 [14:47:34]Write i2c OK [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 07 00 [14:47:34]MH_I2C_Read... [14:47:34]Read from MH i2c: 01 07 00 F0 13 00 00 00 00 00 FF 0F 18 [14:47:34]RasterBufferAndPrint [14:47:34]line Счет N : (1)221005 [14:47:34]line ИНН: 02508201610067 [14:47:34]line Контрольно-Кассовый Чек [14:47:34]line ПРОДАЖА [14:47:34]line ТРК (МРК, ГНК) : 33 [14:47:34]line Товар: 2710124130 [14:47:34]line Аи-92-К-5 [14:47:34]line 14.950 * 66.90 [14:47:34]line = 1000.16 [14:47:34]line НДС 12% НСП 1% [14:47:34]line > о реализуемом товаре [14:47:34]line ОКРУГЛЕНИЕ: -0.16 [14:47:34]line ИТОГО: 1000.00 [14:47:34]line Внесено: 1000.00 [14:47:34]line СДАЧА: 0.00 [14:47:34]line НСП 1% : 8.85 [14:47:34]line НДС 12% : 106.21 [14:47:34]line Наличными: 1000.00 [14:47:34]line Безнал.: 0.00 [14:47:34]line Место: АЗС № 161 "Партнер Нефть" [14:47:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:47:34]line СНО: Общий режим [14:47:34]line Чек 181 22.10.2024 14:47 [14:47:34]line Смена: 536 ФФД: 1.0 [14:47:34]line ЗНМ: 0300000104 [14:47:34]line РНМ: 0000000000091764 [14:47:34]line Версия ККМ: 001 [14:47:34]line ФМ: 0000000000871759 [14:47:34]line ФД: 166426 [14:47:34]line ФПД: 131517557395367 [14:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166426&fm=131517557395367&tin=02508201610067®Number=0000000000091764&sum=100000 [14:47:34]OFD Sender: Processing packet 166426 [packets to send 48, broken 47] [14:47:34]ProducePacketName [14:47:34]name=ofd_packets/00166426 [14:47:34]OFD Sender: To server: pG, [14:47:34]CommunicateWithHost lk.salyk.kg:30040 [14:47:34]ConnectInit lk.salyk.kg [14:47:34]written 0, free lines is 4095 [14:47:34]Connected sock=10 [14:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 02 38 07 01 DA C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8A 02 00 35 04 06 00 77 9D 51 4A 4F A7 CF FE 84 F1 23 44 F3 C7 [14:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D F4 47 00 8D D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 8A 02 00 F4 03 04 00 70 61 17 67 B6 04 01 00 00 EA 63 82 0A 93 6C A5 B8 [14:47:35]CommunicateWithHost err = 0 [14:47:35]CheckOFDResponse [14:47:35]1017 (14) - 77093643461234 [14:47:35]1041 (16) - 0000000000871759 [14:47:35]1040 (4) - 166426 [14:47:35]1012 (4) - 22.10.2024 08:25 [14:47:35]1206 (1) - 0 [14:47:35]OFD Sender: Remove packet 166426 [14:47:35]ProducePacketName [14:47:35]name=ofd_packets/00166426 [14:47:35]NVStorageDeleteData [14:47:35]Write to MH i2c: 01 00 00 1B 14 2F [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: 01 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: 01 07 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: 01 07 00 1B 14 00 00 00 00 00 BC 0C FE [14:47:35]RasterBufferAndPrint [14:47:35]line [14:47:35]line [14:47:35]line [14:47:35]line [14:47:35]line [14:47:35]written 0, free lines is 3266 [14:47:35]MH_Cut [14:47:35]Write to MH i2c: D1 01 00 22 14 01 08 [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: D1 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: D1 01 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: D1 01 00 22 14 00 07 [14:47:35]Write to MH i2c: 01 00 00 23 14 37 [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]OFD Sender: No OFD packet to send [14:47:36]*** Cut start [14:47:36]*** Partial cut [14:47:36]*** CUTSNS_PIN = 1 [14:47:36]*** CUTSNS_PIN = 0 [14:47:36]*** Brake cut motor [14:47:36]Read from MH i2c: 01 [14:47:36]MH_I2C_Read... [14:47:36]*** Stop cut motor [14:47:36]*** Cut end [14:47:36]Read from MH i2c: 01 07 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: 01 07 00 23 14 00 00 00 00 00 FF 0F 4C [14:47:36]process_action close_receipt done [14:47:36]requested_data is exist [14:47:36]produce_requested_data [14:47:36]requested_item fm.sn is exist - process it [14:47:36]wFMCommunicate request_size=4 [14:47:36]MH_SAM_APDU [14:47:36]CAPDU: 80 11 00 00 [14:47:36]Write to MH i2c: E2 08 00 24 14 80 11 00 00 00 00 00 00 B2 [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:36]Read from MH i2c: E2 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 17 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 17 00 24 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [14:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:36]wFMCommunicate OK [14:47:36]requested_item fd.num is exist - process it [14:47:36]SAM_PROTO_GetFieldsCounters [14:47:36]wFMCommunicate request_size=4 [14:47:36]MH_SAM_APDU [14:47:36]CAPDU: 80 13 00 00 [14:47:36]Write to MH i2c: E2 08 00 25 14 80 13 00 00 00 00 00 00 B5 [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:36]Read from MH i2c: E2 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 62 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 62 00 25 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [14:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:36]wFMCommunicate OK [14:47:36]SAM_PROTO_GetFieldsCounters done [14:47:36]requested_item shift.num is exist - process it [14:47:36]requested_item shift.opened is exist - process it [14:47:36]req_shift_opened [14:47:36]FM_GetShiftState [14:47:36]SAM_PROTO_GetShiftState [14:47:36]wFMCommunicate request_size=4 [14:47:36]MH_SAM_APDU [14:47:36]CAPDU: 80 13 01 00 [14:47:36]Write to MH i2c: E2 08 00 26 14 80 13 01 00 00 00 00 00 B7 [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:36]Read from MH i2c: E2 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 0E 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 0E 00 26 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0A [14:47:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:47:36]wFMCommunicate OK [14:47:36]SAM_PROTO_GetShiftState done [14:47:36]FM_GetShiftState done [14:47:36]req_shift_opened done [14:47:36]requested_item shift.open_date is exist - process it [14:47:36]req_shift_open_date [14:47:36]req_shift_open_date done [14:47:36]produce_requested_data done [14:47:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166426,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:47:36]process_action_free close_receipt [14:47:36]json_value_free [14:47:36]json_value_free done [14:47:36]process_json_proto returns [14:47:36]Send response to host [14:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166426,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:47:36]free response buf [14:47:36]execute_script done [14:47:36]execute_script returns [14:47:36]free content buf [14:47:36]Sock 7.Close socket [14:47:36]Sock 7.Thread stoped [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:22]accept exits with 9 [14:48:22]New connection [14:48:22]New thread 3067493732 created [14:48:22]Thread 3067637092 joined [14:48:22]Waiting for new connection... [14:48:22] Sock 9.Parse request [14:48:22]Sock 9.Check first char [14:48:22]Sock 9.First char is OK [14:48:22]request: POST /json_proto HTTP/1.0 [14:48:22]Method: POST [14:48:22]URL: /json_proto [14:48:22]Method is POST - this is cgi request [14:48:22]url: /json_proto [14:48:22]query_string will be loaded in cgi processing [14:48:22]execute_cgi json_proto POST (null) [14:48:22]execute_cgi path=json_proto method=POST [14:48:22]POST find Content-Length [14:48:22]Host: 172.17.53.195:8080 [14:48:22]Content-Length: 677 [14:48:22]Content-Type: application/json [14:48:22] [14:48:22]POST finish read [14:48:22]Found Content-Length = 677 [14:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:22]execute_script... [14:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:22]POST & json_proto [14:48:22]process_json_proto [14:48:22]json parsed OK: [14:48:22]protocol is kg_v1.0 [14:48:22]action value=close_receipt [14:48:22]process_action close_receipt [14:48:22]cmd_close_receipt [14:48:22]MH_GetDate [14:48:22]Write to MH i2c: F0 00 00 27 14 2A [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 09 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 09 00 27 14 00 37 BB 17 67 21 48 4A 65 BB [14:48:22]GetLastDocTimeStamp 1729608453 [14:48:22]current date 1729608503 [14:48:22]FM_GetShiftState [14:48:22]SAM_PROTO_GetShiftState [14:48:22]wFMCommunicate request_size=4 [14:48:22]MH_SAM_APDU [14:48:22]CAPDU: 80 13 01 00 [14:48:22]Write to MH i2c: E2 08 00 28 14 80 13 01 00 00 00 00 00 B9 [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:22]Read from MH i2c: E2 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: E2 0E 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: E2 0E 00 28 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0C [14:48:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:48:22]wFMCommunicate OK [14:48:22]SAM_PROTO_GetShiftState done [14:48:22]FM_GetShiftState done [14:48:22]opened in 1729557463 [14:48:22]opened+sec_in_day 1729643863 [14:48:22]quantity*price = 40006 [14:48:22]sum+1 = 40007 [14:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 182 22.10.2024 14:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166427 ФПД: 200840192122901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166427&fm=200840192122901&tin=02508201610067®Number=0000000000091764&sum=40000 [14:48:23]StoreToDocumentArchive [14:48:23]shift 536 fd 166427 [14:48:23]save to /storage/0536/doc_00166427 [14:48:23]save last doc name /storage/0536/doc_00166427 to /storage/kkm_last_doc_name [14:48:23]save OK [14:48:23]Clear old archive folders... [14:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:23]tlvbuf is 009FB9C0 [14:48:23]SAM_PROTO_ClearQueue [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 09 00 00 [14:48:23]Write to MH i2c: E2 08 00 35 14 80 09 00 00 00 00 00 00 BB [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [14:48:23]RAPDU: 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_ClearQueue done [14:48:23]KKMCreateOFDPacket [14:48:23]OFDProtocolAddRootSTLVToBuf [14:48:23]FM_MakeSignedData [14:48:23]FM_MakeSignedData [14:48:23]SAM_PROTO_SignData [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 0D 01 02 [14:48:23]Write to MH i2c: E2 08 00 36 14 80 0D 01 02 00 00 00 00 C3 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 36 14 00 90 00 BE [14:48:23]RAPDU: 90 00 [14:48:23]wFMCommunicate OK [14:48:23]wFMCommunicate request_size=255 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 37 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8A 02 00 35 04 06 00 B6 [14:48:23]Write to MH i2c: E2 02 01 37 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 37 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8A 02 00 35 04 06 00 B6 00 00 C5 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=10 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 02 02 05 A9 C0 4E E0 15 [14:48:24]Write to MH i2c: E2 0D 00 38 14 80 0D 02 02 05 00 A9 C0 4E E0 15 00 00 7C [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 03 02 [14:48:24]Write to MH i2c: E2 08 00 39 14 80 0D 03 02 00 00 00 00 C8 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0B 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0B 00 39 14 00 D2 48 61 37 AC A4 0D 6D 90 00 45 [14:48:24]RAPDU: D2 48 61 37 AC A4 0D 6D 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_SignData done [14:48:24]FM_MakeSignedData done [14:48:24]CreateOFDProtocolMessage [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 11 00 00 [14:48:24]Write to MH i2c: E2 08 00 3A 14 80 11 00 00 00 00 00 00 C8 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 17 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 17 00 3A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [14:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:48:24]wFMCommunicate OK [14:48:24]CreateOFDProtocolMessage done [14:48:24]OFDSenderStorePacket 166427 [14:48:24]StoreOFDPacket docnum=166427 [14:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 4C 07 01 34 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 37 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8A 02 00 35 04 06 00 B6 A9 C0 4E E0 15 D2 48 61 37 AC A4 0D 6D [14:48:24]CheckFolder [14:48:24]dirname=/storage/ofd_packets [14:48:24]CheckFolder done [14:48:24]ProducePacketName [14:48:24]name=ofd_packets/00166427 [14:48:24]NVStorageSaveData ofd_packets/00166427 [14:48:24]File name is /storage/ofd_packets/00166427 [14:48:24]Write 301 bytes [14:48:24]NVStorageSaveData done [14:48:24]OFDSenderStorePacket done [14:48:24]KKMCreateOFDPacket done [14:48:24]NVStorageSaveData kkm_last_timestamp [14:48:24]File name is /storage/kkm_last_timestamp [14:48:24]Write 4 bytes [14:48:24]NVStorageSaveData done [14:48:24]OFD Sender: Processing packet 166427 [packets to send 48, broken 47] [14:48:24]ProducePacketName [14:48:24]name=ofd_packets/00166427 [14:48:24]OFD Sender: To server: pG, [14:48:24]CommunicateWithHost lk.salyk.kg:30040 [14:48:24]ConnectInit lk.salyk.kg [14:48:24]ExternCall_PrintAddStr [14:48:24]wPrintStart [14:48:24]Write to MH i2c: 01 00 00 3B 14 4F [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 07 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 FF 0F 64 [14:48:24]RasterBufferAndPrint [14:48:24]line Счет N : (1)221007 [14:48:24]line ИНН: 02508201610067 [14:48:24]line Контрольно-Кассовый Чек [14:48:24]line ПРОДАЖА [14:48:24]line ТРК (МРК, ГНК) : 13 [14:48:24]line Товар: 2710124130 [14:48:24]line Аи-92-К-5 [14:48:24]line 5.980 * 66.90 [14:48:24]line = 400.06 [14:48:24]line НДС 12% НСП 1% [14:48:24]line > о реализуемом товаре [14:48:24]line ОКРУГЛЕНИЕ: -0.06 [14:48:24]line ИТОГО: 400.00 [14:48:24]line Внесено: 400.00 [14:48:24]line СДАЧА: 0.00 [14:48:24]line НСП 1% : 3.54 [14:48:24]line НДС 12% : 42.48 [14:48:24]line Наличными: 400.00 [14:48:24]line Безнал.: 0.00 [14:48:24]line Место: АЗС № 161 "Партнер Нефть" [14:48:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:48:24]line СНО: Общий режим [14:48:24]line Чек 182 22.10.2024 14:48 [14:48:24]line Смена: 536 ФФД: 1.0 [14:48:24]line ЗНМ: 0300000104 [14:48:24]line РНМ: 0000000000091764 [14:48:24]line Версия ККМ: 001 [14:48:24]line ФМ: 0000000000871759 [14:48:24]line ФД: 166427 [14:48:24]line ФПД: 200840192122901 [14:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166427&fm=200840192122901&tin=02508201610067®Number=0000000000091764&sum=40000 [14:48:24]Connected sock=11 [14:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 4C 07 01 34 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 37 BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8A 02 00 35 04 06 00 B6 A9 C0 4E E0 15 D2 48 61 37 AC A4 0D 6D [14:48:24]written 0, free lines is 4095 [14:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 80 47 00 0A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 8A 02 00 F4 03 04 00 A2 61 17 67 B6 04 01 00 00 9B 81 93 30 BD B2 31 B7 [14:48:24]CommunicateWithHost err = 0 [14:48:24]CheckOFDResponse [14:48:24]1017 (14) - 77093643461234 [14:48:24]1041 (16) - 0000000000871759 [14:48:24]1040 (4) - 166427 [14:48:24]1012 (4) - 22.10.2024 08:26 [14:48:24]1206 (1) - 0 [14:48:24]OFD Sender: Remove packet 166427 [14:48:24]ProducePacketName [14:48:24]name=ofd_packets/00166427 [14:48:24]NVStorageDeleteData [14:48:25]Write to MH i2c: 01 00 00 66 14 7A [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 C0 0C 4D [14:48:25]RasterBufferAndPrint [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]written 0, free lines is 3270 [14:48:25]MH_Cut [14:48:25]Write to MH i2c: D1 01 00 6D 14 01 53 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 6D 14 00 52 [14:48:25]Write to MH i2c: 01 00 00 6E 14 82 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]OFD Sender: No OFD packet to send [14:48:25]*** Cut start [14:48:25]*** Partial cut [14:48:25]*** CUTSNS_PIN = 1 [14:48:25]*** CUTSNS_PIN = 0 [14:48:26]*** Brake cut motor [14:48:26]Read from MH i2c: 01 [14:48:26]MH_I2C_Read... [14:48:26]*** Stop cut motor [14:48:26]*** Cut end [14:48:26]Read from MH i2c: 01 07 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 6E 14 00 00 00 00 00 FF 0F 97 [14:48:26]process_action close_receipt done [14:48:26]requested_data is exist [14:48:26]produce_requested_data [14:48:26]requested_item fm.sn is exist - process it [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 11 00 00 [14:48:26]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 6F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [14:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:48:26]wFMCommunicate OK [14:48:26]requested_item fd.num is exist - process it [14:48:26]SAM_PROTO_GetFieldsCounters [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 00 00 [14:48:26]Write to MH i2c: E2 08 00 70 14 80 13 00 00 00 00 00 00 00 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 62 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 62 00 70 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [14:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_GetFieldsCounters done [14:48:26]requested_item shift.num is exist - process it [14:48:26]requested_item shift.opened is exist - process it [14:48:26]req_shift_opened [14:48:26]FM_GetShiftState [14:48:26]SAM_PROTO_GetShiftState [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 01 00 [14:48:26]Write to MH i2c: E2 08 00 71 14 80 13 01 00 00 00 00 00 02 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 71 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 55 [14:48:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_GetShiftState done [14:48:26]FM_GetShiftState done [14:48:26]req_shift_opened done [14:48:26]requested_item shift.open_date is exist - process it [14:48:26]req_shift_open_date [14:48:26]req_shift_open_date done [14:48:26]produce_requested_data done [14:48:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166427,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:48:26]process_action_free close_receipt [14:48:26]json_value_free [14:48:26]json_value_free done [14:48:26]process_json_proto returns [14:48:26]Send response to host [14:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166427,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:48:26]free response buf [14:48:26]execute_script done [14:48:26]execute_script returns [14:48:26]free content buf [14:48:26]Sock 9.Close socket [14:48:26]Sock 9.Thread stoped [14:48:26]accept exits with 7 [14:48:26]New connection [14:48:26]New thread 3067637092 created [14:48:26]Thread 3067493732 joined [14:48:26]Waiting for new connection... [14:48:26] Sock 7.Parse request [14:48:26]Sock 7.Check first char [14:48:26]Sock 7.First char is OK [14:48:26]request: POST /json_proto HTTP/1.0 [14:48:26]Method: POST [14:48:26]URL: /json_proto [14:48:26]Method is POST - this is cgi request [14:48:26]url: /json_proto [14:48:26]query_string will be loaded in cgi processing [14:48:26]execute_cgi json_proto POST (null) [14:48:26]execute_cgi path=json_proto method=POST [14:48:26]POST find Content-Length [14:48:26]Host: 172.17.53.195:8080 [14:48:26]Content-Length: 677 [14:48:26]Content-Type: application/json [14:48:26] [14:48:26]POST finish read [14:48:26]Found Content-Length = 677 [14:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:26]execute_script... [14:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:26]POST & json_proto [14:48:26]process_json_proto [14:48:26]json parsed OK: [14:48:26]protocol is kg_v1.0 [14:48:26]action value=close_receipt [14:48:26]process_action close_receipt [14:48:26]cmd_close_receipt [14:48:26]MH_GetDate [14:48:26]Write to MH i2c: F0 00 00 72 14 75 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 09 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 09 00 72 14 00 3B BB 17 67 21 48 4A 65 0A [14:48:26]GetLastDocTimeStamp 1729608503 [14:48:26]current date 1729608507 [14:48:26]FM_GetShiftState [14:48:26]SAM_PROTO_GetShiftState [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 01 00 [14:48:26]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0E 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 57 [14:48:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:48:27]wFMCommunicate OK [14:48:27]SAM_PROTO_GetShiftState done [14:48:27]FM_GetShiftState done [14:48:27]opened in 1729557463 [14:48:27]opened+sec_in_day 1729643863 [14:48:27]quantity*price = 40006 [14:48:27]sum+1 = 40007 [14:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 183 22.10.2024 14:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166428 ФПД: 4293829333789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166428&fm=4293829333789&tin=02508201610067®Number=0000000000091764&sum=40000 [14:48:28]StoreToDocumentArchive [14:48:28]shift 536 fd 166428 [14:48:28]save to /storage/0536/doc_00166428 [14:48:28]save last doc name /storage/0536/doc_00166428 to /storage/kkm_last_doc_name [14:48:28]save OK [14:48:28]Clear old archive folders... [14:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:28]tlvbuf is 00A50790 [14:48:28]SAM_PROTO_ClearQueue [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 09 00 00 [14:48:28]Write to MH i2c: E2 08 00 80 14 80 09 00 00 00 00 00 00 06 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [14:48:28]RAPDU: 90 00 [14:48:28]wFMCommunicate OK [14:48:28]SAM_PROTO_ClearQueue done [14:48:28]KKMCreateOFDPacket [14:48:28]OFDProtocolAddRootSTLVToBuf [14:48:28]FM_MakeSignedData [14:48:28]FM_MakeSignedData [14:48:28]SAM_PROTO_SignData [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 0D 01 02 [14:48:28]Write to MH i2c: E2 08 00 81 14 80 0D 01 02 00 00 00 00 0E [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 81 14 00 90 00 09 [14:48:28]RAPDU: 90 00 [14:48:28]wFMCommunicate OK [14:48:28]wFMCommunicate request_size=255 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3B BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8A 02 00 35 04 06 00 03 [14:48:28]Write to MH i2c: E2 02 01 82 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3B BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8A 02 00 35 04 06 00 03 00 00 63 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [14:48:28]RAPDU: 90 00 [14:48:28]wFMCommunicate OK [14:48:28]wFMCommunicate request_size=10 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 0D 02 02 05 E7 BC 2C 13 1D [14:48:28]Write to MH i2c: E2 0D 00 83 14 80 0D 02 02 05 00 E7 BC 2C 13 1D 00 00 1A [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:28]Read from MH i2c: E2 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [14:48:28]RAPDU: 90 00 [14:48:28]wFMCommunicate OK [14:48:28]wFMCommunicate request_size=4 [14:48:28]MH_SAM_APDU [14:48:28]CAPDU: 80 0D 03 02 [14:48:28]Write to MH i2c: E2 08 00 84 14 80 0D 03 02 00 00 00 00 13 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:29]Read from MH i2c: E2 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0B 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0B 00 84 14 00 E1 2A 01 65 0D 88 E8 6E 90 00 70 [14:48:29]RAPDU: E1 2A 01 65 0D 88 E8 6E 90 00 [14:48:29]wFMCommunicate OK [14:48:29]SAM_PROTO_SignData done [14:48:29]FM_MakeSignedData done [14:48:29]CreateOFDProtocolMessage [14:48:29]wFMCommunicate request_size=4 [14:48:29]MH_SAM_APDU [14:48:29]CAPDU: 80 11 00 00 [14:48:29]Write to MH i2c: E2 08 00 85 14 80 11 00 00 00 00 00 00 13 [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 [14:48:29]MH_I2C_Read... [14:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:29]Read from MH i2c: E2 17 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 17 00 85 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [14:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:48:29]wFMCommunicate OK [14:48:29]CreateOFDProtocolMessage done [14:48:29]OFDSenderStorePacket 166428 [14:48:29]StoreOFDPacket docnum=166428 [14:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 5D 07 01 B1 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3B BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8A 02 00 35 04 06 00 03 E7 BC 2C 13 1D E1 2A 01 65 0D 88 E8 6E [14:48:29]CheckFolder [14:48:29]dirname=/storage/ofd_packets [14:48:29]CheckFolder done [14:48:29]ProducePacketName [14:48:29]name=ofd_packets/00166428 [14:48:29]NVStorageSaveData ofd_packets/00166428 [14:48:29]File name is /storage/ofd_packets/00166428 [14:48:29]Write 301 bytes [14:48:29]NVStorageSaveData done [14:48:29]OFDSenderStorePacket done [14:48:29]KKMCreateOFDPacket done [14:48:29]NVStorageSaveData kkm_last_timestamp [14:48:29]File name is /storage/kkm_last_timestamp [14:48:29]Write 4 bytes [14:48:29]NVStorageSaveData done [14:48:29]ExternCall_PrintAddStr [14:48:29]wPrintStart [14:48:29]Write to MH i2c: 01 00 00 86 14 9A [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 86 14 00 00 00 00 00 FF 0F AF [14:48:29]RasterBufferAndPrint [14:48:29]line Счет N : (1)221006 [14:48:29]line ИНН: 02508201610067 [14:48:29]line Контрольно-Кассовый Чек [14:48:29]line ПРОДАЖА [14:48:29]line ТРК (МРК, ГНК) : 43 [14:48:29]line Товар: 2710124130 [14:48:29]line Аи-92-К-5 [14:48:29]line 5.980 * 66.90 [14:48:29]line = 400.06 [14:48:29]line НДС 12% НСП 1% [14:48:29]line > о реализуемом товаре [14:48:29]line ОКРУГЛЕНИЕ: -0.06 [14:48:29]line ИТОГО: 400.00 [14:48:29]line Внесено: 400.00 [14:48:29]line СДАЧА: 0.00 [14:48:29]line НСП 1% : 3.54 [14:48:29]line НДС 12% : 42.48 [14:48:29]line Наличными: 400.00 [14:48:29]line Безнал.: 0.00 [14:48:29]line Место: АЗС № 161 "Партнер Нефть" [14:48:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:48:29]line СНО: Общий режим [14:48:29]line Чек 183 22.10.2024 14:48 [14:48:29]line Смена: 536 ФФД: 1.0 [14:48:29]line ЗНМ: 0300000104 [14:48:29]line РНМ: 0000000000091764 [14:48:29]line Версия ККМ: 001 [14:48:29]line ФМ: 0000000000871759 [14:48:29]line ФД: 166428 [14:48:29]line ФПД: 4293829333789 [14:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166428&fm=4293829333789&tin=02508201610067®Number=0000000000091764&sum=40000 [14:48:29]written 0, free lines is 4095 [14:48:29]OFD Sender: Processing packet 166428 [packets to send 48, broken 47] [14:48:29]ProducePacketName [14:48:29]name=ofd_packets/00166428 [14:48:29]OFD Sender: To server: pG, [14:48:29]CommunicateWithHost lk.salyk.kg:30040 [14:48:29]ConnectInit lk.salyk.kg [14:48:29]Connected sock=10 [14:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 5D 07 01 B1 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3B BB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8A 02 00 35 04 06 00 03 E7 BC 2C 13 1D E1 2A 01 65 0D 88 E8 6E [14:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3D 4F 47 00 A7 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 8A 02 00 F4 03 04 00 A6 61 17 67 B6 04 01 00 00 62 7F E9 11 95 CE D7 4F [14:48:29]CommunicateWithHost err = 0 [14:48:29]CheckOFDResponse [14:48:29]1017 (14) - 77093643461234 [14:48:29]1041 (16) - 0000000000871759 [14:48:29]1040 (4) - 166428 [14:48:29]1012 (4) - 22.10.2024 08:26 [14:48:29]1206 (1) - 0 [14:48:29]OFD Sender: Remove packet 166428 [14:48:29]ProducePacketName [14:48:29]name=ofd_packets/00166428 [14:48:29]NVStorageDeleteData [14:48:29]Write to MH i2c: 01 00 00 B1 14 C5 [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 DD 0C B5 [14:48:29]RasterBufferAndPrint [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]written 0, free lines is 3305 [14:48:29]MH_Cut [14:48:29]Write to MH i2c: D1 01 00 B8 14 01 9E [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 01 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 01 00 B8 14 00 9D [14:48:29]Write to MH i2c: 01 00 00 B9 14 CD [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]OFD Sender: No OFD packet to send [14:48:30]*** Cut start [14:48:30]*** Partial cut [14:48:30]*** CUTSNS_PIN = 1 [14:48:30]*** CUTSNS_PIN = 0 [14:48:30]*** Brake cut motor [14:48:30]Read from MH i2c: 01 [14:48:30]MH_I2C_Read... [14:48:30]*** Stop cut motor [14:48:30]*** Cut end [14:48:30]Read from MH i2c: 01 07 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [14:48:30]process_action close_receipt done [14:48:30]requested_data is exist [14:48:30]produce_requested_data [14:48:30]requested_item fm.sn is exist - process it [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 11 00 00 [14:48:30]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [14:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:48:31]wFMCommunicate OK [14:48:31]requested_item fd.num is exist - process it [14:48:31]SAM_PROTO_GetFieldsCounters [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 13 00 00 [14:48:31]Write to MH i2c: E2 08 00 BB 14 80 13 00 00 00 00 00 00 4B [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 62 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 62 00 BB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:31]wFMCommunicate OK [14:48:31]SAM_PROTO_GetFieldsCounters done [14:48:31]requested_item shift.num is exist - process it [14:48:31]requested_item shift.opened is exist - process it [14:48:31]req_shift_opened [14:48:31]FM_GetShiftState [14:48:31]SAM_PROTO_GetShiftState [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 13 01 00 [14:48:31]Write to MH i2c: E2 08 00 BC 14 80 13 01 00 00 00 00 00 4D [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 0E 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 0E 00 BC 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A0 [14:48:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:48:31]wFMCommunicate OK [14:48:31]SAM_PROTO_GetShiftState done [14:48:31]FM_GetShiftState done [14:48:31]req_shift_opened done [14:48:31]requested_item shift.open_date is exist - process it [14:48:31]req_shift_open_date [14:48:31]req_shift_open_date done [14:48:31]produce_requested_data done [14:48:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166428,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:48:31]process_action_free close_receipt [14:48:31]json_value_free [14:48:31]json_value_free done [14:48:31]process_json_proto returns [14:48:31]Send response to host [14:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166428,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:48:31]free response buf [14:48:31]execute_script done [14:48:31]execute_script returns [14:48:31]free content buf [14:48:31]Sock 7.Close socket [14:48:31]Sock 7.Thread stoped [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:28]accept exits with 9 [14:55:28]New connection [14:55:28]New thread 3067493732 created [14:55:28]Thread 3067637092 joined [14:55:28]Waiting for new connection... [14:55:28] Sock 9.Parse request [14:55:28]Sock 9.Check first char [14:55:28]Sock 9.First char is OK [14:55:28]request: POST /json_proto HTTP/1.0 [14:55:28]Method: POST [14:55:28]URL: /json_proto [14:55:28]Method is POST - this is cgi request [14:55:28]url: /json_proto [14:55:28]query_string will be loaded in cgi processing [14:55:28]execute_cgi json_proto POST (null) [14:55:28]execute_cgi path=json_proto method=POST [14:55:28]POST find Content-Length [14:55:28]Host: 172.17.53.195:8080 [14:55:28]Content-Length: 677 [14:55:28]Content-Type: application/json [14:55:28] [14:55:28]POST finish read [14:55:28]Found Content-Length = 677 [14:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:28]execute_script... [14:55:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:28]POST & json_proto [14:55:28]process_json_proto [14:55:28]json parsed OK: [14:55:28]protocol is kg_v1.0 [14:55:28]action value=close_receipt [14:55:28]process_action close_receipt [14:55:28]cmd_close_receipt [14:55:28]MH_GetDate [14:55:28]Write to MH i2c: F0 00 00 BD 14 C0 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 09 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: F0 09 00 BD 14 00 E1 BC 17 67 21 48 4A 65 FC [14:55:28]GetLastDocTimeStamp 1729608507 [14:55:28]current date 1729608929 [14:55:28]FM_GetShiftState [14:55:28]SAM_PROTO_GetShiftState [14:55:28]wFMCommunicate request_size=4 [14:55:28]MH_SAM_APDU [14:55:28]CAPDU: 80 13 01 00 [14:55:28]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:28]Read from MH i2c: E2 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 0E 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A2 [14:55:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:55:28]wFMCommunicate OK [14:55:28]SAM_PROTO_GetShiftState done [14:55:28]FM_GetShiftState done [14:55:28]opened in 1729557463 [14:55:28]opened+sec_in_day 1729643863 [14:55:28]quantity*price = 50041 [14:55:28]sum+1 = 50042 [14:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 184 22.10.2024 14:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166429 ФПД: 84037458690683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145529&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166429&fm=84037458690683&tin=02508201610067®Number=0000000000091764&sum=50000 [14:55:29]StoreToDocumentArchive [14:55:29]shift 536 fd 166429 [14:55:29]save to /storage/0536/doc_00166429 [14:55:29]save last doc name /storage/0536/doc_00166429 to /storage/kkm_last_doc_name [14:55:29]save OK [14:55:29]Clear old archive folders... [14:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:29]tlvbuf is 00A11930 [14:55:29]SAM_PROTO_ClearQueue [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 09 00 00 [14:55:29]Write to MH i2c: E2 08 00 CB 14 80 09 00 00 00 00 00 00 51 [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [14:55:29]RAPDU: 90 00 [14:55:29]wFMCommunicate OK [14:55:29]SAM_PROTO_ClearQueue done [14:55:29]KKMCreateOFDPacket [14:55:29]OFDProtocolAddRootSTLVToBuf [14:55:29]FM_MakeSignedData [14:55:29]FM_MakeSignedData [14:55:29]SAM_PROTO_SignData [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 0D 01 02 [14:55:29]Write to MH i2c: E2 08 00 CC 14 80 0D 01 02 00 00 00 00 59 [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [14:55:29]RAPDU: 90 00 [14:55:29]wFMCommunicate OK [14:55:29]wFMCommunicate request_size=255 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E1 BC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8A 02 00 35 04 06 00 4C [14:55:29]Write to MH i2c: E2 02 01 CD 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E1 BC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8A 02 00 35 04 06 00 4C 00 00 D1 [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [14:55:29]RAPDU: 90 00 [14:55:29]wFMCommunicate OK [14:55:29]wFMCommunicate request_size=10 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 0D 02 02 05 6E 7E DF 82 7B [14:55:29]Write to MH i2c: E2 0D 00 CE 14 80 0D 02 02 05 00 6E 7E DF 82 7B 00 00 2E [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [14:55:29]RAPDU: 90 00 [14:55:29]wFMCommunicate OK [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 0D 03 02 [14:55:29]Write to MH i2c: E2 08 00 CF 14 80 0D 03 02 00 00 00 00 5E [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0B 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0B 00 CF 14 00 1A 97 BE 24 2A 90 E8 95 90 00 29 [14:55:30]RAPDU: 1A 97 BE 24 2A 90 E8 95 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_SignData done [14:55:30]FM_MakeSignedData done [14:55:30]CreateOFDProtocolMessage [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 11 00 00 [14:55:30]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 D0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [14:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:55:30]wFMCommunicate OK [14:55:30]CreateOFDProtocolMessage done [14:55:30]OFDSenderStorePacket 166429 [14:55:30]StoreOFDPacket docnum=166429 [14:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB FC 07 01 7E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E1 BC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8A 02 00 35 04 06 00 4C 6E 7E DF 82 7B 1A 97 BE 24 2A 90 E8 95 [14:55:30]CheckFolder [14:55:30]dirname=/storage/ofd_packets [14:55:30]CheckFolder done [14:55:30]ProducePacketName [14:55:30]name=ofd_packets/00166429 [14:55:30]NVStorageSaveData ofd_packets/00166429 [14:55:30]File name is /storage/ofd_packets/00166429 [14:55:30]Write 301 bytes [14:55:30]NVStorageSaveData done [14:55:30]OFDSenderStorePacket done [14:55:30]KKMCreateOFDPacket done [14:55:30]NVStorageSaveData kkm_last_timestamp [14:55:30]File name is /storage/kkm_last_timestamp [14:55:30]Write 4 bytes [14:55:30]NVStorageSaveData done [14:55:30]ExternCall_PrintAddStr [14:55:30]wPrintStart [14:55:30]Write to MH i2c: 01 00 00 D1 14 E5 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [14:55:30]RasterBufferAndPrint [14:55:30]line Счет N : (1)221008 [14:55:30]line ИНН: 02508201610067 [14:55:30]line Контрольно-Кассовый Чек [14:55:30]line ПРОДАЖА [14:55:30]line ТРК (МРК, ГНК) : 23 [14:55:30]line Товар: 2710124130 [14:55:30]line Аи-92-К-5 [14:55:30]line 7.480 * 66.90 [14:55:30]line = 500.41 [14:55:30]line НДС 12% НСП 1% [14:55:30]line > о реализуемом товаре [14:55:30]line ОКРУГЛЕНИЕ: -0.41 [14:55:30]line ИТОГО: 500.00 [14:55:30]line Внесено: 500.00 [14:55:30]line СДАЧА: 0.00 [14:55:30]line НСП 1% : 4.43 [14:55:30]line НДС 12% : 53.14 [14:55:30]line Наличными: 500.00 [14:55:30]line Безнал.: 0.00 [14:55:30]line Место: АЗС № 161 "Партнер Нефть" [14:55:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:55:30]line СНО: Общий режим [14:55:30]line Чек 184 22.10.2024 14:55 [14:55:30]line Смена: 536 ФФД: 1.0 [14:55:30]line ЗНМ: 0300000104 [14:55:30]line РНМ: 0000000000091764 [14:55:30]line Версия ККМ: 001 [14:55:30]line ФМ: 0000000000871759 [14:55:30]line ФД: 166429 [14:55:30]line ФПД: 84037458690683 [14:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145529&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166429&fm=84037458690683&tin=02508201610067®Number=0000000000091764&sum=50000 [14:55:30]OFD Sender: Processing packet 166429 [packets to send 48, broken 47] [14:55:30]ProducePacketName [14:55:30]name=ofd_packets/00166429 [14:55:30]OFD Sender: To server: pG, [14:55:30]CommunicateWithHost lk.salyk.kg:30040 [14:55:30]ConnectInit lk.salyk.kg [14:55:30]written 0, free lines is 4095 [14:55:30]Connected sock=10 [14:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB FC 07 01 7E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E1 BC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8A 02 00 35 04 06 00 4C 6E 7E DF 82 7B 1A 97 BE 24 2A 90 E8 95 [14:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 8D 47 00 2A 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 8A 02 00 F4 03 04 00 4C 63 17 67 B6 04 01 00 00 E1 C6 58 38 8F 11 E6 AE [14:55:30]CommunicateWithHost err = 0 [14:55:30]CheckOFDResponse [14:55:30]1017 (14) - 77093643461234 [14:55:30]1041 (16) - 0000000000871759 [14:55:30]1040 (4) - 166429 [14:55:30]1012 (4) - 22.10.2024 08:33 [14:55:30]1206 (1) - 0 [14:55:30]OFD Sender: Remove packet 166429 [14:55:30]ProducePacketName [14:55:30]name=ofd_packets/00166429 [14:55:30]NVStorageDeleteData [14:55:30]Write to MH i2c: 01 00 00 FC 14 10 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 FC 14 00 00 00 00 00 D9 0C FC [14:55:30]RasterBufferAndPrint [14:55:30]line [14:55:30]line [14:55:30]line [14:55:30]line [14:55:30]line [14:55:30]written 0, free lines is 3294 [14:55:30]MH_Cut [14:55:30]Write to MH i2c: D1 01 00 03 15 01 EA [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: D1 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: D1 01 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: D1 01 00 03 15 00 E9 [14:55:30]Write to MH i2c: 01 00 00 04 15 19 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:31]OFD Sender: No OFD packet to send [14:55:31]*** Cut start [14:55:31]*** Partial cut [14:55:31]*** CUTSNS_PIN = 1 [14:55:31]*** CUTSNS_PIN = 0 [14:55:31]*** Brake cut motor [14:55:32]Read from MH i2c: 01 [14:55:32]MH_I2C_Read... [14:55:32]*** Stop cut motor [14:55:32]*** Cut end [14:55:32]Read from MH i2c: 01 07 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [14:55:32]process_action close_receipt done [14:55:32]requested_data is exist [14:55:32]produce_requested_data [14:55:32]requested_item fm.sn is exist - process it [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 11 00 00 [14:55:32]Write to MH i2c: E2 08 00 05 15 80 11 00 00 00 00 00 00 94 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 05 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [14:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:55:32]wFMCommunicate OK [14:55:32]requested_item fd.num is exist - process it [14:55:32]SAM_PROTO_GetFieldsCounters [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 13 00 00 [14:55:32]Write to MH i2c: E2 08 00 06 15 80 13 00 00 00 00 00 00 97 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 62 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 62 00 06 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [14:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_GetFieldsCounters done [14:55:32]requested_item shift.num is exist - process it [14:55:32]requested_item shift.opened is exist - process it [14:55:32]req_shift_opened [14:55:32]FM_GetShiftState [14:55:32]SAM_PROTO_GetShiftState [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 13 01 00 [14:55:32]Write to MH i2c: E2 08 00 07 15 80 13 01 00 00 00 00 00 99 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0E 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0E 00 07 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EC [14:55:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_GetShiftState done [14:55:32]FM_GetShiftState done [14:55:32]req_shift_opened done [14:55:32]requested_item shift.open_date is exist - process it [14:55:32]req_shift_open_date [14:55:32]req_shift_open_date done [14:55:32]produce_requested_data done [14:55:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166429,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:55:32]process_action_free close_receipt [14:55:32]json_value_free [14:55:32]json_value_free done [14:55:32]process_json_proto returns [14:55:32]Send response to host [14:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166429,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:55:32]free response buf [14:55:32]execute_script done [14:55:32]execute_script returns [14:55:32]free content buf [14:55:32]Sock 9.Close socket [14:55:32]Sock 9.Thread stoped [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:48]accept exits with 7 [14:58:48]New connection [14:58:48]New thread 3067637092 created [14:58:48]Thread 3067493732 joined [14:58:48]Waiting for new connection... [14:58:48] Sock 7.Parse request [14:58:48]Sock 7.Check first char [14:58:48]Sock 7.First char is OK [14:58:48]request: POST /json_proto HTTP/1.0 [14:58:48]Method: POST [14:58:48]URL: /json_proto [14:58:48]Method is POST - this is cgi request [14:58:48]url: /json_proto [14:58:48]query_string will be loaded in cgi processing [14:58:48]execute_cgi json_proto POST (null) [14:58:48]execute_cgi path=json_proto method=POST [14:58:48]POST find Content-Length [14:58:48]Host: 172.17.53.195:8080 [14:58:48]Content-Length: 682 [14:58:48]Content-Type: application/json [14:58:48] [14:58:48]POST finish read [14:58:48]Found Content-Length = 682 [14:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:48]execute_script... [14:58:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:48]POST & json_proto [14:58:48]process_json_proto [14:58:48]json parsed OK: [14:58:48]protocol is kg_v1.0 [14:58:48]action value=close_receipt [14:58:48]process_action close_receipt [14:58:48]cmd_close_receipt [14:58:48]MH_GetDate [14:58:48]Write to MH i2c: F0 00 00 08 15 0C [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: F0 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: F0 09 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: F0 09 00 08 15 00 A9 BD 17 67 21 48 4A 65 11 [14:58:48]GetLastDocTimeStamp 1729608929 [14:58:48]current date 1729609129 [14:58:48]FM_GetShiftState [14:58:48]SAM_PROTO_GetShiftState [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 01 00 [14:58:48]Write to MH i2c: E2 08 00 09 15 80 13 01 00 00 00 00 00 9B [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 09 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EE [14:58:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetShiftState done [14:58:48]FM_GetShiftState done [14:58:48]opened in 1729557463 [14:58:48]opened+sec_in_day 1729643863 [14:58:48]quantity*price = 200043 [14:58:48]sum+1 = 200044 [14:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 185 22.10.2024 14:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166430 ФПД: 245150531731580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166430&fm=245150531731580&tin=02508201610067®Number=0000000000091764&sum=200000 [14:58:50]StoreToDocumentArchive [14:58:50]shift 536 fd 166430 [14:58:50]save to /storage/0536/doc_00166430 [14:58:50]save last doc name /storage/0536/doc_00166430 to /storage/kkm_last_doc_name [14:58:50]save OK [14:58:50]Clear old archive folders... [14:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:50]tlvbuf is 00A3F740 [14:58:50]SAM_PROTO_ClearQueue [14:58:50]wFMCommunicate request_size=4 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 09 00 00 [14:58:50]Write to MH i2c: E2 08 00 16 15 80 09 00 00 00 00 00 00 9D [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [14:58:50]RAPDU: 90 00 [14:58:50]wFMCommunicate OK [14:58:50]SAM_PROTO_ClearQueue done [14:58:50]KKMCreateOFDPacket [14:58:50]OFDProtocolAddRootSTLVToBuf [14:58:50]FM_MakeSignedData [14:58:50]FM_MakeSignedData [14:58:50]SAM_PROTO_SignData [14:58:50]wFMCommunicate request_size=4 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 0D 01 02 [14:58:50]Write to MH i2c: E2 08 00 17 15 80 0D 01 02 00 00 00 00 A5 [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [14:58:50]RAPDU: 90 00 [14:58:50]wFMCommunicate OK [14:58:50]wFMCommunicate request_size=255 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A9 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8A 02 00 35 04 06 00 DE [14:58:50]Write to MH i2c: E2 02 01 18 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A9 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8A 02 00 35 04 06 00 DE 00 00 22 [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [14:58:50]RAPDU: 90 00 [14:58:50]wFMCommunicate OK [14:58:50]wFMCommunicate request_size=10 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 0D 02 02 05 F6 8E 5C 40 7C [14:58:50]Write to MH i2c: E2 0D 00 19 15 80 0D 02 02 05 00 F6 8E 5C 40 7C 00 00 4E [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 03 00 19 15 00 90 00 A2 [14:58:50]RAPDU: 90 00 [14:58:50]wFMCommunicate OK [14:58:50]wFMCommunicate request_size=4 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 0D 03 02 [14:58:50]Write to MH i2c: E2 08 00 1A 15 80 0D 03 02 00 00 00 00 AA [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 0B 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 0B 00 1A 15 00 9A A4 B3 71 F3 CA D5 41 90 00 E0 [14:58:50]RAPDU: 9A A4 B3 71 F3 CA D5 41 90 00 [14:58:50]wFMCommunicate OK [14:58:50]SAM_PROTO_SignData done [14:58:50]FM_MakeSignedData done [14:58:50]CreateOFDProtocolMessage [14:58:50]wFMCommunicate request_size=4 [14:58:50]MH_SAM_APDU [14:58:50]CAPDU: 80 11 00 00 [14:58:50]Write to MH i2c: E2 08 00 1B 15 80 11 00 00 00 00 00 00 AA [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:50]Read from MH i2c: E2 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 17 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: E2 17 00 1B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [14:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:58:50]wFMCommunicate OK [14:58:50]CreateOFDProtocolMessage done [14:58:50]OFDSenderStorePacket 166430 [14:58:50]StoreOFDPacket docnum=166430 [14:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 8B 07 01 A8 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A9 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8A 02 00 35 04 06 00 DE F6 8E 5C 40 7C 9A A4 B3 71 F3 CA D5 41 [14:58:50]CheckFolder [14:58:50]dirname=/storage/ofd_packets [14:58:50]CheckFolder done [14:58:50]ProducePacketName [14:58:50]name=ofd_packets/00166430 [14:58:50]NVStorageSaveData ofd_packets/00166430 [14:58:50]File name is /storage/ofd_packets/00166430 [14:58:50]Write 301 bytes [14:58:50]NVStorageSaveData done [14:58:50]OFDSenderStorePacket done [14:58:50]KKMCreateOFDPacket done [14:58:50]NVStorageSaveData kkm_last_timestamp [14:58:50]File name is /storage/kkm_last_timestamp [14:58:50]Write 4 bytes [14:58:50]NVStorageSaveData done [14:58:50]ExternCall_PrintAddStr [14:58:50]wPrintStart [14:58:50]Write to MH i2c: 01 00 00 1C 15 31 [14:58:50]Write i2c OK [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: 01 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: 01 07 00 [14:58:50]MH_I2C_Read... [14:58:50]Read from MH i2c: 01 07 00 1C 15 00 00 00 00 00 FF 0F 46 [14:58:50]RasterBufferAndPrint [14:58:50]line Счет N : (1)221009 [14:58:50]line ИНН: 02508201610067 [14:58:50]line Контрольно-Кассовый Чек [14:58:50]line ПРОДАЖА [14:58:50]line ТРК (МРК, ГНК) : 14 [14:58:50]line Товар: 2710124500 [14:58:50]line Аи-95-К-5 [14:58:50]line 26.960 * 74.20 [14:58:50]line = 2000.43 [14:58:50]line НДС 12% НСП 1% [14:58:50]line > о реализуемом товаре [14:58:50]line ОКРУГЛЕНИЕ: -0.43 [14:58:50]line ИТОГО: 2000.00 [14:58:50]line Внесено: 2000.00 [14:58:50]line СДАЧА: 0.00 [14:58:50]line НСП 1% : 17.70 [14:58:50]line НДС 12% : 212.43 [14:58:50]line Наличными: 2000.00 [14:58:50]line Безнал.: 0.00 [14:58:50]line Место: АЗС № 161 "Партнер Нефть" [14:58:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:58:50]line СНО: Общий режим [14:58:50]line Чек 185 22.10.2024 14:58 [14:58:50]line Смена: 536 ФФД: 1.0 [14:58:50]line ЗНМ: 0300000104 [14:58:50]line РНМ: 0000000000091764 [14:58:50]line Версия ККМ: 001 [14:58:50]line ФМ: 0000000000871759 [14:58:50]line ФД: 166430 [14:58:50]line ФПД: 245150531731580 [14:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166430&fm=245150531731580&tin=02508201610067®Number=0000000000091764&sum=200000 [14:58:50]OFD Sender: Processing packet 166430 [packets to send 48, broken 47] [14:58:50]ProducePacketName [14:58:50]name=ofd_packets/00166430 [14:58:50]OFD Sender: To server: pG, [14:58:50]CommunicateWithHost lk.salyk.kg:30040 [14:58:50]ConnectInit lk.salyk.kg [14:58:50]written 0, free lines is 4095 [14:58:51]Connected sock=10 [14:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1B 8B 07 01 A8 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A9 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8A 02 00 35 04 06 00 DE F6 8E 5C 40 7C 9A A4 B3 71 F3 CA D5 41 [14:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD 6C 47 00 EA EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 8A 02 00 F4 03 04 00 14 64 17 67 B6 04 01 00 00 75 64 CE 47 71 47 80 E7 [14:58:51]CommunicateWithHost err = 0 [14:58:51]CheckOFDResponse [14:58:51]1017 (14) - 77093643461234 [14:58:51]1041 (16) - 0000000000871759 [14:58:51]1040 (4) - 166430 [14:58:51]1012 (4) - 22.10.2024 08:36 [14:58:51]1206 (1) - 0 [14:58:51]OFD Sender: Remove packet 166430 [14:58:51]ProducePacketName [14:58:51]name=ofd_packets/00166430 [14:58:51]NVStorageDeleteData [14:58:51]Write to MH i2c: 01 00 00 47 15 5C [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: 01 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: 01 07 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 D3 0C 42 [14:58:51]RasterBufferAndPrint [14:58:51]line [14:58:51]line [14:58:51]line [14:58:51]line [14:58:51]line [14:58:51]written 0, free lines is 3287 [14:58:51]MH_Cut [14:58:51]Write to MH i2c: D1 01 00 4E 15 01 35 [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: D1 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: D1 01 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: D1 01 00 4E 15 00 34 [14:58:51]Write to MH i2c: 01 00 00 4F 15 64 [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]OFD Sender: No OFD packet to send [14:58:52]*** Cut start [14:58:52]*** Partial cut [14:58:52]*** CUTSNS_PIN = 1 [14:58:52]*** CUTSNS_PIN = 0 [14:58:52]*** Brake cut motor [14:58:52]Read from MH i2c: 01 [14:58:52]MH_I2C_Read... [14:58:52]*** Stop cut motor [14:58:52]*** Cut end [14:58:52]Read from MH i2c: 01 07 00 [14:58:52]MH_I2C_Read... [14:58:52]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [14:58:52]process_action close_receipt done [14:58:52]requested_data is exist [14:58:52]produce_requested_data [14:58:52]requested_item fm.sn is exist - process it [14:58:52]wFMCommunicate request_size=4 [14:58:52]MH_SAM_APDU [14:58:52]CAPDU: 80 11 00 00 [14:58:52]Write to MH i2c: E2 08 00 50 15 80 11 00 00 00 00 00 00 DF [14:58:52]Write i2c OK [14:58:52]MH_I2C_Read... [14:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:52]Read from MH i2c: E2 [14:58:52]MH_I2C_Read... [14:58:52]Read from MH i2c: E2 17 00 [14:58:52]MH_I2C_Read... [14:58:52]Read from MH i2c: E2 17 00 50 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [14:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:58:52]wFMCommunicate OK [14:58:52]requested_item fd.num is exist - process it [14:58:52]SAM_PROTO_GetFieldsCounters [14:58:52]wFMCommunicate request_size=4 [14:58:52]MH_SAM_APDU [14:58:52]CAPDU: 80 13 00 00 [14:58:52]Write to MH i2c: E2 08 00 51 15 80 13 00 00 00 00 00 00 E2 [14:58:52]Write i2c OK [14:58:52]MH_I2C_Read... [14:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:53]Read from MH i2c: E2 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 62 00 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 62 00 51 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:53]wFMCommunicate OK [14:58:53]SAM_PROTO_GetFieldsCounters done [14:58:53]requested_item shift.num is exist - process it [14:58:53]requested_item shift.opened is exist - process it [14:58:53]req_shift_opened [14:58:53]FM_GetShiftState [14:58:53]SAM_PROTO_GetShiftState [14:58:53]wFMCommunicate request_size=4 [14:58:53]MH_SAM_APDU [14:58:53]CAPDU: 80 13 01 00 [14:58:53]Write to MH i2c: E2 08 00 52 15 80 13 01 00 00 00 00 00 E4 [14:58:53]Write i2c OK [14:58:53]MH_I2C_Read... [14:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:53]Read from MH i2c: E2 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 0E 00 [14:58:53]MH_I2C_Read... [14:58:53]Read from MH i2c: E2 0E 00 52 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 37 [14:58:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:58:53]wFMCommunicate OK [14:58:53]SAM_PROTO_GetShiftState done [14:58:53]FM_GetShiftState done [14:58:53]req_shift_opened done [14:58:53]requested_item shift.open_date is exist - process it [14:58:53]req_shift_open_date [14:58:53]req_shift_open_date done [14:58:53]produce_requested_data done [14:58:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166430,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:58:53]process_action_free close_receipt [14:58:53]json_value_free [14:58:53]json_value_free done [14:58:53]process_json_proto returns [14:58:53]Send response to host [14:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166430,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:58:53]free response buf [14:58:53]execute_script done [14:58:53]execute_script returns [14:58:53]free content buf [14:58:53]Sock 7.Close socket [14:58:53]Sock 7.Thread stoped [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:01]accept exits with 9 [14:59:01]New connection [14:59:01]New thread 3067493732 created [14:59:01]Thread 3067637092 joined [14:59:01]Waiting for new connection... [14:59:01] Sock 9.Parse request [14:59:01]Sock 9.Check first char [14:59:01]Sock 9.First char is OK [14:59:01]request: POST /json_proto HTTP/1.0 [14:59:01]Method: POST [14:59:01]URL: /json_proto [14:59:01]Method is POST - this is cgi request [14:59:01]url: /json_proto [14:59:01]query_string will be loaded in cgi processing [14:59:01]execute_cgi json_proto POST (null) [14:59:01]execute_cgi path=json_proto method=POST [14:59:01]POST find Content-Length [14:59:01]Host: 172.17.53.195:8080 [14:59:01]Content-Length: 679 [14:59:01]Content-Type: application/json [14:59:01] [14:59:01]POST finish read [14:59:01]Found Content-Length = 679 [14:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:01]execute_script... [14:59:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:01]POST & json_proto [14:59:01]process_json_proto [14:59:01]json parsed OK: [14:59:01]protocol is kg_v1.0 [14:59:01]action value=close_receipt [14:59:01]process_action close_receipt [14:59:01]cmd_close_receipt [14:59:01]MH_GetDate [14:59:01]Write to MH i2c: F0 00 00 53 15 57 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: F0 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: F0 09 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: F0 09 00 53 15 00 B6 BD 17 67 21 48 4A 65 69 [14:59:01]GetLastDocTimeStamp 1729609129 [14:59:01]current date 1729609142 [14:59:01]FM_GetShiftState [14:59:01]SAM_PROTO_GetShiftState [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 13 01 00 [14:59:01]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 0E 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 39 [14:59:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:59:01]wFMCommunicate OK [14:59:01]SAM_PROTO_GetShiftState done [14:59:01]FM_GetShiftState done [14:59:01]opened in 1729557463 [14:59:01]opened+sec_in_day 1729643863 [14:59:01]quantity*price = 300075 [14:59:01]sum+1 = 300077 [14:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 186 22.10.2024 14:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166431 ФПД: 6985480237463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166431&fm=6985480237463&tin=02508201610067®Number=0000000000091764&sum=300000 [14:59:03]StoreToDocumentArchive [14:59:03]shift 536 fd 166431 [14:59:03]save to /storage/0536/doc_00166431 [14:59:03]save last doc name /storage/0536/doc_00166431 to /storage/kkm_last_doc_name [14:59:03]save OK [14:59:03]Clear old archive folders... [14:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:03]tlvbuf is B6F68A20 [14:59:03]SAM_PROTO_ClearQueue [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 09 00 00 [14:59:03]Write to MH i2c: E2 08 00 61 15 80 09 00 00 00 00 00 00 E8 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 61 15 00 90 00 EA [14:59:03]RAPDU: 90 00 [14:59:03]wFMCommunicate OK [14:59:03]SAM_PROTO_ClearQueue done [14:59:03]KKMCreateOFDPacket [14:59:03]OFDProtocolAddRootSTLVToBuf [14:59:03]FM_MakeSignedData [14:59:03]FM_MakeSignedData [14:59:03]SAM_PROTO_SignData [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 0D 01 02 [14:59:03]Write to MH i2c: E2 08 00 62 15 80 0D 01 02 00 00 00 00 F0 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 62 15 00 90 00 EB [14:59:03]RAPDU: 90 00 [14:59:03]wFMCommunicate OK [14:59:03]wFMCommunicate request_size=255 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 B6 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8A 02 00 35 04 06 00 06 5A 6F 11 [14:59:03]Write to MH i2c: E2 02 01 63 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 B6 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8A 02 00 35 04 06 00 06 5A 6F 11 00 00 03 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [14:59:03]RAPDU: 90 00 [14:59:03]wFMCommunicate OK [14:59:03]wFMCommunicate request_size=7 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 0D 02 02 02 71 97 [14:59:03]Write to MH i2c: E2 0A 00 64 15 80 0D 02 02 02 00 71 97 00 00 FF [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [14:59:03]RAPDU: 90 00 [14:59:03]wFMCommunicate OK [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 0D 03 02 [14:59:03]Write to MH i2c: E2 08 00 65 15 80 0D 03 02 00 00 00 00 F5 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0B 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0B 00 65 15 00 DB A1 F7 B3 7A 38 85 C9 90 00 1C [14:59:03]RAPDU: DB A1 F7 B3 7A 38 85 C9 90 00 [14:59:03]wFMCommunicate OK [14:59:03]SAM_PROTO_SignData done [14:59:03]FM_MakeSignedData done [14:59:03]CreateOFDProtocolMessage [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 11 00 00 [14:59:03]Write to MH i2c: E2 08 00 66 15 80 11 00 00 00 00 00 00 F5 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 17 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 17 00 66 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [14:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:03]wFMCommunicate OK [14:59:03]CreateOFDProtocolMessage done [14:59:03]OFDSenderStorePacket 166431 [14:59:03]StoreOFDPacket docnum=166431 [14:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B6 13 04 01 E3 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 B6 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8A 02 00 35 04 06 00 06 5A 6F 11 71 97 DB A1 F7 B3 7A 38 85 C9 [14:59:03]CheckFolder [14:59:03]dirname=/storage/ofd_packets [14:59:03]CheckFolder done [14:59:03]ProducePacketName [14:59:03]name=ofd_packets/00166431 [14:59:03]NVStorageSaveData ofd_packets/00166431 [14:59:03]File name is /storage/ofd_packets/00166431 [14:59:03]Write 298 bytes [14:59:03]NVStorageSaveData done [14:59:03]OFDSenderStorePacket done [14:59:03]KKMCreateOFDPacket done [14:59:03]NVStorageSaveData kkm_last_timestamp [14:59:03]File name is /storage/kkm_last_timestamp [14:59:03]Write 4 bytes [14:59:03]NVStorageSaveData done [14:59:03]ExternCall_PrintAddStr [14:59:03]wPrintStart [14:59:03]Write to MH i2c: 01 00 00 67 15 7C [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 07 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 FF 0F 91 [14:59:03]RasterBufferAndPrint [14:59:03]line Счет N : (1)221010 [14:59:03]line ИНН: 02508201610067 [14:59:03]line Контрольно-Кассовый Чек [14:59:03]line ПРОДАЖА [14:59:03]line ТРК (МРК, ГНК) : 21 [14:59:03]line Товар: 2710194210 [14:59:03]line ДТ-К-5 [14:59:03]line 39.380 * 76.20 [14:59:03]line = 3000.76 [14:59:03]line НДС 12% НСП 1% [14:59:03]line > о реализуемом товаре [14:59:03]line ОКРУГЛЕНИЕ: -0.76 [14:59:03]line ИТОГО: 3000.00 [14:59:03]line Внесено: 3000.00 [14:59:03]line СДАЧА: 0.00 [14:59:03]line НСП 1% : 26.55 [14:59:03]line НДС 12% : 318.66 [14:59:03]line Наличными: 3000.00 [14:59:03]line Безнал.: 0.00 [14:59:03]line Место: АЗС № 161 "Партнер Нефть" [14:59:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:03]line СНО: Общий режим [14:59:03]line Чек 186 22.10.2024 14:59 [14:59:03]line Смена: 536 ФФД: 1.0 [14:59:03]line ЗНМ: 0300000104 [14:59:03]line РНМ: 0000000000091764 [14:59:03]line Версия ККМ: 001 [14:59:03]line ФМ: 0000000000871759 [14:59:03]line ФД: 166431 [14:59:03]line ФПД: 6985480237463 [14:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166431&fm=6985480237463&tin=02508201610067®Number=0000000000091764&sum=300000 [14:59:03]written 0, free lines is 4095 [14:59:03]OFD Sender: Processing packet 166431 [packets to send 48, broken 47] [14:59:03]ProducePacketName [14:59:03]name=ofd_packets/00166431 [14:59:03]OFD Sender: To server: pG, [14:59:03]CommunicateWithHost lk.salyk.kg:30040 [14:59:03]ConnectInit lk.salyk.kg [14:59:04]Connected sock=10 [14:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B6 13 04 01 E3 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 B6 BD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8A 02 00 35 04 06 00 06 5A 6F 11 71 97 DB A1 F7 B3 7A 38 85 C9 [14:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 81 47 00 E8 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 8A 02 00 F4 03 04 00 21 64 17 67 B6 04 01 00 00 CF 3A 4F 04 45 03 67 02 [14:59:04]CommunicateWithHost err = 0 [14:59:04]CheckOFDResponse [14:59:04]1017 (14) - 77093643461234 [14:59:04]1041 (16) - 0000000000871759 [14:59:04]1040 (4) - 166431 [14:59:04]1012 (4) - 22.10.2024 08:36 [14:59:04]1206 (1) - 0 [14:59:04]OFD Sender: Remove packet 166431 [14:59:04]ProducePacketName [14:59:04]name=ofd_packets/00166431 [14:59:04]NVStorageDeleteData [14:59:04]Write to MH i2c: 01 00 00 92 15 A7 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: 01 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: 01 07 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 CF 0C 89 [14:59:04]RasterBufferAndPrint [14:59:04]line [14:59:04]line [14:59:04]line [14:59:04]line [14:59:04]line [14:59:04]written 0, free lines is 3285 [14:59:04]MH_Cut [14:59:04]Write to MH i2c: D1 01 00 99 15 01 80 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: D1 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: D1 01 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: D1 01 00 99 15 00 7F [14:59:04]Write to MH i2c: 01 00 00 9A 15 AF [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]OFD Sender: No OFD packet to send [14:59:05]*** Cut start [14:59:05]*** Partial cut [14:59:05]*** CUTSNS_PIN = 1 [14:59:05]*** CUTSNS_PIN = 0 [14:59:05]*** Brake cut motor [14:59:05]Read from MH i2c: 01 [14:59:05]MH_I2C_Read... [14:59:05]*** Stop cut motor [14:59:05]*** Cut end [14:59:05]Read from MH i2c: 01 07 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [14:59:05]process_action close_receipt done [14:59:05]requested_data is exist [14:59:05]produce_requested_data [14:59:05]requested_item fm.sn is exist - process it [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 11 00 00 [14:59:05]Write to MH i2c: E2 08 00 9B 15 80 11 00 00 00 00 00 00 2A [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 9B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [14:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:05]wFMCommunicate OK [14:59:05]requested_item fd.num is exist - process it [14:59:05]SAM_PROTO_GetFieldsCounters [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 13 00 00 [14:59:05]Write to MH i2c: E2 08 00 9C 15 80 13 00 00 00 00 00 00 2D [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:06]Read from MH i2c: E2 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 62 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 62 00 9C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:06]wFMCommunicate OK [14:59:06]SAM_PROTO_GetFieldsCounters done [14:59:06]requested_item shift.num is exist - process it [14:59:06]requested_item shift.opened is exist - process it [14:59:06]req_shift_opened [14:59:06]FM_GetShiftState [14:59:06]SAM_PROTO_GetShiftState [14:59:06]wFMCommunicate request_size=4 [14:59:06]MH_SAM_APDU [14:59:06]CAPDU: 80 13 01 00 [14:59:06]Write to MH i2c: E2 08 00 9D 15 80 13 01 00 00 00 00 00 2F [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:06]Read from MH i2c: E2 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 0E 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 0E 00 9D 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 82 [14:59:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [14:59:06]wFMCommunicate OK [14:59:06]SAM_PROTO_GetShiftState done [14:59:06]FM_GetShiftState done [14:59:06]req_shift_opened done [14:59:06]requested_item shift.open_date is exist - process it [14:59:06]req_shift_open_date [14:59:06]req_shift_open_date done [14:59:06]produce_requested_data done [14:59:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166431,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [14:59:06]process_action_free close_receipt [14:59:06]json_value_free [14:59:06]json_value_free done [14:59:06]process_json_proto returns [14:59:06]Send response to host [14:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166431,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [14:59:06]free response buf [14:59:06]execute_script done [14:59:06]execute_script returns [14:59:06]free content buf [14:59:06]Sock 9.Close socket [14:59:06]Sock 9.Thread stoped [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:56]accept exits with 7 [15:00:56]New connection [15:00:56]New thread 3067637092 created [15:00:56]Thread 3067493732 joined [15:00:56]Waiting for new connection... [15:00:56] Sock 7.Parse request [15:00:56]Sock 7.Check first char [15:00:56]Sock 7.First char is OK [15:00:56]request: POST /json_proto HTTP/1.0 [15:00:56]Method: POST [15:00:56]URL: /json_proto [15:00:56]Method is POST - this is cgi request [15:00:56]url: /json_proto [15:00:56]query_string will be loaded in cgi processing [15:00:56]execute_cgi json_proto POST (null) [15:00:56]execute_cgi path=json_proto method=POST [15:00:56]POST find Content-Length [15:00:56]Host: 172.17.53.195:8080 [15:00:56]Content-Length: 677 [15:00:56]Content-Type: application/json [15:00:56] [15:00:56]POST finish read [15:00:56]Found Content-Length = 677 [15:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:56]execute_script... [15:00:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:56]POST & json_proto [15:00:56]process_json_proto [15:00:56]json parsed OK: [15:00:56]protocol is kg_v1.0 [15:00:56]action value=close_receipt [15:00:56]process_action close_receipt [15:00:56]cmd_close_receipt [15:00:56]MH_GetDate [15:00:56]Write to MH i2c: F0 00 00 9E 15 A2 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: F0 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: F0 09 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: F0 09 00 9E 15 00 29 BE 17 67 21 48 4A 65 28 [15:00:56]GetLastDocTimeStamp 1729609142 [15:00:56]current date 1729609257 [15:00:56]FM_GetShiftState [15:00:56]SAM_PROTO_GetShiftState [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 13 01 00 [15:00:56]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 84 [15:00:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetShiftState done [15:00:56]FM_GetShiftState done [15:00:56]opened in 1729557463 [15:00:56]opened+sec_in_day 1729643863 [15:00:56]quantity*price = 30038 [15:00:56]sum+1 = 30039 [15:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 187 22.10.2024 15:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166432 ФПД: 117432455598169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150057&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166432&fm=117432455598169&tin=02508201610067®Number=0000000000091764&sum=30000 [15:00:57]StoreToDocumentArchive [15:00:57]shift 536 fd 166432 [15:00:57]save to /storage/0536/doc_00166432 [15:00:57]save last doc name /storage/0536/doc_00166432 to /storage/kkm_last_doc_name [15:00:57]save OK [15:00:57]Clear old archive folders... [15:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:57]tlvbuf is B6F683D0 [15:00:57]SAM_PROTO_ClearQueue [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 09 00 00 [15:00:57]Write to MH i2c: E2 08 00 AC 15 80 09 00 00 00 00 00 00 33 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]SAM_PROTO_ClearQueue done [15:00:57]KKMCreateOFDPacket [15:00:57]OFDProtocolAddRootSTLVToBuf [15:00:57]FM_MakeSignedData [15:00:57]FM_MakeSignedData [15:00:57]SAM_PROTO_SignData [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 01 02 [15:00:57]Write to MH i2c: E2 08 00 AD 15 80 0D 01 02 00 00 00 00 3B [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]wFMCommunicate request_size=255 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 29 BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8A 02 00 35 04 06 00 6A [15:00:57]Write to MH i2c: E2 02 01 AE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 29 BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8A 02 00 35 04 06 00 6A 00 00 15 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]wFMCommunicate request_size=10 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 02 02 05 CD DF CD 10 59 [15:00:57]Write to MH i2c: E2 0D 00 AF 15 80 0D 02 02 05 00 CD DF CD 10 59 00 00 2A [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [15:00:57]RAPDU: 90 00 [15:00:57]wFMCommunicate OK [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 0D 03 02 [15:00:57]Write to MH i2c: E2 08 00 B0 15 80 0D 03 02 00 00 00 00 40 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0B 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 0B 00 B0 15 00 1A 3A 7C E4 B6 DD B1 FB 90 00 34 [15:00:57]RAPDU: 1A 3A 7C E4 B6 DD B1 FB 90 00 [15:00:57]wFMCommunicate OK [15:00:57]SAM_PROTO_SignData done [15:00:57]FM_MakeSignedData done [15:00:57]CreateOFDProtocolMessage [15:00:57]wFMCommunicate request_size=4 [15:00:57]MH_SAM_APDU [15:00:57]CAPDU: 80 11 00 00 [15:00:57]Write to MH i2c: E2 08 00 B1 15 80 11 00 00 00 00 00 00 40 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:57]Read from MH i2c: E2 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 17 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: E2 17 00 B1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 98 [15:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:00:57]wFMCommunicate OK [15:00:57]CreateOFDProtocolMessage done [15:00:57]OFDSenderStorePacket 166432 [15:00:57]StoreOFDPacket docnum=166432 [15:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 1F 07 01 4C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 29 BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8A 02 00 35 04 06 00 6A CD DF CD 10 59 1A 3A 7C E4 B6 DD B1 FB [15:00:57]CheckFolder [15:00:57]dirname=/storage/ofd_packets [15:00:57]CheckFolder done [15:00:57]ProducePacketName [15:00:57]name=ofd_packets/00166432 [15:00:57]NVStorageSaveData ofd_packets/00166432 [15:00:57]File name is /storage/ofd_packets/00166432 [15:00:57]Write 301 bytes [15:00:57]NVStorageSaveData done [15:00:57]OFDSenderStorePacket done [15:00:57]KKMCreateOFDPacket done [15:00:57]NVStorageSaveData kkm_last_timestamp [15:00:57]File name is /storage/kkm_last_timestamp [15:00:57]Write 4 bytes [15:00:57]NVStorageSaveData done [15:00:57]ExternCall_PrintAddStr [15:00:57]wPrintStart [15:00:57]Write to MH i2c: 01 00 00 B2 15 C7 [15:00:57]Write i2c OK [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 07 00 [15:00:57]MH_I2C_Read... [15:00:57]Read from MH i2c: 01 07 00 B2 15 00 00 00 00 00 FF 0F DC [15:00:57]RasterBufferAndPrint [15:00:57]line Счет N : (1)221011 [15:00:57]line ИНН: 02508201610067 [15:00:57]line Контрольно-Кассовый Чек [15:00:57]line ПРОДАЖА [15:00:57]line ТРК (МРК, ГНК) : 43 [15:00:57]line Товар: 2710124130 [15:00:57]line Аи-92-К-5 [15:00:57]line 4.490 * 66.90 [15:00:57]line = 300.38 [15:00:57]line НДС 12% НСП 1% [15:00:57]line > о реализуемом товаре [15:00:57]line ОКРУГЛЕНИЕ: -0.38 [15:00:57]line ИТОГО: 300.00 [15:00:57]line Внесено: 300.00 [15:00:57]line СДАЧА: 0.00 [15:00:57]line НСП 1% : 2.66 [15:00:57]line НДС 12% : 31.90 [15:00:57]line Наличными: 300.00 [15:00:57]line Безнал.: 0.00 [15:00:57]line Место: АЗС № 161 "Партнер Нефть" [15:00:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:00:57]line СНО: Общий режим [15:00:57]line Чек 187 22.10.2024 15:00 [15:00:57]line Смена: 536 ФФД: 1.0 [15:00:57]line ЗНМ: 0300000104 [15:00:57]line РНМ: 0000000000091764 [15:00:57]line Версия ККМ: 001 [15:00:57]line ФМ: 0000000000871759 [15:00:57]line ФД: 166432 [15:00:57]line ФПД: 117432455598169 [15:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150057&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166432&fm=117432455598169&tin=02508201610067®Number=0000000000091764&sum=30000 [15:00:58]OFD Sender: Processing packet 166432 [packets to send 48, broken 47] [15:00:58]ProducePacketName [15:00:58]name=ofd_packets/00166432 [15:00:58]OFD Sender: To server: pG, [15:00:58]CommunicateWithHost lk.salyk.kg:30040 [15:00:58]ConnectInit lk.salyk.kg [15:00:58]written 0, free lines is 4095 [15:00:58]Connected sock=10 [15:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 1F 07 01 4C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 29 BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8A 02 00 35 04 06 00 6A CD DF CD 10 59 1A 3A 7C E4 B6 DD B1 FB [15:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D 70 47 00 E4 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 8A 02 00 F4 03 04 00 93 64 17 67 B6 04 01 00 00 71 AF 21 68 FB 04 DD B1 [15:00:58]CommunicateWithHost err = 0 [15:00:58]CheckOFDResponse [15:00:58]1017 (14) - 77093643461234 [15:00:58]1041 (16) - 0000000000871759 [15:00:58]1040 (4) - 166432 [15:00:58]1012 (4) - 22.10.2024 08:38 [15:00:58]1206 (1) - 0 [15:00:58]OFD Sender: Remove packet 166432 [15:00:58]ProducePacketName [15:00:58]name=ofd_packets/00166432 [15:00:58]NVStorageDeleteData [15:00:58]Write to MH i2c: 01 00 00 DD 15 F2 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 EA 0C EF [15:00:58]RasterBufferAndPrint [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]line [15:00:58]written 0, free lines is 3312 [15:00:58]MH_Cut [15:00:58]Write to MH i2c: D1 01 00 E4 15 01 CB [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 01 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: D1 01 00 E4 15 00 CA [15:00:58]Write to MH i2c: 01 00 00 E5 15 FA [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:59]OFD Sender: No OFD packet to send [15:00:59]*** Cut start [15:00:59]*** Partial cut [15:00:59]*** CUTSNS_PIN = 1 [15:00:59]*** CUTSNS_PIN = 0 [15:00:59]*** Brake cut motor [15:01:00]Read from MH i2c: 01 [15:01:00]MH_I2C_Read... [15:01:00]*** Stop cut motor [15:01:00]*** Cut end [15:01:00]Read from MH i2c: 01 07 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [15:01:00]process_action close_receipt done [15:01:00]requested_data is exist [15:01:00]produce_requested_data [15:01:00]requested_item fm.sn is exist - process it [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 11 00 00 [15:01:00]Write to MH i2c: E2 08 00 E6 15 80 11 00 00 00 00 00 00 75 [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:00]Read from MH i2c: E2 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 17 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 17 00 E6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [15:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:01:00]wFMCommunicate OK [15:01:00]requested_item fd.num is exist - process it [15:01:00]SAM_PROTO_GetFieldsCounters [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 13 00 00 [15:01:00]Write to MH i2c: E2 08 00 E7 15 80 13 00 00 00 00 00 00 78 [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:00]Read from MH i2c: E2 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 62 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 62 00 E7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:00]wFMCommunicate OK [15:01:00]SAM_PROTO_GetFieldsCounters done [15:01:00]requested_item shift.num is exist - process it [15:01:00]requested_item shift.opened is exist - process it [15:01:00]req_shift_opened [15:01:00]FM_GetShiftState [15:01:00]SAM_PROTO_GetShiftState [15:01:00]wFMCommunicate request_size=4 [15:01:00]MH_SAM_APDU [15:01:00]CAPDU: 80 13 01 00 [15:01:00]Write to MH i2c: E2 08 00 E8 15 80 13 01 00 00 00 00 00 7A [15:01:00]Write i2c OK [15:01:00]MH_I2C_Read... [15:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:00]Read from MH i2c: E2 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 0E 00 [15:01:00]MH_I2C_Read... [15:01:00]Read from MH i2c: E2 0E 00 E8 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CD [15:01:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:01:00]wFMCommunicate OK [15:01:00]SAM_PROTO_GetShiftState done [15:01:00]FM_GetShiftState done [15:01:00]req_shift_opened done [15:01:00]requested_item shift.open_date is exist - process it [15:01:00]req_shift_open_date [15:01:00]req_shift_open_date done [15:01:00]produce_requested_data done [15:01:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166432,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:01:00]process_action_free close_receipt [15:01:00]json_value_free [15:01:00]json_value_free done [15:01:00]process_json_proto returns [15:01:00]Send response to host [15:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166432,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:01:00]free response buf [15:01:00]execute_script done [15:01:00]execute_script returns [15:01:00]free content buf [15:01:00]Sock 7.Close socket [15:01:00]Sock 7.Thread stoped [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:51]accept exits with 9 [15:02:51]New connection [15:02:51]New thread 3067493732 created [15:02:51]Thread 3067637092 joined [15:02:51]Waiting for new connection... [15:02:51] Sock 9.Parse request [15:02:51]Sock 9.Check first char [15:02:51]Sock 9.First char is OK [15:02:51]request: POST /json_proto HTTP/1.0 [15:02:51]Method: POST [15:02:51]URL: /json_proto [15:02:51]Method is POST - this is cgi request [15:02:51]url: /json_proto [15:02:51]query_string will be loaded in cgi processing [15:02:51]execute_cgi json_proto POST (null) [15:02:51]execute_cgi path=json_proto method=POST [15:02:51]POST find Content-Length [15:02:51]Host: 172.17.53.195:8080 [15:02:51]Content-Length: 677 [15:02:51]Content-Type: application/json [15:02:51] [15:02:51]POST finish read [15:02:51]Found Content-Length = 677 [15:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:51]execute_script... [15:02:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:51]POST & json_proto [15:02:51]process_json_proto [15:02:51]json parsed OK: [15:02:51]protocol is kg_v1.0 [15:02:51]action value=close_receipt [15:02:51]process_action close_receipt [15:02:51]cmd_close_receipt [15:02:51]MH_GetDate [15:02:51]Write to MH i2c: F0 00 00 E9 15 ED [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: F0 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: F0 09 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: F0 09 00 E9 15 00 9C BE 17 67 21 48 4A 65 E6 [15:02:51]GetLastDocTimeStamp 1729609257 [15:02:51]current date 1729609372 [15:02:51]FM_GetShiftState [15:02:51]SAM_PROTO_GetShiftState [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 13 01 00 [15:02:51]Write to MH i2c: E2 08 00 EA 15 80 13 01 00 00 00 00 00 7C [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 EA 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CF [15:02:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:02:51]wFMCommunicate OK [15:02:51]SAM_PROTO_GetShiftState done [15:02:51]FM_GetShiftState done [15:02:51]opened in 1729557463 [15:02:51]opened+sec_in_day 1729643863 [15:02:51]quantity*price = 50041 [15:02:51]sum+1 = 50042 [15:02:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 188 22.10.2024 15:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166433 ФПД: 145687228362129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166433&fm=145687228362129&tin=02508201610067®Number=0000000000091764&sum=50000 [15:02:52]StoreToDocumentArchive [15:02:52]shift 536 fd 166433 [15:02:52]save to /storage/0536/doc_00166433 [15:02:52]save last doc name /storage/0536/doc_00166433 to /storage/kkm_last_doc_name [15:02:52]save OK [15:02:52]Clear old archive folders... [15:02:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:52]tlvbuf is B6F4F3E0 [15:02:52]SAM_PROTO_ClearQueue [15:02:52]wFMCommunicate request_size=4 [15:02:52]MH_SAM_APDU [15:02:52]CAPDU: 80 09 00 00 [15:02:52]Write to MH i2c: E2 08 00 F7 15 80 09 00 00 00 00 00 00 7E [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:52]Read from MH i2c: E2 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 03 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [15:02:52]RAPDU: 90 00 [15:02:52]wFMCommunicate OK [15:02:52]SAM_PROTO_ClearQueue done [15:02:52]KKMCreateOFDPacket [15:02:52]OFDProtocolAddRootSTLVToBuf [15:02:52]FM_MakeSignedData [15:02:52]FM_MakeSignedData [15:02:52]SAM_PROTO_SignData [15:02:52]wFMCommunicate request_size=4 [15:02:52]MH_SAM_APDU [15:02:52]CAPDU: 80 0D 01 02 [15:02:52]Write to MH i2c: E2 08 00 F8 15 80 0D 01 02 00 00 00 00 86 [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:52]Read from MH i2c: E2 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 03 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 03 00 F8 15 00 90 00 81 [15:02:52]RAPDU: 90 00 [15:02:52]wFMCommunicate OK [15:02:52]wFMCommunicate request_size=255 [15:02:52]MH_SAM_APDU [15:02:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 9C BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8A 02 00 35 04 06 00 84 [15:02:52]Write to MH i2c: E2 02 01 F9 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 9C BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8A 02 00 35 04 06 00 84 00 00 FB [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 F9 15 00 90 00 82 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=10 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 02 02 05 80 73 7E AD 91 [15:02:53]Write to MH i2c: E2 0D 00 FA 15 80 0D 02 02 05 00 80 73 7E AD 91 00 00 42 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 03 02 [15:02:53]Write to MH i2c: E2 08 00 FB 15 80 0D 03 02 00 00 00 00 8B [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 0B 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 0B 00 FB 15 00 AC 94 52 B1 FA 72 41 B0 90 00 2C [15:02:53]RAPDU: AC 94 52 B1 FA 72 41 B0 90 00 [15:02:53]wFMCommunicate OK [15:02:53]SAM_PROTO_SignData done [15:02:53]FM_MakeSignedData done [15:02:53]CreateOFDProtocolMessage [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 11 00 00 [15:02:53]Write to MH i2c: E2 08 00 FC 15 80 11 00 00 00 00 00 00 8B [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 17 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 17 00 FC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [15:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:02:53]wFMCommunicate OK [15:02:53]CreateOFDProtocolMessage done [15:02:53]OFDSenderStorePacket 166433 [15:02:53]StoreOFDPacket docnum=166433 [15:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 76 BC 07 01 0B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 9C BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8A 02 00 35 04 06 00 84 80 73 7E AD 91 AC 94 52 B1 FA 72 41 B0 [15:02:53]CheckFolder [15:02:53]dirname=/storage/ofd_packets [15:02:53]CheckFolder done [15:02:53]ProducePacketName [15:02:53]name=ofd_packets/00166433 [15:02:53]NVStorageSaveData ofd_packets/00166433 [15:02:53]File name is /storage/ofd_packets/00166433 [15:02:53]Write 301 bytes [15:02:53]NVStorageSaveData done [15:02:53]OFDSenderStorePacket done [15:02:53]KKMCreateOFDPacket done [15:02:53]NVStorageSaveData kkm_last_timestamp [15:02:53]File name is /storage/kkm_last_timestamp [15:02:53]Write 4 bytes [15:02:53]NVStorageSaveData done [15:02:53]ExternCall_PrintAddStr [15:02:53]wPrintStart [15:02:53]Write to MH i2c: 01 00 00 FD 15 12 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: 01 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: 01 07 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: 01 07 00 FD 15 00 00 00 00 00 FF 0F 27 [15:02:53]RasterBufferAndPrint [15:02:53]line Счет N : (1)221012 [15:02:53]line ИНН: 02508201610067 [15:02:53]line Контрольно-Кассовый Чек [15:02:53]line ПРОДАЖА [15:02:53]line ТРК (МРК, ГНК) : 23 [15:02:53]line Товар: 2710124130 [15:02:53]line Аи-92-К-5 [15:02:53]line 7.480 * 66.90 [15:02:53]line = 500.41 [15:02:53]line НДС 12% НСП 1% [15:02:53]line > о реализуемом товаре [15:02:53]line ОКРУГЛЕНИЕ: -0.41 [15:02:53]line ИТОГО: 500.00 [15:02:53]line Внесено: 500.00 [15:02:53]line СДАЧА: 0.00 [15:02:53]line НСП 1% : 4.43 [15:02:53]line НДС 12% : 53.14 [15:02:53]line Наличными: 500.00 [15:02:53]line Безнал.: 0.00 [15:02:53]line Место: АЗС № 161 "Партнер Нефть" [15:02:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:02:53]line СНО: Общий режим [15:02:53]line Чек 188 22.10.2024 15:02 [15:02:53]line Смена: 536 ФФД: 1.0 [15:02:53]line ЗНМ: 0300000104 [15:02:53]line РНМ: 0000000000091764 [15:02:53]line Версия ККМ: 001 [15:02:53]line ФМ: 0000000000871759 [15:02:53]line ФД: 166433 [15:02:53]line ФПД: 145687228362129 [15:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150252&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166433&fm=145687228362129&tin=02508201610067®Number=0000000000091764&sum=50000 [15:02:53]OFD Sender: Processing packet 166433 [packets to send 48, broken 47] [15:02:53]ProducePacketName [15:02:53]name=ofd_packets/00166433 [15:02:53]OFD Sender: To server: pG, [15:02:53]CommunicateWithHost lk.salyk.kg:30040 [15:02:53]ConnectInit lk.salyk.kg [15:02:53]written 0, free lines is 4095 [15:02:53]Connected sock=10 [15:02:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 76 BC 07 01 0B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 9C BE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8A 02 00 35 04 06 00 84 80 73 7E AD 91 AC 94 52 B1 FA 72 41 B0 [15:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9D C7 47 00 15 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 8A 02 00 F4 03 04 00 07 65 17 67 B6 04 01 00 00 53 07 A3 D8 E2 8E A3 9C [15:02:53]CommunicateWithHost err = 0 [15:02:53]CheckOFDResponse [15:02:53]1017 (14) - 77093643461234 [15:02:53]1041 (16) - 0000000000871759 [15:02:53]1040 (4) - 166433 [15:02:53]1012 (4) - 22.10.2024 08:40 [15:02:53]1206 (1) - 0 [15:02:53]OFD Sender: Remove packet 166433 [15:02:53]ProducePacketName [15:02:53]name=ofd_packets/00166433 [15:02:53]NVStorageDeleteData [15:02:54]Write to MH i2c: 01 00 00 28 16 3E [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 DA 0C 2B [15:02:54]RasterBufferAndPrint [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]written 0, free lines is 3297 [15:02:54]MH_Cut [15:02:54]Write to MH i2c: D1 01 00 2F 16 01 17 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 01 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 01 00 2F 16 00 16 [15:02:54]Write to MH i2c: 01 00 00 30 16 46 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]OFD Sender: No OFD packet to send [15:02:54]*** Cut start [15:02:54]*** Partial cut [15:02:54]*** CUTSNS_PIN = 1 [15:02:54]*** CUTSNS_PIN = 0 [15:02:55]*** Brake cut motor [15:02:55]Read from MH i2c: 01 [15:02:55]MH_I2C_Read... [15:02:55]*** Stop cut motor [15:02:55]*** Cut end [15:02:55]Read from MH i2c: 01 07 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: 01 07 00 30 16 00 00 00 00 00 FF 0F 5B [15:02:55]process_action close_receipt done [15:02:55]requested_data is exist [15:02:55]produce_requested_data [15:02:55]requested_item fm.sn is exist - process it [15:02:55]wFMCommunicate request_size=4 [15:02:55]MH_SAM_APDU [15:02:55]CAPDU: 80 11 00 00 [15:02:55]Write to MH i2c: E2 08 00 31 16 80 11 00 00 00 00 00 00 C1 [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:55]Read from MH i2c: E2 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 17 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 17 00 31 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [15:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:02:55]wFMCommunicate OK [15:02:55]requested_item fd.num is exist - process it [15:02:55]SAM_PROTO_GetFieldsCounters [15:02:55]wFMCommunicate request_size=4 [15:02:55]MH_SAM_APDU [15:02:55]CAPDU: 80 13 00 00 [15:02:55]Write to MH i2c: E2 08 00 32 16 80 13 00 00 00 00 00 00 C4 [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:55]Read from MH i2c: E2 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 62 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 62 00 32 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [15:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:55]wFMCommunicate OK [15:02:55]SAM_PROTO_GetFieldsCounters done [15:02:55]requested_item shift.num is exist - process it [15:02:55]requested_item shift.opened is exist - process it [15:02:55]req_shift_opened [15:02:55]FM_GetShiftState [15:02:55]SAM_PROTO_GetShiftState [15:02:55]wFMCommunicate request_size=4 [15:02:55]MH_SAM_APDU [15:02:55]CAPDU: 80 13 01 00 [15:02:55]Write to MH i2c: E2 08 00 33 16 80 13 01 00 00 00 00 00 C6 [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:55]Read from MH i2c: E2 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 0E 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: E2 0E 00 33 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 19 [15:02:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:02:55]wFMCommunicate OK [15:02:55]SAM_PROTO_GetShiftState done [15:02:55]FM_GetShiftState done [15:02:55]req_shift_opened done [15:02:55]requested_item shift.open_date is exist - process it [15:02:55]req_shift_open_date [15:02:55]req_shift_open_date done [15:02:55]produce_requested_data done [15:02:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166433,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:02:55]process_action_free close_receipt [15:02:55]json_value_free [15:02:55]json_value_free done [15:02:55]process_json_proto returns [15:02:55]Send response to host [15:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166433,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:02:55]free response buf [15:02:55]execute_script done [15:02:55]execute_script returns [15:02:55]free content buf [15:02:55]Sock 9.Close socket [15:02:55]Sock 9.Thread stoped [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:00]accept exits with 7 [15:05:00]New connection [15:05:00]New thread 3067637092 created [15:05:00]Thread 3067493732 joined [15:05:00]Waiting for new connection... [15:05:00] Sock 7.Parse request [15:05:00]Sock 7.Check first char [15:05:00]Sock 7.First char is OK [15:05:00]request: POST /json_proto HTTP/1.0 [15:05:00]Method: POST [15:05:00]URL: /json_proto [15:05:00]Method is POST - this is cgi request [15:05:00]url: /json_proto [15:05:00]query_string will be loaded in cgi processing [15:05:00]execute_cgi json_proto POST (null) [15:05:00]execute_cgi path=json_proto method=POST [15:05:00]POST find Content-Length [15:05:00]Host: 172.17.53.195:8080 [15:05:00]Content-Length: 675 [15:05:00]Content-Type: application/json [15:05:00] [15:05:00]POST finish read [15:05:00]Found Content-Length = 675 [15:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:00]execute_script... [15:05:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:00]POST & json_proto [15:05:00]process_json_proto [15:05:00]json parsed OK: [15:05:00]protocol is kg_v1.0 [15:05:00]action value=close_receipt [15:05:00]process_action close_receipt [15:05:00]cmd_close_receipt [15:05:00]MH_GetDate [15:05:00]Write to MH i2c: F0 00 00 34 16 39 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: F0 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: F0 09 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: F0 09 00 34 16 00 1D BF 17 67 21 48 4A 65 B4 [15:05:00]GetLastDocTimeStamp 1729609372 [15:05:00]current date 1729609501 [15:05:00]FM_GetShiftState [15:05:00]SAM_PROTO_GetShiftState [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 13 01 00 [15:05:00]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0E 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1B [15:05:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_GetShiftState done [15:05:00]FM_GetShiftState done [15:05:00]opened in 1729557463 [15:05:00]opened+sec_in_day 1729643863 [15:05:00]quantity*price = 80010 [15:05:00]sum+1 = 80011 [15:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 189 22.10.2024 15:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166434 ФПД: 20487018525745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166434&fm=20487018525745&tin=02508201610067®Number=0000000000091764&sum=80000 [15:05:01]StoreToDocumentArchive [15:05:01]shift 536 fd 166434 [15:05:01]save to /storage/0536/doc_00166434 [15:05:01]save last doc name /storage/0536/doc_00166434 to /storage/kkm_last_doc_name [15:05:01]save OK [15:05:01]Clear old archive folders... [15:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:01]tlvbuf is 009F5F40 [15:05:01]SAM_PROTO_ClearQueue [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 09 00 00 [15:05:01]Write to MH i2c: E2 08 00 42 16 80 09 00 00 00 00 00 00 CA [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_ClearQueue done [15:05:01]KKMCreateOFDPacket [15:05:01]OFDProtocolAddRootSTLVToBuf [15:05:01]FM_MakeSignedData [15:05:01]FM_MakeSignedData [15:05:01]SAM_PROTO_SignData [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 01 02 [15:05:01]Write to MH i2c: E2 08 00 43 16 80 0D 01 02 00 00 00 00 D2 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=255 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1D BF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8A 02 00 35 04 06 00 12 A2 01 76 [15:05:01]Write to MH i2c: E2 02 01 44 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1D BF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8A 02 00 35 04 06 00 12 A2 01 76 00 00 9B [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=7 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 02 02 02 34 31 [15:05:01]Write to MH i2c: E2 0A 00 45 16 80 0D 02 02 02 00 34 31 00 00 3E [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 03 02 [15:05:01]Write to MH i2c: E2 08 00 46 16 80 0D 03 02 00 00 00 00 D7 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 46 16 00 C4 AA 24 E1 34 1A 17 91 90 00 41 [15:05:01]RAPDU: C4 AA 24 E1 34 1A 17 91 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_SignData done [15:05:01]FM_MakeSignedData done [15:05:01]CreateOFDProtocolMessage [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 11 00 00 [15:05:01]Write to MH i2c: E2 08 00 47 16 80 11 00 00 00 00 00 00 D7 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 47 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2F [15:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:01]wFMCommunicate OK [15:05:01]CreateOFDProtocolMessage done [15:05:01]OFDSenderStorePacket 166434 [15:05:01]StoreOFDPacket docnum=166434 [15:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 53 7D 04 01 75 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1D BF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8A 02 00 35 04 06 00 12 A2 01 76 34 31 C4 AA 24 E1 34 1A 17 91 [15:05:01]CheckFolder [15:05:01]dirname=/storage/ofd_packets [15:05:01]CheckFolder done [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00166434 [15:05:01]NVStorageSaveData ofd_packets/00166434 [15:05:01]File name is /storage/ofd_packets/00166434 [15:05:01]Write 298 bytes [15:05:01]NVStorageSaveData done [15:05:01]OFDSenderStorePacket done [15:05:01]KKMCreateOFDPacket done [15:05:01]NVStorageSaveData kkm_last_timestamp [15:05:01]File name is /storage/kkm_last_timestamp [15:05:01]Write 4 bytes [15:05:01]NVStorageSaveData done [15:05:01]ExternCall_PrintAddStr [15:05:01]wPrintStart [15:05:01]Write to MH i2c: 01 00 00 48 16 5E [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 48 16 00 00 00 00 00 FF 0F 73 [15:05:01]RasterBufferAndPrint [15:05:01]line Счет N : (1)221013 [15:05:01]line ИНН: 02508201610067 [15:05:01]line Контрольно-Кассовый Чек [15:05:01]line ПРОДАЖА [15:05:01]line ТРК (МРК, ГНК) : 31 [15:05:01]line Товар: 2710194210 [15:05:01]line ДТ-К-5 [15:05:01]line 10.500 * 76.20 [15:05:01]line = 800.10 [15:05:01]line НДС 12% НСП 1% [15:05:01]line > о реализуемом товаре [15:05:01]line ОКРУГЛЕНИЕ: -0.10 [15:05:01]line ИТОГО: 800.00 [15:05:01]line Внесено: 800.00 [15:05:01]line СДАЧА: 0.00 [15:05:01]line НСП 1% : 7.08 [15:05:01]line НДС 12% : 84.97 [15:05:01]line Наличными: 800.00 [15:05:01]line Безнал.: 0.00 [15:05:01]line Место: АЗС № 161 "Партнер Нефть" [15:05:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:05:01]line СНО: Общий режим [15:05:01]line Чек 189 22.10.2024 15:05 [15:05:01]line Смена: 536 ФФД: 1.0 [15:05:01]line ЗНМ: 0300000104 [15:05:01]line РНМ: 0000000000091764 [15:05:01]line Версия ККМ: 001 [15:05:01]line ФМ: 0000000000871759 [15:05:01]line ФД: 166434 [15:05:01]line ФПД: 20487018525745 [15:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166434&fm=20487018525745&tin=02508201610067®Number=0000000000091764&sum=80000 [15:05:02]OFD Sender: Processing packet 166434 [packets to send 48, broken 47] [15:05:02]ProducePacketName [15:05:02]name=ofd_packets/00166434 [15:05:02]OFD Sender: To server: pG, [15:05:02]CommunicateWithHost lk.salyk.kg:30040 [15:05:02]ConnectInit lk.salyk.kg [15:05:02]written 0, free lines is 4095 [15:05:02]Connected sock=10 [15:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 53 7D 04 01 75 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 1D BF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8A 02 00 35 04 06 00 12 A2 01 76 34 31 C4 AA 24 E1 34 1A 17 91 [15:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD F8 47 00 33 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 8A 02 00 F4 03 04 00 87 65 17 67 B6 04 01 00 00 A8 36 31 94 AE 99 8D 5F [15:05:02]CommunicateWithHost err = 0 [15:05:02]CheckOFDResponse [15:05:02]1017 (14) - 77093643461234 [15:05:02]1041 (16) - 0000000000871759 [15:05:02]1040 (4) - 166434 [15:05:02]1012 (4) - 22.10.2024 08:42 [15:05:02]1206 (1) - 0 [15:05:02]OFD Sender: Remove packet 166434 [15:05:02]ProducePacketName [15:05:02]name=ofd_packets/00166434 [15:05:02]NVStorageDeleteData [15:05:02]Write to MH i2c: 01 00 00 73 16 89 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 07 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 CF 0C 6B [15:05:02]RasterBufferAndPrint [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]written 0, free lines is 3283 [15:05:02]MH_Cut [15:05:02]Write to MH i2c: D1 01 00 7A 16 01 62 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 01 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 01 00 7A 16 00 61 [15:05:02]Write to MH i2c: 01 00 00 7B 16 91 [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]OFD Sender: No OFD packet to send [15:05:03]*** Cut start [15:05:03]*** Partial cut [15:05:03]*** CUTSNS_PIN = 1 [15:05:03]*** CUTSNS_PIN = 0 [15:05:03]*** Brake cut motor [15:05:04]Read from MH i2c: 01 [15:05:04]MH_I2C_Read... [15:05:04]*** Stop cut motor [15:05:04]*** Cut end [15:05:04]Read from MH i2c: 01 07 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [15:05:04]process_action close_receipt done [15:05:04]requested_data is exist [15:05:04]produce_requested_data [15:05:04]requested_item fm.sn is exist - process it [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 11 00 00 [15:05:04]Write to MH i2c: E2 08 00 7C 16 80 11 00 00 00 00 00 00 0C [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 17 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 17 00 7C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [15:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:05:04]wFMCommunicate OK [15:05:04]requested_item fd.num is exist - process it [15:05:04]SAM_PROTO_GetFieldsCounters [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 13 00 00 [15:05:04]Write to MH i2c: E2 08 00 7D 16 80 13 00 00 00 00 00 00 0F [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 62 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 62 00 7D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [15:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:04]wFMCommunicate OK [15:05:04]SAM_PROTO_GetFieldsCounters done [15:05:04]requested_item shift.num is exist - process it [15:05:04]requested_item shift.opened is exist - process it [15:05:04]req_shift_opened [15:05:04]FM_GetShiftState [15:05:04]SAM_PROTO_GetShiftState [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 13 01 00 [15:05:04]Write to MH i2c: E2 08 00 7E 16 80 13 01 00 00 00 00 00 11 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 0E 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 0E 00 7E 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 64 [15:05:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:05:04]wFMCommunicate OK [15:05:04]SAM_PROTO_GetShiftState done [15:05:04]FM_GetShiftState done [15:05:04]req_shift_opened done [15:05:04]requested_item shift.open_date is exist - process it [15:05:04]req_shift_open_date [15:05:04]req_shift_open_date done [15:05:04]produce_requested_data done [15:05:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166434,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:05:04]process_action_free close_receipt [15:05:04]json_value_free [15:05:04]json_value_free done [15:05:04]process_json_proto returns [15:05:04]Send response to host [15:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166434,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:05:04]free response buf [15:05:04]execute_script done [15:05:04]execute_script returns [15:05:04]free content buf [15:05:04]Sock 7.Close socket [15:05:04]Sock 7.Thread stoped [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:56]accept exits with 9 [15:08:56]New connection [15:08:56]New thread 3067493732 created [15:08:56]Thread 3067637092 joined [15:08:56]Waiting for new connection... [15:08:56] Sock 9.Parse request [15:08:56]Sock 9.Check first char [15:08:56]Sock 9.First char is OK [15:08:56]request: POST /json_proto HTTP/1.0 [15:08:56]Method: POST [15:08:56]URL: /json_proto [15:08:56]Method is POST - this is cgi request [15:08:56]url: /json_proto [15:08:56]query_string will be loaded in cgi processing [15:08:56]execute_cgi json_proto POST (null) [15:08:56]execute_cgi path=json_proto method=POST [15:08:56]POST find Content-Length [15:08:56]Host: 172.17.53.195:8080 [15:08:56]Content-Length: 682 [15:08:56]Content-Type: application/json [15:08:56] [15:08:56]POST finish read [15:08:56]Found Content-Length = 682 [15:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:56]execute_script... [15:08:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:56]POST & json_proto [15:08:56]process_json_proto [15:08:56]json parsed OK: [15:08:56]protocol is kg_v1.0 [15:08:56]action value=close_receipt [15:08:56]process_action close_receipt [15:08:56]cmd_close_receipt [15:08:56]MH_GetDate [15:08:56]Write to MH i2c: F0 00 00 7F 16 84 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: F0 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: F0 09 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: F0 09 00 7F 16 00 09 C0 17 67 21 48 4A 65 EC [15:08:56]GetLastDocTimeStamp 1729609501 [15:08:56]current date 1729609737 [15:08:56]FM_GetShiftState [15:08:56]SAM_PROTO_GetShiftState [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 13 01 00 [15:08:56]Write to MH i2c: E2 08 00 80 16 80 13 01 00 00 00 00 00 13 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0E 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0E 00 80 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 66 [15:08:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_GetShiftState done [15:08:56]FM_GetShiftState done [15:08:56]opened in 1729557463 [15:08:56]opened+sec_in_day 1729643863 [15:08:56]quantity*price = 120055 [15:08:56]sum+1 = 120057 [15:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 190 22.10.2024 15:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166435 ФПД: 119759993943257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150857&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166435&fm=119759993943257&tin=02508201610067®Number=0000000000091764&sum=120000 [15:08:57]StoreToDocumentArchive [15:08:57]shift 536 fd 166435 [15:08:57]save to /storage/0536/doc_00166435 [15:08:57]save last doc name /storage/0536/doc_00166435 to /storage/kkm_last_doc_name [15:08:57]save OK [15:08:57]Clear old archive folders... [15:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:57]tlvbuf is 00A11A50 [15:08:57]SAM_PROTO_ClearQueue [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 09 00 00 [15:08:57]Write to MH i2c: E2 08 00 8D 16 80 09 00 00 00 00 00 00 15 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]SAM_PROTO_ClearQueue done [15:08:58]KKMCreateOFDPacket [15:08:58]OFDProtocolAddRootSTLVToBuf [15:08:58]FM_MakeSignedData [15:08:58]FM_MakeSignedData [15:08:58]SAM_PROTO_SignData [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 01 02 [15:08:58]Write to MH i2c: E2 08 00 8E 16 80 0D 01 02 00 00 00 00 1D [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=255 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 09 C0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8A 02 00 35 04 06 00 6C [15:08:58]Write to MH i2c: E2 02 01 8F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 09 C0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8A 02 00 35 04 06 00 6C 00 00 16 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]OFD Sender: No OFD packet to send [15:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=10 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 02 02 05 EB CB E5 B4 D9 [15:08:58]Write to MH i2c: E2 0D 00 90 16 80 0D 02 02 05 00 EB CB E5 B4 D9 00 00 52 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [15:08:58]RAPDU: 90 00 [15:08:58]wFMCommunicate OK [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 0D 03 02 [15:08:58]Write to MH i2c: E2 08 00 91 16 80 0D 03 02 00 00 00 00 22 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0B 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0B 00 91 16 00 74 C5 E8 A0 58 F6 FC D6 90 00 04 [15:08:58]RAPDU: 74 C5 E8 A0 58 F6 FC D6 90 00 [15:08:58]wFMCommunicate OK [15:08:58]SAM_PROTO_SignData done [15:08:58]FM_MakeSignedData done [15:08:58]CreateOFDProtocolMessage [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 11 00 00 [15:08:58]Write to MH i2c: E2 08 00 92 16 80 11 00 00 00 00 00 00 22 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 17 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 17 00 92 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [15:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:58]wFMCommunicate OK [15:08:58]CreateOFDProtocolMessage done [15:08:58]OFDSenderStorePacket 166435 [15:08:58]StoreOFDPacket docnum=166435 [15:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 2B 07 01 40 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 09 C0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8A 02 00 35 04 06 00 6C EB CB E5 B4 D9 74 C5 E8 A0 58 F6 FC D6 [15:08:58]CheckFolder [15:08:58]dirname=/storage/ofd_packets [15:08:58]CheckFolder done [15:08:58]ProducePacketName [15:08:58]name=ofd_packets/00166435 [15:08:58]NVStorageSaveData ofd_packets/00166435 [15:08:58]File name is /storage/ofd_packets/00166435 [15:08:58]Write 301 bytes [15:08:58]NVStorageSaveData done [15:08:58]OFDSenderStorePacket done [15:08:58]KKMCreateOFDPacket done [15:08:58]NVStorageSaveData kkm_last_timestamp [15:08:58]File name is /storage/kkm_last_timestamp [15:08:58]Write 4 bytes [15:08:58]NVStorageSaveData done [15:08:58]ExternCall_PrintAddStr [15:08:58]wPrintStart [15:08:58]Write to MH i2c: 01 00 00 93 16 A9 [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 07 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 FF 0F BE [15:08:58]RasterBufferAndPrint [15:08:58]line Счет N : (1)221014 [15:08:58]line ИНН: 02508201610067 [15:08:58]line Контрольно-Кассовый Чек [15:08:58]line ПРОДАЖА [15:08:58]line ТРК (МРК, ГНК) : 24 [15:08:58]line Товар: 2710124500 [15:08:58]line Аи-95-К-5 [15:08:58]line 16.180 * 74.20 [15:08:58]line = 1200.56 [15:08:58]line НДС 12% НСП 1% [15:08:58]line > о реализуемом товаре [15:08:58]line ОКРУГЛЕНИЕ: -0.56 [15:08:58]line ИТОГО: 1200.00 [15:08:58]line Внесено: 1200.00 [15:08:58]line СДАЧА: 0.00 [15:08:58]line НСП 1% : 10.62 [15:08:58]line НДС 12% : 127.49 [15:08:58]line Наличными: 1200.00 [15:08:58]line Безнал.: 0.00 [15:08:58]line Место: АЗС № 161 "Партнер Нефть" [15:08:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:08:58]line СНО: Общий режим [15:08:58]line Чек 190 22.10.2024 15:08 [15:08:58]line Смена: 536 ФФД: 1.0 [15:08:58]line ЗНМ: 0300000104 [15:08:58]line РНМ: 0000000000091764 [15:08:58]line Версия ККМ: 001 [15:08:58]line ФМ: 0000000000871759 [15:08:58]line ФД: 166435 [15:08:58]line ФПД: 119759993943257 [15:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150857&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166435&fm=119759993943257&tin=02508201610067®Number=0000000000091764&sum=120000 [15:08:58]OFD Sender: Processing packet 166435 [packets to send 48, broken 47] [15:08:58]ProducePacketName [15:08:58]name=ofd_packets/00166435 [15:08:58]OFD Sender: To server: pG, [15:08:58]CommunicateWithHost lk.salyk.kg:30040 [15:08:58]ConnectInit lk.salyk.kg [15:08:58]written 0, free lines is 4095 [15:08:58]Connected sock=11 [15:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 2B 07 01 40 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 09 C0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8A 02 00 35 04 06 00 6C EB CB E5 B4 D9 74 C5 E8 A0 58 F6 FC D6 [15:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F 1D 47 00 D6 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 8A 02 00 F4 03 04 00 74 66 17 67 B6 04 01 00 00 5D F3 47 B1 57 F6 48 DC [15:08:59]CommunicateWithHost err = 0 [15:08:59]CheckOFDResponse [15:08:59]1017 (14) - 77093643461234 [15:08:59]1041 (16) - 0000000000871759 [15:08:59]1040 (4) - 166435 [15:08:59]1012 (4) - 22.10.2024 08:46 [15:08:59]1206 (1) - 0 [15:08:59]OFD Sender: Remove packet 166435 [15:08:59]ProducePacketName [15:08:59]name=ofd_packets/00166435 [15:08:59]NVStorageDeleteData [15:08:59]Write to MH i2c: 01 00 00 BE 16 D4 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 D2 0C B9 [15:08:59]RasterBufferAndPrint [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]line [15:08:59]written 0, free lines is 3287 [15:08:59]MH_Cut [15:08:59]Write to MH i2c: D1 01 00 C5 16 01 AD [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 01 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D1 01 00 C5 16 00 AC [15:08:59]Write to MH i2c: 01 00 00 C6 16 DC [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]OFD Sender: No OFD packet to send [15:09:00]*** Cut start [15:09:00]*** Partial cut [15:09:00]*** CUTSNS_PIN = 1 [15:09:00]*** CUTSNS_PIN = 0 [15:09:00]*** Brake cut motor [15:09:00]Read from MH i2c: 01 [15:09:00]MH_I2C_Read... [15:09:00]*** Stop cut motor [15:09:00]*** Cut end [15:09:00]Read from MH i2c: 01 07 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [15:09:00]process_action close_receipt done [15:09:00]requested_data is exist [15:09:00]produce_requested_data [15:09:00]requested_item fm.sn is exist - process it [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 11 00 00 [15:09:00]Write to MH i2c: E2 08 00 C7 16 80 11 00 00 00 00 00 00 57 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 17 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 17 00 C7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [15:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:00]wFMCommunicate OK [15:09:00]requested_item fd.num is exist - process it [15:09:00]SAM_PROTO_GetFieldsCounters [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 13 00 00 [15:09:00]Write to MH i2c: E2 08 00 C8 16 80 13 00 00 00 00 00 00 5A [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 62 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 62 00 C8 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_GetFieldsCounters done [15:09:00]requested_item shift.num is exist - process it [15:09:00]requested_item shift.opened is exist - process it [15:09:00]req_shift_opened [15:09:00]FM_GetShiftState [15:09:00]SAM_PROTO_GetShiftState [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 13 01 00 [15:09:00]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AF [15:09:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_GetShiftState done [15:09:01]FM_GetShiftState done [15:09:01]req_shift_opened done [15:09:01]requested_item shift.open_date is exist - process it [15:09:01]req_shift_open_date [15:09:01]req_shift_open_date done [15:09:01]produce_requested_data done [15:09:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166435,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:09:01]process_action_free close_receipt [15:09:01]json_value_free [15:09:01]json_value_free done [15:09:01]process_json_proto returns [15:09:01]Send response to host [15:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166435,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:09:01]free response buf [15:09:01]execute_script done [15:09:01]execute_script returns [15:09:01]free content buf [15:09:01]Sock 9.Close socket [15:09:01]Sock 9.Thread stoped [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:18]accept exits with 7 [15:14:18]New connection [15:14:18]New thread 3067637092 created [15:14:18]Thread 3067493732 joined [15:14:18]Waiting for new connection... [15:14:18] Sock 7.Parse request [15:14:18]Sock 7.Check first char [15:14:18]Sock 7.First char is OK [15:14:18]request: POST /json_proto HTTP/1.0 [15:14:18]Method: POST [15:14:18]URL: /json_proto [15:14:18]Method is POST - this is cgi request [15:14:18]url: /json_proto [15:14:18]query_string will be loaded in cgi processing [15:14:18]execute_cgi json_proto POST (null) [15:14:18]execute_cgi path=json_proto method=POST [15:14:18]POST find Content-Length [15:14:18]Host: 172.17.53.195:8080 [15:14:18]Content-Length: 766 [15:14:18]Content-Type: application/json [15:14:18] [15:14:18]POST finish read [15:14:18]Found Content-Length = 766 [15:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:18]execute_script... [15:14:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:18]POST & json_proto [15:14:18]process_json_proto [15:14:18]json parsed OK: [15:14:18]protocol is kg_v1.0 [15:14:18]action value=close_receipt [15:14:18]process_action close_receipt [15:14:18]cmd_close_receipt [15:14:18]MH_GetDate [15:14:18]Write to MH i2c: F0 00 00 CA 16 CF [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: F0 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: F0 09 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: F0 09 00 CA 16 00 4B C1 17 67 21 48 4A 65 7A [15:14:18]GetLastDocTimeStamp 1729609737 [15:14:18]current date 1729610059 [15:14:18]FM_GetShiftState [15:14:18]SAM_PROTO_GetShiftState [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 13 01 00 [15:14:18]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0E 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B1 [15:14:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:14:18]wFMCommunicate OK [15:14:18]SAM_PROTO_GetShiftState done [15:14:18]FM_GetShiftState done [15:14:18]opened in 1729557463 [15:14:18]opened+sec_in_day 1729643863 [15:14:18]quantity*price = 40006 [15:14:18]sum+1 = 40007 [15:14:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 191 22.10.2024 15:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166436 ФПД: 34461400287673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166436&fm=34461400287673&tin=02508201610067®Number=0000000000091764&sum=40006 [15:14:19]StoreToDocumentArchive [15:14:19]shift 536 fd 166436 [15:14:19]save to /storage/0536/doc_00166436 [15:14:19]save last doc name /storage/0536/doc_00166436 to /storage/kkm_last_doc_name [15:14:19]save OK [15:14:19]Clear old archive folders... [15:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:19]tlvbuf is 00A3F5A0 [15:14:19]SAM_PROTO_ClearQueue [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 09 00 00 [15:14:19]Write to MH i2c: E2 08 00 D8 16 80 09 00 00 00 00 00 00 60 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [15:14:19]RAPDU: 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_ClearQueue done [15:14:19]KKMCreateOFDPacket [15:14:19]OFDProtocolAddRootSTLVToBuf [15:14:19]FM_MakeSignedData [15:14:19]FM_MakeSignedData [15:14:19]SAM_PROTO_SignData [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 0D 01 02 [15:14:19]Write to MH i2c: E2 08 00 D9 16 80 0D 01 02 00 00 00 00 68 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [15:14:19]RAPDU: 90 00 [15:14:19]wFMCommunicate OK [15:14:19]wFMCommunicate request_size=255 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4B C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8A 02 00 35 04 06 00 1F [15:14:19]Write to MH i2c: E2 02 01 DA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4B C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8A 02 00 35 04 06 00 1F 00 00 0B [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [15:14:19]RAPDU: 90 00 [15:14:19]wFMCommunicate OK [15:14:19]wFMCommunicate request_size=10 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 0D 02 02 05 57 AB 85 C9 B9 [15:14:19]Write to MH i2c: E2 0D 00 DB 16 80 0D 02 02 05 00 57 AB 85 C9 B9 00 00 7E [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [15:14:19]RAPDU: 90 00 [15:14:19]wFMCommunicate OK [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 0D 03 02 [15:14:19]Write to MH i2c: E2 08 00 DC 16 80 0D 03 02 00 00 00 00 6D [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0B 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0B 00 DC 16 00 1B 78 DA C3 8D 19 56 F9 90 00 93 [15:14:19]RAPDU: 1B 78 DA C3 8D 19 56 F9 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_SignData done [15:14:19]FM_MakeSignedData done [15:14:19]CreateOFDProtocolMessage [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 11 00 00 [15:14:19]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [15:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:14:19]wFMCommunicate OK [15:14:19]CreateOFDProtocolMessage done [15:14:19]OFDSenderStorePacket 166436 [15:14:19]StoreOFDPacket docnum=166436 [15:14:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A 81 07 01 A7 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4B C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8A 02 00 35 04 06 00 1F 57 AB 85 C9 B9 1B 78 DA C3 8D 19 56 F9 [15:14:19]CheckFolder [15:14:19]dirname=/storage/ofd_packets [15:14:19]CheckFolder done [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00166436 [15:14:19]NVStorageSaveData ofd_packets/00166436 [15:14:19]File name is /storage/ofd_packets/00166436 [15:14:19]Write 301 bytes [15:14:19]NVStorageSaveData done [15:14:19]OFDSenderStorePacket done [15:14:19]KKMCreateOFDPacket done [15:14:19]NVStorageSaveData kkm_last_timestamp [15:14:19]File name is /storage/kkm_last_timestamp [15:14:19]Write 4 bytes [15:14:19]NVStorageSaveData done [15:14:19]ExternCall_PrintAddStr [15:14:19]wPrintStart [15:14:19]Write to MH i2c: 01 00 00 DE 16 F4 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [15:14:19]RasterBufferAndPrint [15:14:19]line Счет N : (1)221015 [15:14:19]line ИНН: 02508201610067 [15:14:19]line Контрольно-Кассовый Чек [15:14:19]line ПРОДАЖА [15:14:19]line ТРК (МРК, ГНК) : 23 [15:14:19]line Товар: 2710124130 [15:14:19]line Аи-92-К-5 [15:14:19]line 5.980 * 66.90 [15:14:19]line = 400.06 [15:14:19]line НДС 12% НСП 1% [15:14:19]line > о реализуемом товаре [15:14:19]line ИТОГО: 400.06 [15:14:19]line НСП 1% : 3.54 [15:14:19]line НДС 12% : 42.48 [15:14:19]line Наличными: 0.00 [15:14:19]line Безнал.: 400.06 [15:14:19]line Место: АЗС № 161 "Партнер Нефть" [15:14:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:14:19]line СНО: Общий режим [15:14:19]line Чек 191 22.10.2024 15:14 [15:14:19]line Смена: 536 ФФД: 1.0 [15:14:19]line ЗНМ: 0300000104 [15:14:19]line РНМ: 0000000000091764 [15:14:19]line Версия ККМ: 001 [15:14:19]line Платежная система: Mbank [15:14:19]line ФМ: 0000000000871759 [15:14:19]line ФД: 166436 [15:14:19]line ФПД: 34461400287673 [15:14:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166436&fm=34461400287673&tin=02508201610067®Number=0000000000091764&sum=40006 [15:14:19]written 0, free lines is 4095 [15:14:19]OFD Sender: Processing packet 166436 [packets to send 48, broken 47] [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00166436 [15:14:20]OFD Sender: To server: pG, [15:14:20]CommunicateWithHost lk.salyk.kg:30040 [15:14:20]ConnectInit lk.salyk.kg [15:14:20]Connected sock=10 [15:14:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A 81 07 01 A7 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4B C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8A 02 00 35 04 06 00 1F 57 AB 85 C9 B9 1B 78 DA C3 8D 19 56 F9 [15:14:20]Write to MH i2c: 01 00 00 07 17 1E [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 FC 0C 2D [15:14:20]RasterBufferAndPrint [15:14:20]line [15:14:20]line [15:14:20]line [15:14:20]line [15:14:20]line [15:14:20]written 0, free lines is 3330 [15:14:20]MH_Cut [15:14:20]Write to MH i2c: D1 01 00 0E 17 01 F7 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: D1 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: D1 01 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: D1 01 00 0E 17 00 F6 [15:14:20]Write to MH i2c: 01 00 00 0F 17 26 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 7A 47 00 E9 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 8A 02 00 F4 03 04 00 B5 67 17 67 B6 04 01 00 00 23 DF B2 EE EC 1C CC 1C [15:14:20]CommunicateWithHost err = 0 [15:14:20]CheckOFDResponse [15:14:20]1017 (14) - 77093643461234 [15:14:20]1041 (16) - 0000000000871759 [15:14:20]1040 (4) - 166436 [15:14:20]1012 (4) - 22.10.2024 08:52 [15:14:20]1206 (1) - 0 [15:14:20]OFD Sender: Remove packet 166436 [15:14:20]ProducePacketName [15:14:20]name=ofd_packets/00166436 [15:14:20]NVStorageDeleteData [15:14:20]OFD Sender: No OFD packet to send [15:14:21]*** Cut start [15:14:21]*** Partial cut [15:14:21]*** CUTSNS_PIN = 1 [15:14:21]*** CUTSNS_PIN = 0 [15:14:21]*** Brake cut motor [15:14:21]Read from MH i2c: 01 [15:14:21]MH_I2C_Read... [15:14:21]*** Stop cut motor [15:14:21]*** Cut end [15:14:21]Read from MH i2c: 01 07 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: 01 07 00 0F 17 00 00 00 00 00 FF 0F 3B [15:14:21]process_action close_receipt done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:21]requested_item fm.sn is exist - process it [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 11 00 00 [15:14:21]Write to MH i2c: E2 08 00 10 17 80 11 00 00 00 00 00 00 A1 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 10 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [15:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:14:21]wFMCommunicate OK [15:14:21]requested_item fd.num is exist - process it [15:14:21]SAM_PROTO_GetFieldsCounters [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 00 00 [15:14:21]Write to MH i2c: E2 08 00 11 17 80 13 00 00 00 00 00 00 A4 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 11 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [15:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetFieldsCounters done [15:14:21]requested_item shift.num is exist - process it [15:14:21]requested_item shift.opened is exist - process it [15:14:21]req_shift_opened [15:14:21]FM_GetShiftState [15:14:21]SAM_PROTO_GetShiftState [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 01 00 [15:14:21]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F9 [15:14:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetShiftState done [15:14:21]FM_GetShiftState done [15:14:21]req_shift_opened done [15:14:21]requested_item shift.open_date is exist - process it [15:14:21]req_shift_open_date [15:14:21]req_shift_open_date done [15:14:21]produce_requested_data done [15:14:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166436,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:14:21]process_action_free close_receipt [15:14:21]json_value_free [15:14:21]json_value_free done [15:14:21]process_json_proto returns [15:14:21]Send response to host [15:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166436,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:14:21]free response buf [15:14:21]execute_script done [15:14:21]execute_script returns [15:14:21]free content buf [15:14:21]Sock 7.Close socket [15:14:21]Sock 7.Thread stoped [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:42]accept exits with 9 [15:16:42]New connection [15:16:42]New thread 3067493732 created [15:16:42]Thread 3067637092 joined [15:16:42]Waiting for new connection... [15:16:42] Sock 9.Parse request [15:16:42]Sock 9.Check first char [15:16:42]Sock 9.First char is OK [15:16:42]request: POST /json_proto HTTP/1.0 [15:16:42]Method: POST [15:16:42]URL: /json_proto [15:16:42]Method is POST - this is cgi request [15:16:42]url: /json_proto [15:16:42]query_string will be loaded in cgi processing [15:16:42]execute_cgi json_proto POST (null) [15:16:42]execute_cgi path=json_proto method=POST [15:16:42]POST find Content-Length [15:16:42]Host: 172.17.53.195:8080 [15:16:42]Content-Length: 677 [15:16:42]Content-Type: application/json [15:16:42] [15:16:42]POST finish read [15:16:42]Found Content-Length = 677 [15:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:42]execute_script... [15:16: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)221016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:42]POST & json_proto [15:16:42]process_json_proto [15:16:42]json parsed OK: [15:16:42]protocol is kg_v1.0 [15:16:42]action value=close_receipt [15:16:42]process_action close_receipt [15:16:42]cmd_close_receipt [15:16:42]MH_GetDate [15:16:42]Write to MH i2c: F0 00 00 13 17 19 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 09 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 09 00 13 17 00 DB C1 17 67 21 48 4A 65 54 [15:16:42]GetLastDocTimeStamp 1729610059 [15:16:42]current date 1729610203 [15:16:42]FM_GetShiftState [15:16:42]SAM_PROTO_GetShiftState [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 13 01 00 [15:16:42]Write to MH i2c: E2 08 00 14 17 80 13 01 00 00 00 00 00 A8 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 14 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [15:16:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_GetShiftState done [15:16:42]FM_GetShiftState done [15:16:42]opened in 1729557463 [15:16:42]opened+sec_in_day 1729643863 [15:16:42]quantity*price = 60009 [15:16:42]sum+1 = 60010 [15:16:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 192 22.10.2024 15:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166437 ФПД: 72126785352304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166437&fm=72126785352304&tin=02508201610067®Number=0000000000091764&sum=60000 [15:16:43]StoreToDocumentArchive [15:16:43]shift 536 fd 166437 [15:16:43]save to /storage/0536/doc_00166437 [15:16:43]save last doc name /storage/0536/doc_00166437 to /storage/kkm_last_doc_name [15:16:43]save OK [15:16:43]Clear old archive folders... [15:16:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:43]tlvbuf is 00A45640 [15:16:43]SAM_PROTO_ClearQueue [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 09 00 00 [15:16:43]Write to MH i2c: E2 08 00 21 17 80 09 00 00 00 00 00 00 AA [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]SAM_PROTO_ClearQueue done [15:16:43]KKMCreateOFDPacket [15:16:43]OFDProtocolAddRootSTLVToBuf [15:16:43]FM_MakeSignedData [15:16:43]FM_MakeSignedData [15:16:43]SAM_PROTO_SignData [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 0D 01 02 [15:16:43]Write to MH i2c: E2 08 00 22 17 80 0D 01 02 00 00 00 00 B2 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]wFMCommunicate request_size=255 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8A 02 00 35 04 06 00 41 [15:16:43]Write to MH i2c: E2 02 01 23 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8A 02 00 35 04 06 00 41 00 00 0B [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 03 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [15:16:44]RAPDU: 90 00 [15:16:44]wFMCommunicate OK [15:16:44]wFMCommunicate request_size=10 [15:16:44]MH_SAM_APDU [15:16:44]CAPDU: 80 0D 02 02 05 99 53 6B 72 70 [15:16:44]Write to MH i2c: E2 0D 00 24 17 80 0D 02 02 05 00 99 53 6B 72 70 00 00 F8 [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 03 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [15:16:44]RAPDU: 90 00 [15:16:44]wFMCommunicate OK [15:16:44]wFMCommunicate request_size=4 [15:16:44]MH_SAM_APDU [15:16:44]CAPDU: 80 0D 03 02 [15:16:44]Write to MH i2c: E2 08 00 25 17 80 0D 03 02 00 00 00 00 B7 [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 0B 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 0B 00 25 17 00 A6 C2 D8 52 D5 7F 6E BF 90 00 CB [15:16:44]RAPDU: A6 C2 D8 52 D5 7F 6E BF 90 00 [15:16:44]wFMCommunicate OK [15:16:44]SAM_PROTO_SignData done [15:16:44]FM_MakeSignedData done [15:16:44]CreateOFDProtocolMessage [15:16:44]wFMCommunicate request_size=4 [15:16:44]MH_SAM_APDU [15:16:44]CAPDU: 80 11 00 00 [15:16:44]Write to MH i2c: E2 08 00 26 17 80 11 00 00 00 00 00 00 B7 [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 17 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 17 00 26 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [15:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:16:44]wFMCommunicate OK [15:16:44]CreateOFDProtocolMessage done [15:16:44]OFDSenderStorePacket 166437 [15:16:44]StoreOFDPacket docnum=166437 [15:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D1 B4 07 01 43 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8A 02 00 35 04 06 00 41 99 53 6B 72 70 A6 C2 D8 52 D5 7F 6E BF [15:16:44]CheckFolder [15:16:44]dirname=/storage/ofd_packets [15:16:44]CheckFolder done [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00166437 [15:16:44]NVStorageSaveData ofd_packets/00166437 [15:16:44]File name is /storage/ofd_packets/00166437 [15:16:44]Write 301 bytes [15:16:44]NVStorageSaveData done [15:16:44]OFDSenderStorePacket done [15:16:44]KKMCreateOFDPacket done [15:16:44]NVStorageSaveData kkm_last_timestamp [15:16:44]File name is /storage/kkm_last_timestamp [15:16:44]Write 4 bytes [15:16:44]NVStorageSaveData done [15:16:44]ExternCall_PrintAddStr [15:16:44]wPrintStart [15:16:44]Write to MH i2c: 01 00 00 27 17 3E [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 27 17 00 00 00 00 00 FF 0F 53 [15:16:44]RasterBufferAndPrint [15:16:44]line Счет N : (1)221016 [15:16:44]line ИНН: 02508201610067 [15:16:44]line Контрольно-Кассовый Чек [15:16:44]line ПРОДАЖА [15:16:44]line ТРК (МРК, ГНК) : 23 [15:16:44]line Товар: 2710124130 [15:16:44]line Аи-92-К-5 [15:16:44]line 8.970 * 66.90 [15:16:44]line = 600.09 [15:16:44]line НДС 12% НСП 1% [15:16:44]line > о реализуемом товаре [15:16:44]line ОКРУГЛЕНИЕ: -0.09 [15:16:44]line ИТОГО: 600.00 [15:16:44]line Внесено: 600.00 [15:16:44]line СДАЧА: 0.00 [15:16:44]line НСП 1% : 5.31 [15:16:44]line НДС 12% : 63.73 [15:16:44]line Наличными: 600.00 [15:16:44]line Безнал.: 0.00 [15:16:44]line Место: АЗС № 161 "Партнер Нефть" [15:16:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:16:44]line СНО: Общий режим [15:16:44]line Чек 192 22.10.2024 15:16 [15:16:44]line Смена: 536 ФФД: 1.0 [15:16:44]line ЗНМ: 0300000104 [15:16:44]line РНМ: 0000000000091764 [15:16:44]line Версия ККМ: 001 [15:16:44]line ФМ: 0000000000871759 [15:16:44]line ФД: 166437 [15:16:44]line ФПД: 72126785352304 [15:16:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166437&fm=72126785352304&tin=02508201610067®Number=0000000000091764&sum=60000 [15:16:44]OFD Sender: Processing packet 166437 [packets to send 48, broken 47] [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00166437 [15:16:44]OFD Sender: To server: pG, [15:16:44]CommunicateWithHost lk.salyk.kg:30040 [15:16:44]ConnectInit lk.salyk.kg [15:16:44]written 0, free lines is 4095 [15:16:44]Connected sock=10 [15:16:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D1 B4 07 01 43 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8A 02 00 35 04 06 00 41 99 53 6B 72 70 A6 C2 D8 52 D5 7F 6E BF [15:16:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 35 47 00 AC D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 8A 02 00 F4 03 04 00 46 68 17 67 B6 04 01 00 00 34 E4 E9 B6 5D 5A E1 C6 [15:16:44]CommunicateWithHost err = 0 [15:16:44]CheckOFDResponse [15:16:44]1017 (14) - 77093643461234 [15:16:44]1041 (16) - 0000000000871759 [15:16:44]1040 (4) - 166437 [15:16:44]1012 (4) - 22.10.2024 08:54 [15:16:44]1206 (1) - 0 [15:16:44]OFD Sender: Remove packet 166437 [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00166437 [15:16:44]NVStorageDeleteData [15:16:45]Write to MH i2c: 01 00 00 52 17 69 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: 01 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: 01 07 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: 01 07 00 52 17 00 00 00 00 00 D4 0C 50 [15:16:45]RasterBufferAndPrint [15:16:45]line [15:16:45]line [15:16:45]line [15:16:45]line [15:16:45]line [15:16:45]written 0, free lines is 3288 [15:16:45]MH_Cut [15:16:45]Write to MH i2c: D1 01 00 59 17 01 42 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: D1 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: D1 01 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: D1 01 00 59 17 00 41 [15:16:45]Write to MH i2c: 01 00 00 5A 17 71 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]OFD Sender: No OFD packet to send [15:16:45]*** Cut start [15:16:45]*** Partial cut [15:16:45]*** CUTSNS_PIN = 1 [15:16:45]*** CUTSNS_PIN = 0 [15:16:46]*** Brake cut motor [15:16:46]Read from MH i2c: 01 [15:16:46]MH_I2C_Read... [15:16:46]*** Stop cut motor [15:16:46]*** Cut end [15:16:46]Read from MH i2c: 01 07 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 FF 0F 86 [15:16:46]process_action close_receipt done [15:16:46]requested_data is exist [15:16:46]produce_requested_data [15:16:46]requested_item fm.sn is exist - process it [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 11 00 00 [15:16:46]Write to MH i2c: E2 08 00 5B 17 80 11 00 00 00 00 00 00 EC [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:46]Read from MH i2c: E2 17 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 5B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [15:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:16:46]wFMCommunicate OK [15:16:46]requested_item fd.num is exist - process it [15:16:46]SAM_PROTO_GetFieldsCounters [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 13 00 00 [15:16:46]Write to MH i2c: E2 08 00 5C 17 80 13 00 00 00 00 00 00 EF [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 62 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 62 00 5C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [15:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_GetFieldsCounters done [15:16:46]requested_item shift.num is exist - process it [15:16:46]requested_item shift.opened is exist - process it [15:16:46]req_shift_opened [15:16:46]FM_GetShiftState [15:16:46]SAM_PROTO_GetShiftState [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 13 01 00 [15:16:46]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0E 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 44 [15:16:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_GetShiftState done [15:16:46]FM_GetShiftState done [15:16:46]req_shift_opened done [15:16:46]requested_item shift.open_date is exist - process it [15:16:46]req_shift_open_date [15:16:46]req_shift_open_date done [15:16:46]produce_requested_data done [15:16:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166437,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:16:46]process_action_free close_receipt [15:16:46]json_value_free [15:16:46]json_value_free done [15:16:46]process_json_proto returns [15:16:46]Send response to host [15:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166437,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:16:46]free response buf [15:16:46]execute_script done [15:16:46]execute_script returns [15:16:46]free content buf [15:16:46]Sock 9.Close socket [15:16:46]Sock 9.Thread stoped [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:14]accept exits with 7 [15:17:14]New connection [15:17:14]New thread 3067637092 created [15:17:14]Thread 3067493732 joined [15:17:14]Waiting for new connection... [15:17:14] Sock 7.Parse request [15:17:14]Sock 7.Check first char [15:17:14]Sock 7.First char is OK [15:17:14]request: POST /json_proto HTTP/1.0 [15:17:14]Method: POST [15:17:14]URL: /json_proto [15:17:14]Method is POST - this is cgi request [15:17:14]url: /json_proto [15:17:14]query_string will be loaded in cgi processing [15:17:14]execute_cgi json_proto POST (null) [15:17:14]execute_cgi path=json_proto method=POST [15:17:14]POST find Content-Length [15:17:14]Host: 172.17.53.195:8080 [15:17:14]Content-Length: 679 [15:17:14]Content-Type: application/json [15:17:14] [15:17:14]POST finish read [15:17:14]Found Content-Length = 679 [15:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:14]execute_script... [15:17:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:14]POST & json_proto [15:17:14]process_json_proto [15:17:14]json parsed OK: [15:17:14]protocol is kg_v1.0 [15:17:14]action value=close_receipt [15:17:14]process_action close_receipt [15:17:14]cmd_close_receipt [15:17:14]MH_GetDate [15:17:14]Write to MH i2c: F0 00 00 5E 17 64 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: F0 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: F0 09 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: F0 09 00 5E 17 00 FB C1 17 67 21 48 4A 65 BF [15:17:14]GetLastDocTimeStamp 1729610203 [15:17:14]current date 1729610235 [15:17:14]FM_GetShiftState [15:17:14]SAM_PROTO_GetShiftState [15:17:14]wFMCommunicate request_size=4 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 13 01 00 [15:17:14]Write to MH i2c: E2 08 00 5F 17 80 13 01 00 00 00 00 00 F3 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0E 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0E 00 5F 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [15:17:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:17:14]wFMCommunicate OK [15:17:14]SAM_PROTO_GetShiftState done [15:17:14]FM_GetShiftState done [15:17:14]opened in 1729557463 [15:17:14]opened+sec_in_day 1729643863 [15:17:14]quantity*price = 200025 [15:17:14]sum+1 = 200026 [15:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 193 22.10.2024 15:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166438 ФПД: 228828276309176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151715&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166438&fm=228828276309176&tin=02508201610067®Number=0000000000091764&sum=200000 [15:17:15]StoreToDocumentArchive [15:17:15]shift 536 fd 166438 [15:17:15]save to /storage/0536/doc_00166438 [15:17:15]save last doc name /storage/0536/doc_00166438 to /storage/kkm_last_doc_name [15:17:15]save OK [15:17:15]Clear old archive folders... [15:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:15]tlvbuf is 00A457F0 [15:17:15]SAM_PROTO_ClearQueue [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 09 00 00 [15:17:15]Write to MH i2c: E2 08 00 6C 17 80 09 00 00 00 00 00 00 F5 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [15:17:15]RAPDU: 90 00 [15:17:15]wFMCommunicate OK [15:17:15]SAM_PROTO_ClearQueue done [15:17:15]KKMCreateOFDPacket [15:17:15]OFDProtocolAddRootSTLVToBuf [15:17:15]FM_MakeSignedData [15:17:15]FM_MakeSignedData [15:17:15]SAM_PROTO_SignData [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 0D 01 02 [15:17:15]Write to MH i2c: E2 08 00 6D 17 80 0D 01 02 00 00 00 00 FD [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [15:17:15]RAPDU: 90 00 [15:17:15]wFMCommunicate OK [15:17:15]wFMCommunicate request_size=255 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8A 02 00 35 04 06 00 D0 1E 3C 1F [15:17:15]Write to MH i2c: E2 02 01 6E 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8A 02 00 35 04 06 00 D0 1E 3C 1F 00 00 87 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]OFD Sender: No OFD packet to send [15:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [15:17:15]RAPDU: 90 00 [15:17:15]wFMCommunicate OK [15:17:15]wFMCommunicate request_size=7 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 0D 02 02 02 BC B8 [15:17:15]Write to MH i2c: E2 0A 00 6F 17 80 0D 02 02 02 00 BC B8 00 00 78 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [15:17:15]RAPDU: 90 00 [15:17:15]wFMCommunicate OK [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 0D 03 02 [15:17:15]Write to MH i2c: E2 08 00 70 17 80 0D 03 02 00 00 00 00 02 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 0B 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 0B 00 70 17 00 4F C5 EA 78 2A EC 3C 1E 90 00 E9 [15:17:15]RAPDU: 4F C5 EA 78 2A EC 3C 1E 90 00 [15:17:15]wFMCommunicate OK [15:17:15]SAM_PROTO_SignData done [15:17:15]FM_MakeSignedData done [15:17:15]CreateOFDProtocolMessage [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 11 00 00 [15:17:15]Write to MH i2c: E2 08 00 71 17 80 11 00 00 00 00 00 00 02 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 17 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 17 00 71 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [15:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:15]wFMCommunicate OK [15:17:15]CreateOFDProtocolMessage done [15:17:15]OFDSenderStorePacket 166438 [15:17:15]StoreOFDPacket docnum=166438 [15:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 92 2F 04 01 8E 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8A 02 00 35 04 06 00 D0 1E 3C 1F BC B8 4F C5 EA 78 2A EC 3C 1E [15:17:15]CheckFolder [15:17:15]dirname=/storage/ofd_packets [15:17:15]CheckFolder done [15:17:15]ProducePacketName [15:17:15]name=ofd_packets/00166438 [15:17:15]NVStorageSaveData ofd_packets/00166438 [15:17:15]File name is /storage/ofd_packets/00166438 [15:17:15]Write 298 bytes [15:17:15]NVStorageSaveData done [15:17:15]OFDSenderStorePacket done [15:17:15]KKMCreateOFDPacket done [15:17:15]NVStorageSaveData kkm_last_timestamp [15:17:15]File name is /storage/kkm_last_timestamp [15:17:15]Write 4 bytes [15:17:15]NVStorageSaveData done [15:17:15]ExternCall_PrintAddStr [15:17:15]wPrintStart [15:17:15]Write to MH i2c: 01 00 00 72 17 89 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: 01 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: 01 07 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: 01 07 00 72 17 00 00 00 00 00 FF 0F 9E [15:17:15]RasterBufferAndPrint [15:17:15]line Счет N : (1)221017 [15:17:15]line ИНН: 02508201610067 [15:17:15]line Контрольно-Кассовый Чек [15:17:15]line ПРОДАЖА [15:17:15]line ТРК (МРК, ГНК) : 41 [15:17:15]line Товар: 2710194210 [15:17:15]line ДТ-К-5 [15:17:15]line 26.250 * 76.20 [15:17:15]line = 2000.25 [15:17:15]line НДС 12% НСП 1% [15:17:15]line > о реализуемом товаре [15:17:15]line ОКРУГЛЕНИЕ: -0.25 [15:17:15]line ИТОГО: 2000.00 [15:17:15]line Внесено: 2000.00 [15:17:15]line СДАЧА: 0.00 [15:17:15]line НСП 1% : 17.70 [15:17:15]line НДС 12% : 212.42 [15:17:15]line Наличными: 2000.00 [15:17:15]line Безнал.: 0.00 [15:17:15]line Место: АЗС № 161 "Партнер Нефть" [15:17:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:17:15]line СНО: Общий режим [15:17:15]line Чек 193 22.10.2024 15:17 [15:17:16]line Смена: 536 ФФД: 1.0 [15:17:16]line ЗНМ: 0300000104 [15:17:16]line РНМ: 0000000000091764 [15:17:16]line Версия ККМ: 001 [15:17:16]line ФМ: 0000000000871759 [15:17:16]line ФД: 166438 [15:17:16]line ФПД: 228828276309176 [15:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151715&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166438&fm=228828276309176&tin=02508201610067®Number=0000000000091764&sum=200000 [15:17:16]OFD Sender: Processing packet 166438 [packets to send 48, broken 47] [15:17:16]ProducePacketName [15:17:16]name=ofd_packets/00166438 [15:17:16]OFD Sender: To server: pG, [15:17:16]CommunicateWithHost lk.salyk.kg:30040 [15:17:16]ConnectInit lk.salyk.kg [15:17:16]written 0, free lines is 4095 [15:17:16]Connected sock=10 [15:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 92 2F 04 01 8E 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 FB C1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8A 02 00 35 04 06 00 D0 1E 3C 1F BC B8 4F C5 EA 78 2A EC 3C 1E [15:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC 06 47 00 0B EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 8A 02 00 F4 03 04 00 65 68 17 67 B6 04 01 00 00 A4 00 79 6C F4 77 1D F8 [15:17:16]CommunicateWithHost err = 0 [15:17:16]CheckOFDResponse [15:17:16]1017 (14) - 77093643461234 [15:17:16]1041 (16) - 0000000000871759 [15:17:16]1040 (4) - 166438 [15:17:16]1012 (4) - 22.10.2024 08:55 [15:17:16]1206 (1) - 0 [15:17:16]OFD Sender: Remove packet 166438 [15:17:16]ProducePacketName [15:17:16]name=ofd_packets/00166438 [15:17:16]NVStorageDeleteData [15:17:16]Write to MH i2c: 01 00 00 9D 17 B4 [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: 01 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: 01 07 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: 01 07 00 9D 17 00 00 00 00 00 D2 0C 99 [15:17:16]RasterBufferAndPrint [15:17:16]line [15:17:16]line [15:17:16]line [15:17:16]line [15:17:16]line [15:17:16]written 0, free lines is 3287 [15:17:16]MH_Cut [15:17:16]Write to MH i2c: D1 01 00 A4 17 01 8D [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: D1 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: D1 01 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: D1 01 00 A4 17 00 8C [15:17:16]Write to MH i2c: 01 00 00 A5 17 BC [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]OFD Sender: No OFD packet to send [15:17:17]*** Cut start [15:17:17]*** Partial cut [15:17:17]*** CUTSNS_PIN = 1 [15:17:17]*** CUTSNS_PIN = 0 [15:17:17]*** Brake cut motor [15:17:17]Read from MH i2c: 01 [15:17:17]MH_I2C_Read... [15:17:17]*** Stop cut motor [15:17:17]*** Cut end [15:17:17]Read from MH i2c: 01 07 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: 01 07 00 A5 17 00 00 00 00 00 FF 0F D1 [15:17:17]process_action close_receipt done [15:17:17]requested_data is exist [15:17:17]produce_requested_data [15:17:17]requested_item fm.sn is exist - process it [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 11 00 00 [15:17:17]Write to MH i2c: E2 08 00 A6 17 80 11 00 00 00 00 00 00 37 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 17 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 17 00 A6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [15:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:17]wFMCommunicate OK [15:17:17]requested_item fd.num is exist - process it [15:17:17]SAM_PROTO_GetFieldsCounters [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 13 00 00 [15:17:17]Write to MH i2c: E2 08 00 A7 17 80 13 00 00 00 00 00 00 3A [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:18]Read from MH i2c: E2 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 62 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 62 00 A7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:18]wFMCommunicate OK [15:17:18]SAM_PROTO_GetFieldsCounters done [15:17:18]requested_item shift.num is exist - process it [15:17:18]requested_item shift.opened is exist - process it [15:17:18]req_shift_opened [15:17:18]FM_GetShiftState [15:17:18]SAM_PROTO_GetShiftState [15:17:18]wFMCommunicate request_size=4 [15:17:18]MH_SAM_APDU [15:17:18]CAPDU: 80 13 01 00 [15:17:18]Write to MH i2c: E2 08 00 A8 17 80 13 01 00 00 00 00 00 3C [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:18]Read from MH i2c: E2 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 0E 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: E2 0E 00 A8 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8F [15:17:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:17:18]wFMCommunicate OK [15:17:18]SAM_PROTO_GetShiftState done [15:17:18]FM_GetShiftState done [15:17:18]req_shift_opened done [15:17:18]requested_item shift.open_date is exist - process it [15:17:18]req_shift_open_date [15:17:18]req_shift_open_date done [15:17:18]produce_requested_data done [15:17:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166438,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:17:18]process_action_free close_receipt [15:17:18]json_value_free [15:17:18]json_value_free done [15:17:18]process_json_proto returns [15:17:18]Send response to host [15:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166438,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:17:18]free response buf [15:17:18]execute_script done [15:17:18]execute_script returns [15:17:18]free content buf [15:17:18]Sock 7.Close socket [15:17:18]Sock 7.Thread stoped [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:48]accept exits with 9 [15:17:48]New connection [15:17:48]New thread 3067493732 created [15:17:48]Thread 3067637092 joined [15:17:48]Waiting for new connection... [15:17:48] Sock 9.Parse request [15:17:48]Sock 9.Check first char [15:17:48]Sock 9.First char is OK [15:17:48]request: POST /json_proto HTTP/1.0 [15:17:48]Method: POST [15:17:48]URL: /json_proto [15:17:48]Method is POST - this is cgi request [15:17:48]url: /json_proto [15:17:48]query_string will be loaded in cgi processing [15:17:48]execute_cgi json_proto POST (null) [15:17:48]execute_cgi path=json_proto method=POST [15:17:48]POST find Content-Length [15:17:48]Host: 172.17.53.195:8080 [15:17:48]Content-Length: 679 [15:17:48]Content-Type: application/json [15:17:48] [15:17:48]POST finish read [15:17:48]Found Content-Length = 679 [15:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:48]execute_script... [15:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:48]POST & json_proto [15:17:48]process_json_proto [15:17:48]json parsed OK: [15:17:48]protocol is kg_v1.0 [15:17:48]action value=close_receipt [15:17:48]process_action close_receipt [15:17:48]cmd_close_receipt [15:17:48]MH_GetDate [15:17:48]Write to MH i2c: F0 00 00 A9 17 AF [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: F0 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: F0 09 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: F0 09 00 A9 17 00 1D C2 17 67 21 48 4A 65 2D [15:17:48]GetLastDocTimeStamp 1729610235 [15:17:48]current date 1729610269 [15:17:48]FM_GetShiftState [15:17:48]SAM_PROTO_GetShiftState [15:17:48]wFMCommunicate request_size=4 [15:17:48]MH_SAM_APDU [15:17:48]CAPDU: 80 13 01 00 [15:17:48]Write to MH i2c: E2 08 00 AA 17 80 13 01 00 00 00 00 00 3E [15:17:48]Write i2c OK [15:17:48]MH_I2C_Read... [15:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:48]Read from MH i2c: E2 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 0E 00 [15:17:48]MH_I2C_Read... [15:17:48]Read from MH i2c: E2 0E 00 AA 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [15:17:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:17:48]wFMCommunicate OK [15:17:48]SAM_PROTO_GetShiftState done [15:17:48]FM_GetShiftState done [15:17:48]opened in 1729557463 [15:17:48]opened+sec_in_day 1729643863 [15:17:48]quantity*price = 100050 [15:17:48]sum+1 = 100052 [15:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 194 22.10.2024 15:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166439 ФПД: 152782825719147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166439&fm=152782825719147&tin=02508201610067®Number=0000000000091764&sum=100000 [15:17:49]StoreToDocumentArchive [15:17:49]shift 536 fd 166439 [15:17:49]save to /storage/0536/doc_00166439 [15:17:49]save last doc name /storage/0536/doc_00166439 to /storage/kkm_last_doc_name [15:17:49]save OK [15:17:49]Clear old archive folders... [15:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:49]tlvbuf is 00A3F2C0 [15:17:49]SAM_PROTO_ClearQueue [15:17:49]wFMCommunicate request_size=4 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 09 00 00 [15:17:49]Write to MH i2c: E2 08 00 B7 17 80 09 00 00 00 00 00 00 40 [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [15:17:49]RAPDU: 90 00 [15:17:49]wFMCommunicate OK [15:17:49]SAM_PROTO_ClearQueue done [15:17:49]KKMCreateOFDPacket [15:17:49]OFDProtocolAddRootSTLVToBuf [15:17:49]FM_MakeSignedData [15:17:49]FM_MakeSignedData [15:17:49]SAM_PROTO_SignData [15:17:49]wFMCommunicate request_size=4 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 0D 01 02 [15:17:49]Write to MH i2c: E2 08 00 B8 17 80 0D 01 02 00 00 00 00 48 [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [15:17:49]RAPDU: 90 00 [15:17:49]wFMCommunicate OK [15:17:49]wFMCommunicate request_size=255 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1D C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8A 02 00 35 04 06 00 8A F4 86 0E [15:17:49]Write to MH i2c: E2 02 01 B9 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1D C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8A 02 00 35 04 06 00 8A F4 86 0E 00 00 D2 [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [15:17:49]RAPDU: 90 00 [15:17:49]wFMCommunicate OK [15:17:49]wFMCommunicate request_size=7 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 0D 02 02 02 05 6B [15:17:49]Write to MH i2c: E2 0A 00 BA 17 80 0D 02 02 02 00 05 6B 00 00 BF [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [15:17:49]RAPDU: 90 00 [15:17:49]wFMCommunicate OK [15:17:49]wFMCommunicate request_size=4 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 0D 03 02 [15:17:49]Write to MH i2c: E2 08 00 BB 17 80 0D 03 02 00 00 00 00 4D [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 0B 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 0B 00 BB 17 00 FE EC E1 BE B9 61 32 4E 90 00 71 [15:17:49]RAPDU: FE EC E1 BE B9 61 32 4E 90 00 [15:17:49]wFMCommunicate OK [15:17:49]SAM_PROTO_SignData done [15:17:49]FM_MakeSignedData done [15:17:49]CreateOFDProtocolMessage [15:17:49]wFMCommunicate request_size=4 [15:17:49]MH_SAM_APDU [15:17:49]CAPDU: 80 11 00 00 [15:17:49]Write to MH i2c: E2 08 00 BC 17 80 11 00 00 00 00 00 00 4D [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:49]Read from MH i2c: E2 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 17 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: E2 17 00 BC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [15:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:49]wFMCommunicate OK [15:17:49]CreateOFDProtocolMessage done [15:17:49]OFDSenderStorePacket 166439 [15:17:49]StoreOFDPacket docnum=166439 [15:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 06 C9 04 01 F0 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1D C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8A 02 00 35 04 06 00 8A F4 86 0E 05 6B FE EC E1 BE B9 61 32 4E [15:17:49]CheckFolder [15:17:49]dirname=/storage/ofd_packets [15:17:49]CheckFolder done [15:17:49]ProducePacketName [15:17:49]name=ofd_packets/00166439 [15:17:49]NVStorageSaveData ofd_packets/00166439 [15:17:49]File name is /storage/ofd_packets/00166439 [15:17:49]Write 298 bytes [15:17:49]NVStorageSaveData done [15:17:49]OFDSenderStorePacket done [15:17:49]KKMCreateOFDPacket done [15:17:49]NVStorageSaveData kkm_last_timestamp [15:17:49]File name is /storage/kkm_last_timestamp [15:17:49]Write 4 bytes [15:17:49]NVStorageSaveData done [15:17:49]ExternCall_PrintAddStr [15:17:49]wPrintStart [15:17:49]Write to MH i2c: 01 00 00 BD 17 D4 [15:17:49]Write i2c OK [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: 01 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: 01 07 00 [15:17:49]MH_I2C_Read... [15:17:49]Read from MH i2c: 01 07 00 BD 17 00 00 00 00 00 FF 0F E9 [15:17:49]RasterBufferAndPrint [15:17:49]line Счет N : (1)221018 [15:17:49]line ИНН: 02508201610067 [15:17:49]line Контрольно-Кассовый Чек [15:17:49]line ПРОДАЖА [15:17:49]line ТРК (МРК, ГНК) : 11 [15:17:49]line Товар: 2710194210 [15:17:49]line ДТ-К-5 [15:17:49]line 13.130 * 76.20 [15:17:49]line = 1000.51 [15:17:49]line НДС 12% НСП 1% [15:17:49]line > о реализуемом товаре [15:17:49]line ОКРУГЛЕНИЕ: -0.51 [15:17:49]line ИТОГО: 1000.00 [15:17:49]line Внесено: 1000.00 [15:17:49]line СДАЧА: 0.00 [15:17:49]line НСП 1% : 8.85 [15:17:49]line НДС 12% : 106.25 [15:17:49]line Наличными: 1000.00 [15:17:49]line Безнал.: 0.00 [15:17:49]line Место: АЗС № 161 "Партнер Нефть" [15:17:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:17:49]line СНО: Общий режим [15:17:49]line Чек 194 22.10.2024 15:17 [15:17:49]line Смена: 536 ФФД: 1.0 [15:17:49]line ЗНМ: 0300000104 [15:17:49]line РНМ: 0000000000091764 [15:17:49]line Версия ККМ: 001 [15:17:49]line ФМ: 0000000000871759 [15:17:49]line ФД: 166439 [15:17:49]line ФПД: 152782825719147 [15:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166439&fm=152782825719147&tin=02508201610067®Number=0000000000091764&sum=100000 [15:17:50]OFD Sender: Processing packet 166439 [packets to send 48, broken 47] [15:17:50]ProducePacketName [15:17:50]name=ofd_packets/00166439 [15:17:50]OFD Sender: To server: pG, [15:17:50]CommunicateWithHost lk.salyk.kg:30040 [15:17:50]ConnectInit lk.salyk.kg [15:17:50]written 0, free lines is 4095 [15:17:50]Connected sock=10 [15:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 06 C9 04 01 F0 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1D C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8A 02 00 35 04 06 00 8A F4 86 0E 05 6B FE EC E1 BE B9 61 32 4E [15:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EB 24 47 00 7E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 8A 02 00 F4 03 04 00 88 68 17 67 B6 04 01 00 00 39 6F E9 C0 92 D9 AB 53 [15:17:50]CommunicateWithHost err = 0 [15:17:50]CheckOFDResponse [15:17:50]1017 (14) - 77093643461234 [15:17:50]1041 (16) - 0000000000871759 [15:17:50]1040 (4) - 166439 [15:17:50]1012 (4) - 22.10.2024 08:55 [15:17:50]1206 (1) - 0 [15:17:50]OFD Sender: Remove packet 166439 [15:17:50]ProducePacketName [15:17:50]name=ofd_packets/00166439 [15:17:50]NVStorageDeleteData [15:17:50]Write to MH i2c: 01 00 00 E8 17 FF [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: 01 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: 01 07 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 CE 0C E0 [15:17:50]RasterBufferAndPrint [15:17:50]line [15:17:50]line [15:17:50]line [15:17:50]line [15:17:50]line [15:17:50]written 0, free lines is 3285 [15:17:50]MH_Cut [15:17:50]Write to MH i2c: D1 01 00 EF 17 01 D8 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: D1 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: D1 01 00 [15:17:50]MH_I2C_Read... [15:17:50]Read from MH i2c: D1 01 00 EF 17 00 D7 [15:17:50]Write to MH i2c: 01 00 00 F0 17 07 [15:17:50]Write i2c OK [15:17:50]MH_I2C_Read... [15:17:51]OFD Sender: No OFD packet to send [15:17:51]*** Cut start [15:17:51]*** Partial cut [15:17:51]*** CUTSNS_PIN = 1 [15:17:51]*** CUTSNS_PIN = 0 [15:17:51]*** Brake cut motor [15:17:52]Read from MH i2c: 01 [15:17:52]MH_I2C_Read... [15:17:52]*** Stop cut motor [15:17:52]*** Cut end [15:17:52]Read from MH i2c: 01 07 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 07 00 F0 17 00 00 00 00 00 FF 0F 1C [15:17:52]process_action close_receipt done [15:17:52]requested_data is exist [15:17:52]produce_requested_data [15:17:52]requested_item fm.sn is exist - process it [15:17:52]wFMCommunicate request_size=4 [15:17:52]MH_SAM_APDU [15:17:52]CAPDU: 80 11 00 00 [15:17:52]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:52]Read from MH i2c: E2 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 17 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [15:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:52]wFMCommunicate OK [15:17:52]requested_item fd.num is exist - process it [15:17:52]SAM_PROTO_GetFieldsCounters [15:17:52]wFMCommunicate request_size=4 [15:17:52]MH_SAM_APDU [15:17:52]CAPDU: 80 13 00 00 [15:17:52]Write to MH i2c: E2 08 00 F2 17 80 13 00 00 00 00 00 00 85 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:52]Read from MH i2c: E2 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 62 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 62 00 F2 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:52]wFMCommunicate OK [15:17:52]SAM_PROTO_GetFieldsCounters done [15:17:52]requested_item shift.num is exist - process it [15:17:52]requested_item shift.opened is exist - process it [15:17:52]req_shift_opened [15:17:52]FM_GetShiftState [15:17:52]SAM_PROTO_GetShiftState [15:17:52]wFMCommunicate request_size=4 [15:17:52]MH_SAM_APDU [15:17:52]CAPDU: 80 13 01 00 [15:17:52]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:52]Read from MH i2c: E2 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 0E 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DA [15:17:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:17:52]wFMCommunicate OK [15:17:52]SAM_PROTO_GetShiftState done [15:17:52]FM_GetShiftState done [15:17:52]req_shift_opened done [15:17:52]requested_item shift.open_date is exist - process it [15:17:52]req_shift_open_date [15:17:52]req_shift_open_date done [15:17:52]produce_requested_data done [15:17:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166439,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:17:52]process_action_free close_receipt [15:17:52]json_value_free [15:17:52]json_value_free done [15:17:52]process_json_proto returns [15:17:52]Send response to host [15:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166439,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:17:52]free response buf [15:17:52]execute_script done [15:17:52]execute_script returns [15:17:52]free content buf [15:17:52]Sock 9.Close socket [15:17:52]Sock 9.Thread stoped [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:51]accept exits with 7 [15:19:51]New connection [15:19:51]New thread 3067637092 created [15:19:51]Thread 3067493732 joined [15:19:51]Waiting for new connection... [15:19:51] Sock 7.Parse request [15:19:51]Sock 7.Check first char [15:19:51]Sock 7.First char is OK [15:19:51]request: POST /json_proto HTTP/1.0 [15:19:51]Method: POST [15:19:51]URL: /json_proto [15:19:51]Method is POST - this is cgi request [15:19:51]url: /json_proto [15:19:51]query_string will be loaded in cgi processing [15:19:51]execute_cgi json_proto POST (null) [15:19:51]execute_cgi path=json_proto method=POST [15:19:51]POST find Content-Length [15:19:51]Host: 172.17.53.195:8080 [15:19:51]Content-Length: 677 [15:19:51]Content-Type: application/json [15:19:51] [15:19:51]POST finish read [15:19:51]Found Content-Length = 677 [15:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:51]execute_script... [15:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:51]POST & json_proto [15:19:51]process_json_proto [15:19:51]json parsed OK: [15:19:51]protocol is kg_v1.0 [15:19:51]action value=close_receipt [15:19:51]process_action close_receipt [15:19:51]cmd_close_receipt [15:19:51]MH_GetDate [15:19:51]Write to MH i2c: F0 00 00 F4 17 FA [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: F0 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: F0 09 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: F0 09 00 F4 17 00 98 C2 17 67 21 48 4A 65 F3 [15:19:51]GetLastDocTimeStamp 1729610269 [15:19:51]current date 1729610392 [15:19:51]FM_GetShiftState [15:19:51]SAM_PROTO_GetShiftState [15:19:51]wFMCommunicate request_size=4 [15:19:51]MH_SAM_APDU [15:19:51]CAPDU: 80 13 01 00 [15:19:51]Write to MH i2c: E2 08 00 F5 17 80 13 01 00 00 00 00 00 89 [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:51]Read from MH i2c: E2 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 0E 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 0E 00 F5 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DC [15:19:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:19:51]wFMCommunicate OK [15:19:51]SAM_PROTO_GetShiftState done [15:19:51]FM_GetShiftState done [15:19:51]opened in 1729557463 [15:19:51]opened+sec_in_day 1729643863 [15:19:51]quantity*price = 40006 [15:19:51]sum+1 = 40007 [15:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 195 22.10.2024 15:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166440 ФПД: 28358855763176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151952&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166440&fm=28358855763176&tin=02508201610067®Number=0000000000091764&sum=40000 [15:19:52]StoreToDocumentArchive [15:19:52]shift 536 fd 166440 [15:19:52]save to /storage/0536/doc_00166440 [15:19:52]save last doc name /storage/0536/doc_00166440 to /storage/kkm_last_doc_name [15:19:52]save OK [15:19:52]Clear old archive folders... [15:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:52]tlvbuf is B6F68500 [15:19:52]SAM_PROTO_ClearQueue [15:19:52]wFMCommunicate request_size=4 [15:19:52]MH_SAM_APDU [15:19:52]CAPDU: 80 09 00 00 [15:19:52]Write to MH i2c: E2 08 00 02 18 80 09 00 00 00 00 00 00 8C [15:19:52]Write i2c OK [15:19:52]MH_I2C_Read... [15:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:52]Read from MH i2c: E2 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 03 00 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [15:19:52]RAPDU: 90 00 [15:19:52]wFMCommunicate OK [15:19:52]SAM_PROTO_ClearQueue done [15:19:52]KKMCreateOFDPacket [15:19:52]OFDProtocolAddRootSTLVToBuf [15:19:52]FM_MakeSignedData [15:19:52]FM_MakeSignedData [15:19:52]SAM_PROTO_SignData [15:19:52]wFMCommunicate request_size=4 [15:19:52]MH_SAM_APDU [15:19:52]CAPDU: 80 0D 01 02 [15:19:52]Write to MH i2c: E2 08 00 03 18 80 0D 01 02 00 00 00 00 94 [15:19:52]Write i2c OK [15:19:52]MH_I2C_Read... [15:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:52]Read from MH i2c: E2 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 03 00 [15:19:52]MH_I2C_Read... [15:19:52]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [15:19:52]RAPDU: 90 00 [15:19:52]wFMCommunicate OK [15:19:52]wFMCommunicate request_size=255 [15:19:52]MH_SAM_APDU [15:19:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8A 02 00 35 04 06 00 19 [15:19:52]Write to MH i2c: E2 02 01 04 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8A 02 00 35 04 06 00 19 00 00 7B [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [15:19:53]RAPDU: 90 00 [15:19:53]wFMCommunicate OK [15:19:53]wFMCommunicate request_size=10 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 0D 02 02 05 CA CF 86 24 E8 [15:19:53]Write to MH i2c: E2 0D 00 05 18 80 0D 02 02 05 00 CA CF 86 24 E8 00 00 CC [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [15:19:53]RAPDU: 90 00 [15:19:53]wFMCommunicate OK [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 0D 03 02 [15:19:53]Write to MH i2c: E2 08 00 06 18 80 0D 03 02 00 00 00 00 99 [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 0B 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 0B 00 06 18 00 C6 2B A4 8C 01 9D CA EC 90 00 0F [15:19:53]RAPDU: C6 2B A4 8C 01 9D CA EC 90 00 [15:19:53]wFMCommunicate OK [15:19:53]SAM_PROTO_SignData done [15:19:53]FM_MakeSignedData done [15:19:53]CreateOFDProtocolMessage [15:19:53]wFMCommunicate request_size=4 [15:19:53]MH_SAM_APDU [15:19:53]CAPDU: 80 11 00 00 [15:19:53]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:53]Read from MH i2c: E2 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 17 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [15:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:53]wFMCommunicate OK [15:19:53]CreateOFDProtocolMessage done [15:19:53]OFDSenderStorePacket 166440 [15:19:53]StoreOFDPacket docnum=166440 [15:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA A9 07 01 81 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8A 02 00 35 04 06 00 19 CA CF 86 24 E8 C6 2B A4 8C 01 9D CA EC [15:19:53]CheckFolder [15:19:53]dirname=/storage/ofd_packets [15:19:53]CheckFolder done [15:19:53]ProducePacketName [15:19:53]name=ofd_packets/00166440 [15:19:53]NVStorageSaveData ofd_packets/00166440 [15:19:53]File name is /storage/ofd_packets/00166440 [15:19:53]Write 301 bytes [15:19:53]NVStorageSaveData done [15:19:53]OFDSenderStorePacket done [15:19:53]KKMCreateOFDPacket done [15:19:53]NVStorageSaveData kkm_last_timestamp [15:19:53]File name is /storage/kkm_last_timestamp [15:19:53]Write 4 bytes [15:19:53]NVStorageSaveData done [15:19:53]ExternCall_PrintAddStr [15:19:53]wPrintStart [15:19:53]Write to MH i2c: 01 00 00 08 18 20 [15:19:53]Write i2c OK [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: 01 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: 01 07 00 [15:19:53]MH_I2C_Read... [15:19:53]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FF 0F 35 [15:19:53]RasterBufferAndPrint [15:19:53]line Счет N : (1)221019 [15:19:53]line ИНН: 02508201610067 [15:19:53]line Контрольно-Кассовый Чек [15:19:53]line ПРОДАЖА [15:19:53]line ТРК (МРК, ГНК) : 23 [15:19:53]line Товар: 2710124130 [15:19:53]line Аи-92-К-5 [15:19:53]line 5.980 * 66.90 [15:19:53]line = 400.06 [15:19:53]line НДС 12% НСП 1% [15:19:53]line > о реализуемом товаре [15:19:53]line ОКРУГЛЕНИЕ: -0.06 [15:19:53]line ИТОГО: 400.00 [15:19:53]line Внесено: 400.00 [15:19:53]line СДАЧА: 0.00 [15:19:53]line НСП 1% : 3.54 [15:19:53]line НДС 12% : 42.48 [15:19:53]line Наличными: 400.00 [15:19:53]line Безнал.: 0.00 [15:19:53]line Место: АЗС № 161 "Партнер Нефть" [15:19:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:19:53]line СНО: Общий режим [15:19:53]line Чек 195 22.10.2024 15:19 [15:19:53]line Смена: 536 ФФД: 1.0 [15:19:53]line ЗНМ: 0300000104 [15:19:53]line РНМ: 0000000000091764 [15:19:53]line Версия ККМ: 001 [15:19:53]line ФМ: 0000000000871759 [15:19:53]line ФД: 166440 [15:19:53]line ФПД: 28358855763176 [15:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151952&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166440&fm=28358855763176&tin=02508201610067®Number=0000000000091764&sum=40000 [15:19:53]OFD Sender: Processing packet 166440 [packets to send 48, broken 47] [15:19:53]ProducePacketName [15:19:53]name=ofd_packets/00166440 [15:19:53]OFD Sender: To server: pG, [15:19:53]CommunicateWithHost lk.salyk.kg:30040 [15:19:53]ConnectInit lk.salyk.kg [15:19:53]written 0, free lines is 4095 [15:19:53]Connected sock=10 [15:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA A9 07 01 81 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 C2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8A 02 00 35 04 06 00 19 CA CF 86 24 E8 C6 2B A4 8C 01 9D CA EC [15:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B 70 47 00 CF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 8A 02 00 F4 03 04 00 03 69 17 67 B6 04 01 00 00 C1 86 15 AC C2 AD FC D4 [15:19:54]CommunicateWithHost err = 0 [15:19:54]CheckOFDResponse [15:19:54]1017 (14) - 77093643461234 [15:19:54]1041 (16) - 0000000000871759 [15:19:54]1040 (4) - 166440 [15:19:54]1012 (4) - 22.10.2024 08:57 [15:19:54]1206 (1) - 0 [15:19:54]OFD Sender: Remove packet 166440 [15:19:54]ProducePacketName [15:19:54]name=ofd_packets/00166440 [15:19:54]NVStorageDeleteData [15:19:54]Write to MH i2c: 01 00 00 33 18 4B [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 07 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 CA 0C 28 [15:19:54]RasterBufferAndPrint [15:19:54]line [15:19:54]line [15:19:54]line [15:19:54]line [15:19:54]line [15:19:54]written 0, free lines is 3280 [15:19:54]MH_Cut [15:19:54]Write to MH i2c: D1 01 00 3A 18 01 24 [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: D1 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: D1 01 00 [15:19:54]MH_I2C_Read... [15:19:54]Read from MH i2c: D1 01 00 3A 18 00 23 [15:19:54]Write to MH i2c: 01 00 00 3B 18 53 [15:19:54]Write i2c OK [15:19:54]MH_I2C_Read... [15:19:54]OFD Sender: No OFD packet to send [15:19:55]*** Cut start [15:19:55]*** Partial cut [15:19:55]*** CUTSNS_PIN = 1 [15:19:55]*** CUTSNS_PIN = 0 [15:19:55]*** Brake cut motor [15:19:55]Read from MH i2c: 01 [15:19:55]MH_I2C_Read... [15:19:55]*** Stop cut motor [15:19:55]*** Cut end [15:19:55]Read from MH i2c: 01 07 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [15:19:55]process_action close_receipt done [15:19:55]requested_data is exist [15:19:55]produce_requested_data [15:19:55]requested_item fm.sn is exist - process it [15:19:55]wFMCommunicate request_size=4 [15:19:55]MH_SAM_APDU [15:19:55]CAPDU: 80 11 00 00 [15:19:55]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:55]Read from MH i2c: E2 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 17 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [15:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:55]wFMCommunicate OK [15:19:55]requested_item fd.num is exist - process it [15:19:55]SAM_PROTO_GetFieldsCounters [15:19:55]wFMCommunicate request_size=4 [15:19:55]MH_SAM_APDU [15:19:55]CAPDU: 80 13 00 00 [15:19:55]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:55]Read from MH i2c: E2 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 62 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:55]wFMCommunicate OK [15:19:55]SAM_PROTO_GetFieldsCounters done [15:19:55]requested_item shift.num is exist - process it [15:19:55]requested_item shift.opened is exist - process it [15:19:55]req_shift_opened [15:19:55]FM_GetShiftState [15:19:55]SAM_PROTO_GetShiftState [15:19:55]wFMCommunicate request_size=4 [15:19:55]MH_SAM_APDU [15:19:55]CAPDU: 80 13 01 00 [15:19:55]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [15:19:55]Write i2c OK [15:19:55]MH_I2C_Read... [15:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:55]Read from MH i2c: E2 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 0E 00 [15:19:55]MH_I2C_Read... [15:19:55]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 26 [15:19:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:19:55]wFMCommunicate OK [15:19:55]SAM_PROTO_GetShiftState done [15:19:55]FM_GetShiftState done [15:19:55]req_shift_opened done [15:19:55]requested_item shift.open_date is exist - process it [15:19:55]req_shift_open_date [15:19:55]req_shift_open_date done [15:19:55]produce_requested_data done [15:19:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166440,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:19:55]process_action_free close_receipt [15:19:55]json_value_free [15:19:55]json_value_free done [15:19:55]process_json_proto returns [15:19:55]Send response to host [15:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166440,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:19:55]free response buf [15:19:55]execute_script done [15:19:55]execute_script returns [15:19:55]free content buf [15:19:55]Sock 7.Close socket [15:19:55]Sock 7.Thread stoped [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:16]accept exits with 9 [15:25:16]New connection [15:25:16]New thread 3067493732 created [15:25:16]Thread 3067637092 joined [15:25:16]Waiting for new connection... [15:25:16] Sock 9.Parse request [15:25:16]Sock 9.Check first char [15:25:16]Sock 9.First char is OK [15:25:16]request: POST /json_proto HTTP/1.0 [15:25:16]Method: POST [15:25:16]URL: /json_proto [15:25:16]Method is POST - this is cgi request [15:25:16]url: /json_proto [15:25:16]query_string will be loaded in cgi processing [15:25:16]execute_cgi json_proto POST (null) [15:25:16]execute_cgi path=json_proto method=POST [15:25:16]POST find Content-Length [15:25:16]Host: 172.17.53.195:8080 [15:25:16]Content-Length: 682 [15:25:16]Content-Type: application/json [15:25:16] [15:25:16]POST finish read [15:25:16]Found Content-Length = 682 [15:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:16]execute_script... [15:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:16]POST & json_proto [15:25:16]process_json_proto [15:25:16]json parsed OK: [15:25:16]protocol is kg_v1.0 [15:25:16]action value=close_receipt [15:25:16]process_action close_receipt [15:25:16]cmd_close_receipt [15:25:16]MH_GetDate [15:25:16]Write to MH i2c: F0 00 00 3F 18 46 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: F0 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: F0 09 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: F0 09 00 3F 18 00 DD C3 17 67 21 48 4A 65 85 [15:25:16]GetLastDocTimeStamp 1729610392 [15:25:16]current date 1729610717 [15:25:16]FM_GetShiftState [15:25:16]SAM_PROTO_GetShiftState [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 13 01 00 [15:25:16]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 28 [15:25:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_GetShiftState done [15:25:16]FM_GetShiftState done [15:25:16]opened in 1729557463 [15:25:16]opened+sec_in_day 1729643863 [15:25:16]quantity*price = 100015 [15:25:16]sum+1 = 100017 [15:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 196 22.10.2024 15:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166441 ФПД: 46458735464265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166441&fm=46458735464265&tin=02508201610067®Number=0000000000091764&sum=100000 [15:25:17]StoreToDocumentArchive [15:25:17]shift 536 fd 166441 [15:25:17]save to /storage/0536/doc_00166441 [15:25:17]save last doc name /storage/0536/doc_00166441 to /storage/kkm_last_doc_name [15:25:17]save OK [15:25:17]Clear old archive folders... [15:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:17]tlvbuf is B6F4F5A0 [15:25:17]SAM_PROTO_ClearQueue [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 09 00 00 [15:25:17]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]SAM_PROTO_ClearQueue done [15:25:17]KKMCreateOFDPacket [15:25:17]OFDProtocolAddRootSTLVToBuf [15:25:17]FM_MakeSignedData [15:25:17]FM_MakeSignedData [15:25:17]SAM_PROTO_SignData [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 01 02 [15:25:17]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]wFMCommunicate request_size=255 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DD C3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8A 02 00 35 04 06 00 2A [15:25:17]Write to MH i2c: E2 02 01 4F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DD C3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8A 02 00 35 04 06 00 2A 00 00 4A [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]wFMCommunicate request_size=10 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 02 02 05 41 04 6C 8F 49 [15:25:17]Write to MH i2c: E2 0D 00 50 18 80 0D 02 02 05 00 41 04 6C 8F 49 00 00 75 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 03 02 [15:25:17]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 0B 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 0B 00 51 18 00 CA C0 16 7A CF 84 AA E7 90 00 E3 [15:25:17]RAPDU: CA C0 16 7A CF 84 AA E7 90 00 [15:25:17]wFMCommunicate OK [15:25:17]SAM_PROTO_SignData done [15:25:17]FM_MakeSignedData done [15:25:17]CreateOFDProtocolMessage [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 11 00 00 [15:25:17]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 17 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [15:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:25:18]wFMCommunicate OK [15:25:18]CreateOFDProtocolMessage done [15:25:18]OFDSenderStorePacket 166441 [15:25:18]StoreOFDPacket docnum=166441 [15:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5B 6B 07 01 EB 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DD C3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8A 02 00 35 04 06 00 2A 41 04 6C 8F 49 CA C0 16 7A CF 84 AA E7 [15:25:18]CheckFolder [15:25:18]dirname=/storage/ofd_packets [15:25:18]CheckFolder done [15:25:18]ProducePacketName [15:25:18]name=ofd_packets/00166441 [15:25:18]NVStorageSaveData ofd_packets/00166441 [15:25:18]File name is /storage/ofd_packets/00166441 [15:25:18]Write 301 bytes [15:25:18]NVStorageSaveData done [15:25:18]OFDSenderStorePacket done [15:25:18]KKMCreateOFDPacket done [15:25:18]NVStorageSaveData kkm_last_timestamp [15:25:18]File name is /storage/kkm_last_timestamp [15:25:18]Write 4 bytes [15:25:18]NVStorageSaveData done [15:25:18]ExternCall_PrintAddStr [15:25:18]wPrintStart [15:25:18]Write to MH i2c: 01 00 00 53 18 6B [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 07 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [15:25:18]RasterBufferAndPrint [15:25:18]line Счет N : (1)221020 [15:25:18]line ИНН: 02508201610067 [15:25:18]line Контрольно-Кассовый Чек [15:25:18]line ПРОДАЖА [15:25:18]line ТРК (МРК, ГНК) : 13 [15:25:18]line Товар: 2710124130 [15:25:18]line Аи-92-К-5 [15:25:18]line 14.950 * 66.90 [15:25:18]line = 1000.16 [15:25:18]line НДС 12% НСП 1% [15:25:18]line > о реализуемом товаре [15:25:18]line ОКРУГЛЕНИЕ: -0.16 [15:25:18]line ИТОГО: 1000.00 [15:25:18]line Внесено: 1000.00 [15:25:18]line СДАЧА: 0.00 [15:25:18]line НСП 1% : 8.85 [15:25:18]line НДС 12% : 106.21 [15:25:18]line Наличными: 1000.00 [15:25:18]line Безнал.: 0.00 [15:25:18]line Место: АЗС № 161 "Партнер Нефть" [15:25:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:25:18]line СНО: Общий режим [15:25:18]line Чек 196 22.10.2024 15:25 [15:25:18]line Смена: 536 ФФД: 1.0 [15:25:18]line ЗНМ: 0300000104 [15:25:18]line РНМ: 0000000000091764 [15:25:18]line Версия ККМ: 001 [15:25:18]line ФМ: 0000000000871759 [15:25:18]line ФД: 166441 [15:25:18]line ФПД: 46458735464265 [15:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166441&fm=46458735464265&tin=02508201610067®Number=0000000000091764&sum=100000 [15:25:18]OFD Sender: Processing packet 166441 [packets to send 48, broken 47] [15:25:18]ProducePacketName [15:25:18]name=ofd_packets/00166441 [15:25:18]OFD Sender: To server: pG, [15:25:18]CommunicateWithHost lk.salyk.kg:30040 [15:25:18]ConnectInit lk.salyk.kg [15:25:18]written 0, free lines is 4095 [15:25:18]Connected sock=10 [15:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5B 6B 07 01 EB 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 DD C3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8A 02 00 35 04 06 00 2A 41 04 6C 8F 49 CA C0 16 7A CF 84 AA E7 [15:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 95 48 47 00 C4 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 8A 02 00 F4 03 04 00 48 6A 17 67 B6 04 01 00 00 D5 79 0E 88 AE 5F 68 F7 [15:25:18]CommunicateWithHost err = 0 [15:25:18]CheckOFDResponse [15:25:18]1017 (14) - 77093643461234 [15:25:18]1041 (16) - 0000000000871759 [15:25:18]1040 (4) - 166441 [15:25:18]1012 (4) - 22.10.2024 09:03 [15:25:18]1206 (1) - 0 [15:25:18]OFD Sender: Remove packet 166441 [15:25:18]ProducePacketName [15:25:18]name=ofd_packets/00166441 [15:25:18]NVStorageDeleteData [15:25:18]Write to MH i2c: 01 00 00 7E 18 96 [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 07 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 D2 0C 7B [15:25:18]RasterBufferAndPrint [15:25:18]line [15:25:18]line [15:25:18]line [15:25:18]line [15:25:18]line [15:25:18]written 0, free lines is 3287 [15:25:18]MH_Cut [15:25:18]Write to MH i2c: D1 01 00 85 18 01 6F [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: D1 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: D1 01 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: D1 01 00 85 18 00 6E [15:25:18]Write to MH i2c: 01 00 00 86 18 9E [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:19]OFD Sender: No OFD packet to send [15:25:19]*** Cut start [15:25:19]*** Partial cut [15:25:19]*** CUTSNS_PIN = 1 [15:25:19]*** CUTSNS_PIN = 0 [15:25:19]*** Brake cut motor [15:25:20]Read from MH i2c: 01 [15:25:20]MH_I2C_Read... [15:25:20]*** Stop cut motor [15:25:20]*** Cut end [15:25:20]Read from MH i2c: 01 07 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [15:25:20]process_action close_receipt done [15:25:20]requested_data is exist [15:25:20]produce_requested_data [15:25:20]requested_item fm.sn is exist - process it [15:25:20]wFMCommunicate request_size=4 [15:25:20]MH_SAM_APDU [15:25:20]CAPDU: 80 11 00 00 [15:25:20]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [15:25:20]Write i2c OK [15:25:20]MH_I2C_Read... [15:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:20]Read from MH i2c: E2 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 17 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [15:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:25:20]wFMCommunicate OK [15:25:20]requested_item fd.num is exist - process it [15:25:20]SAM_PROTO_GetFieldsCounters [15:25:20]wFMCommunicate request_size=4 [15:25:20]MH_SAM_APDU [15:25:20]CAPDU: 80 13 00 00 [15:25:20]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [15:25:20]Write i2c OK [15:25:20]MH_I2C_Read... [15:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:20]Read from MH i2c: E2 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 62 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [15:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:20]wFMCommunicate OK [15:25:20]SAM_PROTO_GetFieldsCounters done [15:25:20]requested_item shift.num is exist - process it [15:25:20]requested_item shift.opened is exist - process it [15:25:20]req_shift_opened [15:25:20]FM_GetShiftState [15:25:20]SAM_PROTO_GetShiftState [15:25:20]wFMCommunicate request_size=4 [15:25:20]MH_SAM_APDU [15:25:20]CAPDU: 80 13 01 00 [15:25:20]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [15:25:20]Write i2c OK [15:25:20]MH_I2C_Read... [15:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:20]Read from MH i2c: E2 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 0E 00 [15:25:20]MH_I2C_Read... [15:25:20]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 71 [15:25:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:25:20]wFMCommunicate OK [15:25:20]SAM_PROTO_GetShiftState done [15:25:20]FM_GetShiftState done [15:25:20]req_shift_opened done [15:25:20]requested_item shift.open_date is exist - process it [15:25:20]req_shift_open_date [15:25:20]req_shift_open_date done [15:25:20]produce_requested_data done [15:25:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166441,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:25:20]process_action_free close_receipt [15:25:20]json_value_free [15:25:20]json_value_free done [15:25:20]process_json_proto returns [15:25:20]Send response to host [15:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166441,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:25:20]free response buf [15:25:20]execute_script done [15:25:20]execute_script returns [15:25:20]free content buf [15:25:20]Sock 9.Close socket [15:25:20]Sock 9.Thread stoped [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:07]accept exits with 7 [15:28:07]New connection [15:28:07]New thread 3067637092 created [15:28:07] Sock 7.Parse request [15:28:07]Thread 3067493732 joined [15:28:07]Sock 7.Check first char [15:28:07]Waiting for new connection... [15:28:07]Sock 7.First char is OK [15:28:07]request: POST /json_proto HTTP/1.0 [15:28:07]Method: POST [15:28:07]URL: /json_proto [15:28:07]Method is POST - this is cgi request [15:28:07]url: /json_proto [15:28:07]query_string will be loaded in cgi processing [15:28:07]execute_cgi json_proto POST (null) [15:28:07]execute_cgi path=json_proto method=POST [15:28:07]POST find Content-Length [15:28:07]Host: 172.17.53.195:8080 [15:28:07]Content-Length: 678 [15:28:07]Content-Type: application/json [15:28:07] [15:28:07]POST finish read [15:28:07]Found Content-Length = 678 [15:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:07]execute_script... [15:28: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)221022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:07]POST & json_proto [15:28:07]process_json_proto [15:28:07]json parsed OK: [15:28:07]protocol is kg_v1.0 [15:28:07]action value=close_receipt [15:28:07]process_action close_receipt [15:28:07]cmd_close_receipt [15:28:07]MH_GetDate [15:28:07]Write to MH i2c: F0 00 00 8A 18 91 [15:28:07]Write i2c OK [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: F0 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: F0 09 00 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: F0 09 00 8A 18 00 88 C4 17 67 21 48 4A 65 7C [15:28:07]GetLastDocTimeStamp 1729610717 [15:28:07]current date 1729610888 [15:28:07]FM_GetShiftState [15:28:07]SAM_PROTO_GetShiftState [15:28:07]wFMCommunicate request_size=4 [15:28:07]MH_SAM_APDU [15:28:07]CAPDU: 80 13 01 00 [15:28:07]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [15:28:07]Write i2c OK [15:28:07]MH_I2C_Read... [15:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:07]Read from MH i2c: E2 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: E2 0E 00 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 73 [15:28:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:28:07]wFMCommunicate OK [15:28:07]SAM_PROTO_GetShiftState done [15:28:07]FM_GetShiftState done [15:28:07]opened in 1729557463 [15:28:07]opened+sec_in_day 1729643863 [15:28:07]quantity*price = 80061 [15:28:07]sum+1 = 80063 [15:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 197 22.10.2024 15:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166442 ФПД: 5011488736028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166442&fm=5011488736028&tin=02508201610067®Number=0000000000091764&sum=80000 [15:28:09]StoreToDocumentArchive [15:28:09]shift 536 fd 166442 [15:28:09]save to /storage/0536/doc_00166442 [15:28:09]save last doc name /storage/0536/doc_00166442 to /storage/kkm_last_doc_name [15:28:09]save OK [15:28:09]Clear old archive folders... [15:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:09]tlvbuf is 009FE460 [15:28:09]SAM_PROTO_ClearQueue [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 09 00 00 [15:28:09]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [15:28:09]RAPDU: 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_ClearQueue done [15:28:09]KKMCreateOFDPacket [15:28:09]OFDProtocolAddRootSTLVToBuf [15:28:09]FM_MakeSignedData [15:28:09]FM_MakeSignedData [15:28:09]SAM_PROTO_SignData [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 0D 01 02 [15:28:09]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [15:28:09]RAPDU: 90 00 [15:28:09]wFMCommunicate OK [15:28:09]wFMCommunicate request_size=255 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 89 C4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8A 02 00 35 04 06 00 04 [15:28:09]Write to MH i2c: E2 02 01 9A 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 89 C4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8A 02 00 35 04 06 00 04 00 00 91 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]OFD Sender: No OFD packet to send [15:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [15:28:09]RAPDU: 90 00 [15:28:09]wFMCommunicate OK [15:28:09]wFMCommunicate request_size=10 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 0D 02 02 05 8E D4 01 83 1C [15:28:09]Write to MH i2c: E2 0D 00 9B 18 80 0D 02 02 05 00 8E D4 01 83 1C 00 00 39 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [15:28:09]RAPDU: 90 00 [15:28:09]wFMCommunicate OK [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 0D 03 02 [15:28:09]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0B 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0B 00 9C 18 00 E8 53 A8 95 58 0C 54 D3 90 00 33 [15:28:09]RAPDU: E8 53 A8 95 58 0C 54 D3 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_SignData done [15:28:09]FM_MakeSignedData done [15:28:09]CreateOFDProtocolMessage [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 11 00 00 [15:28:09]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 17 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [15:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:28:09]wFMCommunicate OK [15:28:09]CreateOFDProtocolMessage done [15:28:09]OFDSenderStorePacket 166442 [15:28:09]StoreOFDPacket docnum=166442 [15:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 84 07 01 0C FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 89 C4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8A 02 00 35 04 06 00 04 8E D4 01 83 1C E8 53 A8 95 58 0C 54 D3 [15:28:09]CheckFolder [15:28:09]dirname=/storage/ofd_packets [15:28:09]CheckFolder done [15:28:09]ProducePacketName [15:28:09]name=ofd_packets/00166442 [15:28:09]NVStorageSaveData ofd_packets/00166442 [15:28:09]File name is /storage/ofd_packets/00166442 [15:28:09]Write 301 bytes [15:28:09]NVStorageSaveData done [15:28:09]OFDSenderStorePacket done [15:28:09]KKMCreateOFDPacket done [15:28:09]NVStorageSaveData kkm_last_timestamp [15:28:09]File name is /storage/kkm_last_timestamp [15:28:09]Write 4 bytes [15:28:09]NVStorageSaveData done [15:28:09]ExternCall_PrintAddStr [15:28:09]wPrintStart [15:28:09]Write to MH i2c: 01 00 00 9E 18 B6 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: 01 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: 01 07 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [15:28:09]RasterBufferAndPrint [15:28:09]line Счет N : (1)221022 [15:28:09]line ИНН: 02508201610067 [15:28:09]line Контрольно-Кассовый Чек [15:28:09]line ПРОДАЖА [15:28:09]line ТРК (МРК, ГНК) : 44 [15:28:09]line Товар: 2710124500 [15:28:09]line Аи-95-К-5 [15:28:09]line 10.790 * 74.20 [15:28:09]line = 800.62 [15:28:09]line НДС 12% НСП 1% [15:28:09]line > о реализуемом товаре [15:28:09]line ОКРУГЛЕНИЕ: -0.62 [15:28:09]line ИТОГО: 800.00 [15:28:09]line Внесено: 800.00 [15:28:09]line СДАЧА: 0.00 [15:28:09]line НСП 1% : 7.08 [15:28:09]line НДС 12% : 85.02 [15:28:09]line Наличными: 800.00 [15:28:09]line Безнал.: 0.00 [15:28:09]line Место: АЗС № 161 "Партнер Нефть" [15:28:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:28:09]line СНО: Общий режим [15:28:09]line Чек 197 22.10.2024 15:28 [15:28:09]line Смена: 536 ФФД: 1.0 [15:28:09]line ЗНМ: 0300000104 [15:28:09]line РНМ: 0000000000091764 [15:28:09]line Версия ККМ: 001 [15:28:09]line ФМ: 0000000000871759 [15:28:09]line ФД: 166442 [15:28:09]line ФПД: 5011488736028 [15:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166442&fm=5011488736028&tin=02508201610067®Number=0000000000091764&sum=80000 [15:28:09]written 0, free lines is 4095 [15:28:09]OFD Sender: Processing packet 166442 [packets to send 48, broken 47] [15:28:09]ProducePacketName [15:28:09]name=ofd_packets/00166442 [15:28:09]OFD Sender: To server: pG, [15:28:09]CommunicateWithHost lk.salyk.kg:30040 [15:28:09]ConnectInit lk.salyk.kg [15:28:09]Connected sock=10 [15:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 84 07 01 0C FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 89 C4 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8A 02 00 35 04 06 00 04 8E D4 01 83 1C E8 53 A8 95 58 0C 54 D3 [15:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 C8 47 00 ED 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 8A 02 00 F4 03 04 00 F3 6A 17 67 B6 04 01 00 00 D5 C7 3B D7 84 56 2E 15 [15:28:09]CommunicateWithHost err = 0 [15:28:09]CheckOFDResponse [15:28:09]1017 (14) - 77093643461234 [15:28:09]1041 (16) - 0000000000871759 [15:28:09]1040 (4) - 166442 [15:28:09]1012 (4) - 22.10.2024 09:05 [15:28:09]1206 (1) - 0 [15:28:09]OFD Sender: Remove packet 166442 [15:28:09]ProducePacketName [15:28:09]name=ofd_packets/00166442 [15:28:09]NVStorageDeleteData [15:28:10]Write to MH i2c: 01 00 00 C9 18 E1 [15:28:10]Write i2c OK [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: 01 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: 01 07 00 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 D0 0C C4 [15:28:10]RasterBufferAndPrint [15:28:10]line [15:28:10]line [15:28:10]line [15:28:10]line [15:28:10]line [15:28:10]written 0, free lines is 3287 [15:28:10]MH_Cut [15:28:10]Write to MH i2c: D1 01 00 D0 18 01 BA [15:28:10]Write i2c OK [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: D1 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: D1 01 00 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: D1 01 00 D0 18 00 B9 [15:28:10]Write to MH i2c: 01 00 00 D1 18 E9 [15:28:10]Write i2c OK [15:28:10]MH_I2C_Read... [15:28:10]OFD Sender: No OFD packet to send [15:28:10]*** Cut start [15:28:10]*** Partial cut [15:28:10]*** CUTSNS_PIN = 1 [15:28:10]*** CUTSNS_PIN = 0 [15:28:11]*** Brake cut motor [15:28:11]Read from MH i2c: 01 [15:28:11]MH_I2C_Read... [15:28:11]*** Stop cut motor [15:28:11]*** Cut end [15:28:11]Read from MH i2c: 01 07 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [15:28:11]process_action close_receipt done [15:28:11]requested_data is exist [15:28:11]produce_requested_data [15:28:11]requested_item fm.sn is exist - process it [15:28:11]wFMCommunicate request_size=4 [15:28:11]MH_SAM_APDU [15:28:11]CAPDU: 80 11 00 00 [15:28:11]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 17 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [15:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:28:11]wFMCommunicate OK [15:28:11]requested_item fd.num is exist - process it [15:28:11]SAM_PROTO_GetFieldsCounters [15:28:11]wFMCommunicate request_size=4 [15:28:11]MH_SAM_APDU [15:28:11]CAPDU: 80 13 00 00 [15:28:11]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 62 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 62 00 D3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:11]wFMCommunicate OK [15:28:11]SAM_PROTO_GetFieldsCounters done [15:28:11]requested_item shift.num is exist - process it [15:28:11]requested_item shift.opened is exist - process it [15:28:11]req_shift_opened [15:28:11]FM_GetShiftState [15:28:11]SAM_PROTO_GetShiftState [15:28:11]wFMCommunicate request_size=4 [15:28:11]MH_SAM_APDU [15:28:11]CAPDU: 80 13 01 00 [15:28:11]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 0E 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BC [15:28:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:28:11]wFMCommunicate OK [15:28:11]SAM_PROTO_GetShiftState done [15:28:11]FM_GetShiftState done [15:28:11]req_shift_opened done [15:28:11]requested_item shift.open_date is exist - process it [15:28:11]req_shift_open_date [15:28:11]req_shift_open_date done [15:28:11]produce_requested_data done [15:28:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166442,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:28:11]process_action_free close_receipt [15:28:11]json_value_free [15:28:11]json_value_free done [15:28:11]process_json_proto returns [15:28:11]Send response to host [15:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166442,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:28:11]free response buf [15:28:11]execute_script done [15:28:11]execute_script returns [15:28:11]free content buf [15:28:11]Sock 7.Close socket [15:28:11]Sock 7.Thread stoped [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:19]accept exits with 9 [15:31:19]New connection [15:31:19]New thread 3067493732 created [15:31:19]Thread 3067637092 joined [15:31:19]Waiting for new connection... [15:31:19] Sock 9.Parse request [15:31:19]Sock 9.Check first char [15:31:19]Sock 9.First char is OK [15:31:19]request: POST /json_proto HTTP/1.0 [15:31:19]Method: POST [15:31:19]URL: /json_proto [15:31:19]Method is POST - this is cgi request [15:31:19]url: /json_proto [15:31:19]query_string will be loaded in cgi processing [15:31:19]execute_cgi json_proto POST (null) [15:31:19]execute_cgi path=json_proto method=POST [15:31:19]POST find Content-Length [15:31:19]Host: 172.17.53.195:8080 [15:31:19]Content-Length: 679 [15:31:19]Content-Type: application/json [15:31:19] [15:31:19]POST finish read [15:31:19]Found Content-Length = 679 [15:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:19]execute_script... [15:31:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:19]POST & json_proto [15:31:19]process_json_proto [15:31:19]json parsed OK: [15:31:19]protocol is kg_v1.0 [15:31:19]action value=close_receipt [15:31:19]process_action close_receipt [15:31:19]cmd_close_receipt [15:31:19]MH_GetDate [15:31:19]Write to MH i2c: F0 00 00 D5 18 DC [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 09 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 09 00 D5 18 00 48 C5 17 67 21 48 4A 65 88 [15:31:19]GetLastDocTimeStamp 1729610889 [15:31:19]current date 1729611080 [15:31:19]FM_GetShiftState [15:31:19]SAM_PROTO_GetShiftState [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 01 00 [15:31:19]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BE [15:31:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetShiftState done [15:31:19]FM_GetShiftState done [15:31:19]opened in 1729557463 [15:31:19]opened+sec_in_day 1729643863 [15:31:19]quantity*price = 150037 [15:31:19]sum+1 = 150039 [15:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 198 22.10.2024 15:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166443 ФПД: 26561947644659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166443&fm=26561947644659&tin=02508201610067®Number=0000000000091764&sum=150000 [15:31:20]StoreToDocumentArchive [15:31:20]shift 536 fd 166443 [15:31:20]save to /storage/0536/doc_00166443 [15:31:20]save last doc name /storage/0536/doc_00166443 to /storage/kkm_last_doc_name [15:31:20]save OK [15:31:20]Clear old archive folders... [15:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:20]tlvbuf is B6E4F070 [15:31:20]SAM_PROTO_ClearQueue [15:31:20]wFMCommunicate request_size=4 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 09 00 00 [15:31:20]Write to MH i2c: E2 08 00 E3 18 80 09 00 00 00 00 00 00 6D [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:20]Read from MH i2c: E2 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [15:31:20]RAPDU: 90 00 [15:31:20]wFMCommunicate OK [15:31:20]SAM_PROTO_ClearQueue done [15:31:20]KKMCreateOFDPacket [15:31:20]OFDProtocolAddRootSTLVToBuf [15:31:20]FM_MakeSignedData [15:31:20]FM_MakeSignedData [15:31:20]SAM_PROTO_SignData [15:31:20]wFMCommunicate request_size=4 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 0D 01 02 [15:31:20]Write to MH i2c: E2 08 00 E4 18 80 0D 01 02 00 00 00 00 75 [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:20]Read from MH i2c: E2 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [15:31:20]RAPDU: 90 00 [15:31:20]wFMCommunicate OK [15:31:20]wFMCommunicate request_size=255 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 48 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8A 02 00 35 04 06 00 18 28 6F 74 [15:31:20]Write to MH i2c: E2 02 01 E5 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 48 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8A 02 00 35 04 06 00 18 28 6F 74 00 00 BD [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [15:31:21]RAPDU: 90 00 [15:31:21]wFMCommunicate OK [15:31:21]wFMCommunicate request_size=7 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 0D 02 02 02 32 F3 [15:31:21]Write to MH i2c: E2 0A 00 E6 18 80 0D 02 02 02 00 32 F3 00 00 A1 [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [15:31:21]RAPDU: 90 00 [15:31:21]wFMCommunicate OK [15:31:21]wFMCommunicate request_size=4 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 0D 03 02 [15:31:21]Write to MH i2c: E2 08 00 E7 18 80 0D 03 02 00 00 00 00 7A [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 0B 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 0B 00 E7 18 00 DF 6A 38 F6 00 32 02 31 90 00 57 [15:31:21]RAPDU: DF 6A 38 F6 00 32 02 31 90 00 [15:31:21]wFMCommunicate OK [15:31:21]SAM_PROTO_SignData done [15:31:21]FM_MakeSignedData done [15:31:21]CreateOFDProtocolMessage [15:31:21]wFMCommunicate request_size=4 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 11 00 00 [15:31:21]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 17 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [15:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:21]wFMCommunicate OK [15:31:21]CreateOFDProtocolMessage done [15:31:21]OFDSenderStorePacket 166443 [15:31:21]StoreOFDPacket docnum=166443 [15:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AC 7B 04 01 60 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 48 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8A 02 00 35 04 06 00 18 28 6F 74 32 F3 DF 6A 38 F6 00 32 02 31 [15:31:21]CheckFolder [15:31:21]dirname=/storage/ofd_packets [15:31:21]CheckFolder done [15:31:21]ProducePacketName [15:31:21]name=ofd_packets/00166443 [15:31:21]NVStorageSaveData ofd_packets/00166443 [15:31:21]File name is /storage/ofd_packets/00166443 [15:31:21]Write 298 bytes [15:31:21]NVStorageSaveData done [15:31:21]OFDSenderStorePacket done [15:31:21]KKMCreateOFDPacket done [15:31:21]NVStorageSaveData kkm_last_timestamp [15:31:21]File name is /storage/kkm_last_timestamp [15:31:21]Write 4 bytes [15:31:21]NVStorageSaveData done [15:31:21]ExternCall_PrintAddStr [15:31:21]wPrintStart [15:31:21]Write to MH i2c: 01 00 00 E9 18 01 [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 07 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 FF 0F 16 [15:31:21]RasterBufferAndPrint [15:31:21]line Счет N : (1)221023 [15:31:21]line ИНН: 02508201610067 [15:31:21]line Контрольно-Кассовый Чек [15:31:21]line ПРОДАЖА [15:31:21]line ТРК (МРК, ГНК) : 31 [15:31:21]line Товар: 2710194210 [15:31:21]line ДТ-К-5 [15:31:21]line 19.690 * 76.20 [15:31:21]line = 1500.38 [15:31:21]line НДС 12% НСП 1% [15:31:21]line > о реализуемом товаре [15:31:21]line ОКРУГЛЕНИЕ: -0.38 [15:31:21]line ИТОГО: 1500.00 [15:31:21]line Внесено: 1500.00 [15:31:21]line СДАЧА: 0.00 [15:31:21]line НСП 1% : 13.28 [15:31:21]line НДС 12% : 159.33 [15:31:21]line Наличными: 1500.00 [15:31:21]line Безнал.: 0.00 [15:31:21]line Место: АЗС № 161 "Партнер Нефть" [15:31:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:31:21]line СНО: Общий режим [15:31:21]line Чек 198 22.10.2024 15:31 [15:31:21]line Смена: 536 ФФД: 1.0 [15:31:21]line ЗНМ: 0300000104 [15:31:21]line РНМ: 0000000000091764 [15:31:21]line Версия ККМ: 001 [15:31:21]line ФМ: 0000000000871759 [15:31:21]line ФД: 166443 [15:31:21]line ФПД: 26561947644659 [15:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166443&fm=26561947644659&tin=02508201610067®Number=0000000000091764&sum=150000 [15:31:21]OFD Sender: Processing packet 166443 [packets to send 48, broken 47] [15:31:21]ProducePacketName [15:31:21]name=ofd_packets/00166443 [15:31:21]OFD Sender: To server: pG, [15:31:21]CommunicateWithHost lk.salyk.kg:30040 [15:31:21]ConnectInit lk.salyk.kg [15:31:21]written 0, free lines is 4095 [15:31:21]Connected sock=10 [15:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AC 7B 04 01 60 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 48 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8A 02 00 35 04 06 00 18 28 6F 74 32 F3 DF 6A 38 F6 00 32 02 31 [15:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B5 D6 47 00 D5 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 8A 02 00 F4 03 04 00 B3 6B 17 67 B6 04 01 00 00 C6 67 7C 4B 30 E9 30 15 [15:31:22]CommunicateWithHost err = 0 [15:31:22]CheckOFDResponse [15:31:22]1017 (14) - 77093643461234 [15:31:22]1041 (16) - 0000000000871759 [15:31:22]1040 (4) - 166443 [15:31:22]1012 (4) - 22.10.2024 09:09 [15:31:22]1206 (1) - 0 [15:31:22]OFD Sender: Remove packet 166443 [15:31:22]ProducePacketName [15:31:22]name=ofd_packets/00166443 [15:31:22]NVStorageDeleteData [15:31:22]Write to MH i2c: 01 00 00 14 19 2D [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 07 00 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 C3 0C 03 [15:31:22]RasterBufferAndPrint [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]written 0, free lines is 3272 [15:31:22]MH_Cut [15:31:22]Write to MH i2c: D1 01 00 1B 19 01 06 [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 01 00 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 01 00 1B 19 00 05 [15:31:22]Write to MH i2c: 01 00 00 1C 19 35 [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]OFD Sender: No OFD packet to send [15:31:22]*** Cut start [15:31:22]*** Partial cut [15:31:22]*** CUTSNS_PIN = 1 [15:31:23]*** CUTSNS_PIN = 0 [15:31:23]*** Brake cut motor [15:31:23]Read from MH i2c: 01 [15:31:23]MH_I2C_Read... [15:31:23]*** Stop cut motor [15:31:23]*** Cut end [15:31:23]Read from MH i2c: 01 07 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [15:31:23]process_action close_receipt done [15:31:23]requested_data is exist [15:31:23]produce_requested_data [15:31:23]requested_item fm.sn is exist - process it [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 11 00 00 [15:31:23]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 17 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [15:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:23]wFMCommunicate OK [15:31:23]requested_item fd.num is exist - process it [15:31:23]SAM_PROTO_GetFieldsCounters [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 13 00 00 [15:31:23]Write to MH i2c: E2 08 00 1E 19 80 13 00 00 00 00 00 00 B3 [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 62 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 62 00 1E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:23]wFMCommunicate OK [15:31:23]SAM_PROTO_GetFieldsCounters done [15:31:23]requested_item shift.num is exist - process it [15:31:23]requested_item shift.opened is exist - process it [15:31:23]req_shift_opened [15:31:23]FM_GetShiftState [15:31:23]SAM_PROTO_GetShiftState [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 13 01 00 [15:31:23]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 08 [15:31:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:31:23]wFMCommunicate OK [15:31:23]SAM_PROTO_GetShiftState done [15:31:23]FM_GetShiftState done [15:31:23]req_shift_opened done [15:31:23]requested_item shift.open_date is exist - process it [15:31:23]req_shift_open_date [15:31:23]req_shift_open_date done [15:31:23]produce_requested_data done [15:31:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166443,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:31:23]process_action_free close_receipt [15:31:23]json_value_free [15:31:23]json_value_free done [15:31:23]process_json_proto returns [15:31:23]Send response to host [15:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166443,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:31:23]free response buf [15:31:23]execute_script done [15:31:23]execute_script returns [15:31:23]free content buf [15:31:23]Sock 9.Close socket [15:31:23]Sock 9.Thread stoped [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:03]accept exits with 7 [15:33:03]New connection [15:33:03]New thread 3067637092 created [15:33:03]Thread 3067493732 joined [15:33:03]Waiting for new connection... [15:33:03] Sock 7.Parse request [15:33:03]Sock 7.Check first char [15:33:03]Sock 7.First char is OK [15:33:03]request: POST /json_proto HTTP/1.0 [15:33:03]Method: POST [15:33:03]URL: /json_proto [15:33:03]Method is POST - this is cgi request [15:33:03]url: /json_proto [15:33:03]query_string will be loaded in cgi processing [15:33:03]execute_cgi json_proto POST (null) [15:33:03]execute_cgi path=json_proto method=POST [15:33:03]POST find Content-Length [15:33:03]Host: 172.17.53.195:8080 [15:33:03]Content-Length: 682 [15:33:03]Content-Type: application/json [15:33:03] [15:33:03]POST finish read [15:33:03]Found Content-Length = 682 [15:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:03]execute_script... [15:33:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:03]POST & json_proto [15:33:03]process_json_proto [15:33:03]json parsed OK: [15:33:03]protocol is kg_v1.0 [15:33:03]action value=close_receipt [15:33:03]process_action close_receipt [15:33:03]cmd_close_receipt [15:33:03]MH_GetDate [15:33:03]Write to MH i2c: F0 00 00 20 19 28 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: F0 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: F0 09 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: F0 09 00 20 19 00 B0 C5 17 67 21 48 4A 65 3C [15:33:03]GetLastDocTimeStamp 1729611080 [15:33:03]current date 1729611184 [15:33:03]FM_GetShiftState [15:33:03]SAM_PROTO_GetShiftState [15:33:03]wFMCommunicate request_size=4 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 13 01 00 [15:33:03]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 0E 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0A [15:33:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:33:03]wFMCommunicate OK [15:33:03]SAM_PROTO_GetShiftState done [15:33:03]FM_GetShiftState done [15:33:03]opened in 1729557463 [15:33:03]opened+sec_in_day 1729643863 [15:33:03]quantity*price = 200031 [15:33:03]sum+1 = 200032 [15:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 199 22.10.2024 15:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166444 ФПД: 33977770150787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153304&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166444&fm=33977770150787&tin=02508201610067®Number=0000000000091764&sum=200000 [15:33:04]StoreToDocumentArchive [15:33:04]shift 536 fd 166444 [15:33:04]save to /storage/0536/doc_00166444 [15:33:04]save last doc name /storage/0536/doc_00166444 to /storage/kkm_last_doc_name [15:33:04]save OK [15:33:04]Clear old archive folders... [15:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:04]tlvbuf is B6F683D0 [15:33:04]SAM_PROTO_ClearQueue [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 09 00 00 [15:33:04]Write to MH i2c: E2 08 00 2E 19 80 09 00 00 00 00 00 00 B9 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]SAM_PROTO_ClearQueue done [15:33:04]KKMCreateOFDPacket [15:33:04]OFDProtocolAddRootSTLVToBuf [15:33:04]FM_MakeSignedData [15:33:04]FM_MakeSignedData [15:33:04]SAM_PROTO_SignData [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 01 02 [15:33:04]Write to MH i2c: E2 08 00 2F 19 80 0D 01 02 00 00 00 00 C1 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=255 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8A 02 00 35 04 06 00 1E [15:33:04]Write to MH i2c: E2 02 01 30 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8A 02 00 35 04 06 00 1E 00 00 43 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=10 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 02 02 05 E7 10 EB 8B 83 [15:33:04]Write to MH i2c: E2 0D 00 31 19 80 0D 02 02 05 00 E7 10 EB 8B 83 00 00 BE [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 03 02 [15:33:04]Write to MH i2c: E2 08 00 32 19 80 0D 03 02 00 00 00 00 C6 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 0B 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 0B 00 32 19 00 5D 60 9E D8 BF E7 59 A7 90 00 A0 [15:33:04]RAPDU: 5D 60 9E D8 BF E7 59 A7 90 00 [15:33:04]wFMCommunicate OK [15:33:04]SAM_PROTO_SignData done [15:33:04]FM_MakeSignedData done [15:33:04]CreateOFDProtocolMessage [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 11 00 00 [15:33:04]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 17 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [15:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:04]wFMCommunicate OK [15:33:04]CreateOFDProtocolMessage done [15:33:04]OFDSenderStorePacket 166444 [15:33:04]StoreOFDPacket docnum=166444 [15:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 0A 07 01 B9 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8A 02 00 35 04 06 00 1E E7 10 EB 8B 83 5D 60 9E D8 BF E7 59 A7 [15:33:04]CheckFolder [15:33:04]dirname=/storage/ofd_packets [15:33:04]CheckFolder done [15:33:04]ProducePacketName [15:33:04]name=ofd_packets/00166444 [15:33:04]NVStorageSaveData ofd_packets/00166444 [15:33:04]File name is /storage/ofd_packets/00166444 [15:33:04]Write 301 bytes [15:33:04]NVStorageSaveData done [15:33:04]OFDSenderStorePacket done [15:33:04]KKMCreateOFDPacket done [15:33:04]NVStorageSaveData kkm_last_timestamp [15:33:04]File name is /storage/kkm_last_timestamp [15:33:04]Write 4 bytes [15:33:04]NVStorageSaveData done [15:33:04]ExternCall_PrintAddStr [15:33:04]wPrintStart [15:33:04]Write to MH i2c: 01 00 00 34 19 4D [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 07 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [15:33:04]RasterBufferAndPrint [15:33:04]line Счет N : (1)221024 [15:33:04]line ИНН: 02508201610067 [15:33:04]line Контрольно-Кассовый Чек [15:33:04]line ПРОДАЖА [15:33:04]line ТРК (МРК, ГНК) : 13 [15:33:04]line Товар: 2710124130 [15:33:04]line Аи-92-К-5 [15:33:04]line 29.900 * 66.90 [15:33:04]line = 2000.31 [15:33:04]line НДС 12% НСП 1% [15:33:04]line > о реализуемом товаре [15:33:04]line ОКРУГЛЕНИЕ: -0.31 [15:33:04]line ИТОГО: 2000.00 [15:33:04]line Внесено: 2000.00 [15:33:04]line СДАЧА: 0.00 [15:33:04]line НСП 1% : 17.70 [15:33:04]line НДС 12% : 212.42 [15:33:04]line Наличными: 2000.00 [15:33:04]line Безнал.: 0.00 [15:33:04]line Место: АЗС № 161 "Партнер Нефть" [15:33:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:33:04]line СНО: Общий режим [15:33:04]line Чек 199 22.10.2024 15:33 [15:33:04]line Смена: 536 ФФД: 1.0 [15:33:04]line ЗНМ: 0300000104 [15:33:04]line РНМ: 0000000000091764 [15:33:04]line Версия ККМ: 001 [15:33:04]line ФМ: 0000000000871759 [15:33:04]line ФД: 166444 [15:33:04]line ФПД: 33977770150787 [15:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153304&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166444&fm=33977770150787&tin=02508201610067®Number=0000000000091764&sum=200000 [15:33:05]OFD Sender: Processing packet 166444 [packets to send 48, broken 47] [15:33:05]ProducePacketName [15:33:05]name=ofd_packets/00166444 [15:33:05]OFD Sender: To server: pG, [15:33:05]CommunicateWithHost lk.salyk.kg:30040 [15:33:05]ConnectInit lk.salyk.kg [15:33:05]written 0, free lines is 4095 [15:33:05]Connected sock=10 [15:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 0A 07 01 B9 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8A 02 00 35 04 06 00 1E E7 10 EB 8B 83 5D 60 9E D8 BF E7 59 A7 [15:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 6C 47 00 AF 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 8A 02 00 F4 03 04 00 1B 6C 17 67 B6 04 01 00 00 E9 2E 96 CB E7 0C F6 5E [15:33:05]CommunicateWithHost err = 0 [15:33:05]CheckOFDResponse [15:33:05]1017 (14) - 77093643461234 [15:33:05]1041 (16) - 0000000000871759 [15:33:05]1040 (4) - 166444 [15:33:05]1012 (4) - 22.10.2024 09:10 [15:33:05]1206 (1) - 0 [15:33:05]OFD Sender: Remove packet 166444 [15:33:05]ProducePacketName [15:33:05]name=ofd_packets/00166444 [15:33:05]NVStorageDeleteData [15:33:05]Write to MH i2c: 01 00 00 5F 19 78 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 5F 19 00 00 00 00 00 CD 0C 58 [15:33:05]RasterBufferAndPrint [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]written 0, free lines is 3281 [15:33:05]MH_Cut [15:33:05]Write to MH i2c: D1 01 00 66 19 01 51 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 01 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 01 00 66 19 00 50 [15:33:05]Write to MH i2c: 01 00 00 67 19 80 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:06]OFD Sender: No OFD packet to send [15:33:06]*** Cut start [15:33:06]*** Partial cut [15:33:06]*** CUTSNS_PIN = 1 [15:33:06]*** CUTSNS_PIN = 0 [15:33:06]*** Brake cut motor [15:33:07]Read from MH i2c: 01 [15:33:07]MH_I2C_Read... [15:33:07]*** Stop cut motor [15:33:07]*** Cut end [15:33:07]Read from MH i2c: 01 07 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 07 00 67 19 00 00 00 00 00 FF 0F 95 [15:33:07]process_action close_receipt done [15:33:07]requested_data is exist [15:33:07]produce_requested_data [15:33:07]requested_item fm.sn is exist - process it [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 11 00 00 [15:33:07]Write to MH i2c: E2 08 00 68 19 80 11 00 00 00 00 00 00 FB [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 68 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [15:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:07]wFMCommunicate OK [15:33:07]requested_item fd.num is exist - process it [15:33:07]SAM_PROTO_GetFieldsCounters [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 00 00 [15:33:07]Write to MH i2c: E2 08 00 69 19 80 13 00 00 00 00 00 00 FE [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 69 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetFieldsCounters done [15:33:07]requested_item shift.num is exist - process it [15:33:07]requested_item shift.opened is exist - process it [15:33:07]req_shift_opened [15:33:07]FM_GetShiftState [15:33:07]SAM_PROTO_GetShiftState [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 01 00 [15:33:07]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 53 [15:33:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetShiftState done [15:33:07]FM_GetShiftState done [15:33:07]req_shift_opened done [15:33:07]requested_item shift.open_date is exist - process it [15:33:07]req_shift_open_date [15:33:07]req_shift_open_date done [15:33:07]produce_requested_data done [15:33:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166444,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:33:07]process_action_free close_receipt [15:33:07]json_value_free [15:33:07]json_value_free done [15:33:07]process_json_proto returns [15:33:07]Send response to host [15:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166444,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:33:07]free response buf [15:33:07]execute_script done [15:33:07]execute_script returns [15:33:07]free content buf [15:33:07]Sock 7.Close socket [15:33:07]Sock 7.Thread stoped [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:34]accept exits with 9 [15:33:34]New connection [15:33:34]New thread 3067493732 created [15:33:34]Thread 3067637092 joined [15:33:34]Waiting for new connection... [15:33:34] Sock 9.Parse request [15:33:34]Sock 9.Check first char [15:33:34]Sock 9.First char is OK [15:33:34]request: POST /json_proto HTTP/1.0 [15:33:34]Method: POST [15:33:34]URL: /json_proto [15:33:34]Method is POST - this is cgi request [15:33:34]url: /json_proto [15:33:34]query_string will be loaded in cgi processing [15:33:34]execute_cgi json_proto POST (null) [15:33:34]execute_cgi path=json_proto method=POST [15:33:34]POST find Content-Length [15:33:34]Host: 172.17.53.195:8080 [15:33:34]Content-Length: 790 [15:33:34]Content-Type: application/json [15:33:34] [15:33:34]POST finish read [15:33:34]Found Content-Length = 790 [15:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 209.980, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:34]execute_script... [15:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 209.980, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:34]POST & json_proto [15:33:34]process_json_proto [15:33:34]json parsed OK: [15:33:34]protocol is kg_v1.0 [15:33:34]action value=close_receipt [15:33:34]process_action close_receipt [15:33:34]cmd_close_receipt [15:33:34]MH_GetDate [15:33:34]Write to MH i2c: F0 00 00 6B 19 73 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 09 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 09 00 6B 19 00 CF C5 17 67 21 48 4A 65 A6 [15:33:34]GetLastDocTimeStamp 1729611184 [15:33:34]current date 1729611215 [15:33:34]FM_GetShiftState [15:33:34]SAM_PROTO_GetShiftState [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 13 01 00 [15:33:34]Write to MH i2c: E2 08 00 6C 19 80 13 01 00 00 00 00 00 02 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 6C 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 55 [15:33:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_GetShiftState done [15:33:34]FM_GetShiftState done [15:33:34]opened in 1729557463 [15:33:34]opened+sec_in_day 1729643863 [15:33:34]quantity*price = 0 [15:33:34]sum+1 = 1 [15:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 200 22.10.2024 15:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166445 ФПД: 114443197450327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166445&fm=114443197450327&tin=02508201610067®Number=0000000000091764&sum=0 [15:33:35]StoreToDocumentArchive [15:33:35]shift 536 fd 166445 [15:33:35]save to /storage/0536/doc_00166445 [15:33:35]save last doc name /storage/0536/doc_00166445 to /storage/kkm_last_doc_name [15:33:35]save OK [15:33:35]Clear old archive folders... [15:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:33:35]tlvbuf is B6F68700 [15:33:35]SAM_PROTO_ClearQueue [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 09 00 00 [15:33:35]Write to MH i2c: E2 08 00 79 19 80 09 00 00 00 00 00 00 04 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]SAM_PROTO_ClearQueue done [15:33:35]KKMCreateOFDPacket [15:33:35]OFDProtocolAddRootSTLVToBuf [15:33:35]FM_MakeSignedData [15:33:35]FM_MakeSignedData [15:33:35]SAM_PROTO_SignData [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 01 02 [15:33:35]Write to MH i2c: E2 08 00 7A 19 80 0D 01 02 00 00 00 00 0C [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]wFMCommunicate request_size=255 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 34 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8A 02 00 35 04 06 00 68 15 E2 21 [15:33:35]Write to MH i2c: E2 02 01 7B 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 34 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8A 02 00 35 04 06 00 68 15 E2 21 00 00 10 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]wFMCommunicate request_size=7 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 02 02 02 88 57 [15:33:35]Write to MH i2c: E2 0A 00 7C 19 80 0D 02 02 02 00 88 57 00 00 F2 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 03 02 [15:33:35]Write to MH i2c: E2 08 00 7D 19 80 0D 03 02 00 00 00 00 11 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 0B 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 0B 00 7D 19 00 D8 B7 D1 51 6D 5E B6 B6 90 00 FA [15:33:35]RAPDU: D8 B7 D1 51 6D 5E B6 B6 90 00 [15:33:35]wFMCommunicate OK [15:33:35]SAM_PROTO_SignData done [15:33:35]FM_MakeSignedData done [15:33:35]CreateOFDProtocolMessage [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 11 00 00 [15:33:35]Write to MH i2c: E2 08 00 7E 19 80 11 00 00 00 00 00 00 11 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 17 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 17 00 7E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [15:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:35]wFMCommunicate OK [15:33:35]CreateOFDProtocolMessage done [15:33:35]OFDSenderStorePacket 166445 [15:33:35]StoreOFDPacket docnum=166445 [15:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C 7D 04 01 67 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 34 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8A 02 00 35 04 06 00 68 15 E2 21 88 57 D8 B7 D1 51 6D 5E B6 B6 [15:33:35]CheckFolder [15:33:35]dirname=/storage/ofd_packets [15:33:35]CheckFolder done [15:33:35]ProducePacketName [15:33:35]name=ofd_packets/00166445 [15:33:35]NVStorageSaveData ofd_packets/00166445 [15:33:35]File name is /storage/ofd_packets/00166445 [15:33:35]Write 298 bytes [15:33:35]NVStorageSaveData done [15:33:35]OFDSenderStorePacket done [15:33:35]KKMCreateOFDPacket done [15:33:35]NVStorageSaveData kkm_last_timestamp [15:33:35]File name is /storage/kkm_last_timestamp [15:33:35]Write 4 bytes [15:33:35]NVStorageSaveData done [15:33:35]ExternCall_PrintAddStr [15:33:35]wPrintStart [15:33:35]Write to MH i2c: 01 00 00 7F 19 98 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 7F 19 00 00 00 00 00 FF 0F AD [15:33:35]RasterBufferAndPrint [15:33:35]line Счет N : (1)221021 [15:33:35]line ИНН: 02508201610067 [15:33:35]line Контрольно-Кассовый Чек [15:33:35]line ПРОДАЖА [15:33:35]line ТРК (МРК, ГНК) : 21 [15:33:35]line Товар: 2710194210 [15:33:35]line ДТ-К-5 [15:33:35]line 209.980 * 0.00 [15:33:35]line = 0.00 [15:33:35]line НДС 12% НСП 1% [15:33:35]line > о реализуемом товаре [15:33:35]line ИТОГО: 0.00 [15:33:35]line НСП 1% : 0.00 [15:33:35]line НДС 12% : 0.00 [15:33:35]line Наличными: 0.00 [15:33:35]line Безнал.: 0.00 [15:33:35]line Место: АЗС № 161 "Партнер Нефть" [15:33:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:33:35]line СНО: Общий режим [15:33:35]line Чек 200 22.10.2024 15:33 [15:33:35]line Смена: 536 ФФД: 1.0 [15:33:35]line ЗНМ: 0300000104 [15:33:35]line РНМ: 0000000000091764 [15:33:35]line Версия ККМ: 001 [15:33:35]line Талоны: Топливная Карта [15:33:35]line 85863 [15:33:35]line ФМ: 0000000000871759 [15:33:35]line ФД: 166445 [15:33:35]line ФПД: 114443197450327 [15:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166445&fm=114443197450327&tin=02508201610067®Number=0000000000091764&sum=0 [15:33:36]OFD Sender: Processing packet 166445 [packets to send 48, broken 47] [15:33:36]ProducePacketName [15:33:36]name=ofd_packets/00166445 [15:33:36]OFD Sender: To server: pG, [15:33:36]CommunicateWithHost lk.salyk.kg:30040 [15:33:36]ConnectInit lk.salyk.kg [15:33:36]written 0, free lines is 4095 [15:33:36]Connected sock=10 [15:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C 7D 04 01 67 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 34 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CF C5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8A 02 00 35 04 06 00 68 15 E2 21 88 57 D8 B7 D1 51 6D 5E B6 B6 [15:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 83 3B 47 00 35 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 8A 02 00 F4 03 04 00 39 6C 17 67 B6 04 01 00 00 5F D3 88 8C CB BC 17 C0 [15:33:36]CommunicateWithHost err = 0 [15:33:36]CheckOFDResponse [15:33:36]1017 (14) - 77093643461234 [15:33:36]1041 (16) - 0000000000871759 [15:33:36]1040 (4) - 166445 [15:33:36]1012 (4) - 22.10.2024 09:11 [15:33:36]1206 (1) - 0 [15:33:36]OFD Sender: Remove packet 166445 [15:33:36]ProducePacketName [15:33:36]name=ofd_packets/00166445 [15:33:36]NVStorageDeleteData [15:33:36]Write to MH i2c: 01 00 00 A9 19 C2 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 D0 0C A5 [15:33:36]RasterBufferAndPrint [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]written 0, free lines is 3286 [15:33:36]MH_Cut [15:33:36]Write to MH i2c: D1 01 00 B0 19 01 9B [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 01 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 01 00 B0 19 00 9A [15:33:36]Write to MH i2c: 01 00 00 B1 19 CA [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]OFD Sender: No OFD packet to send [15:33:37]*** Cut start [15:33:37]*** Partial cut [15:33:37]*** CUTSNS_PIN = 1 [15:33:37]*** CUTSNS_PIN = 0 [15:33:37]*** Brake cut motor [15:33:37]Read from MH i2c: 01 [15:33:37]MH_I2C_Read... [15:33:37]*** Stop cut motor [15:33:37]*** Cut end [15:33:37]Read from MH i2c: 01 07 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [15:33:37]process_action close_receipt done [15:33:37]requested_data is exist [15:33:37]produce_requested_data [15:33:37]requested_item fm.sn is exist - process it [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 11 00 00 [15:33:37]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 17 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [15:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:33:38]wFMCommunicate OK [15:33:38]requested_item fd.num is exist - process it [15:33:38]SAM_PROTO_GetFieldsCounters [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 00 00 [15:33:38]Write to MH i2c: E2 08 00 B3 19 80 13 00 00 00 00 00 00 48 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 62 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 62 00 B3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [15:33:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetFieldsCounters done [15:33:38]requested_item shift.num is exist - process it [15:33:38]requested_item shift.opened is exist - process it [15:33:38]req_shift_opened [15:33:38]FM_GetShiftState [15:33:38]SAM_PROTO_GetShiftState [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 01 00 [15:33:38]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9D [15:33:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetShiftState done [15:33:38]FM_GetShiftState done [15:33:38]req_shift_opened done [15:33:38]requested_item shift.open_date is exist - process it [15:33:38]req_shift_open_date [15:33:38]req_shift_open_date done [15:33:38]produce_requested_data done [15:33:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166445,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:33:38]process_action_free close_receipt [15:33:38]json_value_free [15:33:38]json_value_free done [15:33:38]process_json_proto returns [15:33:38]Send response to host [15:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166445,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:33:38]free response buf [15:33:38]execute_script done [15:33:38]execute_script returns [15:33:38]free content buf [15:33:38]Sock 9.Close socket [15:33:38]Sock 9.Thread stoped [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:08]accept exits with 7 [15:35:08]New connection [15:35:08]New thread 3067637092 created [15:35:08]Thread 3067493732 joined [15:35:08]Waiting for new connection... [15:35:08] Sock 7.Parse request [15:35:08]Sock 7.Check first char [15:35:08]Sock 7.First char is OK [15:35:08]request: POST /json_proto HTTP/1.0 [15:35:08]Method: POST [15:35:08]URL: /json_proto [15:35:08]Method is POST - this is cgi request [15:35:08]url: /json_proto [15:35:08]query_string will be loaded in cgi processing [15:35:08]execute_cgi json_proto POST (null) [15:35:08]execute_cgi path=json_proto method=POST [15:35:08]POST find Content-Length [15:35:08]Host: 172.17.53.195:8080 [15:35:08]Content-Length: 677 [15:35:08]Content-Type: application/json [15:35:08] [15:35:08]POST finish read [15:35:08]Found Content-Length = 677 [15:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.240, "sum" : 149.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:08]execute_script... [15:35:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.240, "sum" : 149.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:08]POST & json_proto [15:35:08]process_json_proto [15:35:08]json parsed OK: [15:35:08]protocol is kg_v1.0 [15:35:08]action value=close_receipt [15:35:08]process_action close_receipt [15:35:08]cmd_close_receipt [15:35:08]MH_GetDate [15:35:08]Write to MH i2c: F0 00 00 B5 19 BD [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: F0 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: F0 09 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: F0 09 00 B5 19 00 2D C6 17 67 21 48 4A 65 4F [15:35:08]GetLastDocTimeStamp 1729611215 [15:35:08]current date 1729611309 [15:35:08]FM_GetShiftState [15:35:08]SAM_PROTO_GetShiftState [15:35:08]wFMCommunicate request_size=4 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 13 01 00 [15:35:08]Write to MH i2c: E2 08 00 B6 19 80 13 01 00 00 00 00 00 4C [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 0E 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 0E 00 B6 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9F [15:35:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:35:08]wFMCommunicate OK [15:35:08]SAM_PROTO_GetShiftState done [15:35:08]FM_GetShiftState done [15:35:08]opened in 1729557463 [15:35:08]opened+sec_in_day 1729643863 [15:35:08]quantity*price = 14985 [15:35:08]sum+1 = 14987 [15:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.86 ИТОГО: 149.00 Внесено: 150.00 СДАЧА: 1.00 НСП 1% : 1.33 НДС 12% : 15.91 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 201 22.10.2024 15:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166446 ФПД: 207040137547867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166446&fm=207040137547867&tin=02508201610067®Number=0000000000091764&sum=14900 [15:35:09]StoreToDocumentArchive [15:35:09]shift 536 fd 166446 [15:35:09]save to /storage/0536/doc_00166446 [15:35:09]save last doc name /storage/0536/doc_00166446 to /storage/kkm_last_doc_name [15:35:09]save OK [15:35:09]Clear old archive folders... [15:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:09]tlvbuf is B6FFC180 [15:35:09]SAM_PROTO_ClearQueue [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 09 00 00 [15:35:09]Write to MH i2c: E2 08 00 C3 19 80 09 00 00 00 00 00 00 4E [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:09]Read from MH i2c: E2 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 03 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [15:35:09]RAPDU: 90 00 [15:35:09]wFMCommunicate OK [15:35:09]SAM_PROTO_ClearQueue done [15:35:09]KKMCreateOFDPacket [15:35:09]OFDProtocolAddRootSTLVToBuf [15:35:09]FM_MakeSignedData [15:35:09]FM_MakeSignedData [15:35:09]SAM_PROTO_SignData [15:35:09]wFMCommunicate request_size=4 [15:35:09]MH_SAM_APDU [15:35:09]CAPDU: 80 0D 01 02 [15:35:09]Write to MH i2c: E2 08 00 C4 19 80 0D 01 02 00 00 00 00 56 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=255 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 37 06 00 00 00 00 07 04 06 00 34 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 C9 00 00 00 F4 03 04 00 2D C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8A 02 00 35 04 06 00 BC [15:35:10]Write to MH i2c: E2 02 01 C5 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 37 06 00 00 00 00 07 04 06 00 34 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 C9 00 00 00 F4 03 04 00 2D C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8A 02 00 35 04 06 00 BC 00 00 97 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=10 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 02 02 05 4D 49 DA 50 5B [15:35:10]Write to MH i2c: E2 0D 00 C6 19 80 0D 02 02 05 00 4D 49 DA 50 5B 00 00 7E [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [15:35:10]RAPDU: 90 00 [15:35:10]wFMCommunicate OK [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 0D 03 02 [15:35:10]Write to MH i2c: E2 08 00 C7 19 80 0D 03 02 00 00 00 00 5B [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0B 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0B 00 C7 19 00 C5 E8 24 7B AD 12 A3 E4 90 00 EE [15:35:10]RAPDU: C5 E8 24 7B AD 12 A3 E4 90 00 [15:35:10]wFMCommunicate OK [15:35:10]SAM_PROTO_SignData done [15:35:10]FM_MakeSignedData done [15:35:10]CreateOFDProtocolMessage [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 11 00 00 [15:35:10]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [15:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:35:10]wFMCommunicate OK [15:35:10]CreateOFDProtocolMessage done [15:35:10]OFDSenderStorePacket 166446 [15:35:10]StoreOFDPacket docnum=166446 [15:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 1C 07 01 01 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 37 06 00 00 00 00 07 04 06 00 34 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 C9 00 00 00 F4 03 04 00 2D C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8A 02 00 35 04 06 00 BC 4D 49 DA 50 5B C5 E8 24 7B AD 12 A3 E4 [15:35:10]CheckFolder [15:35:10]dirname=/storage/ofd_packets [15:35:10]CheckFolder done [15:35:10]ProducePacketName [15:35:10]name=ofd_packets/00166446 [15:35:10]NVStorageSaveData ofd_packets/00166446 [15:35:10]File name is /storage/ofd_packets/00166446 [15:35:10]Write 301 bytes [15:35:10]NVStorageSaveData done [15:35:10]OFDSenderStorePacket done [15:35:10]KKMCreateOFDPacket done [15:35:10]NVStorageSaveData kkm_last_timestamp [15:35:10]File name is /storage/kkm_last_timestamp [15:35:10]Write 4 bytes [15:35:10]NVStorageSaveData done [15:35:10]ExternCall_PrintAddStr [15:35:10]wPrintStart [15:35:10]Write to MH i2c: 01 00 00 C9 19 E2 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 07 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 FF 0F F7 [15:35:10]RasterBufferAndPrint [15:35:10]line Счет N : (1)221025 [15:35:10]line ИНН: 02508201610067 [15:35:10]line Контрольно-Кассовый Чек [15:35:10]line ПРОДАЖА [15:35:10]line ТРК (МРК, ГНК) : 13 [15:35:10]line Товар: 2710124130 [15:35:10]line Аи-92-К-5 [15:35:10]line 2.240 * 66.90 [15:35:10]line = 149.86 [15:35:10]line НДС 12% НСП 1% [15:35:10]line > о реализуемом товаре [15:35:10]line ОКРУГЛЕНИЕ: -0.86 [15:35:10]line ИТОГО: 149.00 [15:35:10]line Внесено: 150.00 [15:35:10]line СДАЧА: 1.00 [15:35:10]line НСП 1% : 1.33 [15:35:10]line НДС 12% : 15.91 [15:35:10]line Наличными: 149.00 [15:35:10]line Безнал.: 0.00 [15:35:10]line Место: АЗС № 161 "Партнер Нефть" [15:35:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:35:10]line СНО: Общий режим [15:35:10]line Чек 201 22.10.2024 15:35 [15:35:10]line Смена: 536 ФФД: 1.0 [15:35:10]line ЗНМ: 0300000104 [15:35:10]line РНМ: 0000000000091764 [15:35:10]line Версия ККМ: 001 [15:35:10]line ФМ: 0000000000871759 [15:35:10]line ФД: 166446 [15:35:10]line ФПД: 207040137547867 [15:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153509&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166446&fm=207040137547867&tin=02508201610067®Number=0000000000091764&sum=14900 [15:35:10]OFD Sender: Processing packet 166446 [packets to send 48, broken 47] [15:35:10]ProducePacketName [15:35:10]name=ofd_packets/00166446 [15:35:10]OFD Sender: To server: pG, [15:35:10]CommunicateWithHost lk.salyk.kg:30040 [15:35:10]ConnectInit lk.salyk.kg [15:35:10]written 0, free lines is 4095 [15:35:10]Connected sock=10 [15:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 1C 07 01 01 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 37 06 00 00 00 00 07 04 06 00 34 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 C9 00 00 00 F4 03 04 00 2D C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8A 02 00 35 04 06 00 BC 4D 49 DA 50 5B C5 E8 24 7B AD 12 A3 E4 [15:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 40 6B 47 00 5E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 8A 02 00 F4 03 04 00 98 6C 17 67 B6 04 01 00 00 F9 86 87 C6 13 23 7C 59 [15:35:11]CommunicateWithHost err = 0 [15:35:11]CheckOFDResponse [15:35:11]1017 (14) - 77093643461234 [15:35:11]1041 (16) - 0000000000871759 [15:35:11]1040 (4) - 166446 [15:35:11]1012 (4) - 22.10.2024 09:12 [15:35:11]1206 (1) - 0 [15:35:11]OFD Sender: Remove packet 166446 [15:35:11]ProducePacketName [15:35:11]name=ofd_packets/00166446 [15:35:11]NVStorageDeleteData [15:35:11]Write to MH i2c: 01 00 00 F4 19 0D [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 07 00 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 CB 0C EB [15:35:11]RasterBufferAndPrint [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]line [15:35:11]written 0, free lines is 3281 [15:35:11]MH_Cut [15:35:11]Write to MH i2c: D1 01 00 FB 19 01 E6 [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 01 00 [15:35:11]MH_I2C_Read... [15:35:11]Read from MH i2c: D1 01 00 FB 19 00 E5 [15:35:11]Write to MH i2c: 01 00 00 FC 19 15 [15:35:11]Write i2c OK [15:35:11]MH_I2C_Read... [15:35:11]OFD Sender: No OFD packet to send [15:35:12]*** Cut start [15:35:12]*** Partial cut [15:35:12]*** CUTSNS_PIN = 1 [15:35:12]*** CUTSNS_PIN = 0 [15:35:12]*** Brake cut motor [15:35:12]Read from MH i2c: 01 [15:35:12]MH_I2C_Read... [15:35:12]*** Stop cut motor [15:35:12]*** Cut end [15:35:12]Read from MH i2c: 01 07 00 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [15:35:12]process_action close_receipt done [15:35:12]requested_data is exist [15:35:12]produce_requested_data [15:35:12]requested_item fm.sn is exist - process it [15:35:12]wFMCommunicate request_size=4 [15:35:12]MH_SAM_APDU [15:35:12]CAPDU: 80 11 00 00 [15:35:12]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [15:35:12]Write i2c OK [15:35:12]MH_I2C_Read... [15:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:12]Read from MH i2c: E2 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 17 00 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [15:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:35:12]wFMCommunicate OK [15:35:12]requested_item fd.num is exist - process it [15:35:12]SAM_PROTO_GetFieldsCounters [15:35:12]wFMCommunicate request_size=4 [15:35:12]MH_SAM_APDU [15:35:12]CAPDU: 80 13 00 00 [15:35:12]Write to MH i2c: E2 08 00 FE 19 80 13 00 00 00 00 00 00 93 [15:35:12]Write i2c OK [15:35:12]MH_I2C_Read... [15:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:12]Read from MH i2c: E2 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 62 00 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 62 00 FE 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [15:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:12]wFMCommunicate OK [15:35:12]SAM_PROTO_GetFieldsCounters done [15:35:12]requested_item shift.num is exist - process it [15:35:12]requested_item shift.opened is exist - process it [15:35:12]req_shift_opened [15:35:12]FM_GetShiftState [15:35:12]SAM_PROTO_GetShiftState [15:35:12]wFMCommunicate request_size=4 [15:35:12]MH_SAM_APDU [15:35:12]CAPDU: 80 13 01 00 [15:35:12]Write to MH i2c: E2 08 00 FF 19 80 13 01 00 00 00 00 00 95 [15:35:12]Write i2c OK [15:35:12]MH_I2C_Read... [15:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:12]Read from MH i2c: E2 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 0E 00 [15:35:12]MH_I2C_Read... [15:35:12]Read from MH i2c: E2 0E 00 FF 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E8 [15:35:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:35:12]wFMCommunicate OK [15:35:12]SAM_PROTO_GetShiftState done [15:35:12]FM_GetShiftState done [15:35:12]req_shift_opened done [15:35:12]requested_item shift.open_date is exist - process it [15:35:12]req_shift_open_date [15:35:12]req_shift_open_date done [15:35:12]produce_requested_data done [15:35:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166446,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:35:12]process_action_free close_receipt [15:35:12]json_value_free [15:35:12]json_value_free done [15:35:12]process_json_proto returns [15:35:12]Send response to host [15:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166446,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:35:12]free response buf [15:35:12]execute_script done [15:35:12]execute_script returns [15:35:12]free content buf [15:35:12]Sock 7.Close socket [15:35:12]Sock 7.Thread stoped [15:35:16]OFD Sender: No OFD packet to send [15:35:21]accept exits with 9 [15:35:21]New connection [15:35:21]New thread 3067493732 created [15:35:21]Thread 3067637092 joined [15:35:21]Waiting for new connection... [15:35:21] Sock 9.Parse request [15:35:21]Sock 9.Check first char [15:35:21]Sock 9.First char is OK [15:35:21]request: POST /json_proto HTTP/1.0 [15:35:21]Method: POST [15:35:21]URL: /json_proto [15:35:21]Method is POST - this is cgi request [15:35:21]url: /json_proto [15:35:21]query_string will be loaded in cgi processing [15:35:21]execute_cgi json_proto POST (null) [15:35:21]execute_cgi path=json_proto method=POST [15:35:21]POST find Content-Length [15:35:21]Host: 172.17.53.195:8080 [15:35:21]Content-Length: 677 [15:35:21]Content-Type: application/json [15:35:21] [15:35:21]POST finish read [15:35:21]Found Content-Length = 677 [15:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:21]execute_script... [15:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:21]POST & json_proto [15:35:21]process_json_proto [15:35:21]json parsed OK: [15:35:21]protocol is kg_v1.0 [15:35:21]action value=close_receipt [15:35:21]process_action close_receipt [15:35:21]cmd_close_receipt [15:35:21]MH_GetDate [15:35:21]Write to MH i2c: F0 00 00 00 1A 09 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: F0 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: F0 09 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: F0 09 00 00 1A 00 3A C6 17 67 21 48 4A 65 A8 [15:35:21]GetLastDocTimeStamp 1729611309 [15:35:21]current date 1729611322 [15:35:21]FM_GetShiftState [15:35:21]SAM_PROTO_GetShiftState [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 13 01 00 [15:35:21]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0E 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EB [15:35:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:35:21]wFMCommunicate OK [15:35:21]SAM_PROTO_GetShiftState done [15:35:21]FM_GetShiftState done [15:35:21]opened in 1729557463 [15:35:21]opened+sec_in_day 1729643863 [15:35:21]quantity*price = 29971 [15:35:21]sum+1 = 29972 [15:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 202 22.10.2024 15:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166447 ФПД: 97010666869435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153522&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166447&fm=97010666869435&tin=02508201610067®Number=0000000000091764&sum=29900 [15:35:22]StoreToDocumentArchive [15:35:22]shift 536 fd 166447 [15:35:22]save to /storage/0536/doc_00166447 [15:35:22]save last doc name /storage/0536/doc_00166447 to /storage/kkm_last_doc_name [15:35:22]save OK [15:35:22]Clear old archive folders... [15:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:22]tlvbuf is 00A14510 [15:35:22]SAM_PROTO_ClearQueue [15:35:22]wFMCommunicate request_size=4 [15:35:22]MH_SAM_APDU [15:35:22]CAPDU: 80 09 00 00 [15:35:22]Write to MH i2c: E2 08 00 0E 1A 80 09 00 00 00 00 00 00 9A [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:22]Read from MH i2c: E2 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [15:35:22]RAPDU: 90 00 [15:35:22]wFMCommunicate OK [15:35:22]SAM_PROTO_ClearQueue done [15:35:22]KKMCreateOFDPacket [15:35:22]OFDProtocolAddRootSTLVToBuf [15:35:22]FM_MakeSignedData [15:35:22]FM_MakeSignedData [15:35:22]SAM_PROTO_SignData [15:35:22]wFMCommunicate request_size=4 [15:35:22]MH_SAM_APDU [15:35:22]CAPDU: 80 0D 01 02 [15:35:22]Write to MH i2c: E2 08 00 0F 1A 80 0D 01 02 00 00 00 00 A2 [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:22]Read from MH i2c: E2 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [15:35:22]RAPDU: 90 00 [15:35:22]wFMCommunicate OK [15:35:22]wFMCommunicate request_size=255 [15:35:22]MH_SAM_APDU [15:35:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3A C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8A 02 00 35 04 06 00 58 [15:35:22]Write to MH i2c: E2 02 01 10 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3A C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8A 02 00 35 04 06 00 58 00 00 82 [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:22]Read from MH i2c: E2 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [15:35:22]RAPDU: 90 00 [15:35:22]wFMCommunicate OK [15:35:22]wFMCommunicate request_size=10 [15:35:22]MH_SAM_APDU [15:35:22]CAPDU: 80 0D 02 02 05 3B 0E 56 92 BB [15:35:22]Write to MH i2c: E2 0D 00 11 1A 80 0D 02 02 05 00 3B 0E 56 92 BB 00 00 9B [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:22]Read from MH i2c: E2 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [15:35:22]RAPDU: 90 00 [15:35:22]wFMCommunicate OK [15:35:22]wFMCommunicate request_size=4 [15:35:22]MH_SAM_APDU [15:35:22]CAPDU: 80 0D 03 02 [15:35:22]Write to MH i2c: E2 08 00 12 1A 80 0D 03 02 00 00 00 00 A7 [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:23]Read from MH i2c: E2 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 0B 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 0B 00 12 1A 00 D7 C3 00 CC 80 D0 7E B8 90 00 94 [15:35:23]RAPDU: D7 C3 00 CC 80 D0 7E B8 90 00 [15:35:23]wFMCommunicate OK [15:35:23]SAM_PROTO_SignData done [15:35:23]FM_MakeSignedData done [15:35:23]CreateOFDProtocolMessage [15:35:23]wFMCommunicate request_size=4 [15:35:23]MH_SAM_APDU [15:35:23]CAPDU: 80 11 00 00 [15:35:23]Write to MH i2c: E2 08 00 13 1A 80 11 00 00 00 00 00 00 A7 [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:23]Read from MH i2c: E2 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 17 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: E2 17 00 13 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [15:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:35:23]wFMCommunicate OK [15:35:23]CreateOFDProtocolMessage done [15:35:23]OFDSenderStorePacket 166447 [15:35:23]StoreOFDPacket docnum=166447 [15:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE A9 07 01 8D 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3A C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8A 02 00 35 04 06 00 58 3B 0E 56 92 BB D7 C3 00 CC 80 D0 7E B8 [15:35:23]CheckFolder [15:35:23]dirname=/storage/ofd_packets [15:35:23]CheckFolder done [15:35:23]ProducePacketName [15:35:23]name=ofd_packets/00166447 [15:35:23]NVStorageSaveData ofd_packets/00166447 [15:35:23]File name is /storage/ofd_packets/00166447 [15:35:23]Write 301 bytes [15:35:23]NVStorageSaveData done [15:35:23]OFDSenderStorePacket done [15:35:23]KKMCreateOFDPacket done [15:35:23]NVStorageSaveData kkm_last_timestamp [15:35:23]File name is /storage/kkm_last_timestamp [15:35:23]Write 4 bytes [15:35:23]NVStorageSaveData done [15:35:23]OFD Sender: Processing packet 166447 [packets to send 48, broken 47] [15:35:23]ProducePacketName [15:35:23]name=ofd_packets/00166447 [15:35:23]OFD Sender: To server: pG, [15:35:23]CommunicateWithHost lk.salyk.kg:30040 [15:35:23]ConnectInit lk.salyk.kg [15:35:23]ExternCall_PrintAddStr [15:35:23]wPrintStart [15:35:23]Write to MH i2c: 01 00 00 14 1A 2E [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 07 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 FF 0F 43 [15:35:23]RasterBufferAndPrint [15:35:23]line Счет N : (1)221026 [15:35:23]line ИНН: 02508201610067 [15:35:23]line Контрольно-Кассовый Чек [15:35:23]line ПРОДАЖА [15:35:23]line ТРК (МРК, ГНК) : 43 [15:35:23]line Товар: 2710124130 [15:35:23]line Аи-92-К-5 [15:35:23]line 4.480 * 66.90 [15:35:23]line = 299.71 [15:35:23]line НДС 12% НСП 1% [15:35:23]line > о реализуемом товаре [15:35:23]line ОКРУГЛЕНИЕ: -0.71 [15:35:23]line ИТОГО: 299.00 [15:35:23]line Внесено: 300.00 [15:35:23]line СДАЧА: 1.00 [15:35:23]line НСП 1% : 2.65 [15:35:23]line НДС 12% : 31.83 [15:35:23]line Наличными: 299.00 [15:35:23]line Безнал.: 0.00 [15:35:23]line Место: АЗС № 161 "Партнер Нефть" [15:35:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:35:23]line СНО: Общий режим [15:35:23]line Чек 202 22.10.2024 15:35 [15:35:23]line Смена: 536 ФФД: 1.0 [15:35:23]line ЗНМ: 0300000104 [15:35:23]line РНМ: 0000000000091764 [15:35:23]line Версия ККМ: 001 [15:35:23]line ФМ: 0000000000871759 [15:35:23]line ФД: 166447 [15:35:23]line ФПД: 97010666869435 [15:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153522&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166447&fm=97010666869435&tin=02508201610067®Number=0000000000091764&sum=29900 [15:35:23]Connected sock=11 [15:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE A9 07 01 8D 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3A C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8A 02 00 35 04 06 00 58 3B 0E 56 92 BB D7 C3 00 CC 80 D0 7E B8 [15:35:23]written 0, free lines is 4095 [15:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 34 47 00 AC AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 8A 02 00 F4 03 04 00 A5 6C 17 67 B6 04 01 00 00 39 7B 94 5E E6 5D 5F BC [15:35:23]CommunicateWithHost err = 0 [15:35:23]CheckOFDResponse [15:35:23]1017 (14) - 77093643461234 [15:35:23]1041 (16) - 0000000000871759 [15:35:23]1040 (4) - 166447 [15:35:23]1012 (4) - 22.10.2024 09:13 [15:35:23]1206 (1) - 0 [15:35:23]OFD Sender: Remove packet 166447 [15:35:23]ProducePacketName [15:35:23]name=ofd_packets/00166447 [15:35:23]NVStorageDeleteData [15:35:23]Write to MH i2c: 01 00 00 3F 1A 59 [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 07 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 C7 0C 33 [15:35:23]RasterBufferAndPrint [15:35:23]line [15:35:23]line [15:35:23]line [15:35:23]line [15:35:23]line [15:35:23]written 0, free lines is 3277 [15:35:23]MH_Cut [15:35:23]Write to MH i2c: D1 01 00 46 1A 01 32 [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: D1 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: D1 01 00 [15:35:23]MH_I2C_Read... [15:35:23]Read from MH i2c: D1 01 00 46 1A 00 31 [15:35:23]Write to MH i2c: 01 00 00 47 1A 61 [15:35:23]Write i2c OK [15:35:23]MH_I2C_Read... [15:35:24]OFD Sender: No OFD packet to send [15:35:24]*** Cut start [15:35:24]*** Partial cut [15:35:24]*** CUTSNS_PIN = 1 [15:35:24]*** CUTSNS_PIN = 0 [15:35:24]*** Brake cut motor [15:35:25]Read from MH i2c: 01 [15:35:25]MH_I2C_Read... [15:35:25]*** Stop cut motor [15:35:25]Read from MH i2c: 01 07 00 [15:35:25]MH_I2C_Read... [15:35:25]*** Cut end [15:35:25]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 FF 0F 76 [15:35:25]process_action close_receipt done [15:35:25]requested_data is exist [15:35:25]produce_requested_data [15:35:25]requested_item fm.sn is exist - process it [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 11 00 00 [15:35:25]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 17 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [15:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:35:25]wFMCommunicate OK [15:35:25]requested_item fd.num is exist - process it [15:35:25]SAM_PROTO_GetFieldsCounters [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 13 00 00 [15:35:25]Write to MH i2c: E2 08 00 49 1A 80 13 00 00 00 00 00 00 DF [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 62 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 62 00 49 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [15:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:25]wFMCommunicate OK [15:35:25]SAM_PROTO_GetFieldsCounters done [15:35:25]requested_item shift.num is exist - process it [15:35:25]requested_item shift.opened is exist - process it [15:35:25]req_shift_opened [15:35:25]FM_GetShiftState [15:35:25]SAM_PROTO_GetShiftState [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 13 01 00 [15:35:25]Write to MH i2c: E2 08 00 4A 1A 80 13 01 00 00 00 00 00 E1 [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 0E 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 0E 00 4A 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 34 [15:35:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:35:25]wFMCommunicate OK [15:35:25]SAM_PROTO_GetShiftState done [15:35:25]FM_GetShiftState done [15:35:25]req_shift_opened done [15:35:25]requested_item shift.open_date is exist - process it [15:35:25]req_shift_open_date [15:35:25]req_shift_open_date done [15:35:25]produce_requested_data done [15:35:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166447,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:35:25]process_action_free close_receipt [15:35:25]json_value_free [15:35:25]json_value_free done [15:35:25]process_json_proto returns [15:35:25]Send response to host [15:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166447,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:35:25]free response buf [15:35:25]execute_script done [15:35:25]execute_script returns [15:35:25]free content buf [15:35:25]Sock 9.Close socket [15:35:25]Sock 9.Thread stoped [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37: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:07]accept exits with 7 [15:38:07]New connection [15:38:07]New thread 3067637092 created [15:38:07]Thread 3067493732 joined [15:38:07]Waiting for new connection... [15:38:07] Sock 7.Parse request [15:38:07]Sock 7.Check first char [15:38:07]Sock 7.First char is OK [15:38:07]request: POST /json_proto HTTP/1.0 [15:38:07]Method: POST [15:38:07]URL: /json_proto [15:38:07]Method is POST - this is cgi request [15:38:07]url: /json_proto [15:38:07]query_string will be loaded in cgi processing [15:38:07]execute_cgi json_proto POST (null) [15:38:07]execute_cgi path=json_proto method=POST [15:38:07]POST find Content-Length [15:38:07]Host: 172.17.53.195:8080 [15:38:07]Content-Length: 789 [15:38:07]Content-Type: application/json [15:38:07] [15:38:07]POST finish read [15:38:07]Found Content-Length = 789 [15:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 98.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:07]execute_script... [15:38: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)221027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 98.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:07]POST & json_proto [15:38:07]process_json_proto [15:38:07]json parsed OK: [15:38:07]protocol is kg_v1.0 [15:38:07]action value=close_receipt [15:38:07]process_action close_receipt [15:38:07]cmd_close_receipt [15:38:07]MH_GetDate [15:38:07]Write to MH i2c: F0 00 00 4B 1A 54 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: F0 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: F0 09 00 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: F0 09 00 4B 1A 00 E1 C6 17 67 21 48 4A 65 9A [15:38:07]GetLastDocTimeStamp 1729611322 [15:38:07]current date 1729611489 [15:38:07]FM_GetShiftState [15:38:07]SAM_PROTO_GetShiftState [15:38:07]wFMCommunicate request_size=4 [15:38:07]MH_SAM_APDU [15:38:07]CAPDU: 80 13 01 00 [15:38:07]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:07]Read from MH i2c: E2 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: E2 0E 00 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [15:38:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:38:07]wFMCommunicate OK [15:38:07]SAM_PROTO_GetShiftState done [15:38:07]FM_GetShiftState done [15:38:07]opened in 1729557463 [15:38:07]opened+sec_in_day 1729643863 [15:38:07]quantity*price = 0 [15:38:07]sum+1 = 1 [15:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 203 22.10.2024 15:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166448 ФПД: 240464753573597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166448&fm=240464753573597&tin=02508201610067®Number=0000000000091764&sum=0 [15:38:09]StoreToDocumentArchive [15:38:09]shift 536 fd 166448 [15:38:09]save to /storage/0536/doc_00166448 [15:38:09]save last doc name /storage/0536/doc_00166448 to /storage/kkm_last_doc_name [15:38:09]save OK [15:38:09]Clear old archive folders... [15:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:38:09]tlvbuf is 00A5ACE0 [15:38:09]SAM_PROTO_ClearQueue [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 09 00 00 [15:38:09]Write to MH i2c: E2 08 00 59 1A 80 09 00 00 00 00 00 00 E5 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_ClearQueue done [15:38:09]KKMCreateOFDPacket [15:38:09]OFDProtocolAddRootSTLVToBuf [15:38:09]FM_MakeSignedData [15:38:09]FM_MakeSignedData [15:38:09]SAM_PROTO_SignData [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 01 02 [15:38:09]Write to MH i2c: E2 08 00 5A 1A 80 0D 01 02 00 00 00 00 ED [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=255 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 E1 C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8A 02 00 35 04 06 00 DA B3 90 37 [15:38:09]Write to MH i2c: E2 02 01 5B 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 E1 C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8A 02 00 35 04 06 00 DA B3 90 37 00 00 6A [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]OFD Sender: No OFD packet to send [15:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=7 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 02 02 02 BE DD [15:38:09]Write to MH i2c: E2 0A 00 5C 1A 80 0D 02 02 02 00 BE DD 00 00 8F [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 03 02 [15:38:09]Write to MH i2c: E2 08 00 5D 1A 80 0D 03 02 00 00 00 00 F2 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0B 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0B 00 5D 1A 00 47 03 94 C8 DD EC AB 43 90 00 50 [15:38:09]RAPDU: 47 03 94 C8 DD EC AB 43 90 00 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_SignData done [15:38:09]FM_MakeSignedData done [15:38:09]CreateOFDProtocolMessage [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 11 00 00 [15:38:09]Write to MH i2c: E2 08 00 5E 1A 80 11 00 00 00 00 00 00 F2 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 5E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [15:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:09]wFMCommunicate OK [15:38:09]CreateOFDProtocolMessage done [15:38:09]OFDSenderStorePacket 166448 [15:38:09]StoreOFDPacket docnum=166448 [15:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C5 F9 04 01 3B CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 E1 C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8A 02 00 35 04 06 00 DA B3 90 37 BE DD 47 03 94 C8 DD EC AB 43 [15:38:09]CheckFolder [15:38:09]dirname=/storage/ofd_packets [15:38:09]CheckFolder done [15:38:09]ProducePacketName [15:38:09]name=ofd_packets/00166448 [15:38:09]NVStorageSaveData ofd_packets/00166448 [15:38:09]File name is /storage/ofd_packets/00166448 [15:38:09]Write 298 bytes [15:38:09]NVStorageSaveData done [15:38:09]OFDSenderStorePacket done [15:38:09]KKMCreateOFDPacket done [15:38:09]NVStorageSaveData kkm_last_timestamp [15:38:09]File name is /storage/kkm_last_timestamp [15:38:09]Write 4 bytes [15:38:09]NVStorageSaveData done [15:38:09]ExternCall_PrintAddStr [15:38:09]wPrintStart [15:38:09]Write to MH i2c: 01 00 00 5F 1A 79 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [15:38:09]RasterBufferAndPrint [15:38:09]line Счет N : (1)221027 [15:38:09]line ИНН: 02508201610067 [15:38:09]line Контрольно-Кассовый Чек [15:38:09]line ПРОДАЖА [15:38:09]line ТРК (МРК, ГНК) : 21 [15:38:09]line Товар: 2710194210 [15:38:09]line ДТ-К-5 [15:38:09]line 98.430 * 0.00 [15:38:09]line = 0.00 [15:38:09]line НДС 12% НСП 1% [15:38:09]line > о реализуемом товаре [15:38:09]line ИТОГО: 0.00 [15:38:09]line НСП 1% : 0.00 [15:38:09]line НДС 12% : 0.00 [15:38:09]line Наличными: 0.00 [15:38:09]line Безнал.: 0.00 [15:38:09]line Место: АЗС № 161 "Партнер Нефть" [15:38:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:38:09]line СНО: Общий режим [15:38:09]line Чек 203 22.10.2024 15:38 [15:38:09]line Смена: 536 ФФД: 1.0 [15:38:09]line ЗНМ: 0300000104 [15:38:09]line РНМ: 0000000000091764 [15:38:09]line Версия ККМ: 001 [15:38:09]line Талоны: Топливная Карта [15:38:09]line 85863 [15:38:09]line ФМ: 0000000000871759 [15:38:09]line ФД: 166448 [15:38:09]line ФПД: 240464753573597 [15:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166448&fm=240464753573597&tin=02508201610067®Number=0000000000091764&sum=0 [15:38:09]written 0, free lines is 4095 [15:38:09]OFD Sender: Processing packet 166448 [packets to send 48, broken 47] [15:38:09]ProducePacketName [15:38:09]name=ofd_packets/00166448 [15:38:09]OFD Sender: To server: pG, [15:38:09]CommunicateWithHost lk.salyk.kg:30040 [15:38:09]ConnectInit lk.salyk.kg [15:38:09]Connected sock=10 [15:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C5 F9 04 01 3B CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 E1 C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8A 02 00 35 04 06 00 DA B3 90 37 BE DD 47 03 94 C8 DD EC AB 43 [15:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD 68 47 00 CC 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 8A 02 00 F4 03 04 00 4B 6D 17 67 B6 04 01 00 00 3E 00 AC 6D 28 A9 5E DE [15:38:09]CommunicateWithHost err = 0 [15:38:09]CheckOFDResponse [15:38:09]1017 (14) - 77093643461234 [15:38:09]1041 (16) - 0000000000871759 [15:38:09]1040 (4) - 166448 [15:38:09]1012 (4) - 22.10.2024 09:15 [15:38:09]1206 (1) - 0 [15:38:09]OFD Sender: Remove packet 166448 [15:38:09]ProducePacketName [15:38:09]name=ofd_packets/00166448 [15:38:09]NVStorageDeleteData [15:38:10]Write to MH i2c: 01 00 00 89 1A A3 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 E0 0C 96 [15:38:10]RasterBufferAndPrint [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]written 0, free lines is 3303 [15:38:10]MH_Cut [15:38:10]Write to MH i2c: D1 01 00 90 1A 01 7C [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 01 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 01 00 90 1A 00 7B [15:38:10]Write to MH i2c: 01 00 00 91 1A AB [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]OFD Sender: No OFD packet to send [15:38:10]*** Cut start [15:38:10]*** Partial cut [15:38:10]*** CUTSNS_PIN = 1 [15:38:10]*** CUTSNS_PIN = 0 [15:38:11]*** Brake cut motor [15:38:11]Read from MH i2c: 01 [15:38:11]MH_I2C_Read... [15:38:11]*** Stop cut motor [15:38:11]*** Cut end [15:38:11]Read from MH i2c: 01 07 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 FF 0F C0 [15:38:11]process_action close_receipt done [15:38:11]requested_data is exist [15:38:11]produce_requested_data [15:38:11]requested_item fm.sn is exist - process it [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 11 00 00 [15:38:11]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 17 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [15:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:11]wFMCommunicate OK [15:38:11]requested_item fd.num is exist - process it [15:38:11]SAM_PROTO_GetFieldsCounters [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 13 00 00 [15:38:11]Write to MH i2c: E2 08 00 93 1A 80 13 00 00 00 00 00 00 29 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 62 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 62 00 93 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [15:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:11]wFMCommunicate OK [15:38:11]SAM_PROTO_GetFieldsCounters done [15:38:11]requested_item shift.num is exist - process it [15:38:11]requested_item shift.opened is exist - process it [15:38:11]req_shift_opened [15:38:11]FM_GetShiftState [15:38:11]SAM_PROTO_GetShiftState [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 13 01 00 [15:38:11]Write to MH i2c: E2 08 00 94 1A 80 13 01 00 00 00 00 00 2B [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 0E 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 0E 00 94 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7E [15:38:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:38:11]wFMCommunicate OK [15:38:11]SAM_PROTO_GetShiftState done [15:38:11]FM_GetShiftState done [15:38:11]req_shift_opened done [15:38:11]requested_item shift.open_date is exist - process it [15:38:11]req_shift_open_date [15:38:11]req_shift_open_date done [15:38:11]produce_requested_data done [15:38:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166448,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:38:11]process_action_free close_receipt [15:38:11]json_value_free [15:38:11]json_value_free done [15:38:11]process_json_proto returns [15:38:11]Send response to host [15:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166448,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:38:11]free response buf [15:38:11]execute_script done [15:38:11]execute_script returns [15:38:11]free content buf [15:38:11]Sock 7.Close socket [15:38:11]Sock 7.Thread stoped [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:22]accept exits with 9 [15:38:22]New connection [15:38:22]New thread 3067493732 created [15:38:22]Thread 3067637092 joined [15:38:22]Waiting for new connection... [15:38:22] Sock 9.Parse request [15:38:22]Sock 9.Check first char [15:38:22]Sock 9.First char is OK [15:38:22]request: POST /json_proto HTTP/1.0 [15:38:22]Method: POST [15:38:22]URL: /json_proto [15:38:22]Method is POST - this is cgi request [15:38:22]url: /json_proto [15:38:22]query_string will be loaded in cgi processing [15:38:22]execute_cgi json_proto POST (null) [15:38:22]execute_cgi path=json_proto method=POST [15:38:22]POST find Content-Length [15:38:22]Host: 172.17.53.195:8080 [15:38:22]Content-Length: 682 [15:38:22]Content-Type: application/json [15:38:22] [15:38:22]POST finish read [15:38:22]Found Content-Length = 682 [15:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:22]execute_script... [15:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:22]POST & json_proto [15:38:22]process_json_proto [15:38:22]json parsed OK: [15:38:22]protocol is kg_v1.0 [15:38:22]action value=close_receipt [15:38:22]process_action close_receipt [15:38:22]cmd_close_receipt [15:38:22]MH_GetDate [15:38:22]Write to MH i2c: F0 00 00 95 1A 9E [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: F0 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: F0 09 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: F0 09 00 95 1A 00 EF C6 17 67 21 48 4A 65 F2 [15:38:22]GetLastDocTimeStamp 1729611489 [15:38:22]current date 1729611503 [15:38:22]FM_GetShiftState [15:38:22]SAM_PROTO_GetShiftState [15:38:22]wFMCommunicate request_size=4 [15:38:22]MH_SAM_APDU [15:38:22]CAPDU: 80 13 01 00 [15:38:22]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0E 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 80 [15:38:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:38:22]wFMCommunicate OK [15:38:22]SAM_PROTO_GetShiftState done [15:38:22]FM_GetShiftState done [15:38:22]opened in 1729557463 [15:38:22]opened+sec_in_day 1729643863 [15:38:22]quantity*price = 100015 [15:38:22]sum+1 = 100017 [15:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 204 22.10.2024 15:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166449 ФПД: 128978632912990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166449&fm=128978632912990&tin=02508201610067®Number=0000000000091764&sum=100000 [15:38:23]StoreToDocumentArchive [15:38:23]shift 536 fd 166449 [15:38:23]save to /storage/0536/doc_00166449 [15:38:23]save last doc name /storage/0536/doc_00166449 to /storage/kkm_last_doc_name [15:38:23]save OK [15:38:23]Clear old archive folders... [15:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:23]tlvbuf is 00A351D0 [15:38:23]SAM_PROTO_ClearQueue [15:38:23]wFMCommunicate request_size=4 [15:38:23]MH_SAM_APDU [15:38:23]CAPDU: 80 09 00 00 [15:38:23]Write to MH i2c: E2 08 00 A3 1A 80 09 00 00 00 00 00 00 2F [15:38:23]Write i2c OK [15:38:23]MH_I2C_Read... [15:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:23]Read from MH i2c: E2 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 A3 1A 00 90 00 31 [15:38:23]RAPDU: 90 00 [15:38:23]wFMCommunicate OK [15:38:23]SAM_PROTO_ClearQueue done [15:38:23]KKMCreateOFDPacket [15:38:23]OFDProtocolAddRootSTLVToBuf [15:38:23]FM_MakeSignedData [15:38:23]FM_MakeSignedData [15:38:23]SAM_PROTO_SignData [15:38:23]wFMCommunicate request_size=4 [15:38:23]MH_SAM_APDU [15:38:23]CAPDU: 80 0D 01 02 [15:38:23]Write to MH i2c: E2 08 00 A4 1A 80 0D 01 02 00 00 00 00 37 [15:38:23]Write i2c OK [15:38:23]MH_I2C_Read... [15:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:23]Read from MH i2c: E2 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [15:38:23]RAPDU: 90 00 [15:38:23]wFMCommunicate OK [15:38:23]wFMCommunicate request_size=255 [15:38:23]MH_SAM_APDU [15:38:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 EF C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8A 02 00 35 04 06 00 75 [15:38:23]Write to MH i2c: E2 02 01 A5 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 EF C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8A 02 00 35 04 06 00 75 00 00 12 [15:38:23]Write i2c OK [15:38:23]MH_I2C_Read... [15:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:23]Read from MH i2c: E2 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [15:38:23]RAPDU: 90 00 [15:38:23]wFMCommunicate OK [15:38:23]wFMCommunicate request_size=10 [15:38:23]MH_SAM_APDU [15:38:23]CAPDU: 80 0D 02 02 05 4E 2D 99 30 5E [15:38:23]Write to MH i2c: E2 0D 00 A6 1A 80 0D 02 02 05 00 4E 2D 99 30 5E 00 00 E6 [15:38:23]Write i2c OK [15:38:23]MH_I2C_Read... [15:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:23]Read from MH i2c: E2 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 [15:38:23]MH_I2C_Read... [15:38:23]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [15:38:23]RAPDU: 90 00 [15:38:23]wFMCommunicate OK [15:38:23]wFMCommunicate request_size=4 [15:38:23]MH_SAM_APDU [15:38:23]CAPDU: 80 0D 03 02 [15:38:23]Write to MH i2c: E2 08 00 A7 1A 80 0D 03 02 00 00 00 00 3C [15:38:23]Write i2c OK [15:38:23]MH_I2C_Read... [15:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:24]Read from MH i2c: E2 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0B 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0B 00 A7 1A 00 5D D9 47 22 4E 99 8F EF 90 00 41 [15:38:24]RAPDU: 5D D9 47 22 4E 99 8F EF 90 00 [15:38:24]wFMCommunicate OK [15:38:24]SAM_PROTO_SignData done [15:38:24]FM_MakeSignedData done [15:38:24]CreateOFDProtocolMessage [15:38:24]wFMCommunicate request_size=4 [15:38:24]MH_SAM_APDU [15:38:24]CAPDU: 80 11 00 00 [15:38:24]Write to MH i2c: E2 08 00 A8 1A 80 11 00 00 00 00 00 00 3C [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:24]Read from MH i2c: E2 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 17 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 17 00 A8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [15:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:24]wFMCommunicate OK [15:38:24]CreateOFDProtocolMessage done [15:38:24]OFDSenderStorePacket 166449 [15:38:24]StoreOFDPacket docnum=166449 [15:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 30 07 01 A5 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 EF C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8A 02 00 35 04 06 00 75 4E 2D 99 30 5E 5D D9 47 22 4E 99 8F EF [15:38:24]CheckFolder [15:38:24]dirname=/storage/ofd_packets [15:38:24]CheckFolder done [15:38:24]ProducePacketName [15:38:24]name=ofd_packets/00166449 [15:38:24]NVStorageSaveData ofd_packets/00166449 [15:38:24]File name is /storage/ofd_packets/00166449 [15:38:24]Write 301 bytes [15:38:24]NVStorageSaveData done [15:38:24]OFDSenderStorePacket done [15:38:24]KKMCreateOFDPacket done [15:38:24]NVStorageSaveData kkm_last_timestamp [15:38:24]File name is /storage/kkm_last_timestamp [15:38:24]Write 4 bytes [15:38:24]NVStorageSaveData done [15:38:24]ExternCall_PrintAddStr [15:38:24]wPrintStart [15:38:24]Write to MH i2c: 01 00 00 A9 1A C3 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 07 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [15:38:24]RasterBufferAndPrint [15:38:24]line Счет N : (1)221028 [15:38:24]line ИНН: 02508201610067 [15:38:24]line Контрольно-Кассовый Чек [15:38:24]line ПРОДАЖА [15:38:24]line ТРК (МРК, ГНК) : 13 [15:38:24]line Товар: 2710124130 [15:38:24]line Аи-92-К-5 [15:38:24]line 14.950 * 66.90 [15:38:24]line = 1000.16 [15:38:24]line НДС 12% НСП 1% [15:38:24]line > о реализуемом товаре [15:38:24]line ОКРУГЛЕНИЕ: -0.16 [15:38:24]line ИТОГО: 1000.00 [15:38:24]line Внесено: 1000.00 [15:38:24]line СДАЧА: 0.00 [15:38:24]line НСП 1% : 8.85 [15:38:24]line НДС 12% : 106.21 [15:38:24]line Наличными: 1000.00 [15:38:24]line Безнал.: 0.00 [15:38:24]line Место: АЗС № 161 "Партнер Нефть" [15:38:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:38:24]line СНО: Общий режим [15:38:24]line Чек 204 22.10.2024 15:38 [15:38:24]line Смена: 536 ФФД: 1.0 [15:38:24]line ЗНМ: 0300000104 [15:38:24]line РНМ: 0000000000091764 [15:38:24]line Версия ККМ: 001 [15:38:24]line ФМ: 0000000000871759 [15:38:24]line ФД: 166449 [15:38:24]line ФПД: 128978632912990 [15:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166449&fm=128978632912990&tin=02508201610067®Number=0000000000091764&sum=100000 [15:38:24]OFD Sender: Processing packet 166449 [packets to send 48, broken 47] [15:38:24]ProducePacketName [15:38:24]name=ofd_packets/00166449 [15:38:24]OFD Sender: To server: pG, [15:38:24]CommunicateWithHost lk.salyk.kg:30040 [15:38:24]ConnectInit lk.salyk.kg [15:38:24]written 0, free lines is 4095 [15:38:24]Connected sock=7 [15:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 30 07 01 A5 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 EF C6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8A 02 00 35 04 06 00 75 4E 2D 99 30 5E 5D D9 47 22 4E 99 8F EF [15:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F5 CF 47 00 87 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 8A 02 00 F4 03 04 00 5A 6D 17 67 B6 04 01 00 00 C6 3E 78 1A 1B DB 88 AC [15:38:24]CommunicateWithHost err = 0 [15:38:24]CheckOFDResponse [15:38:24]1017 (14) - 77093643461234 [15:38:24]1041 (16) - 0000000000871759 [15:38:24]1040 (4) - 166449 [15:38:24]1012 (4) - 22.10.2024 09:16 [15:38:24]1206 (1) - 0 [15:38:24]OFD Sender: Remove packet 166449 [15:38:24]ProducePacketName [15:38:24]name=ofd_packets/00166449 [15:38:24]NVStorageDeleteData [15:38:24]Write to MH i2c: 01 00 00 D4 1A EE [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 07 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 D8 0C D9 [15:38:24]RasterBufferAndPrint [15:38:24]line [15:38:24]line [15:38:24]line [15:38:24]line [15:38:24]line [15:38:24]written 0, free lines is 3295 [15:38:24]MH_Cut [15:38:24]Write to MH i2c: D1 01 00 DB 1A 01 C7 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: D1 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: D1 01 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: D1 01 00 DB 1A 00 C6 [15:38:24]Write to MH i2c: 01 00 00 DC 1A F6 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:25]OFD Sender: No OFD packet to send [15:38:25]*** Cut start [15:38:25]*** Partial cut [15:38:25]*** CUTSNS_PIN = 1 [15:38:25]*** CUTSNS_PIN = 0 [15:38:25]*** Brake cut motor [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]*** Stop cut motor [15:38:26]*** Cut end [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [15:38:26]process_action close_receipt done [15:38:26]requested_data is exist [15:38:26]produce_requested_data [15:38:26]requested_item fm.sn is exist - process it [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 11 00 00 [15:38:26]Write to MH i2c: E2 08 00 DD 1A 80 11 00 00 00 00 00 00 71 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 17 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 17 00 DD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [15:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:26]wFMCommunicate OK [15:38:26]requested_item fd.num is exist - process it [15:38:26]SAM_PROTO_GetFieldsCounters [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 13 00 00 [15:38:26]Write to MH i2c: E2 08 00 DE 1A 80 13 00 00 00 00 00 00 74 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 62 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 62 00 DE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [15:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:26]wFMCommunicate OK [15:38:26]SAM_PROTO_GetFieldsCounters done [15:38:26]requested_item shift.num is exist - process it [15:38:26]requested_item shift.opened is exist - process it [15:38:26]req_shift_opened [15:38:26]FM_GetShiftState [15:38:26]SAM_PROTO_GetShiftState [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 13 01 00 [15:38:26]Write to MH i2c: E2 08 00 DF 1A 80 13 01 00 00 00 00 00 76 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 0E 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 0E 00 DF 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C9 [15:38:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:38:26]wFMCommunicate OK [15:38:26]SAM_PROTO_GetShiftState done [15:38:26]FM_GetShiftState done [15:38:26]req_shift_opened done [15:38:26]requested_item shift.open_date is exist - process it [15:38:26]req_shift_open_date [15:38:26]req_shift_open_date done [15:38:26]produce_requested_data done [15:38:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166449,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:38:26]process_action_free close_receipt [15:38:26]json_value_free [15:38:26]json_value_free done [15:38:26]process_json_proto returns [15:38:26]Send response to host [15:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166449,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:38:26]free response buf [15:38:26]execute_script done [15:38:26]execute_script returns [15:38:26]free content buf [15:38:26]Sock 9.Close socket [15:38:26]Sock 9.Thread stoped [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:01]accept exits with 10 [15:40:01]New connection [15:40:01]New thread 3067637092 created [15:40:01]Thread 3067493732 joined [15:40:01]Waiting for new connection... [15:40:01] Sock 10.Parse request [15:40:01]Sock 10.Check first char [15:40:01]Sock 10.First char is OK [15:40:01]request: POST /json_proto HTTP/1.0 [15:40:01]Method: POST [15:40:01]URL: /json_proto [15:40:01]Method is POST - this is cgi request [15:40:01]url: /json_proto [15:40:01]query_string will be loaded in cgi processing [15:40:01]execute_cgi json_proto POST (null) [15:40:01]execute_cgi path=json_proto method=POST [15:40:01]POST find Content-Length [15:40:01]Host: 172.17.53.195:8080 [15:40:01]Content-Length: 682 [15:40:01]Content-Type: application/json [15:40:01] [15:40:01]POST finish read [15:40:01]Found Content-Length = 682 [15:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:01]execute_script... [15:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:01]POST & json_proto [15:40:01]process_json_proto [15:40:01]json parsed OK: [15:40:01]protocol is kg_v1.0 [15:40:01]action value=close_receipt [15:40:01]process_action close_receipt [15:40:01]cmd_close_receipt [15:40:01]MH_GetDate [15:40:01]Write to MH i2c: F0 00 00 E0 1A E9 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: F0 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: F0 09 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: F0 09 00 E0 1A 00 53 C7 17 67 21 48 4A 65 A2 [15:40:01]GetLastDocTimeStamp 1729611503 [15:40:01]current date 1729611603 [15:40:01]FM_GetShiftState [15:40:01]SAM_PROTO_GetShiftState [15:40:01]wFMCommunicate request_size=4 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 13 01 00 [15:40:01]Write to MH i2c: E2 08 00 E1 1A 80 13 01 00 00 00 00 00 78 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:01]Read from MH i2c: E2 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 0E 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 0E 00 E1 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CB [15:40:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:40:01]wFMCommunicate OK [15:40:01]SAM_PROTO_GetShiftState done [15:40:01]FM_GetShiftState done [15:40:01]opened in 1729557463 [15:40:01]opened+sec_in_day 1729643863 [15:40:01]quantity*price = 100015 [15:40:01]sum+1 = 100017 [15:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 205 22.10.2024 15:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166450 ФПД: 250412925333960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154003&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166450&fm=250412925333960&tin=02508201610067®Number=0000000000091764&sum=100000 [15:40:03]StoreToDocumentArchive [15:40:03]shift 536 fd 166450 [15:40:03]save to /storage/0536/doc_00166450 [15:40:03]save last doc name /storage/0536/doc_00166450 to /storage/kkm_last_doc_name [15:40:03]save OK [15:40:03]Clear old archive folders... [15:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:03]tlvbuf is B6FFF3D0 [15:40:03]SAM_PROTO_ClearQueue [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 09 00 00 [15:40:03]Write to MH i2c: E2 08 00 EE 1A 80 09 00 00 00 00 00 00 7A [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]SAM_PROTO_ClearQueue done [15:40:03]KKMCreateOFDPacket [15:40:03]OFDProtocolAddRootSTLVToBuf [15:40:03]FM_MakeSignedData [15:40:03]FM_MakeSignedData [15:40:03]SAM_PROTO_SignData [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 01 02 [15:40:03]Write to MH i2c: E2 08 00 EF 1A 80 0D 01 02 00 00 00 00 82 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=255 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8A 02 00 35 04 06 00 E3 [15:40:03]Write to MH i2c: E2 02 01 F0 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8A 02 00 35 04 06 00 E3 00 00 32 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=10 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 02 02 05 BF CD 76 31 C8 [15:40:03]Write to MH i2c: E2 0D 00 F1 1A 80 0D 02 02 05 00 BF CD 76 31 C8 00 00 8A [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 03 02 [15:40:03]Write to MH i2c: E2 08 00 F2 1A 80 0D 03 02 00 00 00 00 87 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 0B 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 0B 00 F2 1A 00 EF 46 15 35 9B D0 B3 A7 90 00 CC [15:40:03]RAPDU: EF 46 15 35 9B D0 B3 A7 90 00 [15:40:03]wFMCommunicate OK [15:40:03]SAM_PROTO_SignData done [15:40:03]FM_MakeSignedData done [15:40:03]CreateOFDProtocolMessage [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 11 00 00 [15:40:03]Write to MH i2c: E2 08 00 F3 1A 80 11 00 00 00 00 00 00 87 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 17 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 17 00 F3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [15:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:40:03]wFMCommunicate OK [15:40:03]CreateOFDProtocolMessage done [15:40:03]OFDSenderStorePacket 166450 [15:40:03]StoreOFDPacket docnum=166450 [15:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 73 07 01 5B E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8A 02 00 35 04 06 00 E3 BF CD 76 31 C8 EF 46 15 35 9B D0 B3 A7 [15:40:03]CheckFolder [15:40:03]dirname=/storage/ofd_packets [15:40:03]CheckFolder done [15:40:03]ProducePacketName [15:40:03]name=ofd_packets/00166450 [15:40:03]NVStorageSaveData ofd_packets/00166450 [15:40:03]File name is /storage/ofd_packets/00166450 [15:40:03]Write 301 bytes [15:40:03]NVStorageSaveData done [15:40:03]OFDSenderStorePacket done [15:40:03]KKMCreateOFDPacket done [15:40:03]NVStorageSaveData kkm_last_timestamp [15:40:03]File name is /storage/kkm_last_timestamp [15:40:03]Write 4 bytes [15:40:03]NVStorageSaveData done [15:40:03]ExternCall_PrintAddStr [15:40:03]wPrintStart [15:40:03]Write to MH i2c: 01 00 00 F4 1A 0E [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: 01 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: 01 07 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [15:40:03]RasterBufferAndPrint [15:40:03]line Счет N : (1)221029 [15:40:03]line ИНН: 02508201610067 [15:40:03]line Контрольно-Кассовый Чек [15:40:03]line ПРОДАЖА [15:40:03]line ТРК (МРК, ГНК) : 13 [15:40:03]line Товар: 2710124130 [15:40:03]line Аи-92-К-5 [15:40:03]line 14.950 * 66.90 [15:40:03]line = 1000.16 [15:40:03]line НДС 12% НСП 1% [15:40:03]line > о реализуемом товаре [15:40:03]line ОКРУГЛЕНИЕ: -0.16 [15:40:03]line ИТОГО: 1000.00 [15:40:03]line Внесено: 1000.00 [15:40:03]line СДАЧА: 0.00 [15:40:03]line НСП 1% : 8.85 [15:40:03]line НДС 12% : 106.21 [15:40:03]line Наличными: 1000.00 [15:40:03]line Безнал.: 0.00 [15:40:03]line Место: АЗС № 161 "Партнер Нефть" [15:40:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:40:03]line СНО: Общий режим [15:40:03]line Чек 205 22.10.2024 15:40 [15:40:03]line Смена: 536 ФФД: 1.0 [15:40:03]line ЗНМ: 0300000104 [15:40:03]line РНМ: 0000000000091764 [15:40:03]line Версия ККМ: 001 [15:40:03]line ФМ: 0000000000871759 [15:40:03]line ФД: 166450 [15:40:03]line ФПД: 250412925333960 [15:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154003&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166450&fm=250412925333960&tin=02508201610067®Number=0000000000091764&sum=100000 [15:40:03]OFD Sender: Processing packet 166450 [packets to send 48, broken 47] [15:40:03]ProducePacketName [15:40:03]name=ofd_packets/00166450 [15:40:03]OFD Sender: To server: pG, [15:40:03]CommunicateWithHost lk.salyk.kg:30040 [15:40:03]ConnectInit lk.salyk.kg [15:40:03]written 0, free lines is 4095 [15:40:04]Connected sock=9 [15:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 73 07 01 5B E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 53 C7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8A 02 00 35 04 06 00 E3 BF CD 76 31 C8 EF 46 15 35 9B D0 B3 A7 [15:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF 39 47 00 0F DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 8A 02 00 F4 03 04 00 BD 6D 17 67 B6 04 01 00 00 6C F1 93 CA C2 DC FA D1 [15:40:04]CommunicateWithHost err = 0 [15:40:04]CheckOFDResponse [15:40:04]1017 (14) - 77093643461234 [15:40:04]1041 (16) - 0000000000871759 [15:40:04]1040 (4) - 166450 [15:40:04]1012 (4) - 22.10.2024 09:17 [15:40:04]1206 (1) - 0 [15:40:04]OFD Sender: Remove packet 166450 [15:40:04]ProducePacketName [15:40:04]name=ofd_packets/00166450 [15:40:04]NVStorageDeleteData [15:40:04]Write to MH i2c: 01 00 00 1F 1B 3A [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 D4 0C 21 [15:40:04]RasterBufferAndPrint [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]written 0, free lines is 3292 [15:40:04]MH_Cut [15:40:04]Write to MH i2c: D1 01 00 26 1B 01 13 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 01 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 01 00 26 1B 00 12 [15:40:04]Write to MH i2c: 01 00 00 27 1B 42 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]OFD Sender: No OFD packet to send [15:40:05]*** Cut start [15:40:05]*** Partial cut [15:40:05]*** CUTSNS_PIN = 1 [15:40:05]*** CUTSNS_PIN = 0 [15:40:05]*** Brake cut motor [15:40:05]Read from MH i2c: 01 [15:40:05]MH_I2C_Read... [15:40:05]*** Stop cut motor [15:40:05]*** Cut end [15:40:05]Read from MH i2c: 01 07 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: 01 07 00 27 1B 00 00 00 00 00 FF 0F 57 [15:40:05]process_action close_receipt done [15:40:05]requested_data is exist [15:40:05]produce_requested_data [15:40:05]requested_item fm.sn is exist - process it [15:40:05]wFMCommunicate request_size=4 [15:40:05]MH_SAM_APDU [15:40:05]CAPDU: 80 11 00 00 [15:40:05]Write to MH i2c: E2 08 00 28 1B 80 11 00 00 00 00 00 00 BD [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:05]Read from MH i2c: E2 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 17 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 17 00 28 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [15:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:40:05]wFMCommunicate OK [15:40:05]requested_item fd.num is exist - process it [15:40:05]SAM_PROTO_GetFieldsCounters [15:40:05]wFMCommunicate request_size=4 [15:40:05]MH_SAM_APDU [15:40:05]CAPDU: 80 13 00 00 [15:40:05]Write to MH i2c: E2 08 00 29 1B 80 13 00 00 00 00 00 00 C0 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 62 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 62 00 29 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [15:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:06]wFMCommunicate OK [15:40:06]SAM_PROTO_GetFieldsCounters done [15:40:06]requested_item shift.num is exist - process it [15:40:06]requested_item shift.opened is exist - process it [15:40:06]req_shift_opened [15:40:06]FM_GetShiftState [15:40:06]SAM_PROTO_GetShiftState [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 13 01 00 [15:40:06]Write to MH i2c: E2 08 00 2A 1B 80 13 01 00 00 00 00 00 C2 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 0E 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 0E 00 2A 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 15 [15:40:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:40:06]wFMCommunicate OK [15:40:06]SAM_PROTO_GetShiftState done [15:40:06]FM_GetShiftState done [15:40:06]req_shift_opened done [15:40:06]requested_item shift.open_date is exist - process it [15:40:06]req_shift_open_date [15:40:06]req_shift_open_date done [15:40:06]produce_requested_data done [15:40:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166450,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:40:06]process_action_free close_receipt [15:40:06]json_value_free [15:40:06]json_value_free done [15:40:06]process_json_proto returns [15:40:06]Send response to host [15:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166450,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:40:06]free response buf [15:40:06]execute_script done [15:40:06]execute_script returns [15:40:06]free content buf [15:40:06]Sock 10.Close socket [15:40:06]Sock 10.Thread stoped [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:03]accept exits with 7 [15:44:03]New connection [15:44:03]New thread 3067493732 created [15:44:03]Thread 3067637092 joined [15:44:03]Waiting for new connection... [15:44:03] Sock 7.Parse request [15:44:03]Sock 7.Check first char [15:44:03]Sock 7.First char is OK [15:44:03]request: POST /json_proto HTTP/1.0 [15:44:03]Method: POST [15:44:03]URL: /json_proto [15:44:03]Method is POST - this is cgi request [15:44:03]url: /json_proto [15:44:03]query_string will be loaded in cgi processing [15:44:03]execute_cgi json_proto POST (null) [15:44:03]execute_cgi path=json_proto method=POST [15:44:03]POST find Content-Length [15:44:03]Host: 172.17.53.195:8080 [15:44:03]Content-Length: 679 [15:44:03]Content-Type: application/json [15:44:03] [15:44:03]POST finish read [15:44:03]Found Content-Length = 679 [15:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]execute_script... [15:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]POST & json_proto [15:44:03]process_json_proto [15:44:03]json parsed OK: [15:44:03]protocol is kg_v1.0 [15:44:03]action value=close_receipt [15:44:03]process_action close_receipt [15:44:03]cmd_close_receipt [15:44:03]MH_GetDate [15:44:03]Write to MH i2c: F0 00 00 2B 1B 35 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 2B 1B 00 44 C8 17 67 21 48 4A 65 E0 [15:44:03]GetLastDocTimeStamp 1729611603 [15:44:03]current date 1729611844 [15:44:03]FM_GetShiftState [15:44:03]SAM_PROTO_GetShiftState [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 13 01 00 [15:44:03]Write to MH i2c: E2 08 00 2C 1B 80 13 01 00 00 00 00 00 C4 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 2C 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 17 [15:44:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_GetShiftState done [15:44:03]FM_GetShiftState done [15:44:03]opened in 1729557463 [15:44:03]opened+sec_in_day 1729643863 [15:44:03]quantity*price = 100050 [15:44:03]sum+1 = 100052 [15:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 206 22.10.2024 15:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166451 ФПД: 20190494887806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166451&fm=20190494887806&tin=02508201610067®Number=0000000000091764&sum=100000 [15:44:04]StoreToDocumentArchive [15:44:04]shift 536 fd 166451 [15:44:04]save to /storage/0536/doc_00166451 [15:44:04]save last doc name /storage/0536/doc_00166451 to /storage/kkm_last_doc_name [15:44:04]save OK [15:44:04]Clear old archive folders... [15:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:04]tlvbuf is 00A406C0 [15:44:04]SAM_PROTO_ClearQueue [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 09 00 00 [15:44:04]Write to MH i2c: E2 08 00 39 1B 80 09 00 00 00 00 00 00 C6 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]OFD Sender: No OFD packet to send [15:44:05]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_ClearQueue done [15:44:05]KKMCreateOFDPacket [15:44:05]OFDProtocolAddRootSTLVToBuf [15:44:05]FM_MakeSignedData [15:44:05]FM_MakeSignedData [15:44:05]SAM_PROTO_SignData [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 01 02 [15:44:05]Write to MH i2c: E2 08 00 3A 1B 80 0D 01 02 00 00 00 00 CE [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=255 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 45 C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8A 02 00 35 04 06 00 12 5C F7 46 [15:44:05]Write to MH i2c: E2 02 01 3B 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 45 C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8A 02 00 35 04 06 00 12 5C F7 46 00 00 37 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 3B 1B 00 90 00 CA [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=7 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 02 02 02 8F 7E [15:44:05]Write to MH i2c: E2 0A 00 3C 1B 80 0D 02 02 02 00 8F 7E 00 00 E2 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 03 02 [15:44:05]Write to MH i2c: E2 08 00 3D 1B 80 0D 03 02 00 00 00 00 D3 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 3D 1B 00 8A D6 C7 A9 63 FA 12 AF 90 00 C2 [15:44:05]RAPDU: 8A D6 C7 A9 63 FA 12 AF 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_SignData done [15:44:05]FM_MakeSignedData done [15:44:05]CreateOFDProtocolMessage [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 11 00 00 [15:44:05]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [15:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:44:05]wFMCommunicate OK [15:44:05]CreateOFDProtocolMessage done [15:44:05]OFDSenderStorePacket 166451 [15:44:05]StoreOFDPacket docnum=166451 [15:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 11 22 04 01 62 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 45 C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8A 02 00 35 04 06 00 12 5C F7 46 8F 7E 8A D6 C7 A9 63 FA 12 AF [15:44:05]CheckFolder [15:44:05]dirname=/storage/ofd_packets [15:44:05]CheckFolder done [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00166451 [15:44:05]NVStorageSaveData ofd_packets/00166451 [15:44:05]File name is /storage/ofd_packets/00166451 [15:44:05]Write 298 bytes [15:44:05]NVStorageSaveData done [15:44:05]OFDSenderStorePacket done [15:44:05]KKMCreateOFDPacket done [15:44:05]NVStorageSaveData kkm_last_timestamp [15:44:05]File name is /storage/kkm_last_timestamp [15:44:05]Write 4 bytes [15:44:05]NVStorageSaveData done [15:44:05]ExternCall_PrintAddStr [15:44:05]wPrintStart [15:44:05]Write to MH i2c: 01 00 00 3F 1B 5A [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 FF 0F 6F [15:44:05]RasterBufferAndPrint [15:44:05]line Счет N : (1)221030 [15:44:05]line ИНН: 02508201610067 [15:44:05]line Контрольно-Кассовый Чек [15:44:05]line ПРОДАЖА [15:44:05]line ТРК (МРК, ГНК) : 41 [15:44:05]line Товар: 2710194210 [15:44:05]line ДТ-К-5 [15:44:05]line 13.130 * 76.20 [15:44:05]line = 1000.51 [15:44:05]line НДС 12% НСП 1% [15:44:05]line > о реализуемом товаре [15:44:05]line ОКРУГЛЕНИЕ: -0.51 [15:44:05]line ИТОГО: 1000.00 [15:44:05]line Внесено: 1000.00 [15:44:05]line СДАЧА: 0.00 [15:44:05]line НСП 1% : 8.85 [15:44:05]line НДС 12% : 106.25 [15:44:05]line Наличными: 1000.00 [15:44:05]line Безнал.: 0.00 [15:44:05]line Место: АЗС № 161 "Партнер Нефть" [15:44:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:44:05]line СНО: Общий режим [15:44:05]line Чек 206 22.10.2024 15:44 [15:44:05]line Смена: 536 ФФД: 1.0 [15:44:05]line ЗНМ: 0300000104 [15:44:05]line РНМ: 0000000000091764 [15:44:05]line Версия ККМ: 001 [15:44:05]line ФМ: 0000000000871759 [15:44:05]line ФД: 166451 [15:44:05]line ФПД: 20190494887806 [15:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166451&fm=20190494887806&tin=02508201610067®Number=0000000000091764&sum=100000 [15:44:05]OFD Sender: Processing packet 166451 [packets to send 48, broken 47] [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00166451 [15:44:05]OFD Sender: To server: pG, [15:44:05]CommunicateWithHost lk.salyk.kg:30040 [15:44:05]ConnectInit lk.salyk.kg [15:44:05]written 0, free lines is 4095 [15:44:05]Connected sock=10 [15:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 11 22 04 01 62 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 45 C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8A 02 00 35 04 06 00 12 5C F7 46 8F 7E 8A D6 C7 A9 63 FA 12 AF [15:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C AC 47 00 2B 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 8A 02 00 F4 03 04 00 AF 6E 17 67 B6 04 01 00 00 13 A5 2D AD 93 6B E9 95 [15:44:06]CommunicateWithHost err = 0 [15:44:06]CheckOFDResponse [15:44:06]1017 (14) - 77093643461234 [15:44:06]1041 (16) - 0000000000871759 [15:44:06]1040 (4) - 166451 [15:44:06]1012 (4) - 22.10.2024 09:21 [15:44:06]1206 (1) - 0 [15:44:06]OFD Sender: Remove packet 166451 [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00166451 [15:44:06]NVStorageDeleteData [15:44:06]Write to MH i2c: 01 00 00 6A 1B 85 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 CD 0C 65 [15:44:06]RasterBufferAndPrint [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]written 0, free lines is 3282 [15:44:06]MH_Cut [15:44:06]Write to MH i2c: D1 01 00 71 1B 01 5E [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 71 1B 00 5D [15:44:06]Write to MH i2c: 01 00 00 72 1B 8D [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]OFD Sender: No OFD packet to send [15:44:07]*** Cut start [15:44:07]*** Partial cut [15:44:07]*** CUTSNS_PIN = 1 [15:44:07]*** CUTSNS_PIN = 0 [15:44:07]*** Brake cut motor [15:44:07]Read from MH i2c: 01 [15:44:07]MH_I2C_Read... [15:44:07]*** Stop cut motor [15:44:07]*** Cut end [15:44:07]Read from MH i2c: 01 07 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [15:44:07]process_action close_receipt done [15:44:07]requested_data is exist [15:44:07]produce_requested_data [15:44:07]requested_item fm.sn is exist - process it [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 11 00 00 [15:44:07]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [15:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:44:07]wFMCommunicate OK [15:44:07]requested_item fd.num is exist - process it [15:44:07]SAM_PROTO_GetFieldsCounters [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 00 00 [15:44:07]Write to MH i2c: E2 08 00 74 1B 80 13 00 00 00 00 00 00 0B [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 74 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetFieldsCounters done [15:44:07]requested_item shift.num is exist - process it [15:44:07]requested_item shift.opened is exist - process it [15:44:07]req_shift_opened [15:44:07]FM_GetShiftState [15:44:07]SAM_PROTO_GetShiftState [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 01 00 [15:44:07]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 60 [15:44:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetShiftState done [15:44:07]FM_GetShiftState done [15:44:07]req_shift_opened done [15:44:07]requested_item shift.open_date is exist - process it [15:44:07]req_shift_open_date [15:44:07]req_shift_open_date done [15:44:07]produce_requested_data done [15:44:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166451,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:44:07]process_action_free close_receipt [15:44:07]json_value_free [15:44:07]json_value_free done [15:44:07]process_json_proto returns [15:44:07]Send response to host [15:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166451,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:44:07]free response buf [15:44:07]execute_script done [15:44:07]execute_script returns [15:44:07]free content buf [15:44:07]Sock 7.Close socket [15:44:07]Sock 7.Thread stoped [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:00]accept exits with 9 [15:45:00]New connection [15:45:00]New thread 3067637092 created [15:45:00]Thread 3067493732 joined [15:45:00]Waiting for new connection... [15:45:00] Sock 9.Parse request [15:45:00]Sock 9.Check first char [15:45:00]Sock 9.First char is OK [15:45:00]request: POST /json_proto HTTP/1.0 [15:45:00]Method: POST [15:45:00]URL: /json_proto [15:45:00]Method is POST - this is cgi request [15:45:00]url: /json_proto [15:45:00]query_string will be loaded in cgi processing [15:45:00]execute_cgi json_proto POST (null) [15:45:00]execute_cgi path=json_proto method=POST [15:45:00]POST find Content-Length [15:45:00]Host: 172.17.53.195:8080 [15:45:00]Content-Length: 677 [15:45:00]Content-Type: application/json [15:45:00] [15:45:00]POST finish read [15:45:00]Found Content-Length = 677 [15:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:00]execute_script... [15:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:00]POST & json_proto [15:45:00]process_json_proto [15:45:00]json parsed OK: [15:45:00]protocol is kg_v1.0 [15:45:00]action value=close_receipt [15:45:00]process_action close_receipt [15:45:00]cmd_close_receipt [15:45:00]MH_GetDate [15:45:00]Write to MH i2c: F0 00 00 76 1B 80 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: F0 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: F0 09 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: F0 09 00 76 1B 00 7D C8 17 67 21 48 4A 65 64 [15:45:00]GetLastDocTimeStamp 1729611845 [15:45:00]current date 1729611901 [15:45:00]FM_GetShiftState [15:45:00]SAM_PROTO_GetShiftState [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 13 01 00 [15:45:00]Write to MH i2c: E2 08 00 77 1B 80 13 01 00 00 00 00 00 0F [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 0E 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 0E 00 77 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 62 [15:45:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:45:00]wFMCommunicate OK [15:45:00]SAM_PROTO_GetShiftState done [15:45:00]FM_GetShiftState done [15:45:00]opened in 1729557463 [15:45:00]opened+sec_in_day 1729643863 [15:45:00]quantity*price = 60009 [15:45:00]sum+1 = 60010 [15:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 207 22.10.2024 15:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166452 ФПД: 62638195518246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166452&fm=62638195518246&tin=02508201610067®Number=0000000000091764&sum=60000 [15:45:01]StoreToDocumentArchive [15:45:01]shift 536 fd 166452 [15:45:01]save to /storage/0536/doc_00166452 [15:45:01]save last doc name /storage/0536/doc_00166452 to /storage/kkm_last_doc_name [15:45:01]save OK [15:45:01]Clear old archive folders... [15:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:01]tlvbuf is 00A10ED0 [15:45:01]SAM_PROTO_ClearQueue [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 09 00 00 [15:45:01]Write to MH i2c: E2 08 00 84 1B 80 09 00 00 00 00 00 00 11 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]SAM_PROTO_ClearQueue done [15:45:01]KKMCreateOFDPacket [15:45:01]OFDProtocolAddRootSTLVToBuf [15:45:01]FM_MakeSignedData [15:45:01]FM_MakeSignedData [15:45:01]SAM_PROTO_SignData [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 01 02 [15:45:01]Write to MH i2c: E2 08 00 85 1B 80 0D 01 02 00 00 00 00 19 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]wFMCommunicate request_size=255 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7D C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8A 02 00 35 04 06 00 38 [15:45:01]Write to MH i2c: E2 02 01 86 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7D C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8A 02 00 35 04 06 00 38 00 00 30 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 86 1B 00 90 00 15 [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]wFMCommunicate request_size=10 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 02 02 05 F8 17 64 AB 26 [15:45:01]Write to MH i2c: E2 0D 00 87 1B 80 0D 02 02 05 00 F8 17 64 AB 26 00 00 6A [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 03 02 [15:45:01]Write to MH i2c: E2 08 00 88 1B 80 0D 03 02 00 00 00 00 1E [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0B 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0B 00 88 1B 00 25 D6 C0 A8 D1 92 73 D7 90 00 2F [15:45:01]RAPDU: 25 D6 C0 A8 D1 92 73 D7 90 00 [15:45:01]wFMCommunicate OK [15:45:01]SAM_PROTO_SignData done [15:45:01]FM_MakeSignedData done [15:45:01]CreateOFDProtocolMessage [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 11 00 00 [15:45:01]Write to MH i2c: E2 08 00 89 1B 80 11 00 00 00 00 00 00 1E [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]OFD Sender: No OFD packet to send [15:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 17 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 17 00 89 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [15:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:45:01]wFMCommunicate OK [15:45:01]CreateOFDProtocolMessage done [15:45:01]OFDSenderStorePacket 166452 [15:45:01]StoreOFDPacket docnum=166452 [15:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 7A 07 01 DA 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7D C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8A 02 00 35 04 06 00 38 F8 17 64 AB 26 25 D6 C0 A8 D1 92 73 D7 [15:45:01]CheckFolder [15:45:01]dirname=/storage/ofd_packets [15:45:01]CheckFolder done [15:45:01]ProducePacketName [15:45:01]name=ofd_packets/00166452 [15:45:01]NVStorageSaveData ofd_packets/00166452 [15:45:01]File name is /storage/ofd_packets/00166452 [15:45:01]Write 301 bytes [15:45:01]NVStorageSaveData done [15:45:01]OFDSenderStorePacket done [15:45:01]KKMCreateOFDPacket done [15:45:01]NVStorageSaveData kkm_last_timestamp [15:45:01]File name is /storage/kkm_last_timestamp [15:45:01]Write 4 bytes [15:45:01]NVStorageSaveData done [15:45:01]ExternCall_PrintAddStr [15:45:01]wPrintStart [15:45:01]Write to MH i2c: 01 00 00 8A 1B A5 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 07 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 FF 0F BA [15:45:01]RasterBufferAndPrint [15:45:01]line Счет N : (1)221031 [15:45:01]line ИНН: 02508201610067 [15:45:01]line Контрольно-Кассовый Чек [15:45:01]line ПРОДАЖА [15:45:01]line ТРК (МРК, ГНК) : 13 [15:45:01]line Товар: 2710124130 [15:45:01]line Аи-92-К-5 [15:45:01]line 8.970 * 66.90 [15:45:01]line = 600.09 [15:45:01]line НДС 12% НСП 1% [15:45:01]line > о реализуемом товаре [15:45:01]line ОКРУГЛЕНИЕ: -0.09 [15:45:01]line ИТОГО: 600.00 [15:45:01]line Внесено: 600.00 [15:45:01]line СДАЧА: 0.00 [15:45:01]line НСП 1% : 5.31 [15:45:01]line НДС 12% : 63.73 [15:45:01]line Наличными: 600.00 [15:45:01]line Безнал.: 0.00 [15:45:01]line Место: АЗС № 161 "Партнер Нефть" [15:45:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:45:01]line СНО: Общий режим [15:45:01]line Чек 207 22.10.2024 15:45 [15:45:01]line Смена: 536 ФФД: 1.0 [15:45:01]line ЗНМ: 0300000104 [15:45:01]line РНМ: 0000000000091764 [15:45:01]line Версия ККМ: 001 [15:45:01]line ФМ: 0000000000871759 [15:45:01]line ФД: 166452 [15:45:01]line ФПД: 62638195518246 [15:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166452&fm=62638195518246&tin=02508201610067®Number=0000000000091764&sum=60000 [15:45:02]OFD Sender: Processing packet 166452 [packets to send 48, broken 47] [15:45:02]ProducePacketName [15:45:02]name=ofd_packets/00166452 [15:45:02]OFD Sender: To server: pG, [15:45:02]CommunicateWithHost lk.salyk.kg:30040 [15:45:02]ConnectInit lk.salyk.kg [15:45:02]written 0, free lines is 4095 [15:45:02]Connected sock=10 [15:45:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B 7A 07 01 DA 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7D C8 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8A 02 00 35 04 06 00 38 F8 17 64 AB 26 25 D6 C0 A8 D1 92 73 D7 [15:45:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7C 08 47 00 9E 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 8A 02 00 F4 03 04 00 E7 6E 17 67 B6 04 01 00 00 24 84 4B 7C 2F 64 92 F7 [15:45:02]CommunicateWithHost err = 0 [15:45:02]CheckOFDResponse [15:45:02]1017 (14) - 77093643461234 [15:45:02]1041 (16) - 0000000000871759 [15:45:02]1040 (4) - 166452 [15:45:02]1012 (4) - 22.10.2024 09:22 [15:45:02]1206 (1) - 0 [15:45:02]OFD Sender: Remove packet 166452 [15:45:02]ProducePacketName [15:45:02]name=ofd_packets/00166452 [15:45:02]NVStorageDeleteData [15:45:02]Write to MH i2c: 01 00 00 B5 1B D0 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 CD 0C B0 [15:45:02]RasterBufferAndPrint [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]written 0, free lines is 3283 [15:45:02]MH_Cut [15:45:02]Write to MH i2c: D1 01 00 BC 1B 01 A9 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 01 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 01 00 BC 1B 00 A8 [15:45:02]Write to MH i2c: 01 00 00 BD 1B D8 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]OFD Sender: No OFD packet to send [15:45:03]*** Cut start [15:45:03]*** Partial cut [15:45:03]*** CUTSNS_PIN = 1 [15:45:03]*** CUTSNS_PIN = 0 [15:45:03]*** Brake cut motor [15:45:03]Read from MH i2c: 01 [15:45:03]MH_I2C_Read... [15:45:03]*** Stop cut motor [15:45:03]*** Cut end [15:45:03]Read from MH i2c: 01 07 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 BD 1B 00 00 00 00 00 FF 0F ED [15:45:03]process_action close_receipt done [15:45:03]requested_data is exist [15:45:03]produce_requested_data [15:45:03]requested_item fm.sn is exist - process it [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 11 00 00 [15:45:04]Write to MH i2c: E2 08 00 BE 1B 80 11 00 00 00 00 00 00 53 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:04]Read from MH i2c: E2 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 17 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 17 00 BE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [15:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:45:04]wFMCommunicate OK [15:45:04]requested_item fd.num is exist - process it [15:45:04]SAM_PROTO_GetFieldsCounters [15:45:04]wFMCommunicate request_size=4 [15:45:04]MH_SAM_APDU [15:45:04]CAPDU: 80 13 00 00 [15:45:04]Write to MH i2c: E2 08 00 BF 1B 80 13 00 00 00 00 00 00 56 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:04]Read from MH i2c: E2 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 62 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 62 00 BF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:04]wFMCommunicate OK [15:45:04]SAM_PROTO_GetFieldsCounters done [15:45:04]requested_item shift.num is exist - process it [15:45:04]requested_item shift.opened is exist - process it [15:45:04]req_shift_opened [15:45:04]FM_GetShiftState [15:45:04]SAM_PROTO_GetShiftState [15:45:04]wFMCommunicate request_size=4 [15:45:04]MH_SAM_APDU [15:45:04]CAPDU: 80 13 01 00 [15:45:04]Write to MH i2c: E2 08 00 C0 1B 80 13 01 00 00 00 00 00 58 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:04]Read from MH i2c: E2 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 0E 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 0E 00 C0 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AB [15:45:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:45:04]wFMCommunicate OK [15:45:04]SAM_PROTO_GetShiftState done [15:45:04]FM_GetShiftState done [15:45:04]req_shift_opened done [15:45:04]requested_item shift.open_date is exist - process it [15:45:04]req_shift_open_date [15:45:04]req_shift_open_date done [15:45:04]produce_requested_data done [15:45:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166452,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:45:04]process_action_free close_receipt [15:45:04]json_value_free [15:45:04]json_value_free done [15:45:04]process_json_proto returns [15:45:04]Send response to host [15:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166452,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:45:04]free response buf [15:45:04]execute_script done [15:45:04]execute_script returns [15:45:04]free content buf [15:45:04]Sock 9.Close socket [15:45:04]Sock 9.Thread stoped [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:32]accept exits with 7 [15:48:32]New connection [15:48:32]New thread 3067493732 created [15:48:32]Thread 3067637092 joined [15:48:32]Waiting for new connection... [15:48:32] Sock 7.Parse request [15:48:32]Sock 7.Check first char [15:48:32]Sock 7.First char is OK [15:48:32]request: POST /json_proto HTTP/1.0 [15:48:32]Method: POST [15:48:32]URL: /json_proto [15:48:32]Method is POST - this is cgi request [15:48:32]url: /json_proto [15:48:32]query_string will be loaded in cgi processing [15:48:32]execute_cgi json_proto POST (null) [15:48:32]execute_cgi path=json_proto method=POST [15:48:32]POST find Content-Length [15:48:32]Host: 172.17.53.195:8080 [15:48:32]Content-Length: 682 [15:48:32]Content-Type: application/json [15:48:32] [15:48:32]POST finish read [15:48:32]Found Content-Length = 682 [15:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:32]execute_script... [15:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:32]POST & json_proto [15:48:32]process_json_proto [15:48:32]json parsed OK: [15:48:32]protocol is kg_v1.0 [15:48:32]action value=close_receipt [15:48:32]process_action close_receipt [15:48:32]cmd_close_receipt [15:48:32]MH_GetDate [15:48:32]Write to MH i2c: F0 00 00 C1 1B CB [15:48:32]Write i2c OK [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 09 00 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 09 00 C1 1B 00 51 C9 17 67 21 48 4A 65 84 [15:48:32]GetLastDocTimeStamp 1729611901 [15:48:32]current date 1729612113 [15:48:32]FM_GetShiftState [15:48:32]SAM_PROTO_GetShiftState [15:48:32]wFMCommunicate request_size=4 [15:48:32]MH_SAM_APDU [15:48:32]CAPDU: 80 13 01 00 [15:48:32]Write to MH i2c: E2 08 00 C2 1B 80 13 01 00 00 00 00 00 5A [15:48:32]Write i2c OK [15:48:32]MH_I2C_Read... [15:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:32]Read from MH i2c: E2 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: E2 0E 00 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: E2 0E 00 C2 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AD [15:48:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:48:32]wFMCommunicate OK [15:48:32]SAM_PROTO_GetShiftState done [15:48:32]FM_GetShiftState done [15:48:32]opened in 1729557463 [15:48:32]opened+sec_in_day 1729643863 [15:48:32]quantity*price = 150056 [15:48:32]sum+1 = 150058 [15:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 208 22.10.2024 15:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166453 ФПД: 118509640973873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154833&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166453&fm=118509640973873&tin=02508201610067®Number=0000000000091764&sum=150000 [15:48:33]StoreToDocumentArchive [15:48:33]shift 536 fd 166453 [15:48:33]save to /storage/0536/doc_00166453 [15:48:33]save last doc name /storage/0536/doc_00166453 to /storage/kkm_last_doc_name [15:48:33]save OK [15:48:33]Clear old archive folders... [15:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:33]tlvbuf is 00A11C80 [15:48:33]SAM_PROTO_ClearQueue [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 09 00 00 [15:48:33]Write to MH i2c: E2 08 00 CF 1B 80 09 00 00 00 00 00 00 5C [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]SAM_PROTO_ClearQueue done [15:48:33]KKMCreateOFDPacket [15:48:33]OFDProtocolAddRootSTLVToBuf [15:48:33]FM_MakeSignedData [15:48:33]FM_MakeSignedData [15:48:33]SAM_PROTO_SignData [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 01 02 [15:48:33]Write to MH i2c: E2 08 00 D0 1B 80 0D 01 02 00 00 00 00 64 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]wFMCommunicate request_size=255 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 51 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8A 02 00 35 04 06 00 6B [15:48:33]Write to MH i2c: E2 02 01 D1 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 51 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8A 02 00 35 04 06 00 6B 00 00 F1 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 D1 1B 00 90 00 60 [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]wFMCommunicate request_size=10 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 02 02 05 C8 AD 0D 7E 31 [15:48:33]Write to MH i2c: E2 0D 00 D2 1B 80 0D 02 02 05 00 C8 AD 0D 7E 31 00 00 A2 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 D2 1B 00 90 00 61 [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 03 02 [15:48:33]Write to MH i2c: E2 08 00 D3 1B 80 0D 03 02 00 00 00 00 69 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 0B 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 0B 00 D3 1B 00 ED 0A AA 46 52 AB 52 A4 90 00 44 [15:48:34]RAPDU: ED 0A AA 46 52 AB 52 A4 90 00 [15:48:34]wFMCommunicate OK [15:48:34]SAM_PROTO_SignData done [15:48:34]FM_MakeSignedData done [15:48:34]CreateOFDProtocolMessage [15:48:34]wFMCommunicate request_size=4 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 11 00 00 [15:48:34]Write to MH i2c: E2 08 00 D4 1B 80 11 00 00 00 00 00 00 69 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 17 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 17 00 D4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [15:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:48:34]wFMCommunicate OK [15:48:34]CreateOFDProtocolMessage done [15:48:34]OFDSenderStorePacket 166453 [15:48:34]StoreOFDPacket docnum=166453 [15:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 EC 07 01 DA A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 51 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8A 02 00 35 04 06 00 6B C8 AD 0D 7E 31 ED 0A AA 46 52 AB 52 A4 [15:48:34]CheckFolder [15:48:34]dirname=/storage/ofd_packets [15:48:34]CheckFolder done [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00166453 [15:48:34]NVStorageSaveData ofd_packets/00166453 [15:48:34]File name is /storage/ofd_packets/00166453 [15:48:34]Write 301 bytes [15:48:34]NVStorageSaveData done [15:48:34]OFDSenderStorePacket done [15:48:34]KKMCreateOFDPacket done [15:48:34]NVStorageSaveData kkm_last_timestamp [15:48:34]File name is /storage/kkm_last_timestamp [15:48:34]Write 4 bytes [15:48:34]NVStorageSaveData done [15:48:34]OFD Sender: Processing packet 166453 [packets to send 48, broken 47] [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00166453 [15:48:34]OFD Sender: To server: pG, [15:48:34]CommunicateWithHost lk.salyk.kg:30040 [15:48:34]ConnectInit lk.salyk.kg [15:48:34]ExternCall_PrintAddStr [15:48:34]wPrintStart [15:48:34]Write to MH i2c: 01 00 00 D5 1B F0 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 FF 0F 05 [15:48:34]RasterBufferAndPrint [15:48:34]line Счет N : (1)221032 [15:48:34]line ИНН: 02508201610067 [15:48:34]line Контрольно-Кассовый Чек [15:48:34]line ПРОДАЖА [15:48:34]line ТРК (МРК, ГНК) : 33 [15:48:34]line Товар: 2710124130 [15:48:34]line Аи-92-К-5 [15:48:34]line 22.430 * 66.90 [15:48:34]line = 1500.57 [15:48:34]line НДС 12% НСП 1% [15:48:34]line > о реализуемом товаре [15:48:34]line ОКРУГЛЕНИЕ: -0.57 [15:48:34]line ИТОГО: 1500.00 [15:48:34]line Внесено: 1500.00 [15:48:34]line СДАЧА: 0.00 [15:48:34]line НСП 1% : 13.28 [15:48:34]line НДС 12% : 159.35 [15:48:34]line Наличными: 1500.00 [15:48:34]line Безнал.: 0.00 [15:48:34]line Место: АЗС № 161 "Партнер Нефть" [15:48:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:48:34]line СНО: Общий режим [15:48:34]line Чек 208 22.10.2024 15:48 [15:48:34]line Смена: 536 ФФД: 1.0 [15:48:34]line ЗНМ: 0300000104 [15:48:34]line РНМ: 0000000000091764 [15:48:34]line Версия ККМ: 001 [15:48:34]line ФМ: 0000000000871759 [15:48:34]line ФД: 166453 [15:48:34]line ФПД: 118509640973873 [15:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154833&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166453&fm=118509640973873&tin=02508201610067®Number=0000000000091764&sum=150000 [15:48:34]Connected sock=11 [15:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 EC 07 01 DA A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 51 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8A 02 00 35 04 06 00 6B C8 AD 0D 7E 31 ED 0A AA 46 52 AB 52 A4 [15:48:34]written 0, free lines is 4095 [15:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FB 1A 47 00 3C D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 8A 02 00 F4 03 04 00 BC 6F 17 67 B6 04 01 00 00 A7 08 E2 EA C0 F7 9D 2B [15:48:34]CommunicateWithHost err = 0 [15:48:34]CheckOFDResponse [15:48:34]1017 (14) - 77093643461234 [15:48:34]1041 (16) - 0000000000871759 [15:48:34]1040 (4) - 166453 [15:48:34]1012 (4) - 22.10.2024 09:26 [15:48:34]1206 (1) - 0 [15:48:34]OFD Sender: Remove packet 166453 [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00166453 [15:48:34]NVStorageDeleteData [15:48:34]Write to MH i2c: 01 00 00 00 1C 1C [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 CD 0C FC [15:48:34]RasterBufferAndPrint [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]written 0, free lines is 3282 [15:48:34]MH_Cut [15:48:34]Write to MH i2c: D1 01 00 07 1C 01 F5 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 01 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 01 00 07 1C 00 F4 [15:48:34]Write to MH i2c: 01 00 00 08 1C 24 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:35]OFD Sender: No OFD packet to send [15:48:35]*** Cut start [15:48:35]*** Partial cut [15:48:35]*** CUTSNS_PIN = 1 [15:48:35]*** CUTSNS_PIN = 0 [15:48:35]*** Brake cut motor [15:48:36]Read from MH i2c: 01 [15:48:36]MH_I2C_Read... [15:48:36]*** Stop cut motor [15:48:36]*** Cut end [15:48:36]Read from MH i2c: 01 07 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 FF 0F 39 [15:48:36]process_action close_receipt done [15:48:36]requested_data is exist [15:48:36]produce_requested_data [15:48:36]requested_item fm.sn is exist - process it [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 11 00 00 [15:48:36]Write to MH i2c: E2 08 00 09 1C 80 11 00 00 00 00 00 00 9F [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 17 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 17 00 09 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [15:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:48:36]wFMCommunicate OK [15:48:36]requested_item fd.num is exist - process it [15:48:36]SAM_PROTO_GetFieldsCounters [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 13 00 00 [15:48:36]Write to MH i2c: E2 08 00 0A 1C 80 13 00 00 00 00 00 00 A2 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 62 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 62 00 0A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_GetFieldsCounters done [15:48:36]requested_item shift.num is exist - process it [15:48:36]requested_item shift.opened is exist - process it [15:48:36]req_shift_opened [15:48:36]FM_GetShiftState [15:48:36]SAM_PROTO_GetShiftState [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 13 01 00 [15:48:36]Write to MH i2c: E2 08 00 0B 1C 80 13 01 00 00 00 00 00 A4 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 0B 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F7 [15:48:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_GetShiftState done [15:48:36]FM_GetShiftState done [15:48:36]req_shift_opened done [15:48:36]requested_item shift.open_date is exist - process it [15:48:36]req_shift_open_date [15:48:36]req_shift_open_date done [15:48:36]produce_requested_data done [15:48:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166453,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:48:36]process_action_free close_receipt [15:48:36]json_value_free [15:48:36]json_value_free done [15:48:36]process_json_proto returns [15:48:36]Send response to host [15:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166453,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:48:36]free response buf [15:48:36]execute_script done [15:48:36]execute_script returns [15:48:36]free content buf [15:48:36]Sock 7.Close socket [15:48:36]Sock 7.Thread stoped [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:54]accept exits with 9 [15:50:54]New connection [15:50:54]New thread 3067637092 created [15:50:54]Thread 3067493732 joined [15:50:54]Waiting for new connection... [15:50:54] Sock 9.Parse request [15:50:54]Sock 9.Check first char [15:50:54]Sock 9.First char is OK [15:50:54]request: POST /json_proto HTTP/1.0 [15:50:54]Method: POST [15:50:54]URL: /json_proto [15:50:54]Method is POST - this is cgi request [15:50:54]url: /json_proto [15:50:54]query_string will be loaded in cgi processing [15:50:54]execute_cgi json_proto POST (null) [15:50:54]execute_cgi path=json_proto method=POST [15:50:54]POST find Content-Length [15:50:54]Host: 172.17.53.195:8080 [15:50:54]Content-Length: 677 [15:50:54]Content-Type: application/json [15:50:54] [15:50:54]POST finish read [15:50:54]Found Content-Length = 677 [15:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:54]execute_script... [15:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:54]POST & json_proto [15:50:54]process_json_proto [15:50:54]json parsed OK: [15:50:54]protocol is kg_v1.0 [15:50:54]action value=close_receipt [15:50:54]process_action close_receipt [15:50:54]cmd_close_receipt [15:50:54]MH_GetDate [15:50:54]Write to MH i2c: F0 00 00 0C 1C 17 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 09 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: F0 09 00 0C 1C 00 DF C9 17 67 21 48 4A 65 5E [15:50:54]GetLastDocTimeStamp 1729612113 [15:50:54]current date 1729612255 [15:50:54]FM_GetShiftState [15:50:54]SAM_PROTO_GetShiftState [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 13 01 00 [15:50:54]Write to MH i2c: E2 08 00 0D 1C 80 13 01 00 00 00 00 00 A6 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0E 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0E 00 0D 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F9 [15:50:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:50:54]wFMCommunicate OK [15:50:54]SAM_PROTO_GetShiftState done [15:50:54]FM_GetShiftState done [15:50:54]opened in 1729557463 [15:50:54]opened+sec_in_day 1729643863 [15:50:54]quantity*price = 30038 [15:50:54]sum+1 = 30039 [15:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 209 22.10.2024 15:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166454 ФПД: 103192195939573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166454&fm=103192195939573&tin=02508201610067®Number=0000000000091764&sum=30000 [15:50:55]StoreToDocumentArchive [15:50:55]shift 536 fd 166454 [15:50:55]save to /storage/0536/doc_00166454 [15:50:55]save last doc name /storage/0536/doc_00166454 to /storage/kkm_last_doc_name [15:50:55]save OK [15:50:55]Clear old archive folders... [15:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:55]tlvbuf is B6F4F4B0 [15:50:55]SAM_PROTO_ClearQueue [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 09 00 00 [15:50:55]Write to MH i2c: E2 08 00 1A 1C 80 09 00 00 00 00 00 00 A8 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]SAM_PROTO_ClearQueue done [15:50:55]KKMCreateOFDPacket [15:50:55]OFDProtocolAddRootSTLVToBuf [15:50:55]FM_MakeSignedData [15:50:55]FM_MakeSignedData [15:50:55]SAM_PROTO_SignData [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 01 02 [15:50:55]Write to MH i2c: E2 08 00 1B 1C 80 0D 01 02 00 00 00 00 B0 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]wFMCommunicate request_size=255 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DF C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8A 02 00 35 04 06 00 5D [15:50:55]Write to MH i2c: E2 02 01 1C 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DF C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8A 02 00 35 04 06 00 5D 00 00 6A [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]wFMCommunicate request_size=10 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 02 02 05 DA 4E 2E BC F5 [15:50:55]Write to MH i2c: E2 0D 00 1D 1C 80 0D 02 02 05 00 DA 4E 2E BC F5 00 00 C4 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 03 00 1D 1C 00 90 00 AD [15:50:55]RAPDU: 90 00 [15:50:55]wFMCommunicate OK [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 0D 03 02 [15:50:55]Write to MH i2c: E2 08 00 1E 1C 80 0D 03 02 00 00 00 00 B5 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:55]Read from MH i2c: E2 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 0B 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: E2 0B 00 1E 1C 00 FB 61 38 82 F2 DE C4 D2 90 00 32 [15:50:55]RAPDU: FB 61 38 82 F2 DE C4 D2 90 00 [15:50:55]wFMCommunicate OK [15:50:55]SAM_PROTO_SignData done [15:50:55]FM_MakeSignedData done [15:50:55]CreateOFDProtocolMessage [15:50:55]wFMCommunicate request_size=4 [15:50:55]MH_SAM_APDU [15:50:55]CAPDU: 80 11 00 00 [15:50:55]Write to MH i2c: E2 08 00 1F 1C 80 11 00 00 00 00 00 00 B5 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 1F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [15:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:50:56]wFMCommunicate OK [15:50:56]CreateOFDProtocolMessage done [15:50:56]OFDSenderStorePacket 166454 [15:50:56]StoreOFDPacket docnum=166454 [15:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 7B 07 01 14 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DF C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8A 02 00 35 04 06 00 5D DA 4E 2E BC F5 FB 61 38 82 F2 DE C4 D2 [15:50:56]CheckFolder [15:50:56]dirname=/storage/ofd_packets [15:50:56]CheckFolder done [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00166454 [15:50:56]NVStorageSaveData ofd_packets/00166454 [15:50:56]File name is /storage/ofd_packets/00166454 [15:50:56]Write 301 bytes [15:50:56]NVStorageSaveData done [15:50:56]OFDSenderStorePacket done [15:50:56]KKMCreateOFDPacket done [15:50:56]NVStorageSaveData kkm_last_timestamp [15:50:56]File name is /storage/kkm_last_timestamp [15:50:56]Write 4 bytes [15:50:56]NVStorageSaveData done [15:50:56]ExternCall_PrintAddStr [15:50:56]wPrintStart [15:50:56]Write to MH i2c: 01 00 00 20 1C 3C [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 FF 0F 51 [15:50:56]RasterBufferAndPrint [15:50:56]line Счет N : (1)221034 [15:50:56]line ИНН: 02508201610067 [15:50:56]line Контрольно-Кассовый Чек [15:50:56]line ПРОДАЖА [15:50:56]line ТРК (МРК, ГНК) : 33 [15:50:56]line Товар: 2710124130 [15:50:56]line Аи-92-К-5 [15:50:56]line 4.490 * 66.90 [15:50:56]line = 300.38 [15:50:56]line НДС 12% НСП 1% [15:50:56]line > о реализуемом товаре [15:50:56]line ОКРУГЛЕНИЕ: -0.38 [15:50:56]line ИТОГО: 300.00 [15:50:56]line Внесено: 300.00 [15:50:56]line СДАЧА: 0.00 [15:50:56]line НСП 1% : 2.66 [15:50:56]line НДС 12% : 31.90 [15:50:56]line Наличными: 300.00 [15:50:56]line Безнал.: 0.00 [15:50:56]line Место: АЗС № 161 "Партнер Нефть" [15:50:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:50:56]line СНО: Общий режим [15:50:56]line Чек 209 22.10.2024 15:50 [15:50:56]line Смена: 536 ФФД: 1.0 [15:50:56]line ЗНМ: 0300000104 [15:50:56]line РНМ: 0000000000091764 [15:50:56]line Версия ККМ: 001 [15:50:56]line ФМ: 0000000000871759 [15:50:56]line ФД: 166454 [15:50:56]line ФПД: 103192195939573 [15:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155055&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166454&fm=103192195939573&tin=02508201610067®Number=0000000000091764&sum=30000 [15:50:56]OFD Sender: Processing packet 166454 [packets to send 48, broken 47] [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00166454 [15:50:56]OFD Sender: To server: pG, [15:50:56]CommunicateWithHost lk.salyk.kg:30040 [15:50:56]ConnectInit lk.salyk.kg [15:50:56]written 0, free lines is 4095 [15:50:56]Connected sock=10 [15:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 7B 07 01 14 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DF C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8A 02 00 35 04 06 00 5D DA 4E 2E BC F5 FB 61 38 82 F2 DE C4 D2 [15:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 D3 47 00 E4 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 8A 02 00 F4 03 04 00 4A 70 17 67 B6 04 01 00 00 CE C4 72 52 AD D8 E6 E8 [15:50:56]CommunicateWithHost err = 0 [15:50:56]CheckOFDResponse [15:50:56]1017 (14) - 77093643461234 [15:50:56]1041 (16) - 0000000000871759 [15:50:56]1040 (4) - 166454 [15:50:56]1012 (4) - 22.10.2024 09:28 [15:50:56]1206 (1) - 0 [15:50:56]OFD Sender: Remove packet 166454 [15:50:56]ProducePacketName [15:50:56]name=ofd_packets/00166454 [15:50:56]NVStorageDeleteData [15:50:56]Write to MH i2c: 01 00 00 4B 1C 67 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 4B 1C 00 00 00 00 00 BE 0C 38 [15:50:56]RasterBufferAndPrint [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]line [15:50:56]written 0, free lines is 3268 [15:50:56]MH_Cut [15:50:56]Write to MH i2c: D1 01 00 52 1C 01 40 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 01 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: D1 01 00 52 1C 00 3F [15:50:56]Write to MH i2c: 01 00 00 53 1C 6F [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:57]OFD Sender: No OFD packet to send [15:50:57]*** Cut start [15:50:57]*** Partial cut [15:50:57]*** CUTSNS_PIN = 1 [15:50:57]*** CUTSNS_PIN = 0 [15:50:57]*** Brake cut motor [15:50:58]Read from MH i2c: 01 [15:50:58]MH_I2C_Read... [15:50:58]*** Stop cut motor [15:50:58]*** Cut end [15:50:58]Read from MH i2c: 01 07 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: 01 07 00 53 1C 00 00 00 00 00 FF 0F 84 [15:50:58]process_action close_receipt done [15:50:58]requested_data is exist [15:50:58]produce_requested_data [15:50:58]requested_item fm.sn is exist - process it [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 11 00 00 [15:50:58]Write to MH i2c: E2 08 00 54 1C 80 11 00 00 00 00 00 00 EA [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 17 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 17 00 54 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [15:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:50:58]wFMCommunicate OK [15:50:58]requested_item fd.num is exist - process it [15:50:58]SAM_PROTO_GetFieldsCounters [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 13 00 00 [15:50:58]Write to MH i2c: E2 08 00 55 1C 80 13 00 00 00 00 00 00 ED [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 62 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 62 00 55 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:58]wFMCommunicate OK [15:50:58]SAM_PROTO_GetFieldsCounters done [15:50:58]requested_item shift.num is exist - process it [15:50:58]requested_item shift.opened is exist - process it [15:50:58]req_shift_opened [15:50:58]FM_GetShiftState [15:50:58]SAM_PROTO_GetShiftState [15:50:58]wFMCommunicate request_size=4 [15:50:58]MH_SAM_APDU [15:50:58]CAPDU: 80 13 01 00 [15:50:58]Write to MH i2c: E2 08 00 56 1C 80 13 01 00 00 00 00 00 EF [15:50:58]Write i2c OK [15:50:58]MH_I2C_Read... [15:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:58]Read from MH i2c: E2 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 0E 00 [15:50:58]MH_I2C_Read... [15:50:58]Read from MH i2c: E2 0E 00 56 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 42 [15:50:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:50:58]wFMCommunicate OK [15:50:58]SAM_PROTO_GetShiftState done [15:50:58]FM_GetShiftState done [15:50:58]req_shift_opened done [15:50:58]requested_item shift.open_date is exist - process it [15:50:58]req_shift_open_date [15:50:58]req_shift_open_date done [15:50:58]produce_requested_data done [15:50:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166454,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:50:58]process_action_free close_receipt [15:50:58]json_value_free [15:50:58]json_value_free done [15:50:58]process_json_proto returns [15:50:58]Send response to host [15:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166454,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:50:58]free response buf [15:50:58]execute_script done [15:50:58]execute_script returns [15:50:58]free content buf [15:50:58]Sock 9.Close socket [15:50:58]Sock 9.Thread stoped [15:51:00]accept exits with 7 [15:51:00]New connection [15:51:00]New thread 3067493732 created [15:51:00]Thread 3067637092 joined [15:51:00]Waiting for new connection... [15:51:00] Sock 7.Parse request [15:51:00]Sock 7.Check first char [15:51:00]Sock 7.First char is OK [15:51:00]request: POST /json_proto HTTP/1.0 [15:51:00]Method: POST [15:51:00]URL: /json_proto [15:51:00]Method is POST - this is cgi request [15:51:00]url: /json_proto [15:51:00]query_string will be loaded in cgi processing [15:51:00]execute_cgi json_proto POST (null) [15:51:00]execute_cgi path=json_proto method=POST [15:51:00]POST find Content-Length [15:51:00]Host: 172.17.53.195:8080 [15:51:00]Content-Length: 769 [15:51:00]Content-Type: application/json [15:51:00] [15:51:00]POST finish read [15:51:00]Found Content-Length = 769 [15:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:00]execute_script... [15:51:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:00]POST & json_proto [15:51:00]process_json_proto [15:51:00]json parsed OK: [15:51:00]protocol is kg_v1.0 [15:51:00]action value=close_receipt [15:51:00]process_action close_receipt [15:51:00]cmd_close_receipt [15:51:00]MH_GetDate [15:51:00]Write to MH i2c: F0 00 00 57 1C 62 [15:51:00]Write i2c OK [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 09 00 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 09 00 57 1C 00 E5 C9 17 67 21 48 4A 65 AF [15:51:00]GetLastDocTimeStamp 1729612255 [15:51:00]current date 1729612261 [15:51:00]FM_GetShiftState [15:51:00]SAM_PROTO_GetShiftState [15:51:00]wFMCommunicate request_size=4 [15:51:00]MH_SAM_APDU [15:51:00]CAPDU: 80 13 01 00 [15:51:00]Write to MH i2c: E2 08 00 58 1C 80 13 01 00 00 00 00 00 F1 [15:51:00]Write i2c OK [15:51:00]MH_I2C_Read... [15:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:00]Read from MH i2c: E2 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 58 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 44 [15:51:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:51:00]wFMCommunicate OK [15:51:00]SAM_PROTO_GetShiftState done [15:51:00]FM_GetShiftState done [15:51:00]opened in 1729557463 [15:51:00]opened+sec_in_day 1729643863 [15:51:00]quantity*price = 100021 [15:51:00]sum+1 = 100023 [15:51:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 210 22.10.2024 15:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166455 ФПД: 88268433968814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166455&fm=88268433968814&tin=02508201610067®Number=0000000000091764&sum=100022 [15:51:01]StoreToDocumentArchive [15:51:01]shift 536 fd 166455 [15:51:01]save to /storage/0536/doc_00166455 [15:51:01]save last doc name /storage/0536/doc_00166455 to /storage/kkm_last_doc_name [15:51:01]save OK [15:51:01]Clear old archive folders... [15:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:01]tlvbuf is 00A89C10 [15:51:01]SAM_PROTO_ClearQueue [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 09 00 00 [15:51:01]Write to MH i2c: E2 08 00 65 1C 80 09 00 00 00 00 00 00 F3 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]SAM_PROTO_ClearQueue done [15:51:01]KKMCreateOFDPacket [15:51:01]OFDProtocolAddRootSTLVToBuf [15:51:01]FM_MakeSignedData [15:51:01]FM_MakeSignedData [15:51:01]SAM_PROTO_SignData [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 01 02 [15:51:01]Write to MH i2c: E2 08 00 66 1C 80 0D 01 02 00 00 00 00 FB [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=255 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 E5 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8A 02 00 35 04 06 00 50 [15:51:01]Write to MH i2c: E2 02 01 67 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 E5 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8A 02 00 35 04 06 00 50 00 00 05 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:02]Read from MH i2c: E2 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 03 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [15:51:02]RAPDU: 90 00 [15:51:02]wFMCommunicate OK [15:51:02]wFMCommunicate request_size=10 [15:51:02]MH_SAM_APDU [15:51:02]CAPDU: 80 0D 02 02 05 47 98 A6 CE AE [15:51:02]Write to MH i2c: E2 0D 00 68 1C 80 0D 02 02 05 00 47 98 A6 CE AE 00 00 09 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:02]Read from MH i2c: E2 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 03 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [15:51:02]RAPDU: 90 00 [15:51:02]wFMCommunicate OK [15:51:02]wFMCommunicate request_size=4 [15:51:02]MH_SAM_APDU [15:51:02]CAPDU: 80 0D 03 02 [15:51:02]Write to MH i2c: E2 08 00 69 1C 80 0D 03 02 00 00 00 00 00 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:02]Read from MH i2c: E2 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 0B 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 0B 00 69 1C 00 C5 89 4F 56 09 76 1F 53 90 00 E5 [15:51:02]RAPDU: C5 89 4F 56 09 76 1F 53 90 00 [15:51:02]wFMCommunicate OK [15:51:02]SAM_PROTO_SignData done [15:51:02]FM_MakeSignedData done [15:51:02]CreateOFDProtocolMessage [15:51:02]wFMCommunicate request_size=4 [15:51:02]MH_SAM_APDU [15:51:02]CAPDU: 80 11 00 00 [15:51:02]Write to MH i2c: E2 08 00 6A 1C 80 11 00 00 00 00 00 00 00 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:02]Read from MH i2c: E2 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 17 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: E2 17 00 6A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [15:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:51:02]wFMCommunicate OK [15:51:02]CreateOFDProtocolMessage done [15:51:02]OFDSenderStorePacket 166455 [15:51:02]StoreOFDPacket docnum=166455 [15:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 A0 07 01 F5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 E5 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8A 02 00 35 04 06 00 50 47 98 A6 CE AE C5 89 4F 56 09 76 1F 53 [15:51:02]CheckFolder [15:51:02]dirname=/storage/ofd_packets [15:51:02]CheckFolder done [15:51:02]ProducePacketName [15:51:02]name=ofd_packets/00166455 [15:51:02]NVStorageSaveData ofd_packets/00166455 [15:51:02]File name is /storage/ofd_packets/00166455 [15:51:02]OFD Sender: No OFD packet to send [15:51:02]Write 301 bytes [15:51:02]NVStorageSaveData done [15:51:02]OFDSenderStorePacket done [15:51:02]KKMCreateOFDPacket done [15:51:02]NVStorageSaveData kkm_last_timestamp [15:51:02]File name is /storage/kkm_last_timestamp [15:51:02]Write 4 bytes [15:51:02]NVStorageSaveData done [15:51:02]ExternCall_PrintAddStr [15:51:02]wPrintStart [15:51:02]Write to MH i2c: 01 00 00 6B 1C 87 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 FF 0F 9C [15:51:02]RasterBufferAndPrint [15:51:02]line Счет N : (1)221033 [15:51:02]line ИНН: 02508201610067 [15:51:02]line Контрольно-Кассовый Чек [15:51:02]line ПРОДАЖА [15:51:02]line ТРК (МРК, ГНК) : 14 [15:51:02]line Товар: 2710124500 [15:51:02]line Аи-95-К-5 [15:51:02]line 13.480 * 74.20 [15:51:02]line = 1000.22 [15:51:02]line НДС 12% НСП 1% [15:51:02]line > о реализуемом товаре [15:51:02]line ИТОГО: 1000.22 [15:51:02]line НСП 1% : 8.85 [15:51:02]line НДС 12% : 106.22 [15:51:02]line Наличными: 0.00 [15:51:02]line Безнал.: 1000.22 [15:51:02]line Место: АЗС № 161 "Партнер Нефть" [15:51:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:51:02]line СНО: Общий режим [15:51:02]line Чек 210 22.10.2024 15:51 [15:51:02]line Смена: 536 ФФД: 1.0 [15:51:02]line ЗНМ: 0300000104 [15:51:02]line РНМ: 0000000000091764 [15:51:02]line Версия ККМ: 001 [15:51:02]line Платежная система: Mbank [15:51:02]line ФМ: 0000000000871759 [15:51:02]line ФД: 166455 [15:51:02]line ФПД: 88268433968814 [15:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166455&fm=88268433968814&tin=02508201610067®Number=0000000000091764&sum=100022 [15:51:02]written 0, free lines is 4095 [15:51:02]OFD Sender: Processing packet 166455 [packets to send 48, broken 47] [15:51:02]ProducePacketName [15:51:02]name=ofd_packets/00166455 [15:51:02]OFD Sender: To server: pG, [15:51:02]CommunicateWithHost lk.salyk.kg:30040 [15:51:02]ConnectInit lk.salyk.kg [15:51:02]Connected sock=10 [15:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 56 A0 07 01 F5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 E5 C9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8A 02 00 35 04 06 00 50 47 98 A6 CE AE C5 89 4F 56 09 76 1F 53 [15:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 A8 47 00 FB 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 8A 02 00 F4 03 04 00 50 70 17 67 B6 04 01 00 00 62 95 E0 06 56 0B EF E0 [15:51:02]CommunicateWithHost err = 0 [15:51:02]CheckOFDResponse [15:51:02]1017 (14) - 77093643461234 [15:51:02]1041 (16) - 0000000000871759 [15:51:02]1040 (4) - 166455 [15:51:02]1012 (4) - 22.10.2024 09:28 [15:51:02]1206 (1) - 0 [15:51:02]OFD Sender: Remove packet 166455 [15:51:02]ProducePacketName [15:51:02]name=ofd_packets/00166455 [15:51:02]NVStorageDeleteData [15:51:02]Write to MH i2c: 01 00 00 94 1C B0 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 F1 0C B4 [15:51:02]RasterBufferAndPrint [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]written 0, free lines is 3324 [15:51:02]MH_Cut [15:51:02]Write to MH i2c: D1 01 00 9B 1C 01 89 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 9B 1C 00 88 [15:51:02]Write to MH i2c: 01 00 00 9C 1C B8 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:03]OFD Sender: No OFD packet to send [15:51:03]*** Cut start [15:51:03]*** Partial cut [15:51:03]*** CUTSNS_PIN = 1 [15:51:03]*** CUTSNS_PIN = 0 [15:51:03]*** Brake cut motor [15:51:04]Read from MH i2c: 01 [15:51:04]MH_I2C_Read... [15:51:04]*** Stop cut motor [15:51:04]*** Cut end [15:51:04]Read from MH i2c: 01 07 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: 01 07 00 9C 1C 00 00 00 00 00 FF 0F CD [15:51:04]process_action close_receipt done [15:51:04]requested_data is exist [15:51:04]produce_requested_data [15:51:04]requested_item fm.sn is exist - process it [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 11 00 00 [15:51:04]Write to MH i2c: E2 08 00 9D 1C 80 11 00 00 00 00 00 00 33 [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 17 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 17 00 9D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [15:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:51:04]wFMCommunicate OK [15:51:04]requested_item fd.num is exist - process it [15:51:04]SAM_PROTO_GetFieldsCounters [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 13 00 00 [15:51:04]Write to MH i2c: E2 08 00 9E 1C 80 13 00 00 00 00 00 00 36 [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 62 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 62 00 9E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [15:51:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:04]wFMCommunicate OK [15:51:04]SAM_PROTO_GetFieldsCounters done [15:51:04]requested_item shift.num is exist - process it [15:51:04]requested_item shift.opened is exist - process it [15:51:04]req_shift_opened [15:51:04]FM_GetShiftState [15:51:04]SAM_PROTO_GetShiftState [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 13 01 00 [15:51:04]Write to MH i2c: E2 08 00 9F 1C 80 13 01 00 00 00 00 00 38 [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 9F 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8B [15:51:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:51:04]wFMCommunicate OK [15:51:04]SAM_PROTO_GetShiftState done [15:51:04]FM_GetShiftState done [15:51:04]req_shift_opened done [15:51:04]requested_item shift.open_date is exist - process it [15:51:04]req_shift_open_date [15:51:04]req_shift_open_date done [15:51:04]produce_requested_data done [15:51:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166455,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:51:04]process_action_free close_receipt [15:51:04]json_value_free [15:51:04]json_value_free done [15:51:04]process_json_proto returns [15:51:04]Send response to host [15:51:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166455,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:51:04]free response buf [15:51:04]execute_script done [15:51:04]execute_script returns [15:51:04]free content buf [15:51:04]Sock 7.Close socket [15:51:04]Sock 7.Thread stoped [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:52]accept exits with 9 [15:55:52]New connection [15:55:52]New thread 3067637092 created [15:55:52]Thread 3067493732 joined [15:55:52]Waiting for new connection... [15:55:52] Sock 9.Parse request [15:55:52]Sock 9.Check first char [15:55:52]Sock 9.First char is OK [15:55:52]request: POST /json_proto HTTP/1.0 [15:55:52]Method: POST [15:55:52]URL: /json_proto [15:55:52]Method is POST - this is cgi request [15:55:52]url: /json_proto [15:55:52]query_string will be loaded in cgi processing [15:55:52]execute_cgi json_proto POST (null) [15:55:52]execute_cgi path=json_proto method=POST [15:55:52]POST find Content-Length [15:55:52]Host: 172.17.53.195:8080 [15:55:52]Content-Length: 677 [15:55:52]Content-Type: application/json [15:55:52] [15:55:52]POST finish read [15:55:52]Found Content-Length = 677 [15:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:52]execute_script... [15:55:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:52]POST & json_proto [15:55:52]process_json_proto [15:55:52]json parsed OK: [15:55:52]protocol is kg_v1.0 [15:55:52]action value=close_receipt [15:55:52]process_action close_receipt [15:55:52]cmd_close_receipt [15:55:52]MH_GetDate [15:55:52]Write to MH i2c: F0 00 00 A0 1C AB [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: F0 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: F0 09 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: F0 09 00 A0 1C 00 09 CB 17 67 21 48 4A 65 1E [15:55:52]GetLastDocTimeStamp 1729612261 [15:55:52]current date 1729612553 [15:55:52]FM_GetShiftState [15:55:52]SAM_PROTO_GetShiftState [15:55:52]wFMCommunicate request_size=4 [15:55:52]MH_SAM_APDU [15:55:52]CAPDU: 80 13 01 00 [15:55:52]Write to MH i2c: E2 08 00 A1 1C 80 13 01 00 00 00 00 00 3A [15:55:52]Write i2c OK [15:55:52]MH_I2C_Read... [15:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:52]Read from MH i2c: E2 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 0E 00 [15:55:52]MH_I2C_Read... [15:55:52]Read from MH i2c: E2 0E 00 A1 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8D [15:55:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:55:52]wFMCommunicate OK [15:55:52]SAM_PROTO_GetShiftState done [15:55:52]FM_GetShiftState done [15:55:52]opened in 1729557463 [15:55:52]opened+sec_in_day 1729643863 [15:55:52]quantity*price = 70044 [15:55:52]sum+1 = 70046 [15:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 211 22.10.2024 15:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166456 ФПД: 265089348718787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166456&fm=265089348718787&tin=02508201610067®Number=0000000000091764&sum=70000 [15:55:53]StoreToDocumentArchive [15:55:53]shift 536 fd 166456 [15:55:53]save to /storage/0536/doc_00166456 [15:55:53]save last doc name /storage/0536/doc_00166456 to /storage/kkm_last_doc_name [15:55:53]save OK [15:55:53]Clear old archive folders... [15:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:53]tlvbuf is 00A45870 [15:55:53]SAM_PROTO_ClearQueue [15:55:53]wFMCommunicate request_size=4 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 09 00 00 [15:55:53]Write to MH i2c: E2 08 00 AE 1C 80 09 00 00 00 00 00 00 3C [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 AE 1C 00 90 00 3E [15:55:53]RAPDU: 90 00 [15:55:53]wFMCommunicate OK [15:55:53]SAM_PROTO_ClearQueue done [15:55:53]KKMCreateOFDPacket [15:55:53]OFDProtocolAddRootSTLVToBuf [15:55:53]FM_MakeSignedData [15:55:53]FM_MakeSignedData [15:55:53]SAM_PROTO_SignData [15:55:53]wFMCommunicate request_size=4 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 0D 01 02 [15:55:53]Write to MH i2c: E2 08 00 AF 1C 80 0D 01 02 00 00 00 00 44 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 AF 1C 00 90 00 3F [15:55:53]RAPDU: 90 00 [15:55:53]wFMCommunicate OK [15:55:53]wFMCommunicate request_size=255 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 09 CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8A 02 00 35 04 06 00 F1 [15:55:53]Write to MH i2c: E2 02 01 B0 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 09 CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8A 02 00 35 04 06 00 F1 00 00 B5 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 B0 1C 00 90 00 40 [15:55:53]RAPDU: 90 00 [15:55:53]wFMCommunicate OK [15:55:53]wFMCommunicate request_size=10 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 0D 02 02 05 18 EC 76 D0 C3 [15:55:53]Write to MH i2c: E2 0D 00 B1 1C 80 0D 02 02 05 00 18 EC 76 D0 C3 00 00 5E [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 03 00 B1 1C 00 90 00 41 [15:55:53]RAPDU: 90 00 [15:55:53]wFMCommunicate OK [15:55:53]wFMCommunicate request_size=4 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 0D 03 02 [15:55:53]Write to MH i2c: E2 08 00 B2 1C 80 0D 03 02 00 00 00 00 49 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 0B 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 0B 00 B2 1C 00 17 41 54 10 CD A9 1C A2 90 00 3A [15:55:53]RAPDU: 17 41 54 10 CD A9 1C A2 90 00 [15:55:53]wFMCommunicate OK [15:55:53]SAM_PROTO_SignData done [15:55:53]FM_MakeSignedData done [15:55:53]CreateOFDProtocolMessage [15:55:53]wFMCommunicate request_size=4 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 11 00 00 [15:55:53]Write to MH i2c: E2 08 00 B3 1C 80 11 00 00 00 00 00 00 49 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 17 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 17 00 B3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [15:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:55:53]wFMCommunicate OK [15:55:53]CreateOFDProtocolMessage done [15:55:53]OFDSenderStorePacket 166456 [15:55:53]StoreOFDPacket docnum=166456 [15:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E CF 07 01 6A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 09 CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8A 02 00 35 04 06 00 F1 18 EC 76 D0 C3 17 41 54 10 CD A9 1C A2 [15:55:53]CheckFolder [15:55:53]dirname=/storage/ofd_packets [15:55:53]CheckFolder done [15:55:53]ProducePacketName [15:55:53]name=ofd_packets/00166456 [15:55:53]NVStorageSaveData ofd_packets/00166456 [15:55:53]File name is /storage/ofd_packets/00166456 [15:55:53]Write 301 bytes [15:55:53]NVStorageSaveData done [15:55:53]OFDSenderStorePacket done [15:55:53]KKMCreateOFDPacket done [15:55:53]NVStorageSaveData kkm_last_timestamp [15:55:53]File name is /storage/kkm_last_timestamp [15:55:53]Write 4 bytes [15:55:53]NVStorageSaveData done [15:55:53]ExternCall_PrintAddStr [15:55:53]wPrintStart [15:55:53]Write to MH i2c: 01 00 00 B4 1C D0 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 07 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: 01 07 00 B4 1C 00 00 00 00 00 FF 0F E5 [15:55:53]RasterBufferAndPrint [15:55:53]line Счет N : (1)221035 [15:55:53]line ИНН: 02508201610067 [15:55:53]line Контрольно-Кассовый Чек [15:55:53]line ПРОДАЖА [15:55:53]line ТРК (МРК, ГНК) : 24 [15:55:53]line Товар: 2710124500 [15:55:53]line Аи-95-К-5 [15:55:53]line 9.440 * 74.20 [15:55:53]line = 700.45 [15:55:53]line НДС 12% НСП 1% [15:55:53]line > о реализуемом товаре [15:55:53]line ОКРУГЛЕНИЕ: -0.45 [15:55:53]line ИТОГО: 700.00 [15:55:53]line Внесено: 700.00 [15:55:53]line СДАЧА: 0.00 [15:55:53]line НСП 1% : 6.20 [15:55:53]line НДС 12% : 74.38 [15:55:53]line Наличными: 700.00 [15:55:53]line Безнал.: 0.00 [15:55:53]line Место: АЗС № 161 "Партнер Нефть" [15:55:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:55:53]line СНО: Общий режим [15:55:53]line Чек 211 22.10.2024 15:55 [15:55:53]line Смена: 536 ФФД: 1.0 [15:55:53]line ЗНМ: 0300000104 [15:55:53]line РНМ: 0000000000091764 [15:55:53]line Версия ККМ: 001 [15:55:53]line ФМ: 0000000000871759 [15:55:53]line ФД: 166456 [15:55:53]line ФПД: 265089348718787 [15:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155553&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166456&fm=265089348718787&tin=02508201610067®Number=0000000000091764&sum=70000 [15:55:54]OFD Sender: Processing packet 166456 [packets to send 48, broken 47] [15:55:54]ProducePacketName [15:55:54]name=ofd_packets/00166456 [15:55:54]OFD Sender: To server: pG, [15:55:54]CommunicateWithHost lk.salyk.kg:30040 [15:55:54]ConnectInit lk.salyk.kg [15:55:54]written 0, free lines is 4095 [15:55:54]Connected sock=10 [15:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E CF 07 01 6A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 09 CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8A 02 00 35 04 06 00 F1 18 EC 76 D0 C3 17 41 54 10 CD A9 1C A2 [15:55:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C 8B 47 00 7D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 8A 02 00 F4 03 04 00 74 71 17 67 B6 04 01 00 00 25 5F 5B F6 75 1B 3A 01 [15:55:54]CommunicateWithHost err = 0 [15:55:54]CheckOFDResponse [15:55:54]1017 (14) - 77093643461234 [15:55:54]1041 (16) - 0000000000871759 [15:55:54]1040 (4) - 166456 [15:55:54]1012 (4) - 22.10.2024 09:33 [15:55:54]1206 (1) - 0 [15:55:54]OFD Sender: Remove packet 166456 [15:55:54]ProducePacketName [15:55:54]name=ofd_packets/00166456 [15:55:54]NVStorageDeleteData [15:55:54]Write to MH i2c: 01 00 00 DF 1C FB [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: 01 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: 01 07 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 C5 0C D3 [15:55:54]RasterBufferAndPrint [15:55:54]line [15:55:54]line [15:55:54]line [15:55:54]line [15:55:54]line [15:55:54]written 0, free lines is 3275 [15:55:54]MH_Cut [15:55:54]Write to MH i2c: D1 01 00 E6 1C 01 D4 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: D1 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: D1 01 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: D1 01 00 E6 1C 00 D3 [15:55:54]Write to MH i2c: 01 00 00 E7 1C 03 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:55]OFD Sender: No OFD packet to send [15:55:55]*** Cut start [15:55:55]*** Partial cut [15:55:55]*** CUTSNS_PIN = 1 [15:55:55]*** CUTSNS_PIN = 0 [15:55:55]*** Brake cut motor [15:55:56]Read from MH i2c: 01 [15:55:56]MH_I2C_Read... [15:55:56]*** Stop cut motor [15:55:56]*** Cut end [15:55:56]Read from MH i2c: 01 07 00 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: 01 07 00 E7 1C 00 00 00 00 00 FF 0F 18 [15:55:56]process_action close_receipt done [15:55:56]requested_data is exist [15:55:56]produce_requested_data [15:55:56]requested_item fm.sn is exist - process it [15:55:56]wFMCommunicate request_size=4 [15:55:56]MH_SAM_APDU [15:55:56]CAPDU: 80 11 00 00 [15:55:56]Write to MH i2c: E2 08 00 E8 1C 80 11 00 00 00 00 00 00 7E [15:55:56]Write i2c OK [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 [15:55:56]MH_I2C_Read... [15:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:56]Read from MH i2c: E2 17 00 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 17 00 E8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [15:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:55:56]wFMCommunicate OK [15:55:56]requested_item fd.num is exist - process it [15:55:56]SAM_PROTO_GetFieldsCounters [15:55:56]wFMCommunicate request_size=4 [15:55:56]MH_SAM_APDU [15:55:56]CAPDU: 80 13 00 00 [15:55:56]Write to MH i2c: E2 08 00 E9 1C 80 13 00 00 00 00 00 00 81 [15:55:56]Write i2c OK [15:55:56]MH_I2C_Read... [15:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:56]Read from MH i2c: E2 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 62 00 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 62 00 E9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [15:55:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:56]wFMCommunicate OK [15:55:56]SAM_PROTO_GetFieldsCounters done [15:55:56]requested_item shift.num is exist - process it [15:55:56]requested_item shift.opened is exist - process it [15:55:56]req_shift_opened [15:55:56]FM_GetShiftState [15:55:56]SAM_PROTO_GetShiftState [15:55:56]wFMCommunicate request_size=4 [15:55:56]MH_SAM_APDU [15:55:56]CAPDU: 80 13 01 00 [15:55:56]Write to MH i2c: E2 08 00 EA 1C 80 13 01 00 00 00 00 00 83 [15:55:56]Write i2c OK [15:55:56]MH_I2C_Read... [15:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:56]Read from MH i2c: E2 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 0E 00 [15:55:56]MH_I2C_Read... [15:55:56]Read from MH i2c: E2 0E 00 EA 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D6 [15:55:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:55:56]wFMCommunicate OK [15:55:56]SAM_PROTO_GetShiftState done [15:55:56]FM_GetShiftState done [15:55:56]req_shift_opened done [15:55:56]requested_item shift.open_date is exist - process it [15:55:56]req_shift_open_date [15:55:56]req_shift_open_date done [15:55:56]produce_requested_data done [15:55:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166456,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:55:56]process_action_free close_receipt [15:55:56]json_value_free [15:55:56]json_value_free done [15:55:56]process_json_proto returns [15:55:56]Send response to host [15:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166456,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:55:56]free response buf [15:55:56]execute_script done [15:55:56]execute_script returns [15:55:56]free content buf [15:55:56]Sock 9.Close socket [15:55:56]Sock 9.Thread stoped [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:24]accept exits with 7 [15:59:24]New connection [15:59:24]New thread 3067493732 created [15:59:24]Thread 3067637092 joined [15:59:24]Waiting for new connection... [15:59:24] Sock 7.Parse request [15:59:24]Sock 7.Check first char [15:59:24]Sock 7.First char is OK [15:59:24]request: POST /json_proto HTTP/1.0 [15:59:24]Method: POST [15:59:24]URL: /json_proto [15:59:24]Method is POST - this is cgi request [15:59:24]url: /json_proto [15:59:24]query_string will be loaded in cgi processing [15:59:24]execute_cgi json_proto POST (null) [15:59:24]execute_cgi path=json_proto method=POST [15:59:24]POST find Content-Length [15:59:24]Host: 172.17.53.195:8080 [15:59:24]Content-Length: 679 [15:59:24]Content-Type: application/json [15:59:24] [15:59:24]POST finish read [15:59:24]Found Content-Length = 679 [15:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:24]execute_script... [15:59:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:24]POST & json_proto [15:59:24]process_json_proto [15:59:24]json parsed OK: [15:59:24]protocol is kg_v1.0 [15:59:24]action value=close_receipt [15:59:24]process_action close_receipt [15:59:24]cmd_close_receipt [15:59:24]MH_GetDate [15:59:24]Write to MH i2c: F0 00 00 EB 1C F6 [15:59:24]Write i2c OK [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: F0 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: F0 09 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: F0 09 00 EB 1C 00 DD CB 17 67 21 48 4A 65 3D [15:59:24]GetLastDocTimeStamp 1729612553 [15:59:24]current date 1729612765 [15:59:24]FM_GetShiftState [15:59:24]SAM_PROTO_GetShiftState [15:59:24]wFMCommunicate request_size=4 [15:59:24]MH_SAM_APDU [15:59:24]CAPDU: 80 13 01 00 [15:59:24]Write to MH i2c: E2 08 00 EC 1C 80 13 01 00 00 00 00 00 85 [15:59:24]Write i2c OK [15:59:24]MH_I2C_Read... [15:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:24]Read from MH i2c: E2 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 0E 00 [15:59:24]MH_I2C_Read... [15:59:24]Read from MH i2c: E2 0E 00 EC 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D8 [15:59:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:59:24]wFMCommunicate OK [15:59:24]SAM_PROTO_GetShiftState done [15:59:24]FM_GetShiftState done [15:59:24]opened in 1729557463 [15:59:24]opened+sec_in_day 1729643863 [15:59:24]quantity*price = 300075 [15:59:24]sum+1 = 300077 [15:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 212 22.10.2024 15:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166457 ФПД: 205286897482146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166457&fm=205286897482146&tin=02508201610067®Number=0000000000091764&sum=300000 [15:59:25]StoreToDocumentArchive [15:59:25]shift 536 fd 166457 [15:59:25]save to /storage/0536/doc_00166457 [15:59:25]save last doc name /storage/0536/doc_00166457 to /storage/kkm_last_doc_name [15:59:25]save OK [15:59:25]Clear old archive folders... [15:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:25]tlvbuf is 009E12D0 [15:59:25]SAM_PROTO_ClearQueue [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 09 00 00 [15:59:25]Write to MH i2c: E2 08 00 F9 1C 80 09 00 00 00 00 00 00 87 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [15:59:25]RAPDU: 90 00 [15:59:25]wFMCommunicate OK [15:59:25]SAM_PROTO_ClearQueue done [15:59:25]KKMCreateOFDPacket [15:59:25]OFDProtocolAddRootSTLVToBuf [15:59:25]FM_MakeSignedData [15:59:25]FM_MakeSignedData [15:59:25]SAM_PROTO_SignData [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 0D 01 02 [15:59:25]Write to MH i2c: E2 08 00 FA 1C 80 0D 01 02 00 00 00 00 8F [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [15:59:25]RAPDU: 90 00 [15:59:25]wFMCommunicate OK [15:59:25]wFMCommunicate request_size=255 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 DD CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8A 02 00 35 04 06 00 BA B5 14 99 [15:59:25]Write to MH i2c: E2 02 01 FB 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 DD CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8A 02 00 35 04 06 00 BA B5 14 99 00 00 47 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [15:59:25]RAPDU: 90 00 [15:59:25]wFMCommunicate OK [15:59:25]wFMCommunicate request_size=7 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 0D 02 02 02 F9 A2 [15:59:25]Write to MH i2c: E2 0A 00 FC 1C 80 0D 02 02 02 00 F9 A2 00 00 31 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [15:59:25]RAPDU: 90 00 [15:59:25]wFMCommunicate OK [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 0D 03 02 [15:59:25]Write to MH i2c: E2 08 00 FD 1C 80 0D 03 02 00 00 00 00 94 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 0B 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 0B 00 FD 1C 00 25 DE 6B 65 61 EE E7 65 90 00 03 [15:59:25]RAPDU: 25 DE 6B 65 61 EE E7 65 90 00 [15:59:25]wFMCommunicate OK [15:59:25]SAM_PROTO_SignData done [15:59:25]FM_MakeSignedData done [15:59:25]CreateOFDProtocolMessage [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 11 00 00 [15:59:25]Write to MH i2c: E2 08 00 FE 1C 80 11 00 00 00 00 00 00 94 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:26]Read from MH i2c: E2 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 17 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 17 00 FE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [15:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:59:26]wFMCommunicate OK [15:59:26]CreateOFDProtocolMessage done [15:59:26]OFDSenderStorePacket 166457 [15:59:26]StoreOFDPacket docnum=166457 [15:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 83 D5 04 01 C0 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 DD CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8A 02 00 35 04 06 00 BA B5 14 99 F9 A2 25 DE 6B 65 61 EE E7 65 [15:59:26]CheckFolder [15:59:26]dirname=/storage/ofd_packets [15:59:26]CheckFolder done [15:59:26]ProducePacketName [15:59:26]name=ofd_packets/00166457 [15:59:26]NVStorageSaveData ofd_packets/00166457 [15:59:26]File name is /storage/ofd_packets/00166457 [15:59:26]Write 298 bytes [15:59:26]NVStorageSaveData done [15:59:26]OFDSenderStorePacket done [15:59:26]KKMCreateOFDPacket done [15:59:26]NVStorageSaveData kkm_last_timestamp [15:59:26]File name is /storage/kkm_last_timestamp [15:59:26]Write 4 bytes [15:59:26]NVStorageSaveData done [15:59:26]ExternCall_PrintAddStr [15:59:26]wPrintStart [15:59:26]Write to MH i2c: 01 00 00 FF 1C 1B [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 07 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 07 00 FF 1C 00 00 00 00 00 FF 0F 30 [15:59:26]RasterBufferAndPrint [15:59:26]line Счет N : (1)221036 [15:59:26]line ИНН: 02508201610067 [15:59:26]line Контрольно-Кассовый Чек [15:59:26]line ПРОДАЖА [15:59:26]line ТРК (МРК, ГНК) : 21 [15:59:26]line Товар: 2710194210 [15:59:26]line ДТ-К-5 [15:59:26]line 39.380 * 76.20 [15:59:26]line = 3000.76 [15:59:26]line НДС 12% НСП 1% [15:59:26]line > о реализуемом товаре [15:59:26]line ОКРУГЛЕНИЕ: -0.76 [15:59:26]line ИТОГО: 3000.00 [15:59:26]line Внесено: 3000.00 [15:59:26]line СДАЧА: 0.00 [15:59:26]line НСП 1% : 26.55 [15:59:26]line НДС 12% : 318.66 [15:59:26]line Наличными: 3000.00 [15:59:26]line Безнал.: 0.00 [15:59:26]line Место: АЗС № 161 "Партнер Нефть" [15:59:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:59:26]line СНО: Общий режим [15:59:26]line Чек 212 22.10.2024 15:59 [15:59:26]line Смена: 536 ФФД: 1.0 [15:59:26]line ЗНМ: 0300000104 [15:59:26]line РНМ: 0000000000091764 [15:59:26]line Версия ККМ: 001 [15:59:26]line ФМ: 0000000000871759 [15:59:26]line ФД: 166457 [15:59:26]line ФПД: 205286897482146 [15:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166457&fm=205286897482146&tin=02508201610067®Number=0000000000091764&sum=300000 [15:59:26]OFD Sender: Processing packet 166457 [packets to send 48, broken 47] [15:59:26]ProducePacketName [15:59:26]name=ofd_packets/00166457 [15:59:26]OFD Sender: To server: pG, [15:59:26]CommunicateWithHost lk.salyk.kg:30040 [15:59:26]ConnectInit lk.salyk.kg [15:59:26]written 0, free lines is 4095 [15:59:26]Connected sock=10 [15: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 31 37 35 39 0C 01 00 00 83 D5 04 01 C0 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 DD CB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8A 02 00 35 04 06 00 BA B5 14 99 F9 A2 25 DE 6B 65 61 EE E7 65 [15:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 04 47 00 01 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 8A 02 00 F4 03 04 00 48 72 17 67 B6 04 01 00 00 A9 B3 23 55 03 83 91 3A [15:59:26]CommunicateWithHost err = 0 [15:59:26]CheckOFDResponse [15:59:26]1017 (14) - 77093643461234 [15:59:26]1041 (16) - 0000000000871759 [15:59:26]1040 (4) - 166457 [15:59:26]1012 (4) - 22.10.2024 09:37 [15:59:26]1206 (1) - 0 [15:59:26]OFD Sender: Remove packet 166457 [15:59:26]ProducePacketName [15:59:26]name=ofd_packets/00166457 [15:59:26]NVStorageDeleteData [15:59:26]Write to MH i2c: 01 00 00 2A 1D 47 [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 07 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: 01 07 00 2A 1D 00 00 00 00 00 CA 0C 24 [15:59:26]RasterBufferAndPrint [15:59:26]line [15:59:26]line [15:59:26]line [15:59:26]line [15:59:26]line [15:59:26]written 0, free lines is 3280 [15:59:26]MH_Cut [15:59:26]Write to MH i2c: D1 01 00 31 1D 01 20 [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: D1 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: D1 01 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: D1 01 00 31 1D 00 1F [15:59:26]Write to MH i2c: 01 00 00 32 1D 4F [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:27]OFD Sender: No OFD packet to send [15:59:27]*** Cut start [15:59:27]*** Partial cut [15:59:27]*** CUTSNS_PIN = 1 [15:59:27]*** CUTSNS_PIN = 0 [15:59:27]*** Brake cut motor [15:59:28]Read from MH i2c: 01 [15:59:28]MH_I2C_Read... [15:59:28]*** Stop cut motor [15:59:28]*** Cut end [15:59:28]Read from MH i2c: 01 07 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: 01 07 00 32 1D 00 00 00 00 00 FF 0F 64 [15:59:28]process_action close_receipt done [15:59:28]requested_data is exist [15:59:28]produce_requested_data [15:59:28]requested_item fm.sn is exist - process it [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 11 00 00 [15:59:28]Write to MH i2c: E2 08 00 33 1D 80 11 00 00 00 00 00 00 CA [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 17 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 17 00 33 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [15:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:59:28]wFMCommunicate OK [15:59:28]requested_item fd.num is exist - process it [15:59:28]SAM_PROTO_GetFieldsCounters [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 13 00 00 [15:59:28]Write to MH i2c: E2 08 00 34 1D 80 13 00 00 00 00 00 00 CD [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 62 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 62 00 34 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:28]wFMCommunicate OK [15:59:28]SAM_PROTO_GetFieldsCounters done [15:59:28]requested_item shift.num is exist - process it [15:59:28]requested_item shift.opened is exist - process it [15:59:28]req_shift_opened [15:59:28]FM_GetShiftState [15:59:28]SAM_PROTO_GetShiftState [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 13 01 00 [15:59:28]Write to MH i2c: E2 08 00 35 1D 80 13 01 00 00 00 00 00 CF [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 0E 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 0E 00 35 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 22 [15:59:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [15:59:28]wFMCommunicate OK [15:59:28]SAM_PROTO_GetShiftState done [15:59:28]FM_GetShiftState done [15:59:28]req_shift_opened done [15:59:28]requested_item shift.open_date is exist - process it [15:59:28]req_shift_open_date [15:59:28]req_shift_open_date done [15:59:28]produce_requested_data done [15:59:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166457,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [15:59:28]process_action_free close_receipt [15:59:28]json_value_free [15:59:28]json_value_free done [15:59:28]process_json_proto returns [15:59:28]Send response to host [15:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166457,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [15:59:28]free response buf [15:59:28]execute_script done [15:59:28]execute_script returns [15:59:28]free content buf [15:59:28]Sock 7.Close socket [15:59:28]Sock 7.Thread stoped [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:27]accept exits with 9 [16:00:27]New connection [16:00:27]New thread 3067637092 created [16:00:27]Thread 3067493732 joined [16:00:27]Waiting for new connection... [16:00:27] Sock 9.Parse request [16:00:27]Sock 9.Check first char [16:00:27]Sock 9.First char is OK [16:00:27]request: POST /json_proto HTTP/1.0 [16:00:27]Method: POST [16:00:27]URL: /json_proto [16:00:27]Method is POST - this is cgi request [16:00:27]url: /json_proto [16:00:27]query_string will be loaded in cgi processing [16:00:27]execute_cgi json_proto POST (null) [16:00:27]execute_cgi path=json_proto method=POST [16:00:27]POST find Content-Length [16:00:27]Host: 172.17.53.195:8080 [16:00:27]Content-Length: 682 [16:00:27]Content-Type: application/json [16:00:27] [16:00:27]POST finish read [16:00:27]Found Content-Length = 682 [16:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:27]execute_script... [16:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:27]POST & json_proto [16:00:27]process_json_proto [16:00:27]json parsed OK: [16:00:27]protocol is kg_v1.0 [16:00:27]action value=close_receipt [16:00:27]process_action close_receipt [16:00:27]cmd_close_receipt [16:00:27]MH_GetDate [16:00:27]Write to MH i2c: F0 00 00 36 1D 42 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: F0 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: F0 09 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: F0 09 00 36 1D 00 1D CC 17 67 21 48 4A 65 CA [16:00:27]GetLastDocTimeStamp 1729612765 [16:00:27]current date 1729612829 [16:00:27]FM_GetShiftState [16:00:27]SAM_PROTO_GetShiftState [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 13 01 00 [16:00:27]Write to MH i2c: E2 08 00 37 1D 80 13 01 00 00 00 00 00 D1 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 37 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 24 [16:00:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetShiftState done [16:00:28]FM_GetShiftState done [16:00:28]opened in 1729557463 [16:00:28]opened+sec_in_day 1729643863 [16:00:28]quantity*price = 100015 [16:00:28]sum+1 = 100017 [16:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 213 22.10.2024 16:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166458 ФПД: 121574195036910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160029&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166458&fm=121574195036910&tin=02508201610067®Number=0000000000091764&sum=100000 [16:00:29]StoreToDocumentArchive [16:00:29]shift 536 fd 166458 [16:00:29]save to /storage/0536/doc_00166458 [16:00:29]save last doc name /storage/0536/doc_00166458 to /storage/kkm_last_doc_name [16:00:29]save OK [16:00:29]Clear old archive folders... [16:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:29]tlvbuf is 009E14C0 [16:00:29]SAM_PROTO_ClearQueue [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 09 00 00 [16:00:29]Write to MH i2c: E2 08 00 44 1D 80 09 00 00 00 00 00 00 D3 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [16:00:29]RAPDU: 90 00 [16:00:29]wFMCommunicate OK [16:00:29]SAM_PROTO_ClearQueue done [16:00:29]KKMCreateOFDPacket [16:00:29]OFDProtocolAddRootSTLVToBuf [16:00:29]FM_MakeSignedData [16:00:29]FM_MakeSignedData [16:00:29]SAM_PROTO_SignData [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 0D 01 02 [16:00:29]Write to MH i2c: E2 08 00 45 1D 80 0D 01 02 00 00 00 00 DB [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [16:00:29]RAPDU: 90 00 [16:00:29]wFMCommunicate OK [16:00:29]wFMCommunicate request_size=255 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1D CC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8A 02 00 35 04 06 00 6E [16:00:29]Write to MH i2c: E2 02 01 46 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1D CC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8A 02 00 35 04 06 00 6E 00 00 F5 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [16:00:29]RAPDU: 90 00 [16:00:29]wFMCommunicate OK [16:00:29]wFMCommunicate request_size=10 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 0D 02 02 05 92 32 B5 82 EE [16:00:29]Write to MH i2c: E2 0D 00 47 1D 80 0D 02 02 05 00 92 32 B5 82 EE 00 00 D1 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 03 00 47 1D 00 90 00 D8 [16:00:29]RAPDU: 90 00 [16:00:29]wFMCommunicate OK [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 0D 03 02 [16:00:29]Write to MH i2c: E2 08 00 48 1D 80 0D 03 02 00 00 00 00 E0 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 0B 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 0B 00 48 1D 00 15 FC CF C3 CB 62 89 B0 90 00 EA [16:00:29]RAPDU: 15 FC CF C3 CB 62 89 B0 90 00 [16:00:29]wFMCommunicate OK [16:00:29]SAM_PROTO_SignData done [16:00:29]FM_MakeSignedData done [16:00:29]CreateOFDProtocolMessage [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 11 00 00 [16:00:29]Write to MH i2c: E2 08 00 49 1D 80 11 00 00 00 00 00 00 E0 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 17 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 17 00 49 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [16:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:00:29]wFMCommunicate OK [16:00:29]CreateOFDProtocolMessage done [16:00:29]OFDSenderStorePacket 166458 [16:00:29]StoreOFDPacket docnum=166458 [16:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BF 43 07 01 A9 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1D CC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8A 02 00 35 04 06 00 6E 92 32 B5 82 EE 15 FC CF C3 CB 62 89 B0 [16:00:29]CheckFolder [16:00:29]dirname=/storage/ofd_packets [16:00:29]CheckFolder done [16:00:29]ProducePacketName [16:00:29]name=ofd_packets/00166458 [16:00:29]NVStorageSaveData ofd_packets/00166458 [16:00:29]File name is /storage/ofd_packets/00166458 [16:00:29]Write 301 bytes [16:00:29]NVStorageSaveData done [16:00:29]OFDSenderStorePacket done [16:00:29]KKMCreateOFDPacket done [16:00:29]NVStorageSaveData kkm_last_timestamp [16:00:29]File name is /storage/kkm_last_timestamp [16:00:29]Write 4 bytes [16:00:29]NVStorageSaveData done [16:00:29]ExternCall_PrintAddStr [16:00:29]wPrintStart [16:00:29]Write to MH i2c: 01 00 00 4A 1D 67 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: 01 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: 01 07 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 FF 0F 7C [16:00:29]RasterBufferAndPrint [16:00:29]line Счет N : (1)221037 [16:00:29]line ИНН: 02508201610067 [16:00:29]line Контрольно-Кассовый Чек [16:00:29]line ПРОДАЖА [16:00:29]line ТРК (МРК, ГНК) : 33 [16:00:29]line Товар: 2710124130 [16:00:29]line Аи-92-К-5 [16:00:29]line 14.950 * 66.90 [16:00:29]line = 1000.16 [16:00:29]line НДС 12% НСП 1% [16:00:29]line > о реализуемом товаре [16:00:29]line ОКРУГЛЕНИЕ: -0.16 [16:00:29]line ИТОГО: 1000.00 [16:00:29]line Внесено: 1000.00 [16:00:29]line СДАЧА: 0.00 [16:00:29]line НСП 1% : 8.85 [16:00:29]line НДС 12% : 106.21 [16:00:29]line Наличными: 1000.00 [16:00:29]line Безнал.: 0.00 [16:00:29]line Место: АЗС № 161 "Партнер Нефть" [16:00:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:00:29]line СНО: Общий режим [16:00:29]line Чек 213 22.10.2024 16:00 [16:00:29]line Смена: 536 ФФД: 1.0 [16:00:29]line ЗНМ: 0300000104 [16:00:29]line РНМ: 0000000000091764 [16:00:29]line Версия ККМ: 001 [16:00:29]line ФМ: 0000000000871759 [16:00:29]line ФД: 166458 [16:00:29]line ФПД: 121574195036910 [16:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160029&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166458&fm=121574195036910&tin=02508201610067®Number=0000000000091764&sum=100000 [16:00:30]OFD Sender: Processing packet 166458 [packets to send 48, broken 47] [16:00:30]ProducePacketName [16:00:30]name=ofd_packets/00166458 [16:00:30]OFD Sender: To server: pG, [16:00:30]CommunicateWithHost lk.salyk.kg:30040 [16:00:30]ConnectInit lk.salyk.kg [16:00:30]written 0, free lines is 4095 [16:00:30]Connected sock=6 [16:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BF 43 07 01 A9 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1D CC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8A 02 00 35 04 06 00 6E 92 32 B5 82 EE 15 FC CF C3 CB 62 89 B0 [16:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0A E4 47 00 39 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 8A 02 00 F4 03 04 00 87 72 17 67 B6 04 01 00 00 25 CC E9 E3 91 B2 90 4F [16:00:30]CommunicateWithHost err = 0 [16:00:30]CheckOFDResponse [16:00:30]1017 (14) - 77093643461234 [16:00:30]1041 (16) - 0000000000871759 [16:00:30]1040 (4) - 166458 [16:00:30]1012 (4) - 22.10.2024 09:38 [16:00:30]1206 (1) - 0 [16:00:30]OFD Sender: Remove packet 166458 [16:00:30]ProducePacketName [16:00:30]name=ofd_packets/00166458 [16:00:30]NVStorageDeleteData [16:00:30]Write to MH i2c: 01 00 00 75 1D 92 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: 01 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: 01 07 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 CB 0C 70 [16:00:30]RasterBufferAndPrint [16:00:30]line [16:00:30]line [16:00:30]line [16:00:30]line [16:00:30]line [16:00:30]written 0, free lines is 3280 [16:00:30]MH_Cut [16:00:30]Write to MH i2c: D1 01 00 7C 1D 01 6B [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: D1 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: D1 01 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: D1 01 00 7C 1D 00 6A [16:00:30]Write to MH i2c: 01 00 00 7D 1D 9A [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]OFD Sender: No OFD packet to send [16:00:31]*** Cut start [16:00:31]*** Partial cut [16:00:31]*** CUTSNS_PIN = 1 [16:00:31]*** CUTSNS_PIN = 0 [16:00:31]*** Brake cut motor [16:00:31]Read from MH i2c: 01 [16:00:31]MH_I2C_Read... [16:00:31]*** Stop cut motor [16:00:31]*** Cut end [16:00:31]Read from MH i2c: 01 07 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: 01 07 00 7D 1D 00 00 00 00 00 FF 0F AF [16:00:31]process_action close_receipt done [16:00:31]requested_data is exist [16:00:31]produce_requested_data [16:00:31]requested_item fm.sn is exist - process it [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 11 00 00 [16:00:31]Write to MH i2c: E2 08 00 7E 1D 80 11 00 00 00 00 00 00 15 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 17 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 17 00 7E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [16:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:00:31]wFMCommunicate OK [16:00:31]requested_item fd.num is exist - process it [16:00:31]SAM_PROTO_GetFieldsCounters [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 13 00 00 [16:00:31]Write to MH i2c: E2 08 00 7F 1D 80 13 00 00 00 00 00 00 18 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 62 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 62 00 7F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_GetFieldsCounters done [16:00:32]requested_item shift.num is exist - process it [16:00:32]requested_item shift.opened is exist - process it [16:00:32]req_shift_opened [16:00:32]FM_GetShiftState [16:00:32]SAM_PROTO_GetShiftState [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 13 01 00 [16:00:32]Write to MH i2c: E2 08 00 80 1D 80 13 01 00 00 00 00 00 1A [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0E 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0E 00 80 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6D [16:00:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_GetShiftState done [16:00:32]FM_GetShiftState done [16:00:32]req_shift_opened done [16:00:32]requested_item shift.open_date is exist - process it [16:00:32]req_shift_open_date [16:00:32]req_shift_open_date done [16:00:32]produce_requested_data done [16:00:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166458,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [16:00:32]process_action_free close_receipt [16:00:32]json_value_free [16:00:32]json_value_free done [16:00:32]process_json_proto returns [16:00:32]Send response to host [16:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166458,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [16:00:32]free response buf [16:00:32]execute_script done [16:00:32]execute_script returns [16:00:32]free content buf [16:00:32]Sock 9.Close socket [16:00:32]Sock 9.Thread stoped [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:45]accept exits with 7 [16:04:45]New connection [16:04:45]New thread 3067493732 created [16:04:45]Thread 3067637092 joined [16:04:45]Waiting for new connection... [16:04:45] Sock 7.Parse request [16:04:45]Sock 7.Check first char [16:04:45]Sock 7.First char is OK [16:04:45]request: POST /json_proto HTTP/1.0 [16:04:45]Method: POST [16:04:45]URL: /json_proto [16:04:45]Method is POST - this is cgi request [16:04:45]url: /json_proto [16:04:45]query_string will be loaded in cgi processing [16:04:45]execute_cgi json_proto POST (null) [16:04:45]execute_cgi path=json_proto method=POST [16:04:45]POST find Content-Length [16:04:45]Host: 172.17.53.195:8080 [16:04:45]Content-Length: 682 [16:04:45]Content-Type: application/json [16:04:45] [16:04:45]POST finish read [16:04:45]Found Content-Length = 682 [16:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.900, "sum" : 1799.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1799.00, "payments": [ { "type": 0, "sum" : 1799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:45]execute_script... [16:04:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.900, "sum" : 1799.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1799.00, "payments": [ { "type": 0, "sum" : 1799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:45]POST & json_proto [16:04:45]process_json_proto [16:04:45]json parsed OK: [16:04:45]protocol is kg_v1.0 [16:04:45]action value=close_receipt [16:04:45]process_action close_receipt [16:04:45]cmd_close_receipt [16:04:45]MH_GetDate [16:04:45]Write to MH i2c: F0 00 00 81 1D 8D [16:04:45]Write i2c OK [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: F0 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: F0 09 00 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: F0 09 00 81 1D 00 1E CD 17 67 21 48 4A 65 17 [16:04:45]GetLastDocTimeStamp 1729612829 [16:04:45]current date 1729613086 [16:04:45]FM_GetShiftState [16:04:45]SAM_PROTO_GetShiftState [16:04:45]wFMCommunicate request_size=4 [16:04:45]MH_SAM_APDU [16:04:45]CAPDU: 80 13 01 00 [16:04:45]Write to MH i2c: E2 08 00 82 1D 80 13 01 00 00 00 00 00 1C [16:04:45]Write i2c OK [16:04:45]MH_I2C_Read... [16:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:45]Read from MH i2c: E2 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: E2 0E 00 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: E2 0E 00 82 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6F [16:04:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:04:45]wFMCommunicate OK [16:04:45]SAM_PROTO_GetShiftState done [16:04:45]FM_GetShiftState done [16:04:45]opened in 1729557463 [16:04:45]opened+sec_in_day 1729643863 [16:04:45]quantity*price = 179961 [16:04:45]sum+1 = 179962 [16:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1799.00 Внесено: 1800.00 СДАЧА: 1.00 НСП 1% : 15.93 НДС 12% : 191.11 Наличными: 1799.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 214 22.10.2024 16:04 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166459 ФПД: 264340586953414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166459&fm=264340586953414&tin=02508201610067®Number=0000000000091764&sum=179900 [16:04:46]StoreToDocumentArchive [16:04:46]shift 536 fd 166459 [16:04:46]save to /storage/0536/doc_00166459 [16:04:46]save last doc name /storage/0536/doc_00166459 to /storage/kkm_last_doc_name [16:04:46]save OK [16:04:46]Clear old archive folders... [16:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:46]tlvbuf is B6F4F800 [16:04:46]SAM_PROTO_ClearQueue [16:04:46]wFMCommunicate request_size=4 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 09 00 00 [16:04:46]Write to MH i2c: E2 08 00 8F 1D 80 09 00 00 00 00 00 00 1E [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:46]Read from MH i2c: E2 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 03 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [16:04:46]RAPDU: 90 00 [16:04:46]wFMCommunicate OK [16:04:46]SAM_PROTO_ClearQueue done [16:04:46]KKMCreateOFDPacket [16:04:46]OFDProtocolAddRootSTLVToBuf [16:04:46]FM_MakeSignedData [16:04:46]FM_MakeSignedData [16:04:46]SAM_PROTO_SignData [16:04:46]wFMCommunicate request_size=4 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 0D 01 02 [16:04:46]Write to MH i2c: E2 08 00 90 1D 80 0D 01 02 00 00 00 00 26 [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:46]Read from MH i2c: E2 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 03 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [16:04:46]RAPDU: 90 00 [16:04:46]wFMCommunicate OK [16:04:46]wFMCommunicate request_size=255 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F9 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1E CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8A 02 00 35 04 06 00 F0 [16:04:46]Write to MH i2c: E2 02 01 91 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F9 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1E CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8A 02 00 35 04 06 00 F0 00 00 E1 [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:47]Read from MH i2c: E2 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 03 00 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 03 00 91 1D 00 90 00 22 [16:04:47]RAPDU: 90 00 [16:04:47]wFMCommunicate OK [16:04:47]wFMCommunicate request_size=10 [16:04:47]MH_SAM_APDU [16:04:47]CAPDU: 80 0D 02 02 05 6A 96 C8 FA C6 [16:04:47]Write to MH i2c: E2 0D 00 92 1D 80 0D 02 02 05 00 6A 96 C8 FA C6 00 00 BB [16:04:47]Write i2c OK [16:04:47]MH_I2C_Read... [16:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:47]Read from MH i2c: E2 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 03 00 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 03 00 92 1D 00 90 00 23 [16:04:47]RAPDU: 90 00 [16:04:47]wFMCommunicate OK [16:04:47]wFMCommunicate request_size=4 [16:04:47]MH_SAM_APDU [16:04:47]CAPDU: 80 0D 03 02 [16:04:47]Write to MH i2c: E2 08 00 93 1D 80 0D 03 02 00 00 00 00 2B [16:04:47]Write i2c OK [16:04:47]MH_I2C_Read... [16:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:47]Read from MH i2c: E2 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 0B 00 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 0B 00 93 1D 00 3C E5 11 C2 59 8F 00 F5 90 00 FD [16:04:47]RAPDU: 3C E5 11 C2 59 8F 00 F5 90 00 [16:04:47]wFMCommunicate OK [16:04:47]SAM_PROTO_SignData done [16:04:47]FM_MakeSignedData done [16:04:47]CreateOFDProtocolMessage [16:04:47]wFMCommunicate request_size=4 [16:04:47]MH_SAM_APDU [16:04:47]CAPDU: 80 11 00 00 [16:04:47]Write to MH i2c: E2 08 00 94 1D 80 11 00 00 00 00 00 00 2B [16:04:47]Write i2c OK [16:04:47]MH_I2C_Read... [16:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:47]Read from MH i2c: E2 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 17 00 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: E2 17 00 94 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [16:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:04:47]wFMCommunicate OK [16:04:47]CreateOFDProtocolMessage done [16:04:47]OFDSenderStorePacket 166459 [16:04:47]StoreOFDPacket docnum=166459 [16:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 4D 07 01 B4 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F9 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1E CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8A 02 00 35 04 06 00 F0 6A 96 C8 FA C6 3C E5 11 C2 59 8F 00 F5 [16:04:47]CheckFolder [16:04:47]dirname=/storage/ofd_packets [16:04:47]CheckFolder done [16:04:47]ProducePacketName [16:04:47]name=ofd_packets/00166459 [16:04:47]NVStorageSaveData ofd_packets/00166459 [16:04:47]File name is /storage/ofd_packets/00166459 [16:04:47]Write 301 bytes [16:04:47]NVStorageSaveData done [16:04:47]OFDSenderStorePacket done [16:04:47]KKMCreateOFDPacket done [16:04:47]NVStorageSaveData kkm_last_timestamp [16:04:47]File name is /storage/kkm_last_timestamp [16:04:47]Write 4 bytes [16:04:47]NVStorageSaveData done [16:04:47]ExternCall_PrintAddStr [16:04:47]wPrintStart [16:04:47]Write to MH i2c: 01 00 00 95 1D B2 [16:04:47]Write i2c OK [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: 01 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: 01 07 00 [16:04:47]MH_I2C_Read... [16:04:47]Read from MH i2c: 01 07 00 95 1D 00 00 00 00 00 FF 0F C7 [16:04:47]RasterBufferAndPrint [16:04:47]line Счет N : (1)221038 [16:04:47]line ИНН: 02508201610067 [16:04:47]line Контрольно-Кассовый Чек [16:04:47]line ПРОДАЖА [16:04:47]line ТРК (МРК, ГНК) : 13 [16:04:47]line Товар: 2710124130 [16:04:47]line Аи-92-К-5 [16:04:47]line 26.900 * 66.90 [16:04:47]line = 1799.61 [16:04:47]line НДС 12% НСП 1% [16:04:47]line > о реализуемом товаре [16:04:47]line ОКРУГЛЕНИЕ: -0.61 [16:04:47]line ИТОГО: 1799.00 [16:04:47]line Внесено: 1800.00 [16:04:47]line СДАЧА: 1.00 [16:04:47]line НСП 1% : 15.93 [16:04:47]line НДС 12% : 191.11 [16:04:47]line Наличными: 1799.00 [16:04:47]line Безнал.: 0.00 [16:04:47]line Место: АЗС № 161 "Партнер Нефть" [16:04:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:04:47]line СНО: Общий режим [16:04:47]line Чек 214 22.10.2024 16:04 [16:04:47]line Смена: 536 ФФД: 1.0 [16:04:47]line ЗНМ: 0300000104 [16:04:47]line РНМ: 0000000000091764 [16:04:47]line Версия ККМ: 001 [16:04:47]line ФМ: 0000000000871759 [16:04:47]line ФД: 166459 [16:04:47]line ФПД: 264340586953414 [16:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166459&fm=264340586953414&tin=02508201610067®Number=0000000000091764&sum=179900 [16:04:47]OFD Sender: Processing packet 166459 [packets to send 48, broken 47] [16:04:47]ProducePacketName [16:04:47]name=ofd_packets/00166459 [16:04:47]OFD Sender: To server: pG, [16:04:47]CommunicateWithHost lk.salyk.kg:30040 [16:04:47]ConnectInit lk.salyk.kg [16:04:47]written 0, free lines is 4095 [16:04:47]Connected sock=10 [16:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 4D 07 01 B4 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F9 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC BE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 4A 00 00 00 00 07 04 06 00 BC BE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1E CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8A 02 00 35 04 06 00 F0 6A 96 C8 FA C6 3C E5 11 C2 59 8F 00 F5 [16:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 39 99 47 00 54 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 8A 02 00 F4 03 04 00 89 73 17 67 B6 04 01 00 00 66 16 B3 CA 64 72 1B 48 [16:04:47]CommunicateWithHost err = 0 [16:04:47]CheckOFDResponse [16:04:47]1017 (14) - 77093643461234 [16:04:47]1041 (16) - 0000000000871759 [16:04:47]1040 (4) - 166459 [16:04:47]1012 (4) - 22.10.2024 09:42 [16:04:47]1206 (1) - 0 [16:04:47]OFD Sender: Remove packet 166459 [16:04:47]ProducePacketName [16:04:47]name=ofd_packets/00166459 [16:04:47]NVStorageDeleteData [16:04:48]Write to MH i2c: 01 00 00 C0 1D DD [16:04:48]Write i2c OK [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: 01 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: 01 07 00 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: 01 07 00 C0 1D 00 00 00 00 00 C2 0C B2 [16:04:48]RasterBufferAndPrint [16:04:48]line [16:04:48]line [16:04:48]line [16:04:48]line [16:04:48]line [16:04:48]written 0, free lines is 3270 [16:04:48]MH_Cut [16:04:48]Write to MH i2c: D1 01 00 C7 1D 01 B6 [16:04:48]Write i2c OK [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: D1 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: D1 01 00 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: D1 01 00 C7 1D 00 B5 [16:04:48]Write to MH i2c: 01 00 00 C8 1D E5 [16:04:48]Write i2c OK [16:04:48]MH_I2C_Read... [16:04:48]OFD Sender: No OFD packet to send [16:04:48]*** Cut start [16:04:48]*** Partial cut [16:04:48]*** CUTSNS_PIN = 1 [16:04:48]*** CUTSNS_PIN = 0 [16:04:49]*** Brake cut motor [16:04:49]Read from MH i2c: 01 [16:04:49]MH_I2C_Read... [16:04:49]*** Stop cut motor [16:04:49]*** Cut end [16:04:49]Read from MH i2c: 01 07 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: 01 07 00 C8 1D 00 00 00 00 00 FF 0F FA [16:04:49]process_action close_receipt done [16:04:49]requested_data is exist [16:04:49]produce_requested_data [16:04:49]requested_item fm.sn is exist - process it [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 11 00 00 [16:04:49]Write to MH i2c: E2 08 00 C9 1D 80 11 00 00 00 00 00 00 60 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 17 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 17 00 C9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [16:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:04:49]wFMCommunicate OK [16:04:49]requested_item fd.num is exist - process it [16:04:49]SAM_PROTO_GetFieldsCounters [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 13 00 00 [16:04:49]Write to MH i2c: E2 08 00 CA 1D 80 13 00 00 00 00 00 00 63 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 62 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 62 00 CA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:49]wFMCommunicate OK [16:04:49]SAM_PROTO_GetFieldsCounters done [16:04:49]requested_item shift.num is exist - process it [16:04:49]requested_item shift.opened is exist - process it [16:04:49]req_shift_opened [16:04:49]FM_GetShiftState [16:04:49]SAM_PROTO_GetShiftState [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 13 01 00 [16:04:49]Write to MH i2c: E2 08 00 CB 1D 80 13 01 00 00 00 00 00 65 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 0E 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 0E 00 CB 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B8 [16:04:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:04:49]wFMCommunicate OK [16:04:49]SAM_PROTO_GetShiftState done [16:04:49]FM_GetShiftState done [16:04:49]req_shift_opened done [16:04:49]requested_item shift.open_date is exist - process it [16:04:49]req_shift_open_date [16:04:49]req_shift_open_date done [16:04:49]produce_requested_data done [16:04:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166459,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [16:04:49]process_action_free close_receipt [16:04:49]json_value_free [16:04:49]json_value_free done [16:04:49]process_json_proto returns [16:04:49]Send response to host [16:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166459,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [16:04:49]free response buf [16:04:49]execute_script done [16:04:49]execute_script returns [16:04:49]free content buf [16:04:49]Sock 7.Close socket [16:04:49]Sock 7.Thread stoped [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:04]accept exits with 9 [16:08:04]New connection [16:08:04]New thread 3067637092 created [16:08:04]Thread 3067493732 joined [16:08:04]Waiting for new connection... [16:08:04] Sock 9.Parse request [16:08:04]Sock 9.Check first char [16:08:04]Sock 9.First char is OK [16:08:04]request: POST /json_proto HTTP/1.0 [16:08:04]Method: POST [16:08:04]URL: /json_proto [16:08:04]Method is POST - this is cgi request [16:08:04]url: /json_proto [16:08:04]query_string will be loaded in cgi processing [16:08:04]execute_cgi json_proto POST (null) [16:08:04]execute_cgi path=json_proto method=POST [16:08:04]POST find Content-Length [16:08:04]Host: 172.17.53.195:8080 [16:08:04]Content-Length: 789 [16:08:04]Content-Type: application/json [16:08:04] [16:08:04]POST finish read [16:08:04]Found Content-Length = 789 [16:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:04]execute_script... [16:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:04]POST & json_proto [16:08:04]process_json_proto [16:08:04]json parsed OK: [16:08:04]protocol is kg_v1.0 [16:08:04]action value=close_receipt [16:08:04]process_action close_receipt [16:08:04]cmd_close_receipt [16:08:04]MH_GetDate [16:08:04]Write to MH i2c: F0 00 00 CC 1D D8 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 09 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 09 00 CC 1D 00 E6 CD 17 67 21 48 4A 65 2A [16:08:04]GetLastDocTimeStamp 1729613086 [16:08:04]current date 1729613286 [16:08:04]FM_GetShiftState [16:08:04]SAM_PROTO_GetShiftState [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 13 01 00 [16:08:04]Write to MH i2c: E2 08 00 CD 1D 80 13 01 00 00 00 00 00 67 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 CD 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BA [16:08:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_GetShiftState done [16:08:04]FM_GetShiftState done [16:08:04]opened in 1729557463 [16:08:04]opened+sec_in_day 1729643863 [16:08:04]quantity*price = 0 [16:08:04]sum+1 = 1 [16:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 215 22.10.2024 16:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166460 ФПД: 224966263727920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160806&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166460&fm=224966263727920&tin=02508201610067®Number=0000000000091764&sum=0 [16:08:06]StoreToDocumentArchive [16:08:06]shift 536 fd 166460 [16:08:06]save to /storage/0536/doc_00166460 [16:08:06]save last doc name /storage/0536/doc_00166460 to /storage/kkm_last_doc_name [16:08:06]save OK [16:08:06]Clear old archive folders... [16:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:08:06]tlvbuf is B6F683A0 [16:08:06]SAM_PROTO_ClearQueue [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 09 00 00 [16:08:06]Write to MH i2c: E2 08 00 DA 1D 80 09 00 00 00 00 00 00 69 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 DA 1D 00 90 00 6B [16:08:06]RAPDU: 90 00 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_ClearQueue done [16:08:06]KKMCreateOFDPacket [16:08:06]OFDProtocolAddRootSTLVToBuf [16:08:06]FM_MakeSignedData [16:08:06]FM_MakeSignedData [16:08:06]SAM_PROTO_SignData [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 0D 01 02 [16:08:06]Write to MH i2c: E2 08 00 DB 1D 80 0D 01 02 00 00 00 00 71 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 DB 1D 00 90 00 6C [16:08:06]RAPDU: 90 00 [16:08:06]wFMCommunicate OK [16:08:06]wFMCommunicate request_size=255 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E6 CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8A 02 00 35 04 06 00 CC 9B 0A 3C [16:08:06]Write to MH i2c: E2 02 01 DC 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E6 CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8A 02 00 35 04 06 00 CC 9B 0A 3C 00 00 D9 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [16:08:06]RAPDU: 90 00 [16:08:06]wFMCommunicate OK [16:08:06]wFMCommunicate request_size=7 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 0D 02 02 02 67 30 [16:08:06]Write to MH i2c: E2 0A 00 DD 1D 80 0D 02 02 02 00 67 30 00 00 0F [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [16:08:06]RAPDU: 90 00 [16:08:06]wFMCommunicate OK [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 0D 03 02 [16:08:06]Write to MH i2c: E2 08 00 DE 1D 80 0D 03 02 00 00 00 00 76 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0B 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0B 00 DE 1D 00 6A 08 C9 41 20 29 5E 0C 90 00 A6 [16:08:06]RAPDU: 6A 08 C9 41 20 29 5E 0C 90 00 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_SignData done [16:08:06]FM_MakeSignedData done [16:08:06]CreateOFDProtocolMessage [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 11 00 00 [16:08:06]Write to MH i2c: E2 08 00 DF 1D 80 11 00 00 00 00 00 00 76 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 17 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 17 00 DF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [16:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:08:06]wFMCommunicate OK [16:08:06]CreateOFDProtocolMessage done [16:08:06]OFDSenderStorePacket 166460 [16:08:06]StoreOFDPacket docnum=166460 [16:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3E A2 04 01 BD 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E6 CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8A 02 00 35 04 06 00 CC 9B 0A 3C 67 30 6A 08 C9 41 20 29 5E 0C [16:08:06]CheckFolder [16:08:06]dirname=/storage/ofd_packets [16:08:06]CheckFolder done [16:08:06]ProducePacketName [16:08:06]name=ofd_packets/00166460 [16:08:06]NVStorageSaveData ofd_packets/00166460 [16:08:06]File name is /storage/ofd_packets/00166460 [16:08:06]Write 298 bytes [16:08:06]NVStorageSaveData done [16:08:06]OFDSenderStorePacket done [16:08:06]KKMCreateOFDPacket done [16:08:06]NVStorageSaveData kkm_last_timestamp [16:08:06]File name is /storage/kkm_last_timestamp [16:08:06]Write 4 bytes [16:08:06]NVStorageSaveData done [16:08:06]ExternCall_PrintAddStr [16:08:06]wPrintStart [16:08:06]Write to MH i2c: 01 00 00 E0 1D FD [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 E0 1D 00 00 00 00 00 FF 0F 12 [16:08:06]RasterBufferAndPrint [16:08:06]line Счет N : (1)221039 [16:08:06]line ИНН: 02508201610067 [16:08:06]line Контрольно-Кассовый Чек [16:08:06]line ПРОДАЖА [16:08:06]line ТРК (МРК, ГНК) : 31 [16:08:06]line Товар: 2710194210 [16:08:06]line ДТ-К-5 [16:08:06]line 39.380 * 0.00 [16:08:06]line = 0.00 [16:08:06]line НДС 12% НСП 1% [16:08:06]line > о реализуемом товаре [16:08:06]line ИТОГО: 0.00 [16:08:06]line НСП 1% : 0.00 [16:08:06]line НДС 12% : 0.00 [16:08:06]line Наличными: 0.00 [16:08:06]line Безнал.: 0.00 [16:08:06]line Место: АЗС № 161 "Партнер Нефть" [16:08:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:08:06]line СНО: Общий режим [16:08:06]line Чек 215 22.10.2024 16:08 [16:08:06]line Смена: 536 ФФД: 1.0 [16:08:06]line ЗНМ: 0300000104 [16:08:06]line РНМ: 0000000000091764 [16:08:06]line Версия ККМ: 001 [16:08:06]line Талоны: Топливная Карта [16:08:06]line 85863 [16:08:06]line ФМ: 0000000000871759 [16:08:06]line ФД: 166460 [16:08:06]line ФПД: 224966263727920 [16:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160806&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166460&fm=224966263727920&tin=02508201610067®Number=0000000000091764&sum=0 [16:08:06]OFD Sender: Processing packet 166460 [packets to send 48, broken 47] [16:08:06]ProducePacketName [16:08:06]name=ofd_packets/00166460 [16:08:06]OFD Sender: To server: pG, [16:08:06]CommunicateWithHost lk.salyk.kg:30040 [16:08:06]ConnectInit lk.salyk.kg [16:08:06]written 0, free lines is 4095 [16:08:06]Connected sock=10 [16:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3E A2 04 01 BD 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E6 CD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8A 02 00 35 04 06 00 CC 9B 0A 3C 67 30 6A 08 C9 41 20 29 5E 0C [16:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C 81 47 00 B5 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 8A 02 00 F4 03 04 00 50 74 17 67 B6 04 01 00 00 E9 A2 F7 48 01 A0 14 E0 [16:08:07]CommunicateWithHost err = 0 [16:08:07]CheckOFDResponse [16:08:07]1017 (14) - 77093643461234 [16:08:07]1041 (16) - 0000000000871759 [16:08:07]1040 (4) - 166460 [16:08:07]1012 (4) - 22.10.2024 09:45 [16:08:07]1206 (1) - 0 [16:08:07]OFD Sender: Remove packet 166460 [16:08:07]ProducePacketName [16:08:07]name=ofd_packets/00166460 [16:08:07]NVStorageDeleteData [16:08:07]Write to MH i2c: 01 00 00 0A 1E 28 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: 01 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: 01 07 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 CF 0C 0A [16:08:07]RasterBufferAndPrint [16:08:07]line [16:08:07]line [16:08:07]line [16:08:07]line [16:08:07]line [16:08:07]written 0, free lines is 3285 [16:08:07]MH_Cut [16:08:07]Write to MH i2c: D1 01 00 11 1E 01 01 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: D1 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: D1 01 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: D1 01 00 11 1E 00 00 [16:08:07]Write to MH i2c: 01 00 00 12 1E 30 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:07]OFD Sender: No OFD packet to send [16:08:08]*** Cut start [16:08:08]*** Partial cut [16:08:08]*** CUTSNS_PIN = 1 [16:08:08]*** CUTSNS_PIN = 0 [16:08:08]*** Brake cut motor [16:08:08]Read from MH i2c: 01 [16:08:08]MH_I2C_Read... [16:08:08]*** Stop cut motor [16:08:08]*** Cut end [16:08:08]Read from MH i2c: 01 07 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 FF 0F 45 [16:08:08]process_action close_receipt done [16:08:08]requested_data is exist [16:08:08]produce_requested_data [16:08:08]requested_item fm.sn is exist - process it [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 11 00 00 [16:08:08]Write to MH i2c: E2 08 00 13 1E 80 11 00 00 00 00 00 00 AB [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 17 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 17 00 13 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [16:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:08:08]wFMCommunicate OK [16:08:08]requested_item fd.num is exist - process it [16:08:08]SAM_PROTO_GetFieldsCounters [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 13 00 00 [16:08:08]Write to MH i2c: E2 08 00 14 1E 80 13 00 00 00 00 00 00 AE [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 62 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 62 00 14 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:08]wFMCommunicate OK [16:08:08]SAM_PROTO_GetFieldsCounters done [16:08:08]requested_item shift.num is exist - process it [16:08:08]requested_item shift.opened is exist - process it [16:08:08]req_shift_opened [16:08:08]FM_GetShiftState [16:08:08]SAM_PROTO_GetShiftState [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 13 01 00 [16:08:08]Write to MH i2c: E2 08 00 15 1E 80 13 01 00 00 00 00 00 B0 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:09]Read from MH i2c: E2 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 0E 00 [16:08:09]MH_I2C_Read... [16:08:09]Read from MH i2c: E2 0E 00 15 1E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 03 [16:08:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:08:09]wFMCommunicate OK [16:08:09]SAM_PROTO_GetShiftState done [16:08:09]FM_GetShiftState done [16:08:09]req_shift_opened done [16:08:09]requested_item shift.open_date is exist - process it [16:08:09]req_shift_open_date [16:08:09]req_shift_open_date done [16:08:09]produce_requested_data done [16:08:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166460,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [16:08:09]process_action_free close_receipt [16:08:09]json_value_free [16:08:09]json_value_free done [16:08:09]process_json_proto returns [16:08:09]Send response to host [16:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166460,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [16:08:09]free response buf [16:08:09]execute_script done [16:08:09]execute_script returns [16:08:09]free content buf [16:08:09]Sock 9.Close socket [16:08:09]Sock 9.Thread stoped [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:38]accept exits with 7 [16:08:38]New connection [16:08:38]New thread 3067493732 created [16:08:38]Thread 3067637092 joined [16:08:38]Waiting for new connection... [16:08:38] Sock 7.Parse request [16:08:38]Sock 7.Check first char [16:08:38]Sock 7.First char is OK [16:08:38]request: POST /json_proto HTTP/1.0 [16:08:38]Method: POST [16:08:38]URL: /json_proto [16:08:38]Method is POST - this is cgi request [16:08:38]url: /json_proto [16:08:38]query_string will be loaded in cgi processing [16:08:38]execute_cgi json_proto POST (null) [16:08:38]execute_cgi path=json_proto method=POST [16:08:38]POST find Content-Length [16:08:38]Host: 172.17.53.195:8080 [16:08:38]Content-Length: 677 [16:08:38]Content-Type: application/json [16:08:38] [16:08:38]POST finish read [16:08:38]Found Content-Length = 677 [16:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:38]execute_script... [16:08:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:38]POST & json_proto [16:08:38]process_json_proto [16:08:38]json parsed OK: [16:08:38]protocol is kg_v1.0 [16:08:38]action value=close_receipt [16:08:38]process_action close_receipt [16:08:38]cmd_close_receipt [16:08:38]MH_GetDate [16:08:38]Write to MH i2c: F0 00 00 16 1E 23 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 09 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 09 00 16 1E 00 07 CE 17 67 21 48 4A 65 97 [16:08:38]GetLastDocTimeStamp 1729613286 [16:08:38]current date 1729613319 [16:08:38]FM_GetShiftState [16:08:38]SAM_PROTO_GetShiftState [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 13 01 00 [16:08:38]Write to MH i2c: E2 08 00 17 1E 80 13 01 00 00 00 00 00 B2 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 17 1E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 05 [16:08:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:08:38]wFMCommunicate OK [16:08:38]SAM_PROTO_GetShiftState done [16:08:38]FM_GetShiftState done [16:08:38]opened in 1729557463 [16:08:38]opened+sec_in_day 1729643863 [16:08:38]quantity*price = 50041 [16:08:38]sum+1 = 50042 [16:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 216 22.10.2024 16:08 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166461 ФПД: 280227591586092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166461&fm=280227591586092&tin=02508201610067®Number=0000000000091764&sum=50000 [16:08:39]StoreToDocumentArchive [16:08:39]shift 536 fd 166461 [16:08:39]save to /storage/0536/doc_00166461 [16:08:39]save last doc name /storage/0536/doc_00166461 to /storage/kkm_last_doc_name [16:08:39]save OK [16:08:39]Clear old archive folders... [16:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:39]tlvbuf is 009C7A80 [16:08:39]SAM_PROTO_ClearQueue [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 09 00 00 [16:08:39]Write to MH i2c: E2 08 00 24 1E 80 09 00 00 00 00 00 00 B4 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 24 1E 00 90 00 B6 [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]SAM_PROTO_ClearQueue done [16:08:39]KKMCreateOFDPacket [16:08:39]OFDProtocolAddRootSTLVToBuf [16:08:39]FM_MakeSignedData [16:08:39]FM_MakeSignedData [16:08:39]SAM_PROTO_SignData [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 01 02 [16:08:39]Write to MH i2c: E2 08 00 25 1E 80 0D 01 02 00 00 00 00 BC [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 25 1E 00 90 00 B7 [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=255 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 07 CE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8A 02 00 35 04 06 00 FE [16:08:39]Write to MH i2c: E2 02 01 26 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 07 CE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8A 02 00 35 04 06 00 FE 00 00 5E [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:40]Read from MH i2c: E2 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 03 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 03 00 26 1E 00 90 00 B8 [16:08:40]RAPDU: 90 00 [16:08:40]wFMCommunicate OK [16:08:40]wFMCommunicate request_size=10 [16:08:40]MH_SAM_APDU [16:08:40]CAPDU: 80 0D 02 02 05 DD 92 0D 81 2C [16:08:40]Write to MH i2c: E2 0D 00 27 1E 80 0D 02 02 05 00 DD 92 0D 81 2C 00 00 F2 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:40]Read from MH i2c: E2 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 03 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 03 00 27 1E 00 90 00 B9 [16:08:40]RAPDU: 90 00 [16:08:40]wFMCommunicate OK [16:08:40]wFMCommunicate request_size=4 [16:08:40]MH_SAM_APDU [16:08:40]CAPDU: 80 0D 03 02 [16:08:40]Write to MH i2c: E2 08 00 28 1E 80 0D 03 02 00 00 00 00 C1 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:40]Read from MH i2c: E2 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 0B 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 0B 00 28 1E 00 D4 DC 24 BC 83 4B 6C 92 90 00 1E [16:08:40]RAPDU: D4 DC 24 BC 83 4B 6C 92 90 00 [16:08:40]wFMCommunicate OK [16:08:40]SAM_PROTO_SignData done [16:08:40]FM_MakeSignedData done [16:08:40]CreateOFDProtocolMessage [16:08:40]wFMCommunicate request_size=4 [16:08:40]MH_SAM_APDU [16:08:40]CAPDU: 80 11 00 00 [16:08:40]Write to MH i2c: E2 08 00 29 1E 80 11 00 00 00 00 00 00 C1 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:40]Read from MH i2c: E2 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 17 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 17 00 29 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 19 [16:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:08:40]wFMCommunicate OK [16:08:40]CreateOFDProtocolMessage done [16:08:40]OFDSenderStorePacket 166461 [16:08:40]StoreOFDPacket docnum=166461 [16:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE D9 07 01 68 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 07 CE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8A 02 00 35 04 06 00 FE DD 92 0D 81 2C D4 DC 24 BC 83 4B 6C 92 [16:08:40]CheckFolder [16:08:40]dirname=/storage/ofd_packets [16:08:40]CheckFolder done [16:08:40]ProducePacketName [16:08:40]name=ofd_packets/00166461 [16:08:40]NVStorageSaveData ofd_packets/00166461 [16:08:40]File name is /storage/ofd_packets/00166461 [16:08:40]Write 301 bytes [16:08:40]NVStorageSaveData done [16:08:40]OFDSenderStorePacket done [16:08:40]KKMCreateOFDPacket done [16:08:40]NVStorageSaveData kkm_last_timestamp [16:08:40]File name is /storage/kkm_last_timestamp [16:08:40]Write 4 bytes [16:08:40]NVStorageSaveData done [16:08:40]ExternCall_PrintAddStr [16:08:40]wPrintStart [16:08:40]Write to MH i2c: 01 00 00 2A 1E 48 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 FF 0F 5D [16:08:40]RasterBufferAndPrint [16:08:40]line Счет N : (1)221040 [16:08:40]line ИНН: 02508201610067 [16:08:40]line Контрольно-Кассовый Чек [16:08:40]line ПРОДАЖА [16:08:40]line ТРК (МРК, ГНК) : 13 [16:08:40]line Товар: 2710124130 [16:08:40]line Аи-92-К-5 [16:08:40]line 7.480 * 66.90 [16:08:40]line = 500.41 [16:08:40]line НДС 12% НСП 1% [16:08:40]line > о реализуемом товаре [16:08:40]line ОКРУГЛЕНИЕ: -0.41 [16:08:40]line ИТОГО: 500.00 [16:08:40]line Внесено: 500.00 [16:08:40]line СДАЧА: 0.00 [16:08:40]line НСП 1% : 4.43 [16:08:40]line НДС 12% : 53.14 [16:08:40]line Наличными: 500.00 [16:08:40]line Безнал.: 0.00 [16:08:40]line Место: АЗС № 161 "Партнер Нефть" [16:08:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:08:40]line СНО: Общий режим [16:08:40]line Чек 216 22.10.2024 16:08 [16:08:40]line Смена: 536 ФФД: 1.0 [16:08:40]line ЗНМ: 0300000104 [16:08:40]line РНМ: 0000000000091764 [16:08:40]line Версия ККМ: 001 [16:08:40]line ФМ: 0000000000871759 [16:08:40]line ФД: 166461 [16:08:40]line ФПД: 280227591586092 [16:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166461&fm=280227591586092&tin=02508201610067®Number=0000000000091764&sum=50000 [16:08:40]OFD Sender: Processing packet 166461 [packets to send 48, broken 47] [16:08:40]ProducePacketName [16:08:40]name=ofd_packets/00166461 [16:08:40]OFD Sender: To server: pG, [16:08:40]CommunicateWithHost lk.salyk.kg:30040 [16:08:40]ConnectInit lk.salyk.kg [16:08:40]written 0, free lines is 4095 [16:08:40]Connected sock=10 [16:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE D9 07 01 68 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 07 CE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8A 02 00 35 04 06 00 FE DD 92 0D 81 2C D4 DC 24 BC 83 4B 6C 92 [16:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 22 47 00 5B 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 8A 02 00 F4 03 04 00 72 74 17 67 B6 04 01 00 00 B0 8B E8 EE 89 F7 E6 27 [16:08:41]CommunicateWithHost err = 0 [16:08:41]CheckOFDResponse [16:08:41]1017 (14) - 77093643461234 [16:08:41]1041 (16) - 0000000000871759 [16:08:41]1040 (4) - 166461 [16:08:41]1012 (4) - 22.10.2024 09:46 [16:08:41]1206 (1) - 0 [16:08:41]OFD Sender: Remove packet 166461 [16:08:41]ProducePacketName [16:08:41]name=ofd_packets/00166461 [16:08:41]NVStorageDeleteData [16:08:41]Write to MH i2c: 01 00 00 55 1E 73 [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: 01 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: 01 07 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 C0 0C 46 [16:08:41]RasterBufferAndPrint [16:08:41]line [16:08:41]line [16:08:41]line [16:08:41]line [16:08:41]line [16:08:41]written 0, free lines is 3270 [16:08:41]MH_Cut [16:08:41]Write to MH i2c: D1 01 00 5C 1E 01 4C [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: D1 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: D1 01 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: D1 01 00 5C 1E 00 4B [16:08:41]Write to MH i2c: 01 00 00 5D 1E 7B [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]OFD Sender: No OFD packet to send [16:08:41]*** Cut start [16:08:41]*** Partial cut [16:08:41]*** CUTSNS_PIN = 1 [16:08:42]*** CUTSNS_PIN = 0 [16:08:42]*** Brake cut motor [16:08:42]Read from MH i2c: 01 [16:08:42]MH_I2C_Read... [16:08:42]*** Stop cut motor [16:08:42]*** Cut end [16:08:42]Read from MH i2c: 01 07 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: 01 07 00 5D 1E 00 00 00 00 00 FF 0F 90 [16:08:42]process_action close_receipt done [16:08:42]requested_data is exist [16:08:42]produce_requested_data [16:08:42]requested_item fm.sn is exist - process it [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 11 00 00 [16:08:42]Write to MH i2c: E2 08 00 5E 1E 80 11 00 00 00 00 00 00 F6 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:42]Read from MH i2c: E2 17 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 17 00 5E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [16:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:08:42]wFMCommunicate OK [16:08:42]requested_item fd.num is exist - process it [16:08:42]SAM_PROTO_GetFieldsCounters [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 13 00 00 [16:08:42]Write to MH i2c: E2 08 00 5F 1E 80 13 00 00 00 00 00 00 F9 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 62 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 62 00 5F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetFieldsCounters done [16:08:42]requested_item shift.num is exist - process it [16:08:42]requested_item shift.opened is exist - process it [16:08:42]req_shift_opened [16:08:42]FM_GetShiftState [16:08:42]SAM_PROTO_GetShiftState [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 13 01 00 [16:08:42]Write to MH i2c: E2 08 00 60 1E 80 13 01 00 00 00 00 00 FB [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 60 1E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4E [16:08:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetShiftState done [16:08:42]FM_GetShiftState done [16:08:42]req_shift_opened done [16:08:42]requested_item shift.open_date is exist - process it [16:08:42]req_shift_open_date [16:08:42]req_shift_open_date done [16:08:42]produce_requested_data done [16:08:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166461,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [16:08:42]process_action_free close_receipt [16:08:42]json_value_free [16:08:42]json_value_free done [16:08:42]process_json_proto returns [16:08:42]Send response to host [16:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166461,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [16:08:42]free response buf [16:08:42]execute_script done [16:08:42]execute_script returns [16:08:42]free content buf [16:08:42]Sock 7.Close socket [16:08:42]Sock 7.Thread stoped [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15: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:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:49]accept exits with 9 [16:19:49]New connection [16:19:49]New thread 3067637092 created [16:19:49]Thread 3067493732 joined [16:19:49]Waiting for new connection... [16:19:49] Sock 9.Parse request [16:19:49]Sock 9.Check first char [16:19:49]Sock 9.First char is OK [16:19:49]request: POST /json_proto HTTP/1.0 [16:19:49]Method: POST [16:19:49]URL: /json_proto [16:19:49]Method is POST - this is cgi request [16:19:49]url: /json_proto [16:19:49]query_string will be loaded in cgi processing [16:19:49]execute_cgi json_proto POST (null) [16:19:49]execute_cgi path=json_proto method=POST [16:19:49]POST find Content-Length [16:19:49]Host: 172.17.53.195:8080 [16:19:49]Content-Length: 674 [16:19:49]Content-Type: application/json [16:19:49] [16:19:49]POST finish read [16:19:49]Found Content-Length = 674 [16:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:49]execute_script... [16:19:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:49]POST & json_proto [16:19:49]process_json_proto [16:19:49]json parsed OK: [16:19:49]protocol is kg_v1.0 [16:19:49]action value=close_receipt [16:19:49]process_action close_receipt [16:19:49]cmd_close_receipt [16:19:49]MH_GetDate [16:19:49]Write to MH i2c: F0 00 00 61 1E 6E [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: F0 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: F0 09 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: F0 09 00 61 1E 00 A7 D0 17 67 21 48 4A 65 84 [16:19:50]GetLastDocTimeStamp 1729613319 [16:19:50]current date 1729613991 [16:19:50]FM_GetShiftState [16:19:50]SAM_PROTO_GetShiftState [16:19:50]wFMCommunicate request_size=4 [16:19:50]MH_SAM_APDU [16:19:50]CAPDU: 80 13 01 00 [16:19:50]Write to MH i2c: E2 08 00 62 1E 80 13 01 00 00 00 00 00 FD [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:50]Read from MH i2c: E2 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 0E 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 0E 00 62 1E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 50 [16:19:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:19:50]wFMCommunicate OK [16:19:50]SAM_PROTO_GetShiftState done [16:19:50]FM_GetShiftState done [16:19:50]opened in 1729557463 [16:19:50]opened+sec_in_day 1729643863 [16:19:50]quantity*price = 49987 [16:19:50]sum+1 = 49988 [16:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 217 22.10.2024 16:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166462 ФПД: 104261647905112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T161951&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166462&fm=104261647905112&tin=02508201610067®Number=0000000000091764&sum=49900 [16:19:51]StoreToDocumentArchive [16:19:51]shift 536 fd 166462 [16:19:51]save to /storage/0536/doc_00166462 [16:19:51]save last doc name /storage/0536/doc_00166462 to /storage/kkm_last_doc_name [16:19:51]save OK [16:19:51]Clear old archive folders... [16:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:19:51]tlvbuf is B6F683D0 [16:19:51]SAM_PROTO_ClearQueue [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 09 00 00 [16:19:51]Write to MH i2c: E2 08 00 6F 1E 80 09 00 00 00 00 00 00 FF [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_ClearQueue done [16:19:51]KKMCreateOFDPacket [16:19:51]OFDProtocolAddRootSTLVToBuf [16:19:51]FM_MakeSignedData [16:19:51]FM_MakeSignedData [16:19:51]SAM_PROTO_SignData [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 01 02 [16:19:51]Write to MH i2c: E2 08 00 70 1E 80 0D 01 02 00 00 00 00 07 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]wFMCommunicate request_size=255 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A7 D0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8A 02 00 35 04 06 00 5E D3 4E 7C [16:19:51]Write to MH i2c: E2 02 01 71 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A7 D0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8A 02 00 35 04 06 00 5E D3 4E 7C 00 00 9F [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]wFMCommunicate request_size=7 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 02 02 02 B1 58 [16:19:51]Write to MH i2c: E2 0A 00 72 1E 80 0D 02 02 02 00 B1 58 00 00 17 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 03 02 [16:19:51]Write to MH i2c: E2 08 00 73 1E 80 0D 03 02 00 00 00 00 0C [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0B 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0B 00 73 1E 00 D7 A1 F2 7C 0E DC A1 C8 90 00 46 [16:19:51]RAPDU: D7 A1 F2 7C 0E DC A1 C8 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_SignData done [16:19:51]FM_MakeSignedData done [16:19:51]CreateOFDProtocolMessage [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 11 00 00 [16:19:51]Write to MH i2c: E2 08 00 74 1E 80 11 00 00 00 00 00 00 0C [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 17 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 17 00 74 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [16:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:19:51]wFMCommunicate OK [16:19:51]CreateOFDProtocolMessage done [16:19:51]OFDSenderStorePacket 166462 [16:19:51]StoreOFDPacket docnum=166462 [16:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6F 65 04 01 52 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A7 D0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8A 02 00 35 04 06 00 5E D3 4E 7C B1 58 D7 A1 F2 7C 0E DC A1 C8 [16:19:51]CheckFolder [16:19:51]dirname=/storage/ofd_packets [16:19:51]CheckFolder done [16:19:51]ProducePacketName [16:19:51]name=ofd_packets/00166462 [16:19:51]NVStorageSaveData ofd_packets/00166462 [16:19:51]File name is /storage/ofd_packets/00166462 [16:19:51]Write 298 bytes [16:19:51]NVStorageSaveData done [16:19:51]OFDSenderStorePacket done [16:19:51]KKMCreateOFDPacket done [16:19:51]NVStorageSaveData kkm_last_timestamp [16:19:51]File name is /storage/kkm_last_timestamp [16:19:51]Write 4 bytes [16:19:51]NVStorageSaveData done [16:19:51]ExternCall_PrintAddStr [16:19:51]wPrintStart [16:19:51]Write to MH i2c: 01 00 00 75 1E 93 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: 01 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: 01 07 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [16:19:51]RasterBufferAndPrint [16:19:51]line Счет N : (1)221041 [16:19:51]line ИНН: 02508201610067 [16:19:51]line Контрольно-Кассовый Чек [16:19:51]line ПРОДАЖА [16:19:51]line ТРК (МРК, ГНК) : 11 [16:19:51]line Товар: 2710194210 [16:19:51]line ДТ-К-5 [16:19:51]line 6.560 * 76.20 [16:19:51]line = 499.87 [16:19:51]line НДС 12% НСП 1% [16:19:51]line > о реализуемом товаре [16:19:51]line ОКРУГЛЕНИЕ: -0.87 [16:19:51]line ИТОГО: 499.00 [16:19:51]line Внесено: 500.00 [16:19:51]line СДАЧА: 1.00 [16:19:51]line НСП 1% : 4.42 [16:19:51]line НДС 12% : 53.08 [16:19:51]line Наличными: 499.00 [16:19:51]line Безнал.: 0.00 [16:19:51]line Место: АЗС № 161 "Партнер Нефть" [16:19:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:19:51]line СНО: Общий режим [16:19:51]line Чек 217 22.10.2024 16:19 [16:19:51]line Смена: 536 ФФД: 1.0 [16:19:51]line ЗНМ: 0300000104 [16:19:51]line РНМ: 0000000000091764 [16:19:51]line Версия ККМ: 001 [16:19:51]line ФМ: 0000000000871759 [16:19:51]line ФД: 166462 [16:19:51]line ФПД: 104261647905112 [16:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T161951&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166462&fm=104261647905112&tin=02508201610067®Number=0000000000091764&sum=49900 [16:19:52]OFD Sender: Processing packet 166462 [packets to send 48, broken 47] [16:19:52]ProducePacketName [16:19:52]name=ofd_packets/00166462 [16:19:52]OFD Sender: To server: pG, [16:19:52]CommunicateWithHost lk.salyk.kg:30040 [16:19:52]ConnectInit lk.salyk.kg [16:19:52]written 0, free lines is 4095 [16:19:52]Connected sock=7 [16:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6F 65 04 01 52 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A7 D0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8A 02 00 35 04 06 00 5E D3 4E 7C B1 58 D7 A1 F2 7C 0E DC A1 C8 [16:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3B D0 47 00 61 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 8A 02 00 F4 03 04 00 11 77 17 67 B6 04 01 00 00 A9 D9 03 BD 89 8C 12 67 [16:19:52]CommunicateWithHost err = 0 [16:19:52]CheckOFDResponse [16:19:52]1017 (14) - 77093643461234 [16:19:52]1041 (16) - 0000000000871759 [16:19:52]1040 (4) - 166462 [16:19:52]1012 (4) - 22.10.2024 09:57 [16:19:52]1206 (1) - 0 [16:19:52]OFD Sender: Remove packet 166462 [16:19:52]ProducePacketName [16:19:52]name=ofd_packets/00166462 [16:19:52]NVStorageDeleteData [16:19:52]Write to MH i2c: 01 00 00 A0 1E BE [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 07 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 BB 0C 8C [16:19:52]RasterBufferAndPrint [16:19:52]line [16:19:52]line [16:19:52]line [16:19:52]line [16:19:52]line [16:19:52]written 0, free lines is 3266 [16:19:52]MH_Cut [16:19:52]Write to MH i2c: D1 01 00 A7 1E 01 97 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: D1 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: D1 01 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: D1 01 00 A7 1E 00 96 [16:19:52]Write to MH i2c: 01 00 00 A8 1E C6 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]OFD Sender: No OFD packet to send [16:19:53]*** Cut start [16:19:53]*** Partial cut [16:19:53]*** CUTSNS_PIN = 1 [16:19:53]*** CUTSNS_PIN = 0 [16:19:53]*** Brake cut motor [16:19:53]Read from MH i2c: 01 [16:19:53]MH_I2C_Read... [16:19:53]*** Stop cut motor [16:19:53]*** Cut end [16:19:53]Read from MH i2c: 01 07 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 FF 0F DB [16:19:53]process_action close_receipt done [16:19:53]requested_data is exist [16:19:53]produce_requested_data [16:19:53]requested_item fm.sn is exist - process it [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 11 00 00 [16:19:53]Write to MH i2c: E2 08 00 A9 1E 80 11 00 00 00 00 00 00 41 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 A9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [16:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:19:53]wFMCommunicate OK [16:19:53]requested_item fd.num is exist - process it [16:19:53]SAM_PROTO_GetFieldsCounters [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 13 00 00 [16:19:53]Write to MH i2c: E2 08 00 AA 1E 80 13 00 00 00 00 00 00 44 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:54]Read from MH i2c: E2 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 62 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 62 00 AA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:54]wFMCommunicate OK [16:19:54]SAM_PROTO_GetFieldsCounters done [16:19:54]requested_item shift.num is exist - process it [16:19:54]requested_item shift.opened is exist - process it [16:19:54]req_shift_opened [16:19:54]FM_GetShiftState [16:19:54]SAM_PROTO_GetShiftState [16:19:54]wFMCommunicate request_size=4 [16:19:54]MH_SAM_APDU [16:19:54]CAPDU: 80 13 01 00 [16:19:54]Write to MH i2c: E2 08 00 AB 1E 80 13 01 00 00 00 00 00 46 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:54]Read from MH i2c: E2 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 0E 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 0E 00 AB 1E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 99 [16:19:54]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [16:19:54]wFMCommunicate OK [16:19:54]SAM_PROTO_GetShiftState done [16:19:54]FM_GetShiftState done [16:19:54]req_shift_opened done [16:19:54]requested_item shift.open_date is exist - process it [16:19:54]req_shift_open_date [16:19:54]req_shift_open_date done [16:19:54]produce_requested_data done [16:19:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166462,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [16:19:54]process_action_free close_receipt [16:19:54]json_value_free [16:19:54]json_value_free done [16:19:54]process_json_proto returns [16:19:54]Send response to host [16:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166462,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [16:19:54]free response buf [16:19:54]execute_script done [16:19:54]execute_script returns [16:19:54]free content buf [16:19:54]Sock 9.Close socket [16:19:54]Sock 9.Thread stoped [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [17:25:47]ConnectInit Can't connect to host [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:26:59]accept exits with 7 [17:26:59]New connection [17:26:59]New thread 3067489636 created [17:26:59]Thread 3067632996 joined [17:26:59]Waiting for new connection... [17:26:59] Sock 7.Parse request [17:26:59]Sock 7.Check first char [17:26:59]Sock 7.First char is OK [17:26:59]request: POST /json_proto HTTP/1.0 [17:26:59]Method: POST [17:26:59]URL: /json_proto [17:26:59]Method is POST - this is cgi request [17:26:59]url: /json_proto [17:26:59]query_string will be loaded in cgi processing [17:26:59]execute_cgi json_proto POST (null) [17:26:59]execute_cgi path=json_proto method=POST [17:26:59]POST find Content-Length [17:26:59]Host: 172.17.53.195:8080 [17:26:59]Content-Length: 677 [17:26:59]Content-Type: application/json [17:26:59] [17:26:59]POST finish read [17:26:59]Found Content-Length = 677 [17:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:59]execute_script... [17:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:59]POST & json_proto [17:26:59]process_json_proto [17:26:59]json parsed OK: [17:26:59]protocol is kg_v1.0 [17:26:59]action value=close_receipt [17:26:59]process_action close_receipt [17:26:59]cmd_close_receipt [17:26:59]MH_GetDate [17:26:59]Write to MH i2c: F0 00 00 E7 00 D6 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 09 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: F0 09 00 E7 00 00 64 E0 17 67 21 48 4A 65 B9 [17:26:59]GetLastDocTimeStamp 1729617777 [17:26:59]current date 1729618020 [17:26:59]FM_GetShiftState [17:26:59]SAM_PROTO_GetShiftState [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 13 01 00 [17:26:59]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0E 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B8 [17:27:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_GetShiftState done [17:27:00]FM_GetShiftState done [17:27:00]opened in 1729557463 [17:27:00]opened+sec_in_day 1729643863 [17:27:00]quantity*price = 40006 [17:27:00]sum+1 = 40007 [17:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 243 22.10.2024 17:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166488 ФПД: 78647601422548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166488&fm=78647601422548&tin=02508201610067®Number=0000000000091764&sum=40000 [17:27:01]StoreToDocumentArchive [17:27:01]shift 536 fd 166488 [17:27:01]save to /storage/0536/doc_00166488 [17:27:01]save last doc name /storage/0536/doc_00166488 to /storage/kkm_last_doc_name [17:27:01]save OK [17:27:01]Clear old archive folders... [17:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:01]tlvbuf is 011F59A0 [17:27:01]SAM_PROTO_ClearQueue [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 09 00 00 [17:27:01]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [17:27:01]RAPDU: 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_ClearQueue done [17:27:01]KKMCreateOFDPacket [17:27:01]OFDProtocolAddRootSTLVToBuf [17:27:01]FM_MakeSignedData [17:27:01]FM_MakeSignedData [17:27:01]SAM_PROTO_SignData [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 0D 01 02 [17:27:01]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [17:27:01]RAPDU: 90 00 [17:27:01]wFMCommunicate OK [17:27:01]wFMCommunicate request_size=255 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 E0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8A 02 00 35 04 06 00 47 [17:27:01]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 E0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8A 02 00 35 04 06 00 47 00 00 CE [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [17:27:01]RAPDU: 90 00 [17:27:01]wFMCommunicate OK [17:27:01]wFMCommunicate request_size=10 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 0D 02 02 05 87 92 58 60 D4 [17:27:01]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 87 92 58 60 D4 00 00 21 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [17:27:01]RAPDU: 90 00 [17:27:01]wFMCommunicate OK [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 0D 03 02 [17:27:01]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0B 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 0B 00 F9 00 00 C9 5F B2 7C 2A 08 54 E7 90 00 38 [17:27:01]RAPDU: C9 5F B2 7C 2A 08 54 E7 90 00 [17:27:01]wFMCommunicate OK [17:27:01]SAM_PROTO_SignData done [17:27:01]FM_MakeSignedData done [17:27:01]CreateOFDProtocolMessage [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 11 00 00 [17:27:01]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:01]Read from MH i2c: E2 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [17:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:27:01]wFMCommunicate OK [17:27:01]CreateOFDProtocolMessage done [17:27:01]OFDSenderStorePacket 166488 [17:27:01]StoreOFDPacket docnum=166488 [17:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB FC 07 01 F9 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 E0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8A 02 00 35 04 06 00 47 87 92 58 60 D4 C9 5F B2 7C 2A 08 54 E7 [17:27:01]CheckFolder [17:27:01]dirname=/storage/ofd_packets [17:27:01]CheckFolder done [17:27:01]ProducePacketName [17:27:01]name=ofd_packets/00166488 [17:27:01]NVStorageSaveData ofd_packets/00166488 [17:27:01]File name is /storage/ofd_packets/00166488 [17:27:01]Write 301 bytes [17:27:01]NVStorageSaveData done [17:27:01]OFDSenderStorePacket done [17:27:01]KKMCreateOFDPacket done [17:27:01]NVStorageSaveData kkm_last_timestamp [17:27:01]File name is /storage/kkm_last_timestamp [17:27:01]Write 4 bytes [17:27:01]NVStorageSaveData done [17:27:01]ExternCall_PrintAddStr [17:27:01]wPrintStart [17:27:01]Write to MH i2c: 01 00 00 FB 00 FB [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [17:27:01]RasterBufferAndPrint [17:27:01]line Счет N : (1)221069 [17:27:01]line ИНН: 02508201610067 [17:27:01]line Контрольно-Кассовый Чек [17:27:01]line ПРОДАЖА [17:27:01]line ТРК (МРК, ГНК) : 13 [17:27:01]line Товар: 2710124130 [17:27:01]line Аи-92-К-5 [17:27:01]line 5.980 * 66.90 [17:27:01]line = 400.06 [17:27:01]line НДС 12% НСП 1% [17:27:01]line > о реализуемом товаре [17:27:01]line ОКРУГЛЕНИЕ: -0.06 [17:27:01]line ИТОГО: 400.00 [17:27:01]line Внесено: 400.00 [17:27:01]line СДАЧА: 0.00 [17:27:01]line НСП 1% : 3.54 [17:27:01]line НДС 12% : 42.48 [17:27:01]line Наличными: 400.00 [17:27:01]line Безнал.: 0.00 [17:27:01]line Место: АЗС № 161 "Партнер Нефть" [17:27:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:27:01]line СНО: Общий режим [17:27:01]line Чек 243 22.10.2024 17:27 [17:27:01]line Смена: 536 ФФД: 1.0 [17:27:01]line ЗНМ: 0300000104 [17:27:01]line РНМ: 0000000000091764 [17:27:01]line Версия ККМ: 001 [17:27:01]line ФМ: 0000000000871759 [17:27:01]line ФД: 166488 [17:27:01]line ФПД: 78647601422548 [17:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172700&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166488&fm=78647601422548&tin=02508201610067®Number=0000000000091764&sum=40000 [17:27:02]OFD Sender: Processing packet 166488 [packets to send 48, broken 47] [17:27:02]ProducePacketName [17:27:02]name=ofd_packets/00166488 [17:27:02]OFD Sender: To server: pG, [17:27:02]CommunicateWithHost lk.salyk.kg:30040 [17:27:02]ConnectInit lk.salyk.kg [17:27:02]written 0, free lines is 4095 [17:27:02]Connected sock=10 [17:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BB FC 07 01 F9 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 E0 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8A 02 00 35 04 06 00 47 87 92 58 60 D4 C9 5F B2 7C 2A 08 54 E7 [17:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 1F 47 00 3B DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 8A 02 00 F4 03 04 00 CE 86 17 67 B6 04 01 00 00 4E DF 2F 35 79 98 0F 3A [17:27:02]CommunicateWithHost err = 0 [17:27:02]CheckOFDResponse [17:27:02]1017 (14) - 77093643461234 [17:27:02]1041 (16) - 0000000000871759 [17:27:02]1040 (4) - 166488 [17:27:02]1012 (4) - 22.10.2024 11:04 [17:27:02]1206 (1) - 0 [17:27:02]OFD Sender: Remove packet 166488 [17:27:02]ProducePacketName [17:27:02]name=ofd_packets/00166488 [17:27:02]NVStorageDeleteData [17:27:02]Write to MH i2c: 01 00 00 26 01 27 [17:27:02]Write i2c OK [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: 01 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: 01 07 00 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 BF 0C F9 [17:27:02]RasterBufferAndPrint [17:27:02]line [17:27:02]line [17:27:02]line [17:27:02]line [17:27:02]line [17:27:02]written 0, free lines is 3269 [17:27:02]MH_Cut [17:27:02]Write to MH i2c: D1 01 00 2D 01 01 00 [17:27:02]Write i2c OK [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: D1 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: D1 01 00 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: D1 01 00 2D 01 00 FF [17:27:02]Write to MH i2c: 01 00 00 2E 01 2F [17:27:02]Write i2c OK [17:27:02]MH_I2C_Read... [17:27:02]OFD Sender: No OFD packet to send [17:27:03]*** Cut start [17:27:03]*** Partial cut [17:27:03]*** CUTSNS_PIN = 1 [17:27:03]*** CUTSNS_PIN = 0 [17:27:03]*** Brake cut motor [17:27:03]Read from MH i2c: 01 [17:27:03]MH_I2C_Read... [17:27:03]*** Stop cut motor [17:27:03]*** Cut end [17:27:03]Read from MH i2c: 01 07 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [17:27:03]process_action close_receipt done [17:27:03]requested_data is exist [17:27:03]produce_requested_data [17:27:03]requested_item fm.sn is exist - process it [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 11 00 00 [17:27:03]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:03]Read from MH i2c: E2 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 17 00 [17:27:03]MH_I2C_Read... [17:27:03]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [17:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:27:03]wFMCommunicate OK [17:27:03]requested_item fd.num is exist - process it [17:27:03]SAM_PROTO_GetFieldsCounters [17:27:03]wFMCommunicate request_size=4 [17:27:03]MH_SAM_APDU [17:27:03]CAPDU: 80 13 00 00 [17:27:03]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [17:27:03]Write i2c OK [17:27:03]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 62 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [17:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetFieldsCounters done [17:27:04]requested_item shift.num is exist - process it [17:27:04]requested_item shift.opened is exist - process it [17:27:04]req_shift_opened [17:27:04]FM_GetShiftState [17:27:04]SAM_PROTO_GetShiftState [17:27:04]wFMCommunicate request_size=4 [17:27:04]MH_SAM_APDU [17:27:04]CAPDU: 80 13 01 00 [17:27:04]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 02 [17:27:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetShiftState done [17:27:04]FM_GetShiftState done [17:27:04]req_shift_opened done [17:27:04]requested_item shift.open_date is exist - process it [17:27:04]req_shift_open_date [17:27:04]req_shift_open_date done [17:27:04]produce_requested_data done [17:27:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166488,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:27:04]process_action_free close_receipt [17:27:04]json_value_free [17:27:04]json_value_free done [17:27:04]process_json_proto returns [17:27:04]Send response to host [17:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166488,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:27:04]free response buf [17:27:04]execute_script done [17:27:04]execute_script returns [17:27:04]free content buf [17:27:04]Sock 7.Close socket [17:27:04]Sock 7.Thread stoped [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]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:28]OFD Sender: No OFD packet to send [17:33:31]accept exits with 9 [17:33:31]New connection [17:33:31]New thread 3067632996 created [17:33:31]Thread 3067489636 joined [17:33:31]Waiting for new connection... [17:33:31] Sock 9.Parse request [17:33:31]Sock 9.Check first char [17:33:31]Sock 9.First char is OK [17:33:31]request: POST /json_proto HTTP/1.0 [17:33:31]Method: POST [17:33:31]URL: /json_proto [17:33:31]Method is POST - this is cgi request [17:33:31]url: /json_proto [17:33:31]query_string will be loaded in cgi processing [17:33:31]execute_cgi json_proto POST (null) [17:33:31]execute_cgi path=json_proto method=POST [17:33:31]POST find Content-Length [17:33:31]Host: 172.17.53.195:8080 [17:33:31]Content-Length: 674 [17:33:31]Content-Type: application/json [17:33:31] [17:33:31]POST finish read [17:33:31]Found Content-Length = 674 [17:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:31]execute_script... [17:33:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:31]POST & json_proto [17:33:31]process_json_proto [17:33:31]json parsed OK: [17:33:31]protocol is kg_v1.0 [17:33:31]action value=close_receipt [17:33:31]process_action close_receipt [17:33:31]cmd_close_receipt [17:33:31]MH_GetDate [17:33:31]Write to MH i2c: F0 00 00 32 01 22 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: F0 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: F0 09 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: F0 09 00 32 01 00 EB E1 17 67 21 48 4A 65 8D [17:33:31]GetLastDocTimeStamp 1729618020 [17:33:31]current date 1729618411 [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 33 01 80 13 01 00 00 00 00 00 B1 [17:33:31]Write i2c OK [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 [17:33:31]MH_I2C_Read... [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 33 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 04 [17:33:31]RAPDU: 09 00 01 D7 F3 16 67 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]opened in 1729557463 [17:33:31]opened+sec_in_day 1729643863 [17:33:31]quantity*price = 50063 [17:33:31]sum+1 = 50064 [17:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 244 22.10.2024 17:33 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166489 ФПД: 249983910541233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173332&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166489&fm=249983910541233&tin=02508201610067®Number=0000000000091764&sum=50000 [17:33:32]StoreToDocumentArchive [17:33:32]shift 536 fd 166489 [17:33:32]save to /storage/0536/doc_00166489 [17:33:32]save last doc name /storage/0536/doc_00166489 to /storage/kkm_last_doc_name [17:33:32]save OK [17:33:32]Clear old archive folders... [17:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:33:32]tlvbuf is 011EDD40 [17:33:32]SAM_PROTO_ClearQueue [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 09 00 00 [17:33:32]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [17:33:32]RAPDU: 90 00 [17:33:32]wFMCommunicate OK [17:33:32]SAM_PROTO_ClearQueue done [17:33:32]KKMCreateOFDPacket [17:33:32]OFDProtocolAddRootSTLVToBuf [17:33:32]FM_MakeSignedData [17:33:32]FM_MakeSignedData [17:33:32]SAM_PROTO_SignData [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 0D 01 02 [17:33:32]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [17:33:32]RAPDU: 90 00 [17:33:32]wFMCommunicate OK [17:33:32]wFMCommunicate request_size=255 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EC E1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8A 02 00 35 04 06 00 E3 5B EA 2F [17:33:32]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EC E1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8A 02 00 35 04 06 00 E3 5B EA 2F 00 00 64 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [17:33:33]RAPDU: 90 00 [17:33:33]wFMCommunicate OK [17:33:33]wFMCommunicate request_size=7 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 0D 02 02 02 F7 B1 [17:33:33]Write to MH i2c: E2 0A 00 43 01 80 0D 02 02 02 00 F7 B1 00 00 6A [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [17:33:33]RAPDU: 90 00 [17:33:33]wFMCommunicate OK [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 0D 03 02 [17:33:33]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0B 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0B 00 44 01 00 A7 17 64 E6 1C 62 10 0B 90 00 62 [17:33:33]RAPDU: A7 17 64 E6 1C 62 10 0B 90 00 [17:33:33]wFMCommunicate OK [17:33:33]SAM_PROTO_SignData done [17:33:33]FM_MakeSignedData done [17:33:33]CreateOFDProtocolMessage [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 11 00 00 [17:33:33]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]OFD Sender: No OFD packet to send [17:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 17 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [17:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:33]wFMCommunicate OK [17:33:33]CreateOFDProtocolMessage done [17:33:33]OFDSenderStorePacket 166489 [17:33:33]StoreOFDPacket docnum=166489 [17:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5C 63 04 01 C0 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EC E1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8A 02 00 35 04 06 00 E3 5B EA 2F F7 B1 A7 17 64 E6 1C 62 10 0B [17:33:33]CheckFolder [17:33:33]dirname=/storage/ofd_packets [17:33:33]CheckFolder done [17:33:33]ProducePacketName [17:33:33]name=ofd_packets/00166489 [17:33:33]NVStorageSaveData ofd_packets/00166489 [17:33:33]File name is /storage/ofd_packets/00166489 [17:33:33]Write 298 bytes [17:33:33]NVStorageSaveData done [17:33:33]OFDSenderStorePacket done [17:33:33]KKMCreateOFDPacket done [17:33:33]NVStorageSaveData kkm_last_timestamp [17:33:33]File name is /storage/kkm_last_timestamp [17:33:33]Write 4 bytes [17:33:33]NVStorageSaveData done [17:33:33]ExternCall_PrintAddStr [17:33:33]wPrintStart [17:33:33]Write to MH i2c: 01 00 00 46 01 47 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: 01 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: 01 07 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [17:33:33]RasterBufferAndPrint [17:33:33]line Счет N : (1)221070 [17:33:33]line ИНН: 02508201610067 [17:33:33]line Контрольно-Кассовый Чек [17:33:33]line ПРОДАЖА [17:33:33]line ТРК (МРК, ГНК) : 21 [17:33:33]line Товар: 2710194210 [17:33:33]line ДТ-К-5 [17:33:33]line 6.570 * 76.20 [17:33:33]line = 500.63 [17:33:33]line НДС 12% НСП 1% [17:33:33]line > о реализуемом товаре [17:33:33]line ОКРУГЛЕНИЕ: -0.63 [17:33:33]line ИТОГО: 500.00 [17:33:33]line Внесено: 500.00 [17:33:33]line СДАЧА: 0.00 [17:33:33]line НСП 1% : 4.43 [17:33:33]line НДС 12% : 53.16 [17:33:33]line Наличными: 500.00 [17:33:33]line Безнал.: 0.00 [17:33:33]line Место: АЗС № 161 "Партнер Нефть" [17:33:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:33:33]line СНО: Общий режим [17:33:33]line Чек 244 22.10.2024 17:33 [17:33:33]line Смена: 536 ФФД: 1.0 [17:33:33]line ЗНМ: 0300000104 [17:33:33]line РНМ: 0000000000091764 [17:33:33]line Версия ККМ: 001 [17:33:33]line ФМ: 0000000000871759 [17:33:33]line ФД: 166489 [17:33:33]line ФПД: 249983910541233 [17:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173332&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166489&fm=249983910541233&tin=02508201610067®Number=0000000000091764&sum=50000 [17:33:33]OFD Sender: Processing packet 166489 [packets to send 48, broken 47] [17:33:33]ProducePacketName [17:33:33]name=ofd_packets/00166489 [17:33:33]OFD Sender: To server: pG, [17:33:33]CommunicateWithHost lk.salyk.kg:30040 [17:33:33]ConnectInit lk.salyk.kg [17:33:33]written 0, free lines is 4095 [17:33:33]Connected sock=10 [17:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5C 63 04 01 C0 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EC E1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8A 02 00 35 04 06 00 E3 5B EA 2F F7 B1 A7 17 64 E6 1C 62 10 0B [17:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 2C 47 00 04 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 8A 02 00 F4 03 04 00 56 88 17 67 B6 04 01 00 00 A7 15 0D 29 39 19 94 00 [17:33:33]CommunicateWithHost err = 0 [17:33:33]CheckOFDResponse [17:33:33]1017 (14) - 77093643461234 [17:33:33]1041 (16) - 0000000000871759 [17:33:33]1040 (4) - 166489 [17:33:33]1012 (4) - 22.10.2024 11:11 [17:33:33]1206 (1) - 0 [17:33:33]OFD Sender: Remove packet 166489 [17:33:33]ProducePacketName [17:33:33]name=ofd_packets/00166489 [17:33:33]NVStorageDeleteData [17:33:34]Write to MH i2c: 01 00 00 71 01 72 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 07 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 BA 0C 3F [17:33:34]RasterBufferAndPrint [17:33:34]line [17:33:34]line [17:33:34]line [17:33:34]line [17:33:34]line [17:33:34]written 0, free lines is 3265 [17:33:34]MH_Cut [17:33:34]Write to MH i2c: D1 01 00 78 01 01 4B [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: D1 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: D1 01 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: D1 01 00 78 01 00 4A [17:33:34]Write to MH i2c: 01 00 00 79 01 7A [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]OFD Sender: No OFD packet to send [17:33:34]*** Cut start [17:33:34]*** Partial cut [17:33:34]*** CUTSNS_PIN = 1 [17:33:34]*** CUTSNS_PIN = 0 [17:33:35]*** Brake cut motor [17:33:35]Read from MH i2c: 01 [17:33:35]MH_I2C_Read... [17:33:35]*** Stop cut motor [17:33:35]*** Cut end [17:33:35]Read from MH i2c: 01 07 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [17:33:35]process_action close_receipt done [17:33:35]requested_data is exist [17:33:35]produce_requested_data [17:33:35]requested_item fm.sn is exist - process it [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 11 00 00 [17:33:35]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [17:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:35]wFMCommunicate OK [17:33:35]requested_item fd.num is exist - process it [17:33:35]SAM_PROTO_GetFieldsCounters [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 13 00 00 [17:33:35]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 62 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:35]wFMCommunicate OK [17:33:35]SAM_PROTO_GetFieldsCounters done [17:33:35]requested_item shift.num is exist - process it [17:33:35]requested_item shift.opened is exist - process it [17:33:35]req_shift_opened [17:33:35]FM_GetShiftState [17:33:35]SAM_PROTO_GetShiftState [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 13 01 00 [17:33:35]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0E 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4D [17:33:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:33:35]wFMCommunicate OK [17:33:35]SAM_PROTO_GetShiftState done [17:33:35]FM_GetShiftState done [17:33:35]req_shift_opened done [17:33:35]requested_item shift.open_date is exist - process it [17:33:35]req_shift_open_date [17:33:35]req_shift_open_date done [17:33:35]produce_requested_data done [17:33:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166489,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:33:35]process_action_free close_receipt [17:33:35]json_value_free [17:33:35]json_value_free done [17:33:35]process_json_proto returns [17:33:35]Send response to host [17:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166489,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:33:35]free response buf [17:33:35]execute_script done [17:33:35]execute_script returns [17:33:35]free content buf [17:33:35]Sock 9.Close socket [17:33:35]Sock 9.Thread stoped [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:43]accept exits with 7 [17:34:43]New connection [17:34:43]New thread 3067489636 created [17:34:43]Thread 3067632996 joined [17:34:43]Waiting for new connection... [17:34:43] Sock 7.Parse request [17:34:43]Sock 7.Check first char [17:34:43]Sock 7.First char is OK [17:34:43]request: POST /json_proto HTTP/1.0 [17:34:43]Method: POST [17:34:43]URL: /json_proto [17:34:43]Method is POST - this is cgi request [17:34:43]url: /json_proto [17:34:43]query_string will be loaded in cgi processing [17:34:43]execute_cgi json_proto POST (null) [17:34:43]execute_cgi path=json_proto method=POST [17:34:43]POST find Content-Length [17:34:43]Host: 172.17.53.195:8080 [17:34:43]Content-Length: 678 [17:34:43]Content-Type: application/json [17:34:43] [17:34:43]POST finish read [17:34:43]Found Content-Length = 678 [17:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.100, "sum" : 749.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 749.00, "payments": [ { "type": 0, "sum" : 749.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:43]execute_script... [17:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.100, "sum" : 749.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 749.00, "payments": [ { "type": 0, "sum" : 749.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:43]POST & json_proto [17:34:43]process_json_proto [17:34:43]json parsed OK: [17:34:43]protocol is kg_v1.0 [17:34:43]action value=close_receipt [17:34:43]process_action close_receipt [17:34:43]cmd_close_receipt [17:34:43]MH_GetDate [17:34:43]Write to MH i2c: F0 00 00 7D 01 6D [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 09 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: F0 09 00 7D 01 00 33 E2 17 67 21 48 4A 65 21 [17:34:43]GetLastDocTimeStamp 1729618412 [17:34:43]current date 1729618483 [17:34:43]FM_GetShiftState [17:34:43]SAM_PROTO_GetShiftState [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 13 01 00 [17:34:43]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0E 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4F [17:34:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:34:43]wFMCommunicate OK [17:34:43]SAM_PROTO_GetShiftState done [17:34:43]FM_GetShiftState done [17:34:43]opened in 1729557463 [17:34:43]opened+sec_in_day 1729643863 [17:34:43]quantity*price = 74942 [17:34:43]sum+1 = 74943 [17:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 749.00 Внесено: 750.00 СДАЧА: 1.00 НСП 1% : 6.63 НДС 12% : 79.58 Наличными: 749.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 245 22.10.2024 17:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166490 ФПД: 154179179197420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173443&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166490&fm=154179179197420&tin=02508201610067®Number=0000000000091764&sum=74900 [17:34:44]StoreToDocumentArchive [17:34:44]shift 536 fd 166490 [17:34:44]save to /storage/0536/doc_00166490 [17:34:44]save last doc name /storage/0536/doc_00166490 to /storage/kkm_last_doc_name [17:34:44]save OK [17:34:44]Clear old archive folders... [17:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:44]tlvbuf is 01202670 [17:34:44]SAM_PROTO_ClearQueue [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 09 00 00 [17:34:44]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_ClearQueue done [17:34:44]KKMCreateOFDPacket [17:34:44]OFDProtocolAddRootSTLVToBuf [17:34:44]FM_MakeSignedData [17:34:44]FM_MakeSignedData [17:34:44]SAM_PROTO_SignData [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 01 02 [17:34:44]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=255 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 33 E2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8A 02 00 35 04 06 00 8C [17:34:44]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 33 E2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8A 02 00 35 04 06 00 8C 00 00 05 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=10 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 02 02 05 39 A3 35 33 EC [17:34:44]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 39 A3 35 33 EC 00 00 43 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [17:34:45]RAPDU: 90 00 [17:34:45]wFMCommunicate OK [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 0D 03 02 [17:34:45]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 0B 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 0B 00 8F 01 00 45 23 A6 8B BE A2 A4 F4 90 00 9D [17:34:45]RAPDU: 45 23 A6 8B BE A2 A4 F4 90 00 [17:34:45]wFMCommunicate OK [17:34:45]SAM_PROTO_SignData done [17:34:45]FM_MakeSignedData done [17:34:45]CreateOFDProtocolMessage [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 11 00 00 [17:34:45]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 17 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [17:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:34:45]wFMCommunicate OK [17:34:45]CreateOFDProtocolMessage done [17:34:45]OFDSenderStorePacket 166490 [17:34:45]StoreOFDPacket docnum=166490 [17:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B E2 07 01 3F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 33 E2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8A 02 00 35 04 06 00 8C 39 A3 35 33 EC 45 23 A6 8B BE A2 A4 F4 [17:34:45]CheckFolder [17:34:45]dirname=/storage/ofd_packets [17:34:45]CheckFolder done [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00166490 [17:34:45]NVStorageSaveData ofd_packets/00166490 [17:34:45]File name is /storage/ofd_packets/00166490 [17:34:45]Write 301 bytes [17:34:45]NVStorageSaveData done [17:34:45]OFDSenderStorePacket done [17:34:45]KKMCreateOFDPacket done [17:34:45]NVStorageSaveData kkm_last_timestamp [17:34:45]File name is /storage/kkm_last_timestamp [17:34:45]Write 4 bytes [17:34:45]NVStorageSaveData done [17:34:45]ExternCall_PrintAddStr [17:34:45]wPrintStart [17:34:45]Write to MH i2c: 01 00 00 91 01 92 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [17:34:45]RasterBufferAndPrint [17:34:45]line Счет N : (1)221071 [17:34:45]line ИНН: 02508201610067 [17:34:45]line Контрольно-Кассовый Чек [17:34:45]line ПРОДАЖА [17:34:45]line ТРК (МРК, ГНК) : 44 [17:34:45]line Товар: 2710124500 [17:34:45]line Аи-95-К-5 [17:34:45]line 10.100 * 74.20 [17:34:45]line = 749.42 [17:34:45]line НДС 12% НСП 1% [17:34:45]line > о реализуемом товаре [17:34:45]line ОКРУГЛЕНИЕ: -0.42 [17:34:45]line ИТОГО: 749.00 [17:34:45]line Внесено: 750.00 [17:34:45]line СДАЧА: 1.00 [17:34:45]line НСП 1% : 6.63 [17:34:45]line НДС 12% : 79.58 [17:34:45]line Наличными: 749.00 [17:34:45]line Безнал.: 0.00 [17:34:45]line Место: АЗС № 161 "Партнер Нефть" [17:34:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:34:45]line СНО: Общий режим [17:34:45]line Чек 245 22.10.2024 17:34 [17:34:45]line Смена: 536 ФФД: 1.0 [17:34:45]line ЗНМ: 0300000104 [17:34:45]line РНМ: 0000000000091764 [17:34:45]line Версия ККМ: 001 [17:34:45]line ФМ: 0000000000871759 [17:34:45]line ФД: 166490 [17:34:45]line ФПД: 154179179197420 [17:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173443&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166490&fm=154179179197420&tin=02508201610067®Number=0000000000091764&sum=74900 [17:34:45]OFD Sender: Processing packet 166490 [packets to send 48, broken 47] [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00166490 [17:34:45]OFD Sender: To server: pG, [17:34:45]CommunicateWithHost lk.salyk.kg:30040 [17:34:45]ConnectInit lk.salyk.kg [17:34:45]written 0, free lines is 4095 [17:34:45]Connected sock=10 [17:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7B E2 07 01 3F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1F 00 00 00 00 07 04 06 00 94 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 33 E2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 8A 02 00 35 04 06 00 8C 39 A3 35 33 EC 45 23 A6 8B BE A2 A4 F4 [17:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E 81 47 00 3E 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 31 37 35 39 10 04 04 00 5A 8A 02 00 F4 03 04 00 9E 88 17 67 B6 04 01 00 00 11 5D 56 E6 93 F4 19 47 [17:34:45]CommunicateWithHost err = 0 [17:34:45]CheckOFDResponse [17:34:45]1017 (14) - 77093643461234 [17:34:45]1041 (16) - 0000000000871759 [17:34:45]1040 (4) - 166490 [17:34:45]1012 (4) - 22.10.2024 11:12 [17:34:45]1206 (1) - 0 [17:34:45]OFD Sender: Remove packet 166490 [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00166490 [17:34:45]NVStorageDeleteData [17:34:45]Write to MH i2c: 01 00 00 BC 01 BD [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 BF 0C 8F [17:34:45]RasterBufferAndPrint [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]written 0, free lines is 3269 [17:34:45]MH_Cut [17:34:45]Write to MH i2c: D1 01 00 C3 01 01 96 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 C3 01 00 95 [17:34:45]Write to MH i2c: 01 00 00 C4 01 C5 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:46]OFD Sender: No OFD packet to send [17:34:46]*** Cut start [17:34:46]*** Partial cut [17:34:46]*** CUTSNS_PIN = 1 [17:34:46]*** CUTSNS_PIN = 0 [17:34:46]*** Brake cut motor [17:34:47]Read from MH i2c: 01 [17:34:47]MH_I2C_Read... [17:34:47]*** Stop cut motor [17:34:47]Read from MH i2c: 01 07 00 [17:34:47]MH_I2C_Read... [17:34:47]*** Cut end [17:34:47]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [17:34:47]process_action close_receipt done [17:34:47]requested_data is exist [17:34:47]produce_requested_data [17:34:47]requested_item fm.sn is exist - process it [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 11 00 00 [17:34:47]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 17 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 98 [17:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:34:47]wFMCommunicate OK [17:34:47]requested_item fd.num is exist - process it [17:34:47]SAM_PROTO_GetFieldsCounters [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 00 00 [17:34:47]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 62 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [17:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetFieldsCounters done [17:34:47]requested_item shift.num is exist - process it [17:34:47]requested_item shift.opened is exist - process it [17:34:47]req_shift_opened [17:34:47]FM_GetShiftState [17:34:47]SAM_PROTO_GetShiftState [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 01 00 [17:34:47]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 98 [17:34:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetShiftState done [17:34:47]FM_GetShiftState done [17:34:47]req_shift_opened done [17:34:47]requested_item shift.open_date is exist - process it [17:34:47]req_shift_open_date [17:34:47]req_shift_open_date done [17:34:47]produce_requested_data done [17:34:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166490,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:34:47]process_action_free close_receipt [17:34:47]json_value_free [17:34:47]json_value_free done [17:34:47]process_json_proto returns [17:34:47]Send response to host [17:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166490,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:34:47]free response buf [17:34:47]execute_script done [17:34:47]execute_script returns [17:34:47]free content buf [17:34:47]Sock 7.Close socket [17:34:47]Sock 7.Thread stoped [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]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:03]accept exits with 9 [17:40:03]New connection [17:40:03]New thread 3067632996 created [17:40:03]Thread 3067489636 joined [17:40:03]Waiting for new connection... [17:40:03] Sock 9.Parse request [17:40:03]Sock 9.Check first char [17:40:03]Sock 9.First char is OK [17:40:03]request: POST /json_proto HTTP/1.0 [17:40:03]Method: POST [17:40:03]URL: /json_proto [17:40:03]Method is POST - this is cgi request [17:40:03]url: /json_proto [17:40:03]query_string will be loaded in cgi processing [17:40:03]execute_cgi json_proto POST (null) [17:40:03]execute_cgi path=json_proto method=POST [17:40:03]POST find Content-Length [17:40:03]Host: 172.17.53.195:8080 [17:40:03]Content-Length: 682 [17:40:03]Content-Type: application/json [17:40:03] [17:40:03]POST finish read [17:40:03]Found Content-Length = 682 [17:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:03]execute_script... [17:40:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:03]POST & json_proto [17:40:03]process_json_proto [17:40:03]json parsed OK: [17:40:03]protocol is kg_v1.0 [17:40:03]action value=close_receipt [17:40:03]process_action close_receipt [17:40:03]cmd_close_receipt [17:40:03]MH_GetDate [17:40:03]Write to MH i2c: F0 00 00 C8 01 B8 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 09 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 09 00 C8 01 00 74 E3 17 67 21 48 4A 65 AE [17:40:03]GetLastDocTimeStamp 1729618483 [17:40:03]current date 1729618804 [17:40:03]FM_GetShiftState [17:40:03]SAM_PROTO_GetShiftState [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 01 00 [17:40:03]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9A [17:40:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetShiftState done [17:40:03]FM_GetShiftState done [17:40:03]opened in 1729557463 [17:40:03]opened+sec_in_day 1729643863 [17:40:03]quantity*price = 100015 [17:40:03]sum+1 = 100017 [17:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 246 22.10.2024 17:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166491 ФПД: 129483548006171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166491&fm=129483548006171&tin=02508201610067®Number=0000000000091764&sum=100000 [17:40:04]StoreToDocumentArchive [17:40:04]shift 536 fd 166491 [17:40:04]save to /storage/0536/doc_00166491 [17:40:04]save last doc name /storage/0536/doc_00166491 to /storage/kkm_last_doc_name [17:40:04]save OK [17:40:04]Clear old archive folders... [17:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:04]tlvbuf is 011ED040 [17:40:04]SAM_PROTO_ClearQueue [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 09 00 00 [17:40:04]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]SAM_PROTO_ClearQueue done [17:40:05]KKMCreateOFDPacket [17:40:05]OFDProtocolAddRootSTLVToBuf [17:40:05]FM_MakeSignedData [17:40:05]FM_MakeSignedData [17:40:05]SAM_PROTO_SignData [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 01 02 [17:40:05]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]wFMCommunicate request_size=255 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 74 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8A 02 00 35 04 06 00 75 [17:40:05]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 74 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8A 02 00 35 04 06 00 75 00 00 22 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]wFMCommunicate request_size=10 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 02 02 05 C3 BC E2 17 1B [17:40:05]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 C3 BC E2 17 1B 00 00 F1 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 03 02 [17:40:05]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0B 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0B 00 DA 01 00 5B 7D 88 7F 28 8D 19 C8 90 00 CC [17:40:05]RAPDU: 5B 7D 88 7F 28 8D 19 C8 90 00 [17:40:05]wFMCommunicate OK [17:40:05]SAM_PROTO_SignData done [17:40:05]FM_MakeSignedData done [17:40:05]CreateOFDProtocolMessage [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 11 00 00 [17:40:05]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [17:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:40:05]wFMCommunicate OK [17:40:05]CreateOFDProtocolMessage done [17:40:05]OFDSenderStorePacket 166491 [17:40:05]StoreOFDPacket docnum=166491 [17:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 EA 07 01 E2 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 74 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8A 02 00 35 04 06 00 75 C3 BC E2 17 1B 5B 7D 88 7F 28 8D 19 C8 [17:40:05]CheckFolder [17:40:05]dirname=/storage/ofd_packets [17:40:05]CheckFolder done [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00166491 [17:40:05]NVStorageSaveData ofd_packets/00166491 [17:40:05]File name is /storage/ofd_packets/00166491 [17:40:05]Write 301 bytes [17:40:05]NVStorageSaveData done [17:40:05]OFDSenderStorePacket done [17:40:05]KKMCreateOFDPacket done [17:40:05]NVStorageSaveData kkm_last_timestamp [17:40:05]File name is /storage/kkm_last_timestamp [17:40:05]Write 4 bytes [17:40:05]NVStorageSaveData done [17:40:05]ExternCall_PrintAddStr [17:40:05]wPrintStart [17:40:05]Write to MH i2c: 01 00 00 DC 01 DD [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [17:40:05]RasterBufferAndPrint [17:40:05]line Счет N : (1)221072 [17:40:05]line ИНН: 02508201610067 [17:40:05]line Контрольно-Кассовый Чек [17:40:05]line ПРОДАЖА [17:40:05]line ТРК (МРК, ГНК) : 33 [17:40:05]line Товар: 2710124130 [17:40:05]line Аи-92-К-5 [17:40:05]line 14.950 * 66.90 [17:40:05]line = 1000.16 [17:40:05]line НДС 12% НСП 1% [17:40:05]line > о реализуемом товаре [17:40:05]line ОКРУГЛЕНИЕ: -0.16 [17:40:05]line ИТОГО: 1000.00 [17:40:05]line Внесено: 1000.00 [17:40:05]line СДАЧА: 0.00 [17:40:05]line НСП 1% : 8.85 [17:40:05]line НДС 12% : 106.21 [17:40:05]line Наличными: 1000.00 [17:40:05]line Безнал.: 0.00 [17:40:05]line Место: АЗС № 161 "Партнер Нефть" [17:40:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:40:05]line СНО: Общий режим [17:40:05]line Чек 246 22.10.2024 17:40 [17:40:05]line Смена: 536 ФФД: 1.0 [17:40:05]line ЗНМ: 0300000104 [17:40:05]line РНМ: 0000000000091764 [17:40:05]line Версия ККМ: 001 [17:40:05]line ФМ: 0000000000871759 [17:40:05]line ФД: 166491 [17:40:05]line ФПД: 129483548006171 [17:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166491&fm=129483548006171&tin=02508201610067®Number=0000000000091764&sum=100000 [17:40:05]OFD Sender: Processing packet 166491 [packets to send 48, broken 47] [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00166491 [17:40:05]OFD Sender: To server: pG, [17:40:05]CommunicateWithHost lk.salyk.kg:30040 [17:40:05]ConnectInit lk.salyk.kg [17:40:05]written 0, free lines is 4095 [17:40:05]Connected sock=10 [17:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 EA 07 01 E2 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 74 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8A 02 00 35 04 06 00 75 C3 BC E2 17 1B 5B 7D 88 7F 28 8D 19 C8 [17:40:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 25 47 00 11 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 8A 02 00 F4 03 04 00 DE 89 17 67 B6 04 01 00 00 54 13 D0 08 E8 B8 3C 02 [17:40:06]CommunicateWithHost err = 0 [17:40:06]CheckOFDResponse [17:40:06]1017 (14) - 77093643461234 [17:40:06]1041 (16) - 0000000000871759 [17:40:06]1040 (4) - 166491 [17:40:06]1012 (4) - 22.10.2024 11:17 [17:40:06]1206 (1) - 0 [17:40:06]OFD Sender: Remove packet 166491 [17:40:06]ProducePacketName [17:40:06]name=ofd_packets/00166491 [17:40:06]NVStorageDeleteData [17:40:06]Write to MH i2c: 01 00 00 07 02 09 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 07 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 C8 0C E4 [17:40:06]RasterBufferAndPrint [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]written 0, free lines is 3277 [17:40:06]MH_Cut [17:40:06]Write to MH i2c: D1 01 00 0E 02 01 E2 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 01 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 01 00 0E 02 00 E1 [17:40:06]Write to MH i2c: 01 00 00 0F 02 11 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]OFD Sender: No OFD packet to send [17:40:07]*** Cut start [17:40:07]*** Partial cut [17:40:07]*** CUTSNS_PIN = 1 [17:40:07]*** CUTSNS_PIN = 0 [17:40:07]*** Brake cut motor [17:40:07]Read from MH i2c: 01 [17:40:07]MH_I2C_Read... [17:40:07]*** Stop cut motor [17:40:07]*** Cut end [17:40:07]Read from MH i2c: 01 07 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [17:40:07]process_action close_receipt done [17:40:07]requested_data is exist [17:40:07]produce_requested_data [17:40:07]requested_item fm.sn is exist - process it [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 11 00 00 [17:40:07]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 17 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [17:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:40:07]wFMCommunicate OK [17:40:07]requested_item fd.num is exist - process it [17:40:07]SAM_PROTO_GetFieldsCounters [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 13 00 00 [17:40:07]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 62 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [17:40:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:07]wFMCommunicate OK [17:40:07]SAM_PROTO_GetFieldsCounters done [17:40:07]requested_item shift.num is exist - process it [17:40:07]requested_item shift.opened is exist - process it [17:40:07]req_shift_opened [17:40:07]FM_GetShiftState [17:40:07]SAM_PROTO_GetShiftState [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 13 01 00 [17:40:07]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 0E 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E4 [17:40:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:40:07]wFMCommunicate OK [17:40:07]SAM_PROTO_GetShiftState done [17:40:07]FM_GetShiftState done [17:40:07]req_shift_opened done [17:40:07]requested_item shift.open_date is exist - process it [17:40:07]req_shift_open_date [17:40:07]req_shift_open_date done [17:40:07]produce_requested_data done [17:40:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166491,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:40:07]process_action_free close_receipt [17:40:07]json_value_free [17:40:07]json_value_free done [17:40:07]process_json_proto returns [17:40:07]Send response to host [17:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166491,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:40:08]free response buf [17:40:08]execute_script done [17:40:08]execute_script returns [17:40:08]free content buf [17:40:08]Sock 9.Close socket [17:40:08]Sock 9.Thread stoped [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:13]accept exits with 7 [17:42:13]New connection [17:42:13]New thread 3067489636 created [17:42:13]Thread 3067632996 joined [17:42:13]Waiting for new connection... [17:42:13] Sock 7.Parse request [17:42:13]Sock 7.Check first char [17:42:13]Sock 7.First char is OK [17:42:13]request: POST /json_proto HTTP/1.0 [17:42:13]Method: POST [17:42:13]URL: /json_proto [17:42:13]Method is POST - this is cgi request [17:42:13]url: /json_proto [17:42:13]query_string will be loaded in cgi processing [17:42:13]execute_cgi json_proto POST (null) [17:42:13]execute_cgi path=json_proto method=POST [17:42:13]POST find Content-Length [17:42:13]Host: 172.17.53.195:8080 [17:42:13]Content-Length: 677 [17:42:13]Content-Type: application/json [17:42:13] [17:42:13]POST finish read [17:42:13]Found Content-Length = 677 [17:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:13]execute_script... [17:42:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:13]POST & json_proto [17:42:13]process_json_proto [17:42:13]json parsed OK: [17:42:13]protocol is kg_v1.0 [17:42:13]action value=close_receipt [17:42:13]process_action close_receipt [17:42:13]cmd_close_receipt [17:42:13]MH_GetDate [17:42:13]Write to MH i2c: F0 00 00 13 02 04 [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 09 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 09 00 13 02 00 F5 E3 17 67 21 48 4A 65 7B [17:42:13]GetLastDocTimeStamp 1729618804 [17:42:13]current date 1729618933 [17:42:13]FM_GetShiftState [17:42:13]SAM_PROTO_GetShiftState [17:42:13]wFMCommunicate request_size=4 [17:42:13]MH_SAM_APDU [17:42:13]CAPDU: 80 13 01 00 [17:42:13]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:13]Read from MH i2c: E2 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 0E 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E6 [17:42:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:42:13]wFMCommunicate OK [17:42:13]SAM_PROTO_GetShiftState done [17:42:13]FM_GetShiftState done [17:42:13]opened in 1729557463 [17:42:13]opened+sec_in_day 1729643863 [17:42:13]quantity*price = 29971 [17:42:13]sum+1 = 29972 [17:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 247 22.10.2024 17:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166492 ФПД: 258289668969573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166492&fm=258289668969573&tin=02508201610067®Number=0000000000091764&sum=29900 [17:42:14]StoreToDocumentArchive [17:42:14]shift 536 fd 166492 [17:42:14]save to /storage/0536/doc_00166492 [17:42:14]save last doc name /storage/0536/doc_00166492 to /storage/kkm_last_doc_name [17:42:14]save OK [17:42:14]Clear old archive folders... [17:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:14]tlvbuf is 011E94D0 [17:42:14]SAM_PROTO_ClearQueue [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 09 00 00 [17:42:14]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [17:42:14]RAPDU: 90 00 [17:42:14]wFMCommunicate OK [17:42:14]SAM_PROTO_ClearQueue done [17:42:14]KKMCreateOFDPacket [17:42:14]OFDProtocolAddRootSTLVToBuf [17:42:14]FM_MakeSignedData [17:42:14]FM_MakeSignedData [17:42:14]SAM_PROTO_SignData [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 0D 01 02 [17:42:14]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [17:42:14]RAPDU: 90 00 [17:42:14]wFMCommunicate OK [17:42:14]wFMCommunicate request_size=255 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F5 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8A 02 00 35 04 06 00 EA [17:42:14]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F5 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8A 02 00 35 04 06 00 EA 00 00 41 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [17:42:14]RAPDU: 90 00 [17:42:14]wFMCommunicate OK [17:42:14]wFMCommunicate request_size=10 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 0D 02 02 05 E9 BF F7 D4 65 [17:42:14]Write to MH i2c: E2 0D 00 24 02 80 0D 02 02 05 00 E9 BF F7 D4 65 00 00 82 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [17:42:14]RAPDU: 90 00 [17:42:14]wFMCommunicate OK [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 0D 03 02 [17:42:14]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 25 02 00 EE 8B 5E 9A 0F 6C 52 B3 90 00 94 [17:42:15]RAPDU: EE 8B 5E 9A 0F 6C 52 B3 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_SignData done [17:42:15]FM_MakeSignedData done [17:42:15]CreateOFDProtocolMessage [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 11 00 00 [17:42:15]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [17:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:15]wFMCommunicate OK [17:42:15]CreateOFDProtocolMessage done [17:42:15]OFDSenderStorePacket 166492 [17:42:15]StoreOFDPacket docnum=166492 [17:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 74 07 01 0D A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F5 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8A 02 00 35 04 06 00 EA E9 BF F7 D4 65 EE 8B 5E 9A 0F 6C 52 B3 [17:42:15]CheckFolder [17:42:15]dirname=/storage/ofd_packets [17:42:15]CheckFolder done [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00166492 [17:42:15]NVStorageSaveData ofd_packets/00166492 [17:42:15]File name is /storage/ofd_packets/00166492 [17:42:15]Write 301 bytes [17:42:15]NVStorageSaveData done [17:42:15]OFDSenderStorePacket done [17:42:15]KKMCreateOFDPacket done [17:42:15]NVStorageSaveData kkm_last_timestamp [17:42:15]File name is /storage/kkm_last_timestamp [17:42:15]Write 4 bytes [17:42:15]NVStorageSaveData done [17:42:15]ExternCall_PrintAddStr [17:42:15]wPrintStart [17:42:15]Write to MH i2c: 01 00 00 27 02 29 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [17:42:15]RasterBufferAndPrint [17:42:15]line Счет N : (1)221073 [17:42:15]line ИНН: 02508201610067 [17:42:15]line Контрольно-Кассовый Чек [17:42:15]line ПРОДАЖА [17:42:15]line ТРК (МРК, ГНК) : 13 [17:42:15]line Товар: 2710124130 [17:42:15]line Аи-92-К-5 [17:42:15]line 4.480 * 66.90 [17:42:15]line = 299.71 [17:42:15]line НДС 12% НСП 1% [17:42:15]line > о реализуемом товаре [17:42:15]line ОКРУГЛЕНИЕ: -0.71 [17:42:15]line ИТОГО: 299.00 [17:42:15]line Внесено: 300.00 [17:42:15]line СДАЧА: 1.00 [17:42:15]line НСП 1% : 2.65 [17:42:15]line НДС 12% : 31.83 [17:42:15]line Наличными: 299.00 [17:42:15]line Безнал.: 0.00 [17:42:15]line Место: АЗС № 161 "Партнер Нефть" [17:42:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:42:15]line СНО: Общий режим [17:42:15]line Чек 247 22.10.2024 17:42 [17:42:15]line Смена: 536 ФФД: 1.0 [17:42:15]line ЗНМ: 0300000104 [17:42:15]line РНМ: 0000000000091764 [17:42:15]line Версия ККМ: 001 [17:42:15]line ФМ: 0000000000871759 [17:42:15]line ФД: 166492 [17:42:15]line ФПД: 258289668969573 [17:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166492&fm=258289668969573&tin=02508201610067®Number=0000000000091764&sum=29900 [17:42:15]OFD Sender: Processing packet 166492 [packets to send 48, broken 47] [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00166492 [17:42:15]OFD Sender: To server: pG, [17:42:15]CommunicateWithHost lk.salyk.kg:30040 [17:42:15]ConnectInit lk.salyk.kg [17:42:15]written 0, free lines is 4095 [17:42:15]Connected sock=10 [17:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 71 74 07 01 0D A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F5 E3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8A 02 00 35 04 06 00 EA E9 BF F7 D4 65 EE 8B 5E 9A 0F 6C 52 B3 [17:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D3 13 47 00 E9 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 8A 02 00 F4 03 04 00 60 8A 17 67 B6 04 01 00 00 B4 FC 3B 12 73 2C 8F 16 [17:42:15]CommunicateWithHost err = 0 [17:42:15]CheckOFDResponse [17:42:15]1017 (14) - 77093643461234 [17:42:15]1041 (16) - 0000000000871759 [17:42:15]1040 (4) - 166492 [17:42:15]1012 (4) - 22.10.2024 11:20 [17:42:15]1206 (1) - 0 [17:42:15]OFD Sender: Remove packet 166492 [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00166492 [17:42:15]NVStorageDeleteData [17:42:15]Write to MH i2c: 01 00 00 52 02 54 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 C4 0C 2B [17:42:15]RasterBufferAndPrint [17:42:15]line [17:42:15]line [17:42:15]line [17:42:15]line [17:42:15]line [17:42:15]written 0, free lines is 3273 [17:42:15]MH_Cut [17:42:15]Write to MH i2c: D1 01 00 59 02 01 2D [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: D1 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: D1 01 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: D1 01 00 59 02 00 2C [17:42:15]Write to MH i2c: 01 00 00 5A 02 5C [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:16]OFD Sender: No OFD packet to send [17:42:16]*** Cut start [17:42:16]*** Partial cut [17:42:16]*** CUTSNS_PIN = 1 [17:42:16]*** CUTSNS_PIN = 0 [17:42:16]*** Brake cut motor [17:42:17]Read from MH i2c: 01 [17:42:17]MH_I2C_Read... [17:42:17]*** Stop cut motor [17:42:17]*** Cut end [17:42:17]Read from MH i2c: 01 07 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [17:42:17]process_action close_receipt done [17:42:17]requested_data is exist [17:42:17]produce_requested_data [17:42:17]requested_item fm.sn is exist - process it [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 11 00 00 [17:42:17]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 17 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2F [17:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:17]wFMCommunicate OK [17:42:17]requested_item fd.num is exist - process it [17:42:17]SAM_PROTO_GetFieldsCounters [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 00 00 [17:42:17]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 62 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [17:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:17]wFMCommunicate OK [17:42:17]SAM_PROTO_GetFieldsCounters done [17:42:17]requested_item shift.num is exist - process it [17:42:17]requested_item shift.opened is exist - process it [17:42:17]req_shift_opened [17:42:17]FM_GetShiftState [17:42:17]SAM_PROTO_GetShiftState [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 01 00 [17:42:17]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2F [17:42:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:42:17]wFMCommunicate OK [17:42:17]SAM_PROTO_GetShiftState done [17:42:17]FM_GetShiftState done [17:42:17]req_shift_opened done [17:42:17]requested_item shift.open_date is exist - process it [17:42:17]req_shift_open_date [17:42:17]req_shift_open_date done [17:42:17]produce_requested_data done [17:42:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166492,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:42:17]process_action_free close_receipt [17:42:17]json_value_free [17:42:17]json_value_free done [17:42:17]process_json_proto returns [17:42:17]Send response to host [17:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166492,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:42:17]free response buf [17:42:17]execute_script done [17:42:17]execute_script returns [17:42:17]free content buf [17:42:17]Sock 7.Close socket [17:42:17]Sock 7.Thread stoped [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:40]accept exits with 9 [17:50:40]New connection [17:50:40]New thread 3067632996 created [17:50:40]Thread 3067489636 joined [17:50:40]Waiting for new connection... [17:50:40] Sock 9.Parse request [17:50:40]Sock 9.Check first char [17:50:40]Sock 9.First char is OK [17:50:40]request: POST /json_proto HTTP/1.0 [17:50:40]Method: POST [17:50:40]URL: /json_proto [17:50:40]Method is POST - this is cgi request [17:50:40]url: /json_proto [17:50:40]query_string will be loaded in cgi processing [17:50:40]execute_cgi json_proto POST (null) [17:50:40]execute_cgi path=json_proto method=POST [17:50:40]POST find Content-Length [17:50:40]Host: 172.17.53.195:8080 [17:50:40]Content-Length: 682 [17:50:40]Content-Type: application/json [17:50:40] [17:50:40]POST finish read [17:50:40]Found Content-Length = 682 [17:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:40]execute_script... [17:50:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:40]POST & json_proto [17:50:40]process_json_proto [17:50:40]json parsed OK: [17:50:40]protocol is kg_v1.0 [17:50:40]action value=close_receipt [17:50:40]process_action close_receipt [17:50:40]cmd_close_receipt [17:50:40]MH_GetDate [17:50:40]Write to MH i2c: F0 00 00 5E 02 4F [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 09 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 09 00 5E 02 00 F1 E5 17 67 21 48 4A 65 C4 [17:50:40]GetLastDocTimeStamp 1729618933 [17:50:40]current date 1729619441 [17:50:40]FM_GetShiftState [17:50:40]SAM_PROTO_GetShiftState [17:50:40]wFMCommunicate request_size=4 [17:50:40]MH_SAM_APDU [17:50:40]CAPDU: 80 13 01 00 [17:50:40]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:40]Read from MH i2c: E2 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: E2 0E 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 31 [17:50:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:50:40]wFMCommunicate OK [17:50:40]SAM_PROTO_GetShiftState done [17:50:40]FM_GetShiftState done [17:50:40]opened in 1729557463 [17:50:40]opened+sec_in_day 1729643863 [17:50:40]quantity*price = 100015 [17:50:40]sum+1 = 100017 [17:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 248 22.10.2024 17:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166493 ФПД: 109684395166020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175041&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166493&fm=109684395166020&tin=02508201610067®Number=0000000000091764&sum=100000 [17:50:41]StoreToDocumentArchive [17:50:41]shift 536 fd 166493 [17:50:41]save to /storage/0536/doc_00166493 [17:50:41]save last doc name /storage/0536/doc_00166493 to /storage/kkm_last_doc_name [17:50:41]save OK [17:50:41]Clear old archive folders... [17:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:41]tlvbuf is 011EBF20 [17:50:41]SAM_PROTO_ClearQueue [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 09 00 00 [17:50:41]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [17:50:41]RAPDU: 90 00 [17:50:41]wFMCommunicate OK [17:50:41]SAM_PROTO_ClearQueue done [17:50:41]KKMCreateOFDPacket [17:50:41]OFDProtocolAddRootSTLVToBuf [17:50:41]FM_MakeSignedData [17:50:41]FM_MakeSignedData [17:50:41]SAM_PROTO_SignData [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 0D 01 02 [17:50:41]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [17:50:41]RAPDU: 90 00 [17:50:41]wFMCommunicate OK [17:50:41]wFMCommunicate request_size=255 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 F1 E5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8A 02 00 35 04 06 00 63 [17:50:41]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 F1 E5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8A 02 00 35 04 06 00 63 00 00 2A [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [17:50:42]RAPDU: 90 00 [17:50:42]wFMCommunicate OK [17:50:42]wFMCommunicate request_size=10 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 0D 02 02 05 C1 E3 69 49 44 [17:50:42]Write to MH i2c: E2 0D 00 6F 02 80 0D 02 02 05 00 C1 E3 69 49 44 00 00 8F [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [17:50:42]RAPDU: 90 00 [17:50:42]wFMCommunicate OK [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 0D 03 02 [17:50:42]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0B 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0B 00 70 02 00 09 5E 06 62 C5 35 B8 C3 90 00 32 [17:50:42]RAPDU: 09 5E 06 62 C5 35 B8 C3 90 00 [17:50:42]wFMCommunicate OK [17:50:42]SAM_PROTO_SignData done [17:50:42]FM_MakeSignedData done [17:50:42]CreateOFDProtocolMessage [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 11 00 00 [17:50:42]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 17 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [17:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:42]wFMCommunicate OK [17:50:42]CreateOFDProtocolMessage done [17:50:42]OFDSenderStorePacket 166493 [17:50:42]StoreOFDPacket docnum=166493 [17:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0F 48 07 01 08 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 F1 E5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8A 02 00 35 04 06 00 63 C1 E3 69 49 44 09 5E 06 62 C5 35 B8 C3 [17:50:42]CheckFolder [17:50:42]dirname=/storage/ofd_packets [17:50:42]CheckFolder done [17:50:42]ProducePacketName [17:50:42]name=ofd_packets/00166493 [17:50:42]NVStorageSaveData ofd_packets/00166493 [17:50:42]File name is /storage/ofd_packets/00166493 [17:50:42]Write 301 bytes [17:50:42]NVStorageSaveData done [17:50:42]OFDSenderStorePacket done [17:50:42]KKMCreateOFDPacket done [17:50:42]NVStorageSaveData kkm_last_timestamp [17:50:42]File name is /storage/kkm_last_timestamp [17:50:42]Write 4 bytes [17:50:42]NVStorageSaveData done [17:50:42]ExternCall_PrintAddStr [17:50:42]wPrintStart [17:50:42]Write to MH i2c: 01 00 00 72 02 74 [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 07 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [17:50:42]RasterBufferAndPrint [17:50:42]line Счет N : (1)221074 [17:50:42]line ИНН: 02508201610067 [17:50:42]line Контрольно-Кассовый Чек [17:50:42]line ПРОДАЖА [17:50:42]line ТРК (МРК, ГНК) : 43 [17:50:42]line Товар: 2710124130 [17:50:42]line Аи-92-К-5 [17:50:42]line 14.950 * 66.90 [17:50:42]line = 1000.16 [17:50:42]line НДС 12% НСП 1% [17:50:42]line > о реализуемом товаре [17:50:42]line ОКРУГЛЕНИЕ: -0.16 [17:50:42]line ИТОГО: 1000.00 [17:50:42]line Внесено: 1000.00 [17:50:42]line СДАЧА: 0.00 [17:50:42]line НСП 1% : 8.85 [17:50:42]line НДС 12% : 106.21 [17:50:42]line Наличными: 1000.00 [17:50:42]line Безнал.: 0.00 [17:50:42]line Место: АЗС № 161 "Партнер Нефть" [17:50:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:50:42]line СНО: Общий режим [17:50:42]line Чек 248 22.10.2024 17:50 [17:50:42]line Смена: 536 ФФД: 1.0 [17:50:42]line ЗНМ: 0300000104 [17:50:42]line РНМ: 0000000000091764 [17:50:42]line Версия ККМ: 001 [17:50:42]line ФМ: 0000000000871759 [17:50:42]line ФД: 166493 [17:50:42]line ФПД: 109684395166020 [17:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175041&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166493&fm=109684395166020&tin=02508201610067®Number=0000000000091764&sum=100000 [17:50:42]OFD Sender: Processing packet 166493 [packets to send 48, broken 47] [17:50:42]ProducePacketName [17:50:42]name=ofd_packets/00166493 [17:50:42]OFD Sender: To server: pG, [17:50:42]CommunicateWithHost lk.salyk.kg:30040 [17:50:42]ConnectInit lk.salyk.kg [17:50:42]written 0, free lines is 4095 [17:50:42]Connected sock=10 [17:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0F 48 07 01 08 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 F1 E5 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8A 02 00 35 04 06 00 63 C1 E3 69 49 44 09 5E 06 62 C5 35 B8 C3 [17:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D1 A3 47 00 24 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 8A 02 00 F4 03 04 00 5B 8C 17 67 B6 04 01 00 00 D5 E9 85 29 FE 38 40 1F [17:50:43]CommunicateWithHost err = 0 [17:50:43]CheckOFDResponse [17:50:43]1017 (14) - 77093643461234 [17:50:43]1041 (16) - 0000000000871759 [17:50:43]1040 (4) - 166493 [17:50:43]1012 (4) - 22.10.2024 11:28 [17:50:43]1206 (1) - 0 [17:50:43]OFD Sender: Remove packet 166493 [17:50:43]ProducePacketName [17:50:43]name=ofd_packets/00166493 [17:50:43]NVStorageDeleteData [17:50:43]Write to MH i2c: 01 00 00 9D 02 9F [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 07 00 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 BC 0C 6E [17:50:43]RasterBufferAndPrint [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]written 0, free lines is 3267 [17:50:43]MH_Cut [17:50:43]Write to MH i2c: D1 01 00 A4 02 01 78 [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 01 00 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 01 00 A4 02 00 77 [17:50:43]Write to MH i2c: 01 00 00 A5 02 A7 [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]OFD Sender: No OFD packet to send [17:50:43]*** Cut start [17:50:43]*** Partial cut [17:50:43]*** CUTSNS_PIN = 1 [17:50:44]*** CUTSNS_PIN = 0 [17:50:44]*** Brake cut motor [17:50:44]Read from MH i2c: 01 [17:50:44]MH_I2C_Read... [17:50:44]*** Stop cut motor [17:50:44]*** Cut end [17:50:44]Read from MH i2c: 01 07 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [17:50:44]process_action close_receipt done [17:50:44]requested_data is exist [17:50:44]produce_requested_data [17:50:44]requested_item fm.sn is exist - process it [17:50:44]wFMCommunicate request_size=4 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 11 00 00 [17:50:44]Write to MH i2c: E2 08 00 A6 02 80 11 00 00 00 00 00 00 22 [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 17 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 17 00 A6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [17:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:44]wFMCommunicate OK [17:50:44]requested_item fd.num is exist - process it [17:50:44]SAM_PROTO_GetFieldsCounters [17:50:44]wFMCommunicate request_size=4 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 13 00 00 [17:50:44]Write to MH i2c: E2 08 00 A7 02 80 13 00 00 00 00 00 00 25 [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 62 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 62 00 A7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:50:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:44]wFMCommunicate OK [17:50:44]SAM_PROTO_GetFieldsCounters done [17:50:44]requested_item shift.num is exist - process it [17:50:44]requested_item shift.opened is exist - process it [17:50:44]req_shift_opened [17:50:44]FM_GetShiftState [17:50:44]SAM_PROTO_GetShiftState [17:50:44]wFMCommunicate request_size=4 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 13 01 00 [17:50:44]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 0E 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7A [17:50:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:50:44]wFMCommunicate OK [17:50:44]SAM_PROTO_GetShiftState done [17:50:44]FM_GetShiftState done [17:50:44]req_shift_opened done [17:50:44]requested_item shift.open_date is exist - process it [17:50:44]req_shift_open_date [17:50:44]req_shift_open_date done [17:50:44]produce_requested_data done [17:50:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166493,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:50:44]process_action_free close_receipt [17:50:44]json_value_free [17:50:44]json_value_free done [17:50:44]process_json_proto returns [17:50:44]Send response to host [17:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166493,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:50:44]free response buf [17:50:44]execute_script done [17:50:44]execute_script returns [17:50:44]free content buf [17:50:44]Sock 9.Close socket [17:50:44]Sock 9.Thread stoped [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:22]accept exits with 7 [17:51:22]New connection [17:51:22]New thread 3067489636 created [17:51:22]Thread 3067632996 joined [17:51:22]Waiting for new connection... [17:51:22] Sock 7.Parse request [17:51:22]Sock 7.Check first char [17:51:22]Sock 7.First char is OK [17:51:22]request: POST /json_proto HTTP/1.0 [17:51:22]Method: POST [17:51:22]URL: /json_proto [17:51:22]Method is POST - this is cgi request [17:51:22]url: /json_proto [17:51:22]query_string will be loaded in cgi processing [17:51:22]execute_cgi json_proto POST (null) [17:51:22]execute_cgi path=json_proto method=POST [17:51:22]POST find Content-Length [17:51:22]Host: 172.17.53.195:8080 [17:51:22]Content-Length: 677 [17:51:22]Content-Type: application/json [17:51:22] [17:51:22]POST finish read [17:51:22]Found Content-Length = 677 [17:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:22]execute_script... [17:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:22]POST & json_proto [17:51:22]process_json_proto [17:51:22]json parsed OK: [17:51:22]protocol is kg_v1.0 [17:51:22]action value=close_receipt [17:51:22]process_action close_receipt [17:51:22]cmd_close_receipt [17:51:22]MH_GetDate [17:51:22]Write to MH i2c: F0 00 00 A9 02 9A [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 09 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: F0 09 00 A9 02 00 1B E6 17 67 21 48 4A 65 3A [17:51:22]GetLastDocTimeStamp 1729619441 [17:51:22]current date 1729619483 [17:51:22]FM_GetShiftState [17:51:22]SAM_PROTO_GetShiftState [17:51:22]wFMCommunicate request_size=4 [17:51:22]MH_SAM_APDU [17:51:22]CAPDU: 80 13 01 00 [17:51:22]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [17:51:22]Write i2c OK [17:51:22]MH_I2C_Read... [17:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:22]Read from MH i2c: E2 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 [17:51:22]MH_I2C_Read... [17:51:22]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7C [17:51:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:51:22]wFMCommunicate OK [17:51:22]SAM_PROTO_GetShiftState done [17:51:22]FM_GetShiftState done [17:51:22]opened in 1729557463 [17:51:22]opened+sec_in_day 1729643863 [17:51:22]quantity*price = 50041 [17:51:22]sum+1 = 50042 [17:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 249 22.10.2024 17:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166494 ФПД: 171209014253590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166494&fm=171209014253590&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:24]StoreToDocumentArchive [17:51:24]shift 536 fd 166494 [17:51:24]save to /storage/0536/doc_00166494 [17:51:24]save last doc name /storage/0536/doc_00166494 to /storage/kkm_last_doc_name [17:51:24]save OK [17:51:24]Clear old archive folders... [17:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:24]tlvbuf is 011EA420 [17:51:24]SAM_PROTO_ClearQueue [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 09 00 00 [17:51:24]Write to MH i2c: E2 08 00 B7 02 80 09 00 00 00 00 00 00 2B [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]SAM_PROTO_ClearQueue done [17:51:24]KKMCreateOFDPacket [17:51:24]OFDProtocolAddRootSTLVToBuf [17:51:24]FM_MakeSignedData [17:51:24]FM_MakeSignedData [17:51:24]SAM_PROTO_SignData [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 01 02 [17:51:24]Write to MH i2c: E2 08 00 B8 02 80 0D 01 02 00 00 00 00 33 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=255 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1B E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8A 02 00 35 04 06 00 9B [17:51:24]Write to MH i2c: E2 02 01 B9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1B E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8A 02 00 35 04 06 00 9B 00 00 E0 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=10 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 02 02 05 B6 B4 7A 18 16 [17:51:24]Write to MH i2c: E2 0D 00 BA 02 80 0D 02 02 05 00 B6 B4 7A 18 16 00 00 52 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [17:51:24]RAPDU: 90 00 [17:51:24]wFMCommunicate OK [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 0D 03 02 [17:51:24]Write to MH i2c: E2 08 00 BB 02 80 0D 03 02 00 00 00 00 38 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 0B 00 BB 02 00 18 73 EE 1C 7F 78 4F EA 90 00 FE [17:51:24]RAPDU: 18 73 EE 1C 7F 78 4F EA 90 00 [17:51:24]wFMCommunicate OK [17:51:24]SAM_PROTO_SignData done [17:51:24]FM_MakeSignedData done [17:51:24]CreateOFDProtocolMessage [17:51:24]wFMCommunicate request_size=4 [17:51:24]MH_SAM_APDU [17:51:24]CAPDU: 80 11 00 00 [17:51:24]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:24]Read from MH i2c: E2 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [17:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:24]wFMCommunicate OK [17:51:24]CreateOFDProtocolMessage done [17:51:24]OFDSenderStorePacket 166494 [17:51:24]StoreOFDPacket docnum=166494 [17:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D 2C 07 01 8D 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1B E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8A 02 00 35 04 06 00 9B B6 B4 7A 18 16 18 73 EE 1C 7F 78 4F EA [17:51:24]CheckFolder [17:51:24]dirname=/storage/ofd_packets [17:51:24]CheckFolder done [17:51:24]ProducePacketName [17:51:24]name=ofd_packets/00166494 [17:51:24]NVStorageSaveData ofd_packets/00166494 [17:51:24]File name is /storage/ofd_packets/00166494 [17:51:24]Write 301 bytes [17:51:24]NVStorageSaveData done [17:51:24]OFDSenderStorePacket done [17:51:24]KKMCreateOFDPacket done [17:51:24]NVStorageSaveData kkm_last_timestamp [17:51:24]File name is /storage/kkm_last_timestamp [17:51:24]Write 4 bytes [17:51:24]NVStorageSaveData done [17:51:24]ExternCall_PrintAddStr [17:51:24]wPrintStart [17:51:24]Write to MH i2c: 01 00 00 BD 02 BF [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 FF 0F D4 [17:51:24]RasterBufferAndPrint [17:51:24]line Счет N : (1)221075 [17:51:24]line ИНН: 02508201610067 [17:51:24]line Контрольно-Кассовый Чек [17:51:24]line ПРОДАЖА [17:51:24]line ТРК (МРК, ГНК) : 33 [17:51:24]line Товар: 2710124130 [17:51:24]line Аи-92-К-5 [17:51:24]line 7.480 * 66.90 [17:51:24]line = 500.41 [17:51:24]line НДС 12% НСП 1% [17:51:24]line > о реализуемом товаре [17:51:24]line ОКРУГЛЕНИЕ: -0.41 [17:51:24]line ИТОГО: 500.00 [17:51:24]line Внесено: 500.00 [17:51:24]line СДАЧА: 0.00 [17:51:24]line НСП 1% : 4.43 [17:51:24]line НДС 12% : 53.14 [17:51:24]line Наличными: 500.00 [17:51:24]line Безнал.: 0.00 [17:51:24]line Место: АЗС № 161 "Партнер Нефть" [17:51:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:51:24]line СНО: Общий режим [17:51:24]line Чек 249 22.10.2024 17:51 [17:51:24]line Смена: 536 ФФД: 1.0 [17:51:24]line ЗНМ: 0300000104 [17:51:24]line РНМ: 0000000000091764 [17:51:24]line Версия ККМ: 001 [17:51:24]line ФМ: 0000000000871759 [17:51:24]line ФД: 166494 [17:51:24]line ФПД: 171209014253590 [17:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166494&fm=171209014253590&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:24]OFD Sender: Processing packet 166494 [packets to send 48, broken 47] [17:51:24]ProducePacketName [17:51:24]name=ofd_packets/00166494 [17:51:24]OFD Sender: To server: pG, [17:51:24]CommunicateWithHost lk.salyk.kg:30040 [17:51:24]ConnectInit lk.salyk.kg [17:51:24]written 0, free lines is 4095 [17:51:25]Connected sock=10 [17:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6D 2C 07 01 8D 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1B E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8A 02 00 35 04 06 00 9B B6 B4 7A 18 16 18 73 EE 1C 7F 78 4F EA [17:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 33 47 00 EE A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 8A 02 00 F4 03 04 00 85 8C 17 67 B6 04 01 00 00 31 01 E9 C9 46 BC 17 51 [17:51:25]CommunicateWithHost err = 0 [17:51:25]CheckOFDResponse [17:51:25]1017 (14) - 77093643461234 [17:51:25]1041 (16) - 0000000000871759 [17:51:25]1040 (4) - 166494 [17:51:25]1012 (4) - 22.10.2024 11:29 [17:51:25]1206 (1) - 0 [17:51:25]OFD Sender: Remove packet 166494 [17:51:25]ProducePacketName [17:51:25]name=ofd_packets/00166494 [17:51:25]NVStorageDeleteData [17:51:25]Write to MH i2c: 01 00 00 E8 02 EA [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 B8 0C B5 [17:51:25]RasterBufferAndPrint [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]line [17:51:25]written 0, free lines is 3263 [17:51:25]MH_Cut [17:51:25]Write to MH i2c: D1 01 00 EF 02 01 C3 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: D1 01 00 EF 02 00 C2 [17:51:25]Write to MH i2c: 01 00 00 F0 02 F2 [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]OFD Sender: No OFD packet to send [17:51:26]*** Cut start [17:51:26]*** Partial cut [17:51:26]*** CUTSNS_PIN = 1 [17:51:26]*** CUTSNS_PIN = 0 [17:51:26]*** Brake cut motor [17:51:26]Read from MH i2c: 01 [17:51:26]MH_I2C_Read... [17:51:26]*** Stop cut motor [17:51:26]*** Cut end [17:51:26]Read from MH i2c: 01 07 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [17:51:26]process_action close_receipt done [17:51:26]requested_data is exist [17:51:26]produce_requested_data [17:51:26]requested_item fm.sn is exist - process it [17:51:26]wFMCommunicate request_size=4 [17:51:26]MH_SAM_APDU [17:51:26]CAPDU: 80 11 00 00 [17:51:26]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [17:51:26]Write i2c OK [17:51:26]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:26]Read from MH i2c: E2 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 17 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [17:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:26]wFMCommunicate OK [17:51:26]requested_item fd.num is exist - process it [17:51:26]SAM_PROTO_GetFieldsCounters [17:51:26]wFMCommunicate request_size=4 [17:51:26]MH_SAM_APDU [17:51:26]CAPDU: 80 13 00 00 [17:51:26]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [17:51:26]Write i2c OK [17:51:26]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:27]Read from MH i2c: E2 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 62 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [17:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:27]wFMCommunicate OK [17:51:27]SAM_PROTO_GetFieldsCounters done [17:51:27]requested_item shift.num is exist - process it [17:51:27]requested_item shift.opened is exist - process it [17:51:27]req_shift_opened [17:51:27]FM_GetShiftState [17:51:27]SAM_PROTO_GetShiftState [17:51:27]wFMCommunicate request_size=4 [17:51:27]MH_SAM_APDU [17:51:27]CAPDU: 80 13 01 00 [17:51:27]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [17:51:27]Write i2c OK [17:51:27]MH_I2C_Read... [17:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:27]Read from MH i2c: E2 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 0E 00 [17:51:27]MH_I2C_Read... [17:51:27]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C5 [17:51:27]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:51:27]wFMCommunicate OK [17:51:27]SAM_PROTO_GetShiftState done [17:51:27]FM_GetShiftState done [17:51:27]req_shift_opened done [17:51:27]requested_item shift.open_date is exist - process it [17:51:27]req_shift_open_date [17:51:27]req_shift_open_date done [17:51:27]produce_requested_data done [17:51:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166494,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:51:27]process_action_free close_receipt [17:51:27]json_value_free [17:51:27]json_value_free done [17:51:27]process_json_proto returns [17:51:27]Send response to host [17:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166494,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:51:27]free response buf [17:51:27]execute_script done [17:51:27]execute_script returns [17:51:27]free content buf [17:51:27]Sock 7.Close socket [17:51:27]Sock 7.Thread stoped [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:44]accept exits with 9 [17:51:44]New connection [17:51:44]New thread 3067632996 created [17:51:44]Thread 3067489636 joined [17:51:44]Waiting for new connection... [17:51:44] Sock 9.Parse request [17:51:44]Sock 9.Check first char [17:51:44]Sock 9.First char is OK [17:51:44]request: POST /json_proto HTTP/1.0 [17:51:44]Method: POST [17:51:44]URL: /json_proto [17:51:44]Method is POST - this is cgi request [17:51:44]url: /json_proto [17:51:44]query_string will be loaded in cgi processing [17:51:44]execute_cgi json_proto POST (null) [17:51:44]execute_cgi path=json_proto method=POST [17:51:44]POST find Content-Length [17:51:44]Host: 172.17.53.195:8080 [17:51:44]Content-Length: 674 [17:51:44]Content-Type: application/json [17:51:44] [17:51:44]POST finish read [17:51:44]Found Content-Length = 674 [17:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:44]execute_script... [17:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:44]POST & json_proto [17:51:44]process_json_proto [17:51:44]json parsed OK: [17:51:44]protocol is kg_v1.0 [17:51:44]action value=close_receipt [17:51:44]process_action close_receipt [17:51:44]cmd_close_receipt [17:51:44]MH_GetDate [17:51:44]Write to MH i2c: F0 00 00 F4 02 E5 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 09 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 09 00 F4 02 00 31 E6 17 67 21 48 4A 65 9B [17:51:44]GetLastDocTimeStamp 1729619483 [17:51:44]current date 1729619505 [17:51:44]FM_GetShiftState [17:51:44]SAM_PROTO_GetShiftState [17:51:44]wFMCommunicate request_size=4 [17:51:44]MH_SAM_APDU [17:51:44]CAPDU: 80 13 01 00 [17:51:44]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0E 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C7 [17:51:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:51:44]wFMCommunicate OK [17:51:44]SAM_PROTO_GetShiftState done [17:51:44]FM_GetShiftState done [17:51:44]opened in 1729557463 [17:51:44]opened+sec_in_day 1729643863 [17:51:44]quantity*price = 50063 [17:51:44]sum+1 = 50064 [17:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 250 22.10.2024 17:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166495 ФПД: 248533655292392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166495&fm=248533655292392&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:46]StoreToDocumentArchive [17:51:46]shift 536 fd 166495 [17:51:46]save to /storage/0536/doc_00166495 [17:51:46]save last doc name /storage/0536/doc_00166495 to /storage/kkm_last_doc_name [17:51:46]save OK [17:51:46]Clear old archive folders... [17:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:51:46]tlvbuf is 011E9A20 [17:51:46]SAM_PROTO_ClearQueue [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 09 00 00 [17:51:46]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [17:51:46]RAPDU: 90 00 [17:51:46]wFMCommunicate OK [17:51:46]SAM_PROTO_ClearQueue done [17:51:46]KKMCreateOFDPacket [17:51:46]OFDProtocolAddRootSTLVToBuf [17:51:46]FM_MakeSignedData [17:51:46]FM_MakeSignedData [17:51:46]SAM_PROTO_SignData [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 0D 01 02 [17:51:46]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [17:51:46]RAPDU: 90 00 [17:51:46]wFMCommunicate OK [17:51:46]wFMCommunicate request_size=255 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8A 02 00 35 04 06 00 E2 0A 40 3D [17:51:46]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8A 02 00 35 04 06 00 E2 0A 40 3D 00 00 90 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [17:51:46]RAPDU: 90 00 [17:51:46]wFMCommunicate OK [17:51:46]wFMCommunicate request_size=7 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 0D 02 02 02 09 E8 [17:51:46]Write to MH i2c: E2 0A 00 05 03 80 0D 02 02 02 00 09 E8 00 00 77 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [17:51:46]RAPDU: 90 00 [17:51:46]wFMCommunicate OK [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 0D 03 02 [17:51:46]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 0B 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 0B 00 06 03 00 01 00 E3 CD EB 17 6D ED 90 00 92 [17:51:46]RAPDU: 01 00 E3 CD EB 17 6D ED 90 00 [17:51:46]wFMCommunicate OK [17:51:46]SAM_PROTO_SignData done [17:51:46]FM_MakeSignedData done [17:51:46]CreateOFDProtocolMessage [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 11 00 00 [17:51:46]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:46]Read from MH i2c: E2 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 17 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [17:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:46]wFMCommunicate OK [17:51:46]CreateOFDProtocolMessage done [17:51:46]OFDSenderStorePacket 166495 [17:51:46]StoreOFDPacket docnum=166495 [17:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FC 44 04 01 56 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8A 02 00 35 04 06 00 E2 0A 40 3D 09 E8 01 00 E3 CD EB 17 6D ED [17:51:46]CheckFolder [17:51:46]dirname=/storage/ofd_packets [17:51:46]CheckFolder done [17:51:46]ProducePacketName [17:51:46]name=ofd_packets/00166495 [17:51:46]NVStorageSaveData ofd_packets/00166495 [17:51:46]File name is /storage/ofd_packets/00166495 [17:51:46]Write 298 bytes [17:51:46]NVStorageSaveData done [17:51:46]OFDSenderStorePacket done [17:51:46]KKMCreateOFDPacket done [17:51:46]NVStorageSaveData kkm_last_timestamp [17:51:46]File name is /storage/kkm_last_timestamp [17:51:46]Write 4 bytes [17:51:46]NVStorageSaveData done [17:51:46]ExternCall_PrintAddStr [17:51:46]wPrintStart [17:51:46]Write to MH i2c: 01 00 00 08 03 0B [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 07 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [17:51:46]RasterBufferAndPrint [17:51:46]line Счет N : (1)221076 [17:51:46]line ИНН: 02508201610067 [17:51:46]line Контрольно-Кассовый Чек [17:51:46]line ПРОДАЖА [17:51:46]line ТРК (МРК, ГНК) : 11 [17:51:46]line Товар: 2710194210 [17:51:46]line ДТ-К-5 [17:51:46]line 6.570 * 76.20 [17:51:46]line = 500.63 [17:51:46]line НДС 12% НСП 1% [17:51:46]line > о реализуемом товаре [17:51:46]line ОКРУГЛЕНИЕ: -0.63 [17:51:46]line ИТОГО: 500.00 [17:51:46]line Внесено: 500.00 [17:51:46]line СДАЧА: 0.00 [17:51:46]line НСП 1% : 4.43 [17:51:46]line НДС 12% : 53.16 [17:51:46]line Наличными: 500.00 [17:51:46]line Безнал.: 0.00 [17:51:46]line Место: АЗС № 161 "Партнер Нефть" [17:51:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:51:46]line СНО: Общий режим [17:51:46]line Чек 250 22.10.2024 17:51 [17:51:46]line Смена: 536 ФФД: 1.0 [17:51:46]line ЗНМ: 0300000104 [17:51:46]line РНМ: 0000000000091764 [17:51:46]line Версия ККМ: 001 [17:51:46]line ФМ: 0000000000871759 [17:51:46]line ФД: 166495 [17:51:46]line ФПД: 248533655292392 [17:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166495&fm=248533655292392&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:46]OFD Sender: Processing packet 166495 [packets to send 48, broken 47] [17:51:46]ProducePacketName [17:51:46]name=ofd_packets/00166495 [17:51:46]OFD Sender: To server: pG, [17:51:46]CommunicateWithHost lk.salyk.kg:30040 [17:51:46]ConnectInit lk.salyk.kg [17:51:46]written 0, free lines is 4095 [17:51:47]Connected sock=11 [17:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FC 44 04 01 56 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 31 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8A 02 00 35 04 06 00 E2 0A 40 3D 09 E8 01 00 E3 CD EB 17 6D ED [17:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EE F3 47 00 FB 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 8A 02 00 F4 03 04 00 9B 8C 17 67 B6 04 01 00 00 6A 07 B3 32 B8 57 14 D0 [17:51:47]CommunicateWithHost err = 0 [17:51:47]CheckOFDResponse [17:51:47]1017 (14) - 77093643461234 [17:51:47]1041 (16) - 0000000000871759 [17:51:47]1040 (4) - 166495 [17:51:47]1012 (4) - 22.10.2024 11:29 [17:51:47]1206 (1) - 0 [17:51:47]OFD Sender: Remove packet 166495 [17:51:47]ProducePacketName [17:51:47]name=ofd_packets/00166495 [17:51:47]NVStorageDeleteData [17:51:47]Write to MH i2c: 01 00 00 33 03 36 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 07 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 BA 0C 03 [17:51:47]RasterBufferAndPrint [17:51:47]line [17:51:47]line [17:51:47]line [17:51:47]line [17:51:47]line [17:51:47]written 0, free lines is 3263 [17:51:47]MH_Cut [17:51:47]Write to MH i2c: D1 01 00 3A 03 01 0F [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: D1 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: D1 01 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: D1 01 00 3A 03 00 0E [17:51:47]Write to MH i2c: 01 00 00 3B 03 3E [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]OFD Sender: No OFD packet to send [17:51:48]*** Cut start [17:51:48]*** Partial cut [17:51:48]*** CUTSNS_PIN = 1 [17:51:48]*** CUTSNS_PIN = 0 [17:51:48]*** Brake cut motor [17:51:48]Read from MH i2c: 01 [17:51:48]MH_I2C_Read... [17:51:48]*** Stop cut motor [17:51:48]*** Cut end [17:51:48]Read from MH i2c: 01 07 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 FF 0F 53 [17:51:48]process_action close_receipt done [17:51:48]requested_data is exist [17:51:48]produce_requested_data [17:51:48]requested_item fm.sn is exist - process it [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 11 00 00 [17:51:48]Write to MH i2c: E2 08 00 3C 03 80 11 00 00 00 00 00 00 B9 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 17 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 17 00 3C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 11 [17:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:48]wFMCommunicate OK [17:51:48]requested_item fd.num is exist - process it [17:51:48]SAM_PROTO_GetFieldsCounters [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 13 00 00 [17:51:48]Write to MH i2c: E2 08 00 3D 03 80 13 00 00 00 00 00 00 BC [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 62 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 62 00 3D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [17:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_GetFieldsCounters done [17:51:49]requested_item shift.num is exist - process it [17:51:49]requested_item shift.opened is exist - process it [17:51:49]req_shift_opened [17:51:49]FM_GetShiftState [17:51:49]SAM_PROTO_GetShiftState [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 13 01 00 [17:51:49]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 11 [17:51:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_GetShiftState done [17:51:49]FM_GetShiftState done [17:51:49]req_shift_opened done [17:51:49]requested_item shift.open_date is exist - process it [17:51:49]req_shift_open_date [17:51:49]req_shift_open_date done [17:51:49]produce_requested_data done [17:51:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166495,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:51:49]process_action_free close_receipt [17:51:49]json_value_free [17:51:49]json_value_free done [17:51:49]process_json_proto returns [17:51:49]Send response to host [17:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166495,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:51:49]free response buf [17:51:49]execute_script done [17:51:49]execute_script returns [17:51:49]free content buf [17:51:49]Sock 9.Close socket [17:51:49]Sock 9.Thread stoped [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:10]accept exits with 7 [17:53:10]New connection [17:53:10]New thread 3067489636 created [17:53:10]Thread 3067632996 joined [17:53:10]Waiting for new connection... [17:53:10] Sock 7.Parse request [17:53:10]Sock 7.Check first char [17:53:10]Sock 7.First char is OK [17:53:10]request: POST /json_proto HTTP/1.0 [17:53:10]Method: POST [17:53:10]URL: /json_proto [17:53:10]Method is POST - this is cgi request [17:53:10]url: /json_proto [17:53:10]query_string will be loaded in cgi processing [17:53:10]execute_cgi json_proto POST (null) [17:53:10]execute_cgi path=json_proto method=POST [17:53:10]POST find Content-Length [17:53:10]Host: 172.17.53.195:8080 [17:53:10]Content-Length: 675 [17:53:10]Content-Type: application/json [17:53:10] [17:53:10]POST finish read [17:53:10]Found Content-Length = 675 [17:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:10]execute_script... [17:53:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:10]POST & json_proto [17:53:10]process_json_proto [17:53:10]json parsed OK: [17:53:10]protocol is kg_v1.0 [17:53:10]action value=close_receipt [17:53:10]process_action close_receipt [17:53:10]cmd_close_receipt [17:53:10]MH_GetDate [17:53:10]Write to MH i2c: F0 00 00 3F 03 31 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: F0 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: F0 09 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: F0 09 00 3F 03 00 87 E6 17 67 21 48 4A 65 3D [17:53:10]GetLastDocTimeStamp 1729619505 [17:53:10]current date 1729619591 [17:53:10]FM_GetShiftState [17:53:10]SAM_PROTO_GetShiftState [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 13 01 00 [17:53:10]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0E 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 13 [17:53:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:53:10]wFMCommunicate OK [17:53:10]SAM_PROTO_GetShiftState done [17:53:10]FM_GetShiftState done [17:53:10]opened in 1729557463 [17:53:10]opened+sec_in_day 1729643863 [17:53:10]quantity*price = 80010 [17:53:10]sum+1 = 80011 [17:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 251 22.10.2024 17:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166496 ФПД: 107682227989246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175311&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166496&fm=107682227989246&tin=02508201610067®Number=0000000000091764&sum=80000 [17:53:11]StoreToDocumentArchive [17:53:11]shift 536 fd 166496 [17:53:11]save to /storage/0536/doc_00166496 [17:53:11]save last doc name /storage/0536/doc_00166496 to /storage/kkm_last_doc_name [17:53:11]save OK [17:53:11]Clear old archive folders... [17:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:11]tlvbuf is 011F6D80 [17:53:11]SAM_PROTO_ClearQueue [17:53:11]wFMCommunicate request_size=4 [17:53:11]MH_SAM_APDU [17:53:11]CAPDU: 80 09 00 00 [17:53:11]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [17:53:11]Write i2c OK [17:53:11]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [17:53:12]RAPDU: 90 00 [17:53:12]wFMCommunicate OK [17:53:12]SAM_PROTO_ClearQueue done [17:53:12]KKMCreateOFDPacket [17:53:12]OFDProtocolAddRootSTLVToBuf [17:53:12]FM_MakeSignedData [17:53:12]FM_MakeSignedData [17:53:12]SAM_PROTO_SignData [17:53:12]wFMCommunicate request_size=4 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 0D 01 02 [17:53:12]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [17:53:12]RAPDU: 90 00 [17:53:12]wFMCommunicate OK [17:53:12]wFMCommunicate request_size=255 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 87 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8A 02 00 35 04 06 00 61 EF B8 F2 [17:53:12]Write to MH i2c: E2 02 01 4F 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 87 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8A 02 00 35 04 06 00 61 EF B8 F2 00 00 6F [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [17:53:12]RAPDU: 90 00 [17:53:12]wFMCommunicate OK [17:53:12]wFMCommunicate request_size=7 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 0D 02 02 02 AA FE [17:53:12]Write to MH i2c: E2 0A 00 50 03 80 0D 02 02 02 00 AA FE 00 00 79 [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [17:53:12]RAPDU: 90 00 [17:53:12]wFMCommunicate OK [17:53:12]wFMCommunicate request_size=4 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 0D 03 02 [17:53:12]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 0B 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 0B 00 51 03 00 C4 22 4A D9 8F 3D 94 A3 90 00 DC [17:53:12]RAPDU: C4 22 4A D9 8F 3D 94 A3 90 00 [17:53:12]wFMCommunicate OK [17:53:12]SAM_PROTO_SignData done [17:53:12]FM_MakeSignedData done [17:53:12]CreateOFDProtocolMessage [17:53:12]wFMCommunicate request_size=4 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 11 00 00 [17:53:12]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 17 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [17:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:53:12]wFMCommunicate OK [17:53:12]CreateOFDProtocolMessage done [17:53:12]OFDSenderStorePacket 166496 [17:53:12]StoreOFDPacket docnum=166496 [17:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D3 45 04 01 68 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 87 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8A 02 00 35 04 06 00 61 EF B8 F2 AA FE C4 22 4A D9 8F 3D 94 A3 [17:53:12]CheckFolder [17:53:12]dirname=/storage/ofd_packets [17:53:12]CheckFolder done [17:53:12]ProducePacketName [17:53:12]name=ofd_packets/00166496 [17:53:12]NVStorageSaveData ofd_packets/00166496 [17:53:12]File name is /storage/ofd_packets/00166496 [17:53:12]Write 298 bytes [17:53:12]NVStorageSaveData done [17:53:12]OFDSenderStorePacket done [17:53:12]KKMCreateOFDPacket done [17:53:12]NVStorageSaveData kkm_last_timestamp [17:53:12]File name is /storage/kkm_last_timestamp [17:53:12]Write 4 bytes [17:53:12]NVStorageSaveData done [17:53:12]ExternCall_PrintAddStr [17:53:12]wPrintStart [17:53:12]Write to MH i2c: 01 00 00 53 03 56 [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: 01 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: 01 07 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [17:53:12]RasterBufferAndPrint [17:53:12]line Счет N : (1)221077 [17:53:12]line ИНН: 02508201610067 [17:53:12]line Контрольно-Кассовый Чек [17:53:12]line ПРОДАЖА [17:53:12]line ТРК (МРК, ГНК) : 21 [17:53:12]line Товар: 2710194210 [17:53:12]line ДТ-К-5 [17:53:12]line 10.500 * 76.20 [17:53:12]line = 800.10 [17:53:12]line НДС 12% НСП 1% [17:53:12]line > о реализуемом товаре [17:53:12]line ОКРУГЛЕНИЕ: -0.10 [17:53:12]line ИТОГО: 800.00 [17:53:12]line Внесено: 800.00 [17:53:12]line СДАЧА: 0.00 [17:53:12]line НСП 1% : 7.08 [17:53:12]line НДС 12% : 84.97 [17:53:12]line Наличными: 800.00 [17:53:12]line Безнал.: 0.00 [17:53:12]line Место: АЗС № 161 "Партнер Нефть" [17:53:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:53:12]line СНО: Общий режим [17:53:12]line Чек 251 22.10.2024 17:53 [17:53:12]line Смена: 536 ФФД: 1.0 [17:53:12]line ЗНМ: 0300000104 [17:53:12]line РНМ: 0000000000091764 [17:53:12]line Версия ККМ: 001 [17:53:12]line ФМ: 0000000000871759 [17:53:12]line ФД: 166496 [17:53:12]line ФПД: 107682227989246 [17:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175311&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166496&fm=107682227989246&tin=02508201610067®Number=0000000000091764&sum=80000 [17:53:12]OFD Sender: Processing packet 166496 [packets to send 48, broken 47] [17:53:12]ProducePacketName [17:53:12]name=ofd_packets/00166496 [17:53:12]OFD Sender: To server: pG, [17:53:12]CommunicateWithHost lk.salyk.kg:30040 [17:53:12]ConnectInit lk.salyk.kg [17:53:12]written 0, free lines is 4095 [17:53:12]Connected sock=10 [17:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D3 45 04 01 68 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 87 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8A 02 00 35 04 06 00 61 EF B8 F2 AA FE C4 22 4A D9 8F 3D 94 A3 [17:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 87 47 00 E3 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 8A 02 00 F4 03 04 00 F1 8C 17 67 B6 04 01 00 00 98 ED B7 0C 1D CE 99 4E [17:53:13]CommunicateWithHost err = 0 [17:53:13]CheckOFDResponse [17:53:13]1017 (14) - 77093643461234 [17:53:13]1041 (16) - 0000000000871759 [17:53:13]1040 (4) - 166496 [17:53:13]1012 (4) - 22.10.2024 11:30 [17:53:13]1206 (1) - 0 [17:53:13]OFD Sender: Remove packet 166496 [17:53:13]ProducePacketName [17:53:13]name=ofd_packets/00166496 [17:53:13]NVStorageDeleteData [17:53:13]Write to MH i2c: 01 00 00 7E 03 81 [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: 01 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: 01 07 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 C6 0C 5A [17:53:13]RasterBufferAndPrint [17:53:13]line [17:53:13]line [17:53:13]line [17:53:13]line [17:53:13]line [17:53:13]written 0, free lines is 3276 [17:53:13]MH_Cut [17:53:13]Write to MH i2c: D1 01 00 85 03 01 5A [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: D1 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: D1 01 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: D1 01 00 85 03 00 59 [17:53:13]Write to MH i2c: 01 00 00 86 03 89 [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]OFD Sender: No OFD packet to send [17:53:14]*** Cut start [17:53:14]*** Partial cut [17:53:14]*** CUTSNS_PIN = 1 [17:53:14]*** CUTSNS_PIN = 0 [17:53:14]*** Brake cut motor [17:53:14]Read from MH i2c: 01 [17:53:14]MH_I2C_Read... [17:53:14]*** Stop cut motor [17:53:14]*** Cut end [17:53:14]Read from MH i2c: 01 07 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [17:53:14]process_action close_receipt done [17:53:14]requested_data is exist [17:53:14]produce_requested_data [17:53:14]requested_item fm.sn is exist - process it [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 11 00 00 [17:53:14]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 17 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [17:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:53:14]wFMCommunicate OK [17:53:14]requested_item fd.num is exist - process it [17:53:14]SAM_PROTO_GetFieldsCounters [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 13 00 00 [17:53:14]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 62 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 62 00 88 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:14]wFMCommunicate OK [17:53:14]SAM_PROTO_GetFieldsCounters done [17:53:14]requested_item shift.num is exist - process it [17:53:14]requested_item shift.opened is exist - process it [17:53:14]req_shift_opened [17:53:14]FM_GetShiftState [17:53:14]SAM_PROTO_GetShiftState [17:53:14]wFMCommunicate request_size=4 [17:53:14]MH_SAM_APDU [17:53:14]CAPDU: 80 13 01 00 [17:53:14]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [17:53:14]Write i2c OK [17:53:14]MH_I2C_Read... [17:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:14]Read from MH i2c: E2 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0E 00 [17:53:14]MH_I2C_Read... [17:53:14]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5C [17:53:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:53:14]wFMCommunicate OK [17:53:14]SAM_PROTO_GetShiftState done [17:53:14]FM_GetShiftState done [17:53:14]req_shift_opened done [17:53:14]requested_item shift.open_date is exist - process it [17:53:14]req_shift_open_date [17:53:14]req_shift_open_date done [17:53:14]produce_requested_data done [17:53:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166496,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:53:14]process_action_free close_receipt [17:53:14]json_value_free [17:53:14]json_value_free done [17:53:14]process_json_proto returns [17:53:14]Send response to host [17:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166496,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:53:14]free response buf [17:53:14]execute_script done [17:53:14]execute_script returns [17:53:14]free content buf [17:53:14]Sock 7.Close socket [17:53:14]Sock 7.Thread stoped [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:40]accept exits with 9 [17:54:40]New connection [17:54:40]New thread 3067632996 created [17:54:40]Thread 3067489636 joined [17:54:40]Waiting for new connection... [17:54:40] Sock 9.Parse request [17:54:40]Sock 9.Check first char [17:54:40]Sock 9.First char is OK [17:54:40]request: POST /json_proto HTTP/1.0 [17:54:40]Method: POST [17:54:40]URL: /json_proto [17:54:40]Method is POST - this is cgi request [17:54:40]url: /json_proto [17:54:40]query_string will be loaded in cgi processing [17:54:40]execute_cgi json_proto POST (null) [17:54:40]execute_cgi path=json_proto method=POST [17:54:40]POST find Content-Length [17:54:40]Host: 172.17.53.195:8080 [17:54:40]Content-Length: 677 [17:54:40]Content-Type: application/json [17:54:40] [17:54:40]POST finish read [17:54:40]Found Content-Length = 677 [17:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:40]execute_script... [17:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:40]POST & json_proto [17:54:40]process_json_proto [17:54:40]json parsed OK: [17:54:40]protocol is kg_v1.0 [17:54:40]action value=close_receipt [17:54:40]process_action close_receipt [17:54:40]cmd_close_receipt [17:54:40]MH_GetDate [17:54:40]Write to MH i2c: F0 00 00 8A 03 7C [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: F0 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: F0 09 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: F0 09 00 8A 03 00 E0 E6 17 67 21 48 4A 65 E1 [17:54:40]GetLastDocTimeStamp 1729619591 [17:54:40]current date 1729619680 [17:54:40]FM_GetShiftState [17:54:40]SAM_PROTO_GetShiftState [17:54:40]wFMCommunicate request_size=4 [17:54:40]MH_SAM_APDU [17:54:40]CAPDU: 80 13 01 00 [17:54:40]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:40]Read from MH i2c: E2 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 0E 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5E [17:54:40]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:54:40]wFMCommunicate OK [17:54:40]SAM_PROTO_GetShiftState done [17:54:40]FM_GetShiftState done [17:54:40]opened in 1729557463 [17:54:40]opened+sec_in_day 1729643863 [17:54:40]quantity*price = 50041 [17:54:40]sum+1 = 50042 [17:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 252 22.10.2024 17:54 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166497 ФПД: 3913462830811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166497&fm=3913462830811&tin=02508201610067®Number=0000000000091764&sum=50000 [17:54:41]StoreToDocumentArchive [17:54:41]shift 536 fd 166497 [17:54:41]save to /storage/0536/doc_00166497 [17:54:41]save last doc name /storage/0536/doc_00166497 to /storage/kkm_last_doc_name [17:54:41]save OK [17:54:41]Clear old archive folders... [17:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:41]tlvbuf is B6E4E3E0 [17:54:41]SAM_PROTO_ClearQueue [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 09 00 00 [17:54:41]Write to MH i2c: E2 08 00 98 03 80 09 00 00 00 00 00 00 0D [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]SAM_PROTO_ClearQueue done [17:54:41]KKMCreateOFDPacket [17:54:41]OFDProtocolAddRootSTLVToBuf [17:54:41]FM_MakeSignedData [17:54:41]FM_MakeSignedData [17:54:41]SAM_PROTO_SignData [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 01 02 [17:54:41]Write to MH i2c: E2 08 00 99 03 80 0D 01 02 00 00 00 00 15 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=255 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8A 02 00 35 04 06 00 03 [17:54:41]Write to MH i2c: E2 02 01 9A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8A 02 00 35 04 06 00 03 00 00 F5 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=10 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 02 02 05 8F 2C 8F D6 DB [17:54:41]Write to MH i2c: E2 0D 00 9B 03 80 0D 02 02 05 00 8F 2C 8F D6 DB 00 00 1D [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 03 02 [17:54:41]Write to MH i2c: E2 08 00 9C 03 80 0D 03 02 00 00 00 00 1A [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0B 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0B 00 9C 03 00 4F CE 60 C9 43 E1 F0 17 90 00 8C [17:54:41]RAPDU: 4F CE 60 C9 43 E1 F0 17 90 00 [17:54:41]wFMCommunicate OK [17:54:41]SAM_PROTO_SignData done [17:54:41]FM_MakeSignedData done [17:54:41]CreateOFDProtocolMessage [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 11 00 00 [17:54:41]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 17 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [17:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:54:41]wFMCommunicate OK [17:54:41]CreateOFDProtocolMessage done [17:54:41]OFDSenderStorePacket 166497 [17:54:41]StoreOFDPacket docnum=166497 [17:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 DC 07 01 11 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8A 02 00 35 04 06 00 03 8F 2C 8F D6 DB 4F CE 60 C9 43 E1 F0 17 [17:54:41]CheckFolder [17:54:41]dirname=/storage/ofd_packets [17:54:41]CheckFolder done [17:54:41]ProducePacketName [17:54:41]name=ofd_packets/00166497 [17:54:41]NVStorageSaveData ofd_packets/00166497 [17:54:41]File name is /storage/ofd_packets/00166497 [17:54:41]Write 301 bytes [17:54:41]NVStorageSaveData done [17:54:41]OFDSenderStorePacket done [17:54:41]KKMCreateOFDPacket done [17:54:41]NVStorageSaveData kkm_last_timestamp [17:54:41]File name is /storage/kkm_last_timestamp [17:54:41]Write 4 bytes [17:54:41]NVStorageSaveData done [17:54:41]ExternCall_PrintAddStr [17:54:41]wPrintStart [17:54:41]Write to MH i2c: 01 00 00 9E 03 A1 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [17:54:41]RasterBufferAndPrint [17:54:41]line Счет N : (1)221078 [17:54:41]line ИНН: 02508201610067 [17:54:41]line Контрольно-Кассовый Чек [17:54:41]line ПРОДАЖА [17:54:41]line ТРК (МРК, ГНК) : 13 [17:54:41]line Товар: 2710124130 [17:54:41]line Аи-92-К-5 [17:54:41]line 7.480 * 66.90 [17:54:41]line = 500.41 [17:54:41]line НДС 12% НСП 1% [17:54:41]line > о реализуемом товаре [17:54:41]line ОКРУГЛЕНИЕ: -0.41 [17:54:41]line ИТОГО: 500.00 [17:54:41]line Внесено: 500.00 [17:54:41]line СДАЧА: 0.00 [17:54:41]line НСП 1% : 4.43 [17:54:41]line НДС 12% : 53.14 [17:54:41]line Наличными: 500.00 [17:54:41]line Безнал.: 0.00 [17:54:41]line Место: АЗС № 161 "Партнер Нефть" [17:54:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:54:41]line СНО: Общий режим [17:54:41]line Чек 252 22.10.2024 17:54 [17:54:41]line Смена: 536 ФФД: 1.0 [17:54:41]line ЗНМ: 0300000104 [17:54:41]line РНМ: 0000000000091764 [17:54:41]line Версия ККМ: 001 [17:54:41]line ФМ: 0000000000871759 [17:54:41]line ФД: 166497 [17:54:41]line ФПД: 3913462830811 [17:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166497&fm=3913462830811&tin=02508201610067®Number=0000000000091764&sum=50000 [17:54:42]OFD Sender: Processing packet 166497 [packets to send 48, broken 47] [17:54:42]ProducePacketName [17:54:42]name=ofd_packets/00166497 [17:54:42]OFD Sender: To server: pG, [17:54:42]CommunicateWithHost lk.salyk.kg:30040 [17:54:42]ConnectInit lk.salyk.kg [17:54:42]written 0, free lines is 4095 [17:54:42]Connected sock=10 [17:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 DC 07 01 11 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 E6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8A 02 00 35 04 06 00 03 8F 2C 8F D6 DB 4F CE 60 C9 43 E1 F0 17 [17:54:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 8F 47 00 29 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 8A 02 00 F4 03 04 00 4A 8D 17 67 B6 04 01 00 00 50 59 44 FD 8D D4 F7 F8 [17:54:42]CommunicateWithHost err = 0 [17:54:42]CheckOFDResponse [17:54:42]1017 (14) - 77093643461234 [17:54:42]1041 (16) - 0000000000871759 [17:54:42]1040 (4) - 166497 [17:54:42]1012 (4) - 22.10.2024 11:32 [17:54:42]1206 (1) - 0 [17:54:42]OFD Sender: Remove packet 166497 [17:54:42]ProducePacketName [17:54:42]name=ofd_packets/00166497 [17:54:42]NVStorageDeleteData [17:54:42]Write to MH i2c: 01 00 00 C9 03 CC [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 BB 0C 9A [17:54:42]RasterBufferAndPrint [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]written 0, free lines is 3267 [17:54:42]MH_Cut [17:54:42]Write to MH i2c: D1 01 00 D0 03 01 A5 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 01 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 01 00 D0 03 00 A4 [17:54:42]Write to MH i2c: 01 00 00 D1 03 D4 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]OFD Sender: No OFD packet to send [17:54:43]*** Cut start [17:54:43]*** Partial cut [17:54:43]*** CUTSNS_PIN = 1 [17:54:43]*** CUTSNS_PIN = 0 [17:54:43]*** Brake cut motor [17:54:43]Read from MH i2c: 01 [17:54:43]MH_I2C_Read... [17:54:43]*** Stop cut motor [17:54:43]*** Cut end [17:54:43]Read from MH i2c: 01 07 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [17:54:43]process_action close_receipt done [17:54:43]requested_data is exist [17:54:43]produce_requested_data [17:54:43]requested_item fm.sn is exist - process it [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 11 00 00 [17:54:43]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [17:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:54:44]wFMCommunicate OK [17:54:44]requested_item fd.num is exist - process it [17:54:44]SAM_PROTO_GetFieldsCounters [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 13 00 00 [17:54:44]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 62 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 62 00 D3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [17:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_GetFieldsCounters done [17:54:44]requested_item shift.num is exist - process it [17:54:44]requested_item shift.opened is exist - process it [17:54:44]req_shift_opened [17:54:44]FM_GetShiftState [17:54:44]SAM_PROTO_GetShiftState [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 13 01 00 [17:54:44]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0E 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A7 [17:54:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_GetShiftState done [17:54:44]FM_GetShiftState done [17:54:44]req_shift_opened done [17:54:44]requested_item shift.open_date is exist - process it [17:54:44]req_shift_open_date [17:54:44]req_shift_open_date done [17:54:44]produce_requested_data done [17:54:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166497,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:54:44]process_action_free close_receipt [17:54:44]json_value_free [17:54:44]json_value_free done [17:54:44]process_json_proto returns [17:54:44]Send response to host [17:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166497,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:54:44]free response buf [17:54:44]execute_script done [17:54:44]execute_script returns [17:54:44]free content buf [17:54:44]Sock 9.Close socket [17:54:44]Sock 9.Thread stoped [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:56]accept exits with 7 [17:58:56]New connection [17:58:56]New thread 3067489636 created [17:58:56]Thread 3067632996 joined [17:58:56]Waiting for new connection... [17:58:56] Sock 7.Parse request [17:58:56]Sock 7.Check first char [17:58:56]Sock 7.First char is OK [17:58:56]request: POST /json_proto HTTP/1.0 [17:58:56]Method: POST [17:58:56]URL: /json_proto [17:58:56]Method is POST - this is cgi request [17:58:56]url: /json_proto [17:58:56]query_string will be loaded in cgi processing [17:58:56]execute_cgi json_proto POST (null) [17:58:56]execute_cgi path=json_proto method=POST [17:58:56]POST find Content-Length [17:58:56]Host: 172.17.53.195:8080 [17:58:56]Content-Length: 674 [17:58:56]Content-Type: application/json [17:58:56] [17:58:56]POST finish read [17:58:56]Found Content-Length = 674 [17:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:56]execute_script... [17:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:56]POST & json_proto [17:58:56]process_json_proto [17:58:56]json parsed OK: [17:58:56]protocol is kg_v1.0 [17:58:56]action value=close_receipt [17:58:56]process_action close_receipt [17:58:56]cmd_close_receipt [17:58:56]MH_GetDate [17:58:56]Write to MH i2c: F0 00 00 D5 03 C7 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 09 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 09 00 D5 03 00 E0 E7 17 67 21 48 4A 65 2D [17:58:56]GetLastDocTimeStamp 1729619680 [17:58:56]current date 1729619936 [17:58:56]FM_GetShiftState [17:58:56]SAM_PROTO_GetShiftState [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 01 00 [17:58:56]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A9 [17:58:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_GetShiftState done [17:58:56]FM_GetShiftState done [17:58:56]opened in 1729557463 [17:58:56]opened+sec_in_day 1729643863 [17:58:56]quantity*price = 50063 [17:58:56]sum+1 = 50064 [17:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 253 22.10.2024 17:58 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166498 ФПД: 195504103432036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166498&fm=195504103432036&tin=02508201610067®Number=0000000000091764&sum=50000 [17:58:57]StoreToDocumentArchive [17:58:57]shift 536 fd 166498 [17:58:57]save to /storage/0536/doc_00166498 [17:58:57]save last doc name /storage/0536/doc_00166498 to /storage/kkm_last_doc_name [17:58:57]save OK [17:58:57]Clear old archive folders... [17:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:57]tlvbuf is 011EF260 [17:58:57]SAM_PROTO_ClearQueue [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 09 00 00 [17:58:57]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_ClearQueue done [17:58:57]KKMCreateOFDPacket [17:58:57]OFDProtocolAddRootSTLVToBuf [17:58:57]FM_MakeSignedData [17:58:57]FM_MakeSignedData [17:58:57]SAM_PROTO_SignData [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 01 02 [17:58:57]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=255 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E0 E7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8A 02 00 35 04 06 00 B1 CF 58 A3 [17:58:57]Write to MH i2c: E2 02 01 E5 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E0 E7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8A 02 00 35 04 06 00 B1 CF 58 A3 00 00 39 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=7 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 02 02 02 1F 64 [17:58:57]Write to MH i2c: E2 0A 00 E6 03 80 0D 02 02 02 00 1F 64 00 00 EA [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 03 02 [17:58:57]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 E7 03 00 12 DA 6A A3 2A A8 BB 7E 90 00 6A [17:58:57]RAPDU: 12 DA 6A A3 2A A8 BB 7E 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_SignData done [17:58:57]FM_MakeSignedData done [17:58:57]CreateOFDProtocolMessage [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:57]wFMCommunicate OK [17:58:57]CreateOFDProtocolMessage done [17:58:57]OFDSenderStorePacket 166498 [17:58:57]StoreOFDPacket docnum=166498 [17:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0A 8D 04 01 E6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E0 E7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8A 02 00 35 04 06 00 B1 CF 58 A3 1F 64 12 DA 6A A3 2A A8 BB 7E [17:58:57]CheckFolder [17:58:57]dirname=/storage/ofd_packets [17:58:57]CheckFolder done [17:58:57]ProducePacketName [17:58:57]name=ofd_packets/00166498 [17:58:57]NVStorageSaveData ofd_packets/00166498 [17:58:57]File name is /storage/ofd_packets/00166498 [17:58:57]Write 298 bytes [17:58:57]NVStorageSaveData done [17:58:57]OFDSenderStorePacket done [17:58:57]KKMCreateOFDPacket done [17:58:57]NVStorageSaveData kkm_last_timestamp [17:58:57]File name is /storage/kkm_last_timestamp [17:58:57]Write 4 bytes [17:58:57]NVStorageSaveData done [17:58:57]ExternCall_PrintAddStr [17:58:57]wPrintStart [17:58:57]Write to MH i2c: 01 00 00 E9 03 EC [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [17:58:57]RasterBufferAndPrint [17:58:57]line Счет N : (1)221079 [17:58:57]line ИНН: 02508201610067 [17:58:57]line Контрольно-Кассовый Чек [17:58:57]line ПРОДАЖА [17:58:57]line ТРК (МРК, ГНК) : 21 [17:58:57]line Товар: 2710194210 [17:58:57]line ДТ-К-5 [17:58:57]line 6.570 * 76.20 [17:58:57]line = 500.63 [17:58:57]line НДС 12% НСП 1% [17:58:57]line > о реализуемом товаре [17:58:57]line ОКРУГЛЕНИЕ: -0.63 [17:58:57]line ИТОГО: 500.00 [17:58:57]line Внесено: 500.00 [17:58:57]line СДАЧА: 0.00 [17:58:57]line НСП 1% : 4.43 [17:58:57]line НДС 12% : 53.16 [17:58:57]line Наличными: 500.00 [17:58:57]line Безнал.: 0.00 [17:58:57]line Место: АЗС № 161 "Партнер Нефть" [17:58:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:58:57]line СНО: Общий режим [17:58:57]line Чек 253 22.10.2024 17:58 [17:58:57]line Смена: 536 ФФД: 1.0 [17:58:57]line ЗНМ: 0300000104 [17:58:57]line РНМ: 0000000000091764 [17:58:57]line Версия ККМ: 001 [17:58:57]line ФМ: 0000000000871759 [17:58:57]line ФД: 166498 [17:58:57]line ФПД: 195504103432036 [17:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166498&fm=195504103432036&tin=02508201610067®Number=0000000000091764&sum=50000 [17:58:58]OFD Sender: Processing packet 166498 [packets to send 48, broken 47] [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00166498 [17:58:58]OFD Sender: To server: pG, [17:58:58]CommunicateWithHost lk.salyk.kg:30040 [17:58:58]ConnectInit lk.salyk.kg [17:58:58]written 0, free lines is 4095 [17:58:58]Connected sock=10 [17:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0A 8D 04 01 E6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E0 E7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8A 02 00 35 04 06 00 B1 CF 58 A3 1F 64 12 DA 6A A3 2A A8 BB 7E [17:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 08 70 47 00 96 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 8A 02 00 F4 03 04 00 4A 8E 17 67 B6 04 01 00 00 83 85 4E CB 2B 36 9E E7 [17:58:58]CommunicateWithHost err = 0 [17:58:58]CheckOFDResponse [17:58:58]1017 (14) - 77093643461234 [17:58:58]1041 (16) - 0000000000871759 [17:58:58]1040 (4) - 166498 [17:58:58]1012 (4) - 22.10.2024 11:36 [17:58:58]1206 (1) - 0 [17:58:58]OFD Sender: Remove packet 166498 [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00166498 [17:58:58]NVStorageDeleteData [17:58:58]Write to MH i2c: 01 00 00 14 04 18 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 C9 0C F4 [17:58:58]RasterBufferAndPrint [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]line [17:58:58]written 0, free lines is 3279 [17:58:58]MH_Cut [17:58:58]Write to MH i2c: D1 01 00 1B 04 01 F1 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 01 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: D1 01 00 1B 04 00 F0 [17:58:58]Write to MH i2c: 01 00 00 1C 04 20 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]OFD Sender: No OFD packet to send [17:58:59]*** Cut start [17:58:59]*** Partial cut [17:58:59]*** CUTSNS_PIN = 1 [17:58:59]*** CUTSNS_PIN = 0 [17:58:59]*** Brake cut motor [17:58:59]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]*** Stop cut motor [17:59:00]*** Cut end [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [17:59:00]process_action close_receipt done [17:59:00]requested_data is exist [17:59:00]produce_requested_data [17:59:00]requested_item fm.sn is exist - process it [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 11 00 00 [17:59:00]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [17:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:59:00]wFMCommunicate OK [17:59:00]requested_item fd.num is exist - process it [17:59:00]SAM_PROTO_GetFieldsCounters [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 00 00 [17:59:00]Write to MH i2c: E2 08 00 1E 04 80 13 00 00 00 00 00 00 9E [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 1E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetFieldsCounters done [17:59:00]requested_item shift.num is exist - process it [17:59:00]requested_item shift.opened is exist - process it [17:59:00]req_shift_opened [17:59:00]FM_GetShiftState [17:59:00]SAM_PROTO_GetShiftState [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 01 00 [17:59:00]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F3 [17:59:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetShiftState done [17:59:00]FM_GetShiftState done [17:59:00]req_shift_opened done [17:59:00]requested_item shift.open_date is exist - process it [17:59:00]req_shift_open_date [17:59:00]req_shift_open_date done [17:59:00]produce_requested_data done [17:59:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166498,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [17:59:00]process_action_free close_receipt [17:59:00]json_value_free [17:59:00]json_value_free done [17:59:00]process_json_proto returns [17:59:00]Send response to host [17:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166498,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [17:59:00]free response buf [17:59:00]execute_script done [17:59:00]execute_script returns [17:59:00]free content buf [17:59:00]Sock 7.Close socket [17:59:00]Sock 7.Thread stoped [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:49]accept exits with 9 [18:05:49]New connection [18:05:49]New thread 3067632996 created [18:05:49]Thread 3067489636 joined [18:05:49]Waiting for new connection... [18:05:49] Sock 9.Parse request [18:05:49]Sock 9.Check first char [18:05:49]Sock 9.First char is OK [18:05:49]request: POST /json_proto HTTP/1.0 [18:05:49]Method: POST [18:05:49]URL: /json_proto [18:05:49]Method is POST - this is cgi request [18:05:49]url: /json_proto [18:05:49]query_string will be loaded in cgi processing [18:05:49]execute_cgi json_proto POST (null) [18:05:49]execute_cgi path=json_proto method=POST [18:05:49]POST find Content-Length [18:05:49]Host: 172.17.53.195:8080 [18:05:49]Content-Length: 789 [18:05:49]Content-Type: application/json [18:05:49] [18:05:49]POST finish read [18:05:49]Found Content-Length = 789 [18:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:49]execute_script... [18:05:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:49]POST & json_proto [18:05:49]process_json_proto [18:05:49]json parsed OK: [18:05:49]protocol is kg_v1.0 [18:05:49]action value=close_receipt [18:05:49]process_action close_receipt [18:05:49]cmd_close_receipt [18:05:49]MH_GetDate [18:05:49]Write to MH i2c: F0 00 00 20 04 13 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: F0 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: F0 09 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: F0 09 00 20 04 00 7E E9 17 67 21 48 4A 65 19 [18:05:49]GetLastDocTimeStamp 1729619936 [18:05:49]current date 1729620350 [18:05:49]FM_GetShiftState [18:05:49]SAM_PROTO_GetShiftState [18:05:49]wFMCommunicate request_size=4 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 13 01 00 [18:05:49]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 0E 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F5 [18:05:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:05:49]wFMCommunicate OK [18:05:49]SAM_PROTO_GetShiftState done [18:05:49]FM_GetShiftState done [18:05:49]opened in 1729557463 [18:05:49]opened+sec_in_day 1729643863 [18:05:49]quantity*price = 0 [18:05:49]sum+1 = 1 [18:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 254 22.10.2024 18:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166499 ФПД: 255693538926656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180550&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166499&fm=255693538926656&tin=02508201610067®Number=0000000000091764&sum=0 [18:05:50]StoreToDocumentArchive [18:05:50]shift 536 fd 166499 [18:05:50]save to /storage/0536/doc_00166499 [18:05:50]save last doc name /storage/0536/doc_00166499 to /storage/kkm_last_doc_name [18:05:50]save OK [18:05:50]Clear old archive folders... [18:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:05:50]tlvbuf is 0120B8C0 [18:05:50]SAM_PROTO_ClearQueue [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 09 00 00 [18:05:50]Write to MH i2c: E2 08 00 2E 04 80 09 00 00 00 00 00 00 A4 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [18:05:51]RAPDU: 90 00 [18:05:51]wFMCommunicate OK [18:05:51]SAM_PROTO_ClearQueue done [18:05:51]KKMCreateOFDPacket [18:05:51]OFDProtocolAddRootSTLVToBuf [18:05:51]FM_MakeSignedData [18:05:51]FM_MakeSignedData [18:05:51]SAM_PROTO_SignData [18:05:51]wFMCommunicate request_size=4 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 0D 01 02 [18:05:51]Write to MH i2c: E2 08 00 2F 04 80 0D 01 02 00 00 00 00 AC [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [18:05:51]RAPDU: 90 00 [18:05:51]wFMCommunicate OK [18:05:51]wFMCommunicate request_size=255 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7E E9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8A 02 00 35 04 06 00 E8 8D 4A 8F [18:05:51]Write to MH i2c: E2 02 01 30 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7E E9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8A 02 00 35 04 06 00 E8 8D 4A 8F 00 00 2B [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [18:05:51]RAPDU: 90 00 [18:05:51]wFMCommunicate OK [18:05:51]wFMCommunicate request_size=7 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 0D 02 02 02 20 40 [18:05:51]Write to MH i2c: E2 0A 00 31 04 80 0D 02 02 02 00 20 40 00 00 13 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [18:05:51]RAPDU: 90 00 [18:05:51]wFMCommunicate OK [18:05:51]wFMCommunicate request_size=4 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 0D 03 02 [18:05:51]Write to MH i2c: E2 08 00 32 04 80 0D 03 02 00 00 00 00 B1 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0B 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0B 00 32 04 00 DB EB 4B C2 41 AD AD 9E 90 00 BE [18:05:51]RAPDU: DB EB 4B C2 41 AD AD 9E 90 00 [18:05:51]wFMCommunicate OK [18:05:51]SAM_PROTO_SignData done [18:05:51]FM_MakeSignedData done [18:05:51]CreateOFDProtocolMessage [18:05:51]wFMCommunicate request_size=4 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 11 00 00 [18:05:51]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 17 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [18:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:05:51]wFMCommunicate OK [18:05:51]CreateOFDProtocolMessage done [18:05:51]OFDSenderStorePacket 166499 [18:05:51]StoreOFDPacket docnum=166499 [18:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B7 42 04 01 1B A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7E E9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8A 02 00 35 04 06 00 E8 8D 4A 8F 20 40 DB EB 4B C2 41 AD AD 9E [18:05:51]CheckFolder [18:05:51]dirname=/storage/ofd_packets [18:05:51]CheckFolder done [18:05:51]ProducePacketName [18:05:51]name=ofd_packets/00166499 [18:05:51]NVStorageSaveData ofd_packets/00166499 [18:05:51]File name is /storage/ofd_packets/00166499 [18:05:51]Write 298 bytes [18:05:51]NVStorageSaveData done [18:05:51]OFDSenderStorePacket done [18:05:51]KKMCreateOFDPacket done [18:05:51]NVStorageSaveData kkm_last_timestamp [18:05:51]File name is /storage/kkm_last_timestamp [18:05:51]Write 4 bytes [18:05:51]NVStorageSaveData done [18:05:51]ExternCall_PrintAddStr [18:05:51]wPrintStart [18:05:51]Write to MH i2c: 01 00 00 34 04 38 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: 01 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: 01 07 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [18:05:51]RasterBufferAndPrint [18:05:51]line Счет N : (1)221080 [18:05:51]line ИНН: 02508201610067 [18:05:51]line Контрольно-Кассовый Чек [18:05:51]line ПРОДАЖА [18:05:51]line ТРК (МРК, ГНК) : 11 [18:05:51]line Товар: 2710194210 [18:05:51]line ДТ-К-5 [18:05:51]line 52.500 * 0.00 [18:05:51]line = 0.00 [18:05:51]line НДС 12% НСП 1% [18:05:51]line > о реализуемом товаре [18:05:51]line ИТОГО: 0.00 [18:05:51]line НСП 1% : 0.00 [18:05:51]line НДС 12% : 0.00 [18:05:51]line Наличными: 0.00 [18:05:51]line Безнал.: 0.00 [18:05:51]line Место: АЗС № 161 "Партнер Нефть" [18:05:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:05:51]line СНО: Общий режим [18:05:51]line Чек 254 22.10.2024 18:05 [18:05:51]line Смена: 536 ФФД: 1.0 [18:05:51]line ЗНМ: 0300000104 [18:05:51]line РНМ: 0000000000091764 [18:05:51]line Версия ККМ: 001 [18:05:51]line Талоны: Топливная Карта [18:05:51]line 85863 [18:05:51]line ФМ: 0000000000871759 [18:05:51]line ФД: 166499 [18:05:51]line ФПД: 255693538926656 [18:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180550&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166499&fm=255693538926656&tin=02508201610067®Number=0000000000091764&sum=0 [18:05:51]OFD Sender: Processing packet 166499 [packets to send 48, broken 47] [18:05:51]ProducePacketName [18:05:51]name=ofd_packets/00166499 [18:05:51]OFD Sender: To server: pG, [18:05:51]CommunicateWithHost lk.salyk.kg:30040 [18:05:51]ConnectInit lk.salyk.kg [18:05:51]written 0, free lines is 4095 [18:05:51]Connected sock=11 [18:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B7 42 04 01 1B A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7E E9 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8A 02 00 35 04 06 00 E8 8D 4A 8F 20 40 DB EB 4B C2 41 AD AD 9E [18:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B9 3E 47 00 8D 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 8A 02 00 F4 03 04 00 E8 8F 17 67 B6 04 01 00 00 0B AD 00 55 0C 05 9B B5 [18:05:52]CommunicateWithHost err = 0 [18:05:52]CheckOFDResponse [18:05:52]1017 (14) - 77093643461234 [18:05:52]1041 (16) - 0000000000871759 [18:05:52]1040 (4) - 166499 [18:05:52]1012 (4) - 22.10.2024 11:43 [18:05:52]1206 (1) - 0 [18:05:52]OFD Sender: Remove packet 166499 [18:05:52]ProducePacketName [18:05:52]name=ofd_packets/00166499 [18:05:52]NVStorageDeleteData [18:05:52]Write to MH i2c: 01 00 00 5E 04 62 [18:05:52]Write i2c OK [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: 01 [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: 01 07 00 [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 D0 0C 45 [18:05:52]RasterBufferAndPrint [18:05:52]line [18:05:52]line [18:05:52]line [18:05:52]line [18:05:52]line [18:05:52]written 0, free lines is 3286 [18:05:52]MH_Cut [18:05:52]Write to MH i2c: D1 01 00 65 04 01 3B [18:05:52]Write i2c OK [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: D1 [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: D1 01 00 [18:05:52]MH_I2C_Read... [18:05:52]Read from MH i2c: D1 01 00 65 04 00 3A [18:05:52]Write to MH i2c: 01 00 00 66 04 6A [18:05:52]Write i2c OK [18:05:52]MH_I2C_Read... [18:05:52]OFD Sender: No OFD packet to send [18:05:53]*** Cut start [18:05:53]*** Partial cut [18:05:53]*** CUTSNS_PIN = 1 [18:05:53]*** CUTSNS_PIN = 0 [18:05:53]*** Brake cut motor [18:05:53]Read from MH i2c: 01 [18:05:53]MH_I2C_Read... [18:05:53]*** Stop cut motor [18:05:53]*** Cut end [18:05:53]Read from MH i2c: 01 07 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 FF 0F 7F [18:05:53]process_action close_receipt done [18:05:53]requested_data is exist [18:05:53]produce_requested_data [18:05:53]requested_item fm.sn is exist - process it [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 11 00 00 [18:05:53]Write to MH i2c: E2 08 00 67 04 80 11 00 00 00 00 00 00 E5 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 67 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [18:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:05:53]wFMCommunicate OK [18:05:53]requested_item fd.num is exist - process it [18:05:53]SAM_PROTO_GetFieldsCounters [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 13 00 00 [18:05:53]Write to MH i2c: E2 08 00 68 04 80 13 00 00 00 00 00 00 E8 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 62 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 62 00 68 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [18:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_GetFieldsCounters done [18:05:53]requested_item shift.num is exist - process it [18:05:53]requested_item shift.opened is exist - process it [18:05:53]req_shift_opened [18:05:53]FM_GetShiftState [18:05:53]SAM_PROTO_GetShiftState [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 13 01 00 [18:05:53]Write to MH i2c: E2 08 00 69 04 80 13 01 00 00 00 00 00 EA [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0E 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0E 00 69 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [18:05:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_GetShiftState done [18:05:53]FM_GetShiftState done [18:05:53]req_shift_opened done [18:05:53]requested_item shift.open_date is exist - process it [18:05:53]req_shift_open_date [18:05:53]req_shift_open_date done [18:05:53]produce_requested_data done [18:05:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166499,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:05:53]process_action_free close_receipt [18:05:53]json_value_free [18:05:53]json_value_free done [18:05:53]process_json_proto returns [18:05:53]Send response to host [18:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166499,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:05:53]free response buf [18:05:53]execute_script done [18:05:53]execute_script returns [18:05:53]free content buf [18:05:53]Sock 9.Close socket [18:05:53]Sock 9.Thread stoped [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11: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:26]accept exits with 7 [18:11:26]New connection [18:11:26]New thread 3067489636 created [18:11:26]Thread 3067632996 joined [18:11:26]Waiting for new connection... [18:11:26] Sock 7.Parse request [18:11:26]Sock 7.Check first char [18:11:26]Sock 7.First char is OK [18:11:26]request: POST /json_proto HTTP/1.0 [18:11:26]Method: POST [18:11:26]URL: /json_proto [18:11:26]Method is POST - this is cgi request [18:11:26]url: /json_proto [18:11:26]query_string will be loaded in cgi processing [18:11:26]execute_cgi json_proto POST (null) [18:11:26]execute_cgi path=json_proto method=POST [18:11:26]POST find Content-Length [18:11:26]Host: 172.17.53.195:8080 [18:11:26]Content-Length: 682 [18:11:26]Content-Type: application/json [18:11:26] [18:11:26]POST finish read [18:11:26]Found Content-Length = 682 [18:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:26]execute_script... [18:11:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:26]POST & json_proto [18:11:26]process_json_proto [18:11:26]json parsed OK: [18:11:26]protocol is kg_v1.0 [18:11:26]action value=close_receipt [18:11:26]process_action close_receipt [18:11:26]cmd_close_receipt [18:11:26]MH_GetDate [18:11:26]Write to MH i2c: F0 00 00 6A 04 5D [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: F0 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: F0 09 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: F0 09 00 6A 04 00 CF EA 17 67 21 48 4A 65 B5 [18:11:26]GetLastDocTimeStamp 1729620350 [18:11:26]current date 1729620687 [18:11:26]FM_GetShiftState [18:11:26]SAM_PROTO_GetShiftState [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 13 01 00 [18:11:26]Write to MH i2c: E2 08 00 6B 04 80 13 01 00 00 00 00 00 EC [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 6B 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3F [18:11:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_GetShiftState done [18:11:26]FM_GetShiftState done [18:11:26]opened in 1729557463 [18:11:26]opened+sec_in_day 1729643863 [18:11:26]quantity*price = 100021 [18:11:26]sum+1 = 100023 [18:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 255 22.10.2024 18:11 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166500 ФПД: 260415524483784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166500&fm=260415524483784&tin=02508201610067®Number=0000000000091764&sum=100000 [18:11:27]StoreToDocumentArchive [18:11:27]shift 536 fd 166500 [18:11:27]save to /storage/0536/doc_00166500 [18:11:27]save last doc name /storage/0536/doc_00166500 to /storage/kkm_last_doc_name [18:11:27]save OK [18:11:27]Clear old archive folders... [18:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:27]tlvbuf is 011F6780 [18:11:27]SAM_PROTO_ClearQueue [18:11:27]wFMCommunicate request_size=4 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 09 00 00 [18:11:27]Write to MH i2c: E2 08 00 78 04 80 09 00 00 00 00 00 00 EE [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [18:11:28]RAPDU: 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_ClearQueue done [18:11:28]KKMCreateOFDPacket [18:11:28]OFDProtocolAddRootSTLVToBuf [18:11:28]FM_MakeSignedData [18:11:28]FM_MakeSignedData [18:11:28]SAM_PROTO_SignData [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 0D 01 02 [18:11:28]Write to MH i2c: E2 08 00 79 04 80 0D 01 02 00 00 00 00 F6 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [18:11:28]RAPDU: 90 00 [18:11:28]wFMCommunicate OK [18:11:28]wFMCommunicate request_size=255 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CF EA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8A 02 00 35 04 06 00 EC [18:11:28]Write to MH i2c: E2 02 01 7A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CF EA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8A 02 00 35 04 06 00 EC 00 00 D5 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [18:11:28]RAPDU: 90 00 [18:11:28]wFMCommunicate OK [18:11:28]wFMCommunicate request_size=10 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 0D 02 02 05 D8 B6 D4 B2 C8 [18:11:28]Write to MH i2c: E2 0D 00 7B 04 80 0D 02 02 05 00 D8 B6 D4 B2 C8 00 00 DF [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [18:11:28]RAPDU: 90 00 [18:11:28]wFMCommunicate OK [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 0D 03 02 [18:11:28]Write to MH i2c: E2 08 00 7C 04 80 0D 03 02 00 00 00 00 FB [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0B 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0B 00 7C 04 00 51 44 22 9B A5 CE 1C B0 90 00 8D [18:11:28]RAPDU: 51 44 22 9B A5 CE 1C B0 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_SignData done [18:11:28]FM_MakeSignedData done [18:11:28]CreateOFDProtocolMessage [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 11 00 00 [18:11:28]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [18:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:28]wFMCommunicate OK [18:11:28]CreateOFDProtocolMessage done [18:11:28]OFDSenderStorePacket 166500 [18:11:28]StoreOFDPacket docnum=166500 [18:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 8A 07 01 F6 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CF EA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8A 02 00 35 04 06 00 EC D8 B6 D4 B2 C8 51 44 22 9B A5 CE 1C B0 [18:11:28]CheckFolder [18:11:28]dirname=/storage/ofd_packets [18:11:28]CheckFolder done [18:11:28]ProducePacketName [18:11:28]name=ofd_packets/00166500 [18:11:28]NVStorageSaveData ofd_packets/00166500 [18:11:28]File name is /storage/ofd_packets/00166500 [18:11:28]Write 301 bytes [18:11:28]NVStorageSaveData done [18:11:28]OFDSenderStorePacket done [18:11:28]KKMCreateOFDPacket done [18:11:28]NVStorageSaveData kkm_last_timestamp [18:11:28]File name is /storage/kkm_last_timestamp [18:11:28]Write 4 bytes [18:11:28]NVStorageSaveData done [18:11:28]ExternCall_PrintAddStr [18:11:28]wPrintStart [18:11:28]Write to MH i2c: 01 00 00 7E 04 82 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 FF 0F 97 [18:11:28]RasterBufferAndPrint [18:11:28]line Счет N : (1)221081 [18:11:28]line ИНН: 02508201610067 [18:11:28]line Контрольно-Кассовый Чек [18:11:28]line ПРОДАЖА [18:11:28]line ТРК (МРК, ГНК) : 14 [18:11:28]line Товар: 2710124500 [18:11:28]line Аи-95-К-5 [18:11:28]line 13.480 * 74.20 [18:11:28]line = 1000.22 [18:11:28]line НДС 12% НСП 1% [18:11:28]line > о реализуемом товаре [18:11:28]line ОКРУГЛЕНИЕ: -0.22 [18:11:28]line ИТОГО: 1000.00 [18:11:28]line Внесено: 1000.00 [18:11:28]line СДАЧА: 0.00 [18:11:28]line НСП 1% : 8.85 [18:11:28]line НДС 12% : 106.22 [18:11:28]line Наличными: 1000.00 [18:11:28]line Безнал.: 0.00 [18:11:28]line Место: АЗС № 161 "Партнер Нефть" [18:11:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:11:28]line СНО: Общий режим [18:11:28]line Чек 255 22.10.2024 18:11 [18:11:28]line Смена: 536 ФФД: 1.0 [18:11:28]line ЗНМ: 0300000104 [18:11:28]line РНМ: 0000000000091764 [18:11:28]line Версия ККМ: 001 [18:11:28]line ФМ: 0000000000871759 [18:11:28]line ФД: 166500 [18:11:28]line ФПД: 260415524483784 [18:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166500&fm=260415524483784&tin=02508201610067®Number=0000000000091764&sum=100000 [18:11:28]OFD Sender: Processing packet 166500 [packets to send 48, broken 47] [18:11:28]ProducePacketName [18:11:28]name=ofd_packets/00166500 [18:11:28]OFD Sender: To server: pG, [18:11:28]CommunicateWithHost lk.salyk.kg:30040 [18:11:28]ConnectInit lk.salyk.kg [18:11:28]written 0, free lines is 4095 [18:11:29]Connected sock=10 [18:11:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5E 8A 07 01 F6 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CF EA 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8A 02 00 35 04 06 00 EC D8 B6 D4 B2 C8 51 44 22 9B A5 CE 1C B0 [18:11:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AA 48 47 00 8C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 8A 02 00 F4 03 04 00 39 91 17 67 B6 04 01 00 00 A1 49 14 CD A9 83 1E F0 [18:11:29]CommunicateWithHost err = 0 [18:11:29]CheckOFDResponse [18:11:29]1017 (14) - 77093643461234 [18:11:29]1041 (16) - 0000000000871759 [18:11:29]1040 (4) - 166500 [18:11:29]1012 (4) - 22.10.2024 11:49 [18:11:29]1206 (1) - 0 [18:11:29]OFD Sender: Remove packet 166500 [18:11:29]ProducePacketName [18:11:29]name=ofd_packets/00166500 [18:11:29]NVStorageDeleteData [18:11:29]Write to MH i2c: 01 00 00 A9 04 AD [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: 01 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: 01 07 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: 01 07 00 A9 04 00 00 00 00 00 C6 0C 86 [18:11:29]RasterBufferAndPrint [18:11:29]line [18:11:29]line [18:11:29]line [18:11:29]line [18:11:29]line [18:11:29]written 0, free lines is 3276 [18:11:29]MH_Cut [18:11:29]Write to MH i2c: D1 01 00 B0 04 01 86 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: D1 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: D1 01 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: D1 01 00 B0 04 00 85 [18:11:29]Write to MH i2c: 01 00 00 B1 04 B5 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]OFD Sender: No OFD packet to send [18:11:30]*** Cut start [18:11:30]*** Partial cut [18:11:30]*** CUTSNS_PIN = 1 [18:11:30]*** CUTSNS_PIN = 0 [18:11:30]*** Brake cut motor [18:11:30]Read from MH i2c: 01 [18:11:30]MH_I2C_Read... [18:11:30]*** Stop cut motor [18:11:30]*** Cut end [18:11:30]Read from MH i2c: 01 07 00 [18:11:30]MH_I2C_Read... [18:11:30]Read from MH i2c: 01 07 00 B1 04 00 00 00 00 00 FF 0F CA [18:11:30]process_action close_receipt done [18:11:30]requested_data is exist [18:11:30]produce_requested_data [18:11:30]requested_item fm.sn is exist - process it [18:11:30]wFMCommunicate request_size=4 [18:11:30]MH_SAM_APDU [18:11:30]CAPDU: 80 11 00 00 [18:11:30]Write to MH i2c: E2 08 00 B2 04 80 11 00 00 00 00 00 00 30 [18:11:30]Write i2c OK [18:11:30]MH_I2C_Read... [18:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:30]Read from MH i2c: E2 [18:11:30]MH_I2C_Read... [18:11:30]Read from MH i2c: E2 17 00 [18:11:30]MH_I2C_Read... [18:11:30]Read from MH i2c: E2 17 00 B2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [18:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:30]wFMCommunicate OK [18:11:30]requested_item fd.num is exist - process it [18:11:30]SAM_PROTO_GetFieldsCounters [18:11:30]wFMCommunicate request_size=4 [18:11:30]MH_SAM_APDU [18:11:30]CAPDU: 80 13 00 00 [18:11:30]Write to MH i2c: E2 08 00 B3 04 80 13 00 00 00 00 00 00 33 [18:11:30]Write i2c OK [18:11:30]MH_I2C_Read... [18:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:30]Read from MH i2c: E2 [18:11:30]MH_I2C_Read... [18:11:30]Read from MH i2c: E2 62 00 [18:11:30]MH_I2C_Read... [18:11:30]Read from MH i2c: E2 62 00 B3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [18:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:30]wFMCommunicate OK [18:11:30]SAM_PROTO_GetFieldsCounters done [18:11:30]requested_item shift.num is exist - process it [18:11:30]requested_item shift.opened is exist - process it [18:11:30]req_shift_opened [18:11:30]FM_GetShiftState [18:11:30]SAM_PROTO_GetShiftState [18:11:30]wFMCommunicate request_size=4 [18:11:30]MH_SAM_APDU [18:11:30]CAPDU: 80 13 01 00 [18:11:30]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [18:11:30]Write i2c OK [18:11:30]MH_I2C_Read... [18:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:31]Read from MH i2c: E2 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 88 [18:11:31]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:11:31]wFMCommunicate OK [18:11:31]SAM_PROTO_GetShiftState done [18:11:31]FM_GetShiftState done [18:11:31]req_shift_opened done [18:11:31]requested_item shift.open_date is exist - process it [18:11:31]req_shift_open_date [18:11:31]req_shift_open_date done [18:11:31]produce_requested_data done [18:11:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166500,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:11:31]process_action_free close_receipt [18:11:31]json_value_free [18:11:31]json_value_free done [18:11:31]process_json_proto returns [18:11:31]Send response to host [18:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166500,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:11:31]free response buf [18:11:31]execute_script done [18:11:31]execute_script returns [18:11:31]free content buf [18:11:31]Sock 7.Close socket [18:11:31]Sock 7.Thread stoped [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:30]accept exits with 9 [18:14:30]New connection [18:14:30]New thread 3067632996 created [18:14:30]Thread 3067489636 joined [18:14:30]Waiting for new connection... [18:14:30] Sock 9.Parse request [18:14:30]Sock 9.Check first char [18:14:30]Sock 9.First char is OK [18:14:30]request: POST /json_proto HTTP/1.0 [18:14:30]Method: POST [18:14:30]URL: /json_proto [18:14:30]Method is POST - this is cgi request [18:14:30]url: /json_proto [18:14:30]query_string will be loaded in cgi processing [18:14:30]execute_cgi json_proto POST (null) [18:14:30]execute_cgi path=json_proto method=POST [18:14:30]POST find Content-Length [18:14:30]Host: 172.17.53.195:8080 [18:14:30]Content-Length: 766 [18:14:30]Content-Type: application/json [18:14:30] [18:14:30]POST finish read [18:14:30]Found Content-Length = 766 [18:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:30]execute_script... [18:14:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:30]POST & json_proto [18:14:30]process_json_proto [18:14:30]json parsed OK: [18:14:30]protocol is kg_v1.0 [18:14:30]action value=close_receipt [18:14:30]process_action close_receipt [18:14:30]cmd_close_receipt [18:14:30]MH_GetDate [18:14:30]Write to MH i2c: F0 00 00 B5 04 A8 [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: F0 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: F0 09 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: F0 09 00 B5 04 00 87 EB 17 67 21 48 4A 65 B9 [18:14:30]GetLastDocTimeStamp 1729620687 [18:14:30]current date 1729620871 [18:14:30]FM_GetShiftState [18:14:30]SAM_PROTO_GetShiftState [18:14:30]wFMCommunicate request_size=4 [18:14:30]MH_SAM_APDU [18:14:30]CAPDU: 80 13 01 00 [18:14:30]Write to MH i2c: E2 08 00 B6 04 80 13 01 00 00 00 00 00 37 [18:14:30]Write i2c OK [18:14:30]MH_I2C_Read... [18:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:30]Read from MH i2c: E2 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: E2 0E 00 [18:14:30]MH_I2C_Read... [18:14:30]Read from MH i2c: E2 0E 00 B6 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8A [18:14:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:14:30]wFMCommunicate OK [18:14:30]SAM_PROTO_GetShiftState done [18:14:30]FM_GetShiftState done [18:14:30]opened in 1729557463 [18:14:30]opened+sec_in_day 1729643863 [18:14:30]quantity*price = 20003 [18:14:30]sum+1 = 20004 [18:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 256 22.10.2024 18:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166501 ФПД: 188615051863339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181431&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166501&fm=188615051863339&tin=02508201610067®Number=0000000000091764&sum=20003 [18:14:31]StoreToDocumentArchive [18:14:31]shift 536 fd 166501 [18:14:31]save to /storage/0536/doc_00166501 [18:14:31]save last doc name /storage/0536/doc_00166501 to /storage/kkm_last_doc_name [18:14:31]save OK [18:14:31]Clear old archive folders... [18:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:31]tlvbuf is 0120AEF0 [18:14:31]SAM_PROTO_ClearQueue [18:14:31]wFMCommunicate request_size=4 [18:14:31]MH_SAM_APDU [18:14:31]CAPDU: 80 09 00 00 [18:14:31]Write to MH i2c: E2 08 00 C3 04 80 09 00 00 00 00 00 00 39 [18:14:31]Write i2c OK [18:14:31]MH_I2C_Read... [18:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:31]Read from MH i2c: E2 [18:14:31]MH_I2C_Read... [18:14:31]Read from MH i2c: E2 03 00 [18:14:31]MH_I2C_Read... [18:14:31]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [18:14:31]RAPDU: 90 00 [18:14:31]wFMCommunicate OK [18:14:31]SAM_PROTO_ClearQueue done [18:14:31]KKMCreateOFDPacket [18:14:31]OFDProtocolAddRootSTLVToBuf [18:14:31]FM_MakeSignedData [18:14:31]FM_MakeSignedData [18:14:31]SAM_PROTO_SignData [18:14:31]wFMCommunicate request_size=4 [18:14:31]MH_SAM_APDU [18:14:31]CAPDU: 80 0D 01 02 [18:14:31]Write to MH i2c: E2 08 00 C4 04 80 0D 01 02 00 00 00 00 41 [18:14:31]Write i2c OK [18:14:31]MH_I2C_Read... [18:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:31]Read from MH i2c: E2 [18:14:31]MH_I2C_Read... [18:14:31]Read from MH i2c: E2 03 00 [18:14:31]MH_I2C_Read... [18:14:31]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [18:14:31]RAPDU: 90 00 [18:14:31]wFMCommunicate OK [18:14:31]wFMCommunicate request_size=255 [18:14:31]MH_SAM_APDU [18:14:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 87 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8A 02 00 35 04 06 00 AB [18:14:31]Write to MH i2c: E2 02 01 C5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 87 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8A 02 00 35 04 06 00 AB 00 00 46 [18:14:31]Write i2c OK [18:14:31]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 03 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [18:14:32]RAPDU: 90 00 [18:14:32]wFMCommunicate OK [18:14:32]wFMCommunicate request_size=10 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 0D 02 02 05 8B 5D 2A 65 2B [18:14:32]Write to MH i2c: E2 0D 00 C6 04 80 0D 02 02 05 00 8B 5D 2A 65 2B 00 00 F0 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 03 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [18:14:32]RAPDU: 90 00 [18:14:32]wFMCommunicate OK [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 0D 03 02 [18:14:32]Write to MH i2c: E2 08 00 C7 04 80 0D 03 02 00 00 00 00 46 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0B 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0B 00 C7 04 00 A3 33 EB C4 0B D7 13 61 90 00 22 [18:14:32]RAPDU: A3 33 EB C4 0B D7 13 61 90 00 [18:14:32]wFMCommunicate OK [18:14:32]SAM_PROTO_SignData done [18:14:32]FM_MakeSignedData done [18:14:32]CreateOFDProtocolMessage [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 11 00 00 [18:14:32]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 17 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [18:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:32]wFMCommunicate OK [18:14:32]CreateOFDProtocolMessage done [18:14:32]OFDSenderStorePacket 166501 [18:14:32]StoreOFDPacket docnum=166501 [18:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 57 07 01 07 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 87 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8A 02 00 35 04 06 00 AB 8B 5D 2A 65 2B A3 33 EB C4 0B D7 13 61 [18:14:32]CheckFolder [18:14:32]dirname=/storage/ofd_packets [18:14:32]CheckFolder done [18:14:32]ProducePacketName [18:14:32]name=ofd_packets/00166501 [18:14:32]NVStorageSaveData ofd_packets/00166501 [18:14:32]File name is /storage/ofd_packets/00166501 [18:14:32]Write 301 bytes [18:14:32]NVStorageSaveData done [18:14:32]OFDSenderStorePacket done [18:14:32]KKMCreateOFDPacket done [18:14:32]NVStorageSaveData kkm_last_timestamp [18:14:32]File name is /storage/kkm_last_timestamp [18:14:32]Write 4 bytes [18:14:32]NVStorageSaveData done [18:14:32]ExternCall_PrintAddStr [18:14:32]wPrintStart [18:14:32]Write to MH i2c: 01 00 00 C9 04 CD [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 07 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [18:14:32]RasterBufferAndPrint [18:14:32]line Счет N : (1)221082 [18:14:32]line ИНН: 02508201610067 [18:14:32]line Контрольно-Кассовый Чек [18:14:32]line ПРОДАЖА [18:14:32]line ТРК (МРК, ГНК) : 13 [18:14:32]line Товар: 2710124130 [18:14:32]line Аи-92-К-5 [18:14:32]line 2.990 * 66.90 [18:14:32]line = 200.03 [18:14:32]line НДС 12% НСП 1% [18:14:32]line > о реализуемом товаре [18:14:32]line ИТОГО: 200.03 [18:14:32]line НСП 1% : 1.77 [18:14:32]line НДС 12% : 21.24 [18:14:32]line Наличными: 0.00 [18:14:32]line Безнал.: 200.03 [18:14:32]line Место: АЗС № 161 "Партнер Нефть" [18:14:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:14:32]line СНО: Общий режим [18:14:32]line Чек 256 22.10.2024 18:14 [18:14:32]line Смена: 536 ФФД: 1.0 [18:14:32]line ЗНМ: 0300000104 [18:14:32]line РНМ: 0000000000091764 [18:14:32]line Версия ККМ: 001 [18:14:32]line Платежная система: Mbank [18:14:32]line ФМ: 0000000000871759 [18:14:32]line ФД: 166501 [18:14:32]line ФПД: 188615051863339 [18:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181431&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166501&fm=188615051863339&tin=02508201610067®Number=0000000000091764&sum=20003 [18:14:32]written 0, free lines is 4095 [18:14:32]OFD Sender: Processing packet 166501 [packets to send 48, broken 47] [18:14:32]ProducePacketName [18:14:32]name=ofd_packets/00166501 [18:14:32]OFD Sender: To server: pG, [18:14:32]CommunicateWithHost lk.salyk.kg:30040 [18:14:32]ConnectInit lk.salyk.kg [18:14:32]Write to MH i2c: 01 00 00 F2 04 F6 [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 07 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 DC 0C E5 [18:14:32]RasterBufferAndPrint [18:14:32]line [18:14:32]line [18:14:32]line [18:14:32]line [18:14:32]line [18:14:32]written 0, free lines is 3298 [18:14:32]MH_Cut [18:14:32]Write to MH i2c: D1 01 00 F9 04 01 CF [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: D1 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: D1 01 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: D1 01 00 F9 04 00 CE [18:14:32]Write to MH i2c: 01 00 00 FA 04 FE [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Connected sock=10 [18: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 31 37 35 39 0F 01 00 00 7F 57 07 01 07 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 87 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8A 02 00 35 04 06 00 AB 8B 5D 2A 65 2B A3 33 EB C4 0B D7 13 61 [18:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF A1 47 00 4B 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 8A 02 00 F4 03 04 00 F1 91 17 67 B6 04 01 00 00 29 61 31 F6 B5 53 DF 84 [18:14:32]CommunicateWithHost err = 0 [18:14:32]CheckOFDResponse [18:14:32]1017 (14) - 77093643461234 [18:14:32]1041 (16) - 0000000000871759 [18:14:32]1040 (4) - 166501 [18:14:32]1012 (4) - 22.10.2024 11:52 [18:14:32]1206 (1) - 0 [18:14:32]OFD Sender: Remove packet 166501 [18:14:32]ProducePacketName [18:14:32]name=ofd_packets/00166501 [18:14:32]NVStorageDeleteData [18:14:33]OFD Sender: No OFD packet to send [18:14:33]*** Cut start [18:14:33]*** Partial cut [18:14:33]*** CUTSNS_PIN = 1 [18:14:33]*** CUTSNS_PIN = 0 [18:14:33]*** Brake cut motor [18:14:34]Read from MH i2c: 01 [18:14:34]MH_I2C_Read... [18:14:34]*** Stop cut motor [18:14:34]*** Cut end [18:14:34]Read from MH i2c: 01 07 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FF 0F 13 [18:14:34]process_action close_receipt done [18:14:34]requested_data is exist [18:14:34]produce_requested_data [18:14:34]requested_item fm.sn is exist - process it [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 11 00 00 [18:14:34]Write to MH i2c: E2 08 00 FB 04 80 11 00 00 00 00 00 00 79 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 FB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [18:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:34]wFMCommunicate OK [18:14:34]requested_item fd.num is exist - process it [18:14:34]SAM_PROTO_GetFieldsCounters [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 13 00 00 [18:14:34]Write to MH i2c: E2 08 00 FC 04 80 13 00 00 00 00 00 00 7C [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 62 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 62 00 FC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:34]wFMCommunicate OK [18:14:34]SAM_PROTO_GetFieldsCounters done [18:14:34]requested_item shift.num is exist - process it [18:14:34]requested_item shift.opened is exist - process it [18:14:34]req_shift_opened [18:14:34]FM_GetShiftState [18:14:34]SAM_PROTO_GetShiftState [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 13 01 00 [18:14:34]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0E 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [18:14:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:14:34]wFMCommunicate OK [18:14:34]SAM_PROTO_GetShiftState done [18:14:34]FM_GetShiftState done [18:14:34]req_shift_opened done [18:14:34]requested_item shift.open_date is exist - process it [18:14:34]req_shift_open_date [18:14:34]req_shift_open_date done [18:14:34]produce_requested_data done [18:14:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166501,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:14:34]process_action_free close_receipt [18:14:34]json_value_free [18:14:34]json_value_free done [18:14:34]process_json_proto returns [18:14:34]Send response to host [18:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166501,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:14:34]free response buf [18:14:34]execute_script done [18:14:34]execute_script returns [18:14:34]free content buf [18:14:34]Sock 9.Close socket [18:14:34]Sock 9.Thread stoped [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:24]accept exits with 7 [18:16:24]New connection [18:16:24]New thread 3067489636 created [18:16:24]Thread 3067632996 joined [18:16:24]Waiting for new connection... [18:16:24] Sock 7.Parse request [18:16:24]Sock 7.Check first char [18:16:24]Sock 7.First char is OK [18:16:24]request: POST /json_proto HTTP/1.0 [18:16:24]Method: POST [18:16:24]URL: /json_proto [18:16:24]Method is POST - this is cgi request [18:16:24]url: /json_proto [18:16:24]query_string will be loaded in cgi processing [18:16:24]execute_cgi json_proto POST (null) [18:16:24]execute_cgi path=json_proto method=POST [18:16:24]POST find Content-Length [18:16:24]Host: 172.17.53.195:8080 [18:16:24]Content-Length: 679 [18:16:24]Content-Type: application/json [18:16:24] [18:16:24]POST finish read [18:16:24]Found Content-Length = 679 [18:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:24]execute_script... [18:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 36.750, "sum" : 2800.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:24]POST & json_proto [18:16:24]process_json_proto [18:16:24]json parsed OK: [18:16:24]protocol is kg_v1.0 [18:16:24]action value=close_receipt [18:16:24]process_action close_receipt [18:16:24]cmd_close_receipt [18:16:24]MH_GetDate [18:16:24]Write to MH i2c: F0 00 00 FE 04 F1 [18:16:24]Write i2c OK [18:16:24]MH_I2C_Read... [18:16:24]Read from MH i2c: F0 [18:16:24]MH_I2C_Read... [18:16:24]Read from MH i2c: F0 09 00 [18:16:24]MH_I2C_Read... [18:16:24]Read from MH i2c: F0 09 00 FE 04 00 F9 EB 17 67 21 48 4A 65 74 [18:16:24]GetLastDocTimeStamp 1729620871 [18:16:24]current date 1729620985 [18:16:24]FM_GetShiftState [18:16:24]SAM_PROTO_GetShiftState [18:16:24]wFMCommunicate request_size=4 [18:16:24]MH_SAM_APDU [18:16:24]CAPDU: 80 13 01 00 [18:16:24]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [18:16:24]Write i2c OK [18:16:24]MH_I2C_Read... [18:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:25]Read from MH i2c: E2 [18:16:25]MH_I2C_Read... [18:16:25]Read from MH i2c: E2 0E 00 [18:16:25]MH_I2C_Read... [18:16:25]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D3 [18:16:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:16:25]wFMCommunicate OK [18:16:25]SAM_PROTO_GetShiftState done [18:16:25]FM_GetShiftState done [18:16:25]opened in 1729557463 [18:16:25]opened+sec_in_day 1729643863 [18:16:25]quantity*price = 280035 [18:16:25]sum+1 = 280036 [18:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.38 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 257 22.10.2024 18:16 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166502 ФПД: 276756594307231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181625&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166502&fm=276756594307231&tin=02508201610067®Number=0000000000091764&sum=280000 [18:16:26]StoreToDocumentArchive [18:16:26]shift 536 fd 166502 [18:16:26]save to /storage/0536/doc_00166502 [18:16:26]save last doc name /storage/0536/doc_00166502 to /storage/kkm_last_doc_name [18:16:26]save OK [18:16:26]Clear old archive folders... [18:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:16:26]tlvbuf is 0120A6B0 [18:16:26]SAM_PROTO_ClearQueue [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 09 00 00 [18:16:26]Write to MH i2c: E2 08 00 0C 05 80 09 00 00 00 00 00 00 83 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [18:16:26]RAPDU: 90 00 [18:16:26]wFMCommunicate OK [18:16:26]SAM_PROTO_ClearQueue done [18:16:26]KKMCreateOFDPacket [18:16:26]OFDProtocolAddRootSTLVToBuf [18:16:26]FM_MakeSignedData [18:16:26]FM_MakeSignedData [18:16:26]SAM_PROTO_SignData [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 0D 01 02 [18:16:26]Write to MH i2c: E2 08 00 0D 05 80 0D 01 02 00 00 00 00 8B [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [18:16:26]RAPDU: 90 00 [18:16:26]wFMCommunicate OK [18:16:26]wFMCommunicate request_size=255 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8A 02 00 35 04 06 00 FB B5 6A 7E [18:16:26]Write to MH i2c: E2 02 01 0E 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8A 02 00 35 04 06 00 FB B5 6A 7E 00 00 88 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [18:16:26]RAPDU: 90 00 [18:16:26]wFMCommunicate OK [18:16:26]wFMCommunicate request_size=7 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 0D 02 02 02 30 9F [18:16:26]Write to MH i2c: E2 0A 00 0F 05 80 0D 02 02 02 00 30 9F 00 00 61 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [18:16:26]RAPDU: 90 00 [18:16:26]wFMCommunicate OK [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 0D 03 02 [18:16:26]Write to MH i2c: E2 08 00 10 05 80 0D 03 02 00 00 00 00 90 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 0B 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 0B 00 10 05 00 5F E0 39 38 53 01 07 02 90 00 9E [18:16:26]RAPDU: 5F E0 39 38 53 01 07 02 90 00 [18:16:26]wFMCommunicate OK [18:16:26]SAM_PROTO_SignData done [18:16:26]FM_MakeSignedData done [18:16:26]CreateOFDProtocolMessage [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 11 00 00 [18:16:26]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 17 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [18:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:16:26]wFMCommunicate OK [18:16:26]CreateOFDProtocolMessage done [18:16:26]OFDSenderStorePacket 166502 [18:16:26]StoreOFDPacket docnum=166502 [18:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E7 06 04 01 99 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8A 02 00 35 04 06 00 FB B5 6A 7E 30 9F 5F E0 39 38 53 01 07 02 [18:16:26]CheckFolder [18:16:26]dirname=/storage/ofd_packets [18:16:26]CheckFolder done [18:16:26]ProducePacketName [18:16:26]name=ofd_packets/00166502 [18:16:26]NVStorageSaveData ofd_packets/00166502 [18:16:26]File name is /storage/ofd_packets/00166502 [18:16:26]Write 298 bytes [18:16:26]NVStorageSaveData done [18:16:26]OFDSenderStorePacket done [18:16:26]KKMCreateOFDPacket done [18:16:26]NVStorageSaveData kkm_last_timestamp [18:16:26]File name is /storage/kkm_last_timestamp [18:16:26]Write 4 bytes [18:16:26]NVStorageSaveData done [18:16:26]ExternCall_PrintAddStr [18:16:26]wPrintStart [18:16:26]Write to MH i2c: 01 00 00 12 05 17 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: 01 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: 01 07 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [18:16:26]RasterBufferAndPrint [18:16:26]line Счет N : (1)221083 [18:16:26]line ИНН: 02508201610067 [18:16:26]line Контрольно-Кассовый Чек [18:16:26]line ПРОДАЖА [18:16:26]line ТРК (МРК, ГНК) : 41 [18:16:26]line Товар: 2710194210 [18:16:26]line ДТ-К-5 [18:16:26]line 36.750 * 76.20 [18:16:26]line = 2800.35 [18:16:26]line НДС 12% НСП 1% [18:16:26]line > о реализуемом товаре [18:16:26]line ОКРУГЛЕНИЕ: -0.35 [18:16:26]line ИТОГО: 2800.00 [18:16:26]line Внесено: 2800.00 [18:16:26]line СДАЧА: 0.00 [18:16:26]line НСП 1% : 24.78 [18:16:26]line НДС 12% : 297.38 [18:16:26]line Наличными: 2800.00 [18:16:26]line Безнал.: 0.00 [18:16:26]line Место: АЗС № 161 "Партнер Нефть" [18:16:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:16:26]line СНО: Общий режим [18:16:26]line Чек 257 22.10.2024 18:16 [18:16:26]line Смена: 536 ФФД: 1.0 [18:16:26]line ЗНМ: 0300000104 [18:16:26]line РНМ: 0000000000091764 [18:16:26]line Версия ККМ: 001 [18:16:26]line ФМ: 0000000000871759 [18:16:26]line ФД: 166502 [18:16:26]line ФПД: 276756594307231 [18:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181625&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166502&fm=276756594307231&tin=02508201610067®Number=0000000000091764&sum=280000 [18:16:27]OFD Sender: Processing packet 166502 [packets to send 48, broken 47] [18:16:27]ProducePacketName [18:16:27]name=ofd_packets/00166502 [18:16:27]OFD Sender: To server: pG, [18:16:27]CommunicateWithHost lk.salyk.kg:30040 [18:16:27]ConnectInit lk.salyk.kg [18:16:27]written 0, free lines is 4095 [18:16:27]Connected sock=11 [18:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E7 06 04 01 99 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E3 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 EB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8A 02 00 35 04 06 00 FB B5 6A 7E 30 9F 5F E0 39 38 53 01 07 02 [18:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BA 94 47 00 F4 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 8A 02 00 F4 03 04 00 63 92 17 67 B6 04 01 00 00 76 C5 58 2C B3 8A C7 77 [18:16:27]CommunicateWithHost err = 0 [18:16:27]CheckOFDResponse [18:16:27]1017 (14) - 77093643461234 [18:16:27]1041 (16) - 0000000000871759 [18:16:27]1040 (4) - 166502 [18:16:27]1012 (4) - 22.10.2024 11:54 [18:16:27]1206 (1) - 0 [18:16:27]OFD Sender: Remove packet 166502 [18:16:27]ProducePacketName [18:16:27]name=ofd_packets/00166502 [18:16:27]NVStorageDeleteData [18:16:27]Write to MH i2c: 01 00 00 3D 05 42 [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 C8 0C 1D [18:16:27]RasterBufferAndPrint [18:16:27]line [18:16:27]line [18:16:27]line [18:16:27]line [18:16:27]line [18:16:27]written 0, free lines is 3277 [18:16:27]MH_Cut [18:16:27]Write to MH i2c: D1 01 00 44 05 01 1B [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: D1 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: D1 01 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: D1 01 00 44 05 00 1A [18:16:27]Write to MH i2c: 01 00 00 45 05 4A [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]OFD Sender: No OFD packet to send [18:16:28]*** Cut start [18:16:28]*** Partial cut [18:16:28]*** CUTSNS_PIN = 1 [18:16:28]*** CUTSNS_PIN = 0 [18:16:28]*** Brake cut motor [18:16:28]Read from MH i2c: 01 [18:16:28]MH_I2C_Read... [18:16:28]*** Stop cut motor [18:16:28]*** Cut end [18:16:28]Read from MH i2c: 01 07 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [18:16:28]process_action close_receipt done [18:16:28]requested_data is exist [18:16:28]produce_requested_data [18:16:28]requested_item fm.sn is exist - process it [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 11 00 00 [18:16:28]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:28]Read from MH i2c: E2 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 17 00 [18:16:28]MH_I2C_Read... [18:16:28]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [18:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:16:28]wFMCommunicate OK [18:16:28]requested_item fd.num is exist - process it [18:16:28]SAM_PROTO_GetFieldsCounters [18:16:28]wFMCommunicate request_size=4 [18:16:28]MH_SAM_APDU [18:16:28]CAPDU: 80 13 00 00 [18:16:28]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [18:16:28]Write i2c OK [18:16:28]MH_I2C_Read... [18:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:29]Read from MH i2c: E2 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 62 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [18:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:29]wFMCommunicate OK [18:16:29]SAM_PROTO_GetFieldsCounters done [18:16:29]requested_item shift.num is exist - process it [18:16:29]requested_item shift.opened is exist - process it [18:16:29]req_shift_opened [18:16:29]FM_GetShiftState [18:16:29]SAM_PROTO_GetShiftState [18:16:29]wFMCommunicate request_size=4 [18:16:29]MH_SAM_APDU [18:16:29]CAPDU: 80 13 01 00 [18:16:29]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [18:16:29]Write i2c OK [18:16:29]MH_I2C_Read... [18:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:29]Read from MH i2c: E2 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 0E 00 [18:16:29]MH_I2C_Read... [18:16:29]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1D [18:16:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:16:29]wFMCommunicate OK [18:16:29]SAM_PROTO_GetShiftState done [18:16:29]FM_GetShiftState done [18:16:29]req_shift_opened done [18:16:29]requested_item shift.open_date is exist - process it [18:16:29]req_shift_open_date [18:16:29]req_shift_open_date done [18:16:29]produce_requested_data done [18:16:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166502,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:16:29]process_action_free close_receipt [18:16:29]json_value_free [18:16:29]json_value_free done [18:16:29]process_json_proto returns [18:16:29]Send response to host [18:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166502,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:16:29]free response buf [18:16:29]execute_script done [18:16:29]execute_script returns [18:16:29]free content buf [18:16:29]Sock 7.Close socket [18:16:29]Sock 7.Thread stoped [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:24]accept exits with 9 [18:18:24]New connection [18:18:24]New thread 3067632996 created [18:18:24]Thread 3067489636 joined [18:18:24]Waiting for new connection... [18:18:24] Sock 9.Parse request [18:18:24]Sock 9.Check first char [18:18:24]Sock 9.First char is OK [18:18:24]request: POST /json_proto HTTP/1.0 [18:18:24]Method: POST [18:18:24]URL: /json_proto [18:18:24]Method is POST - this is cgi request [18:18:24]url: /json_proto [18:18:24]query_string will be loaded in cgi processing [18:18:24]execute_cgi json_proto POST (null) [18:18:24]execute_cgi path=json_proto method=POST [18:18:24]POST find Content-Length [18:18:24]Host: 172.17.53.195:8080 [18:18:24]Content-Length: 677 [18:18:24]Content-Type: application/json [18:18:24] [18:18:24]POST finish read [18:18:24]Found Content-Length = 677 [18:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:24]execute_script... [18:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:24]POST & json_proto [18:18:24]process_json_proto [18:18:24]json parsed OK: [18:18:24]protocol is kg_v1.0 [18:18:24]action value=close_receipt [18:18:24]process_action close_receipt [18:18:24]cmd_close_receipt [18:18:24]MH_GetDate [18:18:24]Write to MH i2c: F0 00 00 49 05 3D [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: F0 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: F0 09 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: F0 09 00 49 05 00 70 EC 17 67 21 48 4A 65 38 [18:18:24]GetLastDocTimeStamp 1729620985 [18:18:24]current date 1729621104 [18:18:24]FM_GetShiftState [18:18:24]SAM_PROTO_GetShiftState [18:18:24]wFMCommunicate request_size=4 [18:18:24]MH_SAM_APDU [18:18:24]CAPDU: 80 13 01 00 [18:18:24]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [18:18:24]Write i2c OK [18:18:24]MH_I2C_Read... [18:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:24]Read from MH i2c: E2 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 0E 00 [18:18:24]MH_I2C_Read... [18:18:24]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1F [18:18:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:18:24]wFMCommunicate OK [18:18:24]SAM_PROTO_GetShiftState done [18:18:24]FM_GetShiftState done [18:18:24]opened in 1729557463 [18:18:24]opened+sec_in_day 1729643863 [18:18:24]quantity*price = 59942 [18:18:24]sum+1 = 59943 [18:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.30 НДС 12% : 63.65 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 258 22.10.2024 18:18 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166503 ФПД: 139722702063995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166503&fm=139722702063995&tin=02508201610067®Number=0000000000091764&sum=59900 [18:18:25]StoreToDocumentArchive [18:18:25]shift 536 fd 166503 [18:18:25]save to /storage/0536/doc_00166503 [18:18:25]save last doc name /storage/0536/doc_00166503 to /storage/kkm_last_doc_name [18:18:25]save OK [18:18:25]Clear old archive folders... [18:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:25]tlvbuf is 011F6C80 [18:18:25]SAM_PROTO_ClearQueue [18:18:25]wFMCommunicate request_size=4 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 09 00 00 [18:18:25]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [18:18:25]RAPDU: 90 00 [18:18:25]wFMCommunicate OK [18:18:25]SAM_PROTO_ClearQueue done [18:18:25]KKMCreateOFDPacket [18:18:25]OFDProtocolAddRootSTLVToBuf [18:18:25]FM_MakeSignedData [18:18:25]FM_MakeSignedData [18:18:25]SAM_PROTO_SignData [18:18:25]wFMCommunicate request_size=4 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 0D 01 02 [18:18:25]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [18:18:25]RAPDU: 90 00 [18:18:25]wFMCommunicate OK [18:18:25]wFMCommunicate request_size=255 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 EC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8A 02 00 35 04 06 00 7F [18:18:25]Write to MH i2c: E2 02 01 59 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 EC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8A 02 00 35 04 06 00 7F 00 00 92 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [18:18:25]RAPDU: 90 00 [18:18:25]wFMCommunicate OK [18:18:25]wFMCommunicate request_size=10 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 0D 02 02 05 13 BA 06 09 7B [18:18:25]Write to MH i2c: E2 0D 00 5A 05 80 0D 02 02 05 00 13 BA 06 09 7B 00 00 3A [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [18:18:25]RAPDU: 90 00 [18:18:25]wFMCommunicate OK [18:18:25]wFMCommunicate request_size=4 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 0D 03 02 [18:18:25]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 0B 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 0B 00 5B 05 00 CA 54 F6 89 A5 86 FC 21 90 00 C1 [18:18:25]RAPDU: CA 54 F6 89 A5 86 FC 21 90 00 [18:18:25]wFMCommunicate OK [18:18:25]SAM_PROTO_SignData done [18:18:25]FM_MakeSignedData done [18:18:25]CreateOFDProtocolMessage [18:18:25]wFMCommunicate request_size=4 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 11 00 00 [18:18:25]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 17 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [18:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:18:25]wFMCommunicate OK [18:18:25]CreateOFDProtocolMessage done [18:18:25]OFDSenderStorePacket 166503 [18:18:25]StoreOFDPacket docnum=166503 [18:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 0F 07 01 CF 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 EC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8A 02 00 35 04 06 00 7F 13 BA 06 09 7B CA 54 F6 89 A5 86 FC 21 [18:18:25]CheckFolder [18:18:25]dirname=/storage/ofd_packets [18:18:25]CheckFolder done [18:18:25]ProducePacketName [18:18:25]name=ofd_packets/00166503 [18:18:25]NVStorageSaveData ofd_packets/00166503 [18:18:25]File name is /storage/ofd_packets/00166503 [18:18:25]Write 301 bytes [18:18:25]NVStorageSaveData done [18:18:25]OFDSenderStorePacket done [18:18:25]KKMCreateOFDPacket done [18:18:25]NVStorageSaveData kkm_last_timestamp [18:18:25]File name is /storage/kkm_last_timestamp [18:18:25]Write 4 bytes [18:18:25]NVStorageSaveData done [18:18:25]ExternCall_PrintAddStr [18:18:25]wPrintStart [18:18:25]Write to MH i2c: 01 00 00 5D 05 62 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [18:18:25]RasterBufferAndPrint [18:18:25]line Счет N : (1)221084 [18:18:25]line ИНН: 02508201610067 [18:18:25]line Контрольно-Кассовый Чек [18:18:25]line ПРОДАЖА [18:18:25]line ТРК (МРК, ГНК) : 13 [18:18:25]line Товар: 2710124130 [18:18:25]line Аи-92-К-5 [18:18:25]line 8.960 * 66.90 [18:18:25]line = 599.42 [18:18:25]line НДС 12% НСП 1% [18:18:25]line > о реализуемом товаре [18:18:25]line ОКРУГЛЕНИЕ: -0.42 [18:18:25]line ИТОГО: 599.00 [18:18:25]line Внесено: 600.00 [18:18:25]line СДАЧА: 1.00 [18:18:25]line НСП 1% : 5.30 [18:18:25]line НДС 12% : 63.65 [18:18:25]line Наличными: 599.00 [18:18:25]line Безнал.: 0.00 [18:18:25]line Место: АЗС № 161 "Партнер Нефть" [18:18:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:18:25]line СНО: Общий режим [18:18:25]line Чек 258 22.10.2024 18:18 [18:18:25]line Смена: 536 ФФД: 1.0 [18:18:25]line ЗНМ: 0300000104 [18:18:25]line РНМ: 0000000000091764 [18:18:25]line Версия ККМ: 001 [18:18:25]line ФМ: 0000000000871759 [18:18:25]line ФД: 166503 [18:18:25]line ФПД: 139722702063995 [18:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166503&fm=139722702063995&tin=02508201610067®Number=0000000000091764&sum=59900 [18:18:26]OFD Sender: Processing packet 166503 [packets to send 48, broken 47] [18:18:26]ProducePacketName [18:18:26]name=ofd_packets/00166503 [18:18:26]OFD Sender: To server: pG, [18:18:26]CommunicateWithHost lk.salyk.kg:30040 [18:18:26]ConnectInit lk.salyk.kg [18:18:26]written 0, free lines is 4095 [18:18:26]Connected sock=10 [18:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 0F 07 01 CF 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 EC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8A 02 00 35 04 06 00 7F 13 BA 06 09 7B CA 54 F6 89 A5 86 FC 21 [18:18:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF 66 47 00 12 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 8A 02 00 F4 03 04 00 DB 92 17 67 B6 04 01 00 00 6A D6 22 31 3A 66 3E 5E [18:18:26]CommunicateWithHost err = 0 [18:18:26]CheckOFDResponse [18:18:26]1017 (14) - 77093643461234 [18:18:26]1041 (16) - 0000000000871759 [18:18:26]1040 (4) - 166503 [18:18:26]1012 (4) - 22.10.2024 11:56 [18:18:26]1206 (1) - 0 [18:18:26]OFD Sender: Remove packet 166503 [18:18:26]ProducePacketName [18:18:26]name=ofd_packets/00166503 [18:18:26]NVStorageDeleteData [18:18:26]Write to MH i2c: 01 00 00 88 05 8D [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 07 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 D5 0C 75 [18:18:26]RasterBufferAndPrint [18:18:26]line [18:18:26]line [18:18:26]line [18:18:26]line [18:18:26]line [18:18:26]written 0, free lines is 3294 [18:18:26]MH_Cut [18:18:26]Write to MH i2c: D1 01 00 8F 05 01 66 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: D1 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: D1 01 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: D1 01 00 8F 05 00 65 [18:18:26]Write to MH i2c: 01 00 00 90 05 95 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]OFD Sender: No OFD packet to send [18:18:27]*** Cut start [18:18:27]*** Partial cut [18:18:27]*** CUTSNS_PIN = 1 [18:18:27]*** CUTSNS_PIN = 0 [18:18:27]*** Brake cut motor [18:18:28]Read from MH i2c: 01 [18:18:28]MH_I2C_Read... [18:18:28]*** Stop cut motor [18:18:28]*** Cut end [18:18:28]Read from MH i2c: 01 07 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [18:18:28]process_action close_receipt done [18:18:28]requested_data is exist [18:18:28]produce_requested_data [18:18:28]requested_item fm.sn is exist - process it [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 11 00 00 [18:18:28]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 17 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [18:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:18:28]wFMCommunicate OK [18:18:28]requested_item fd.num is exist - process it [18:18:28]SAM_PROTO_GetFieldsCounters [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 00 00 [18:18:28]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [18:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetFieldsCounters done [18:18:28]requested_item shift.num is exist - process it [18:18:28]requested_item shift.opened is exist - process it [18:18:28]req_shift_opened [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 68 [18:18:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]req_shift_opened done [18:18:28]requested_item shift.open_date is exist - process it [18:18:28]req_shift_open_date [18:18:28]req_shift_open_date done [18:18:28]produce_requested_data done [18:18:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166503,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:18:28]process_action_free close_receipt [18:18:28]json_value_free [18:18:28]json_value_free done [18:18:28]process_json_proto returns [18:18:28]Send response to host [18:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166503,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:18:28]free response buf [18:18:28]execute_script done [18:18:28]execute_script returns [18:18:28]free content buf [18:18:28]Sock 9.Close socket [18:18:28]Sock 9.Thread stoped [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:15]accept exits with 7 [18:25:15]New connection [18:25:15]New thread 3067489636 created [18:25:15]Thread 3067632996 joined [18:25:15]Waiting for new connection... [18:25:15] Sock 7.Parse request [18:25:15]Sock 7.Check first char [18:25:15]Sock 7.First char is OK [18:25:15]request: POST /json_proto HTTP/1.0 [18:25:15]Method: POST [18:25:15]URL: /json_proto [18:25:15]Method is POST - this is cgi request [18:25:15]url: /json_proto [18:25:15]query_string will be loaded in cgi processing [18:25:15]execute_cgi json_proto POST (null) [18:25:15]execute_cgi path=json_proto method=POST [18:25:15]POST find Content-Length [18:25:15]Host: 172.17.53.195:8080 [18:25:15]Content-Length: 677 [18:25:15]Content-Type: application/json [18:25:15] [18:25:15]POST finish read [18:25:15]Found Content-Length = 677 [18:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.770, "sum" : 650.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:15]execute_script... [18:25:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.770, "sum" : 650.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:15]POST & json_proto [18:25:15]process_json_proto [18:25:15]json parsed OK: [18:25:15]protocol is kg_v1.0 [18:25:15]action value=close_receipt [18:25:15]process_action close_receipt [18:25:15]cmd_close_receipt [18:25:15]MH_GetDate [18:25:15]Write to MH i2c: F0 00 00 94 05 88 [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: F0 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: F0 09 00 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: F0 09 00 94 05 00 0B EE 17 67 21 48 4A 65 20 [18:25:15]GetLastDocTimeStamp 1729621104 [18:25:15]current date 1729621515 [18:25:15]FM_GetShiftState [18:25:15]SAM_PROTO_GetShiftState [18:25:15]wFMCommunicate request_size=4 [18:25:15]MH_SAM_APDU [18:25:15]CAPDU: 80 13 01 00 [18:25:15]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:15]Read from MH i2c: E2 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 0E 00 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6A [18:25:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:25:15]wFMCommunicate OK [18:25:15]SAM_PROTO_GetShiftState done [18:25:15]FM_GetShiftState done [18:25:15]opened in 1729557463 [18:25:15]opened+sec_in_day 1729643863 [18:25:15]quantity*price = 65073 [18:25:15]sum+1 = 65074 [18:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 259 22.10.2024 18:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166504 ФПД: 96650548727525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182515&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166504&fm=96650548727525&tin=02508201610067®Number=0000000000091764&sum=65000 [18:25:16]StoreToDocumentArchive [18:25:16]shift 536 fd 166504 [18:25:16]save to /storage/0536/doc_00166504 [18:25:16]save last doc name /storage/0536/doc_00166504 to /storage/kkm_last_doc_name [18:25:16]save OK [18:25:16]Clear old archive folders... [18:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:16]tlvbuf is 01294AD0 [18:25:16]SAM_PROTO_ClearQueue [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 09 00 00 [18:25:16]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [18:25:16]RAPDU: 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_ClearQueue done [18:25:16]KKMCreateOFDPacket [18:25:16]OFDProtocolAddRootSTLVToBuf [18:25:16]FM_MakeSignedData [18:25:16]FM_MakeSignedData [18:25:16]SAM_PROTO_SignData [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 0D 01 02 [18:25:16]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [18:25:16]RAPDU: 90 00 [18:25:16]wFMCommunicate OK [18:25:16]wFMCommunicate request_size=255 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0B EE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8A 02 00 35 04 06 00 57 [18:25:16]Write to MH i2c: E2 02 01 A4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0B EE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8A 02 00 35 04 06 00 57 00 00 E5 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [18:25:16]RAPDU: 90 00 [18:25:16]wFMCommunicate OK [18:25:16]wFMCommunicate request_size=10 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 0D 02 02 05 E7 35 9F CE E5 [18:25:16]Write to MH i2c: E2 0D 00 A5 05 80 0D 02 02 05 00 E7 35 9F CE E5 00 00 9C [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [18:25:16]RAPDU: 90 00 [18:25:16]wFMCommunicate OK [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 0D 03 02 [18:25:16]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0B 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0B 00 A6 05 00 40 CE 9C BE 2C 8A FF 2A 90 00 6E [18:25:16]RAPDU: 40 CE 9C BE 2C 8A FF 2A 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_SignData done [18:25:16]FM_MakeSignedData done [18:25:16]CreateOFDProtocolMessage [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 11 00 00 [18:25:16]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [18:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:16]wFMCommunicate OK [18:25:16]CreateOFDProtocolMessage done [18:25:16]OFDSenderStorePacket 166504 [18:25:16]StoreOFDPacket docnum=166504 [18:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 B6 07 01 10 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0B EE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8A 02 00 35 04 06 00 57 E7 35 9F CE E5 40 CE 9C BE 2C 8A FF 2A [18:25:16]CheckFolder [18:25:16]dirname=/storage/ofd_packets [18:25:16]CheckFolder done [18:25:16]ProducePacketName [18:25:16]name=ofd_packets/00166504 [18:25:16]NVStorageSaveData ofd_packets/00166504 [18:25:16]File name is /storage/ofd_packets/00166504 [18:25:16]Write 301 bytes [18:25:16]NVStorageSaveData done [18:25:16]OFDSenderStorePacket done [18:25:16]KKMCreateOFDPacket done [18:25:16]NVStorageSaveData kkm_last_timestamp [18:25:16]File name is /storage/kkm_last_timestamp [18:25:16]Write 4 bytes [18:25:16]NVStorageSaveData done [18:25:16]ExternCall_PrintAddStr [18:25:16]wPrintStart [18:25:16]Write to MH i2c: 01 00 00 A8 05 AD [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [18:25:16]RasterBufferAndPrint [18:25:16]line Счет N : (1)221085 [18:25:16]line ИНН: 02508201610067 [18:25:16]line Контрольно-Кассовый Чек [18:25:16]line ПРОДАЖА [18:25:16]line ТРК (МРК, ГНК) : 24 [18:25:16]line Товар: 2710124500 [18:25:16]line Аи-95-К-5 [18:25:16]line 8.770 * 74.20 [18:25:16]line = 650.73 [18:25:16]line НДС 12% НСП 1% [18:25:16]line > о реализуемом товаре [18:25:16]line ОКРУГЛЕНИЕ: -0.73 [18:25:16]line ИТОГО: 650.00 [18:25:16]line Внесено: 650.00 [18:25:16]line СДАЧА: 0.00 [18:25:16]line НСП 1% : 5.76 [18:25:16]line НДС 12% : 69.10 [18:25:16]line Наличными: 650.00 [18:25:16]line Безнал.: 0.00 [18:25:16]line Место: АЗС № 161 "Партнер Нефть" [18:25:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:25:16]line СНО: Общий режим [18:25:16]line Чек 259 22.10.2024 18:25 [18:25:16]line Смена: 536 ФФД: 1.0 [18:25:16]line ЗНМ: 0300000104 [18:25:16]line РНМ: 0000000000091764 [18:25:16]line Версия ККМ: 001 [18:25:16]line ФМ: 0000000000871759 [18:25:16]line ФД: 166504 [18:25:16]line ФПД: 96650548727525 [18:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182515&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166504&fm=96650548727525&tin=02508201610067®Number=0000000000091764&sum=65000 [18:25:17]OFD Sender: Processing packet 166504 [packets to send 48, broken 47] [18:25:17]ProducePacketName [18:25:17]name=ofd_packets/00166504 [18:25:17]OFD Sender: To server: pG, [18:25:17]CommunicateWithHost lk.salyk.kg:30040 [18:25:17]ConnectInit lk.salyk.kg [18:25:17]written 0, free lines is 4095 [18:25:17]Connected sock=10 [18:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 B6 07 01 10 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 0B EE 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8A 02 00 35 04 06 00 57 E7 35 9F CE E5 40 CE 9C BE 2C 8A FF 2A [18:25:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A7 40 47 00 4F 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 8A 02 00 F4 03 04 00 76 94 17 67 B6 04 01 00 00 D4 A6 87 5F 4C DD 1C FB [18:25:17]CommunicateWithHost err = 0 [18:25:17]CheckOFDResponse [18:25:17]1017 (14) - 77093643461234 [18:25:17]1041 (16) - 0000000000871759 [18:25:17]1040 (4) - 166504 [18:25:17]1012 (4) - 22.10.2024 12:03 [18:25:17]1206 (1) - 0 [18:25:17]OFD Sender: Remove packet 166504 [18:25:17]ProducePacketName [18:25:17]name=ofd_packets/00166504 [18:25:17]NVStorageDeleteData [18:25:17]Write to MH i2c: 01 00 00 D3 05 D8 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 07 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 BB 0C A6 [18:25:17]RasterBufferAndPrint [18:25:17]line [18:25:17]line [18:25:17]line [18:25:17]line [18:25:17]line [18:25:17]written 0, free lines is 3266 [18:25:17]MH_Cut [18:25:17]Write to MH i2c: D1 01 00 DA 05 01 B1 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: D1 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: D1 01 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: D1 01 00 DA 05 00 B0 [18:25:17]Write to MH i2c: 01 00 00 DB 05 E0 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]OFD Sender: No OFD packet to send [18:25:18]*** Cut start [18:25:18]*** Partial cut [18:25:18]*** CUTSNS_PIN = 1 [18:25:18]*** CUTSNS_PIN = 0 [18:25:18]*** Brake cut motor [18:25:18]Read from MH i2c: 01 [18:25:18]MH_I2C_Read... [18:25:18]*** Stop cut motor [18:25:18]*** Cut end [18:25:18]Read from MH i2c: 01 07 00 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [18:25:18]process_action close_receipt done [18:25:18]requested_data is exist [18:25:18]produce_requested_data [18:25:18]requested_item fm.sn is exist - process it [18:25:18]wFMCommunicate request_size=4 [18:25:18]MH_SAM_APDU [18:25:18]CAPDU: 80 11 00 00 [18:25:18]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [18:25:18]Write i2c OK [18:25:18]MH_I2C_Read... [18:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:19]Read from MH i2c: E2 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 17 00 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [18:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:19]wFMCommunicate OK [18:25:19]requested_item fd.num is exist - process it [18:25:19]SAM_PROTO_GetFieldsCounters [18:25:19]wFMCommunicate request_size=4 [18:25:19]MH_SAM_APDU [18:25:19]CAPDU: 80 13 00 00 [18:25:19]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [18:25:19]Write i2c OK [18:25:19]MH_I2C_Read... [18:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:19]Read from MH i2c: E2 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 62 00 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:19]wFMCommunicate OK [18:25:19]SAM_PROTO_GetFieldsCounters done [18:25:19]requested_item shift.num is exist - process it [18:25:19]requested_item shift.opened is exist - process it [18:25:19]req_shift_opened [18:25:19]FM_GetShiftState [18:25:19]SAM_PROTO_GetShiftState [18:25:19]wFMCommunicate request_size=4 [18:25:19]MH_SAM_APDU [18:25:19]CAPDU: 80 13 01 00 [18:25:19]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [18:25:19]Write i2c OK [18:25:19]MH_I2C_Read... [18:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:19]Read from MH i2c: E2 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 0E 00 [18:25:19]MH_I2C_Read... [18:25:19]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B3 [18:25:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:25:19]wFMCommunicate OK [18:25:19]SAM_PROTO_GetShiftState done [18:25:19]FM_GetShiftState done [18:25:19]req_shift_opened done [18:25:19]requested_item shift.open_date is exist - process it [18:25:19]req_shift_open_date [18:25:19]req_shift_open_date done [18:25:19]produce_requested_data done [18:25:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166504,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:25:19]process_action_free close_receipt [18:25:19]json_value_free [18:25:19]json_value_free done [18:25:19]process_json_proto returns [18:25:19]Send response to host [18:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166504,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:25:19]free response buf [18:25:19]execute_script done [18:25:19]execute_script returns [18:25:19]free content buf [18:25:19]Sock 7.Close socket [18:25:19]Sock 7.Thread stoped [18:25:22]OFD Sender: No OFD packet to send [18:25:27]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:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]accept exits with 9 [18:40:03]New connection [18:40:03]New thread 3067632996 created [18:40:03]Thread 3067489636 joined [18:40:03]Waiting for new connection... [18:40:03] Sock 9.Parse request [18:40:03]Sock 9.Check first char [18:40:03]Sock 9.First char is OK [18:40:03]request: POST /json_proto HTTP/1.0 [18:40:03]Method: POST [18:40:03]URL: /json_proto [18:40:03]Method is POST - this is cgi request [18:40:03]url: /json_proto [18:40:03]query_string will be loaded in cgi processing [18:40:03]execute_cgi json_proto POST (null) [18:40:03]execute_cgi path=json_proto method=POST [18:40:03]POST find Content-Length [18:40:03]Host: 172.17.53.195:8080 [18:40:03]Content-Length: 789 [18:40:03]Content-Type: application/json [18:40:03] [18:40:03]POST finish read [18:40:03]Found Content-Length = 789 [18:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.120, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:03]execute_script... [18:40:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.120, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:03]POST & json_proto [18:40:03]process_json_proto [18:40:03]json parsed OK: [18:40:03]protocol is kg_v1.0 [18:40:03]action value=close_receipt [18:40:03]process_action close_receipt [18:40:03]cmd_close_receipt [18:40:03]MH_GetDate [18:40:03]Write to MH i2c: F0 00 00 DF 05 D3 [18:40:03]Write i2c OK [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: F0 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: F0 09 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: F0 09 00 DF 05 00 84 F1 17 67 21 48 4A 65 E7 [18:40:03]GetLastDocTimeStamp 1729621515 [18:40:03]current date 1729622404 [18:40:03]FM_GetShiftState [18:40:03]SAM_PROTO_GetShiftState [18:40:03]wFMCommunicate request_size=4 [18:40:03]MH_SAM_APDU [18:40:03]CAPDU: 80 13 01 00 [18:40:03]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [18:40:03]Write i2c OK [18:40:03]MH_I2C_Read... [18:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:03]Read from MH i2c: E2 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 0E 00 [18:40:03]MH_I2C_Read... [18:40:03]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B5 [18:40:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:40:03]wFMCommunicate OK [18:40:03]SAM_PROTO_GetShiftState done [18:40:03]FM_GetShiftState done [18:40:03]opened in 1729557463 [18:40:03]opened+sec_in_day 1729643863 [18:40:03]quantity*price = 0 [18:40:03]sum+1 = 1 [18:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 260 22.10.2024 18:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166505 ФПД: 161076007213695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166505&fm=161076007213695&tin=02508201610067®Number=0000000000091764&sum=0 [18:40:04]StoreToDocumentArchive [18:40:04]shift 536 fd 166505 [18:40:04]save to /storage/0536/doc_00166505 [18:40:04]save last doc name /storage/0536/doc_00166505 to /storage/kkm_last_doc_name [18:40:04]save OK [18:40:04]Clear old archive folders... [18:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:40:04]tlvbuf is 0125E070 [18:40:04]SAM_PROTO_ClearQueue [18:40:04]wFMCommunicate request_size=4 [18:40:04]MH_SAM_APDU [18:40:04]CAPDU: 80 09 00 00 [18:40:04]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [18:40:04]Write i2c OK [18:40:04]MH_I2C_Read... [18:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:04]Read from MH i2c: E2 [18:40:04]MH_I2C_Read... [18:40:04]Read from MH i2c: E2 03 00 [18:40:04]MH_I2C_Read... [18:40:04]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [18:40:04]RAPDU: 90 00 [18:40:04]wFMCommunicate OK [18:40:04]SAM_PROTO_ClearQueue done [18:40:04]KKMCreateOFDPacket [18:40:04]OFDProtocolAddRootSTLVToBuf [18:40:04]FM_MakeSignedData [18:40:04]FM_MakeSignedData [18:40:04]SAM_PROTO_SignData [18:40:04]wFMCommunicate request_size=4 [18:40:04]MH_SAM_APDU [18:40:04]CAPDU: 80 0D 01 02 [18:40:04]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [18:40:04]Write i2c OK [18:40:04]MH_I2C_Read... [18:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:04]Read from MH i2c: E2 [18:40:04]MH_I2C_Read... [18:40:04]Read from MH i2c: E2 03 00 [18:40:04]MH_I2C_Read... [18:40:04]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [18:40:04]RAPDU: 90 00 [18:40:04]wFMCommunicate OK [18:40:04]wFMCommunicate request_size=255 [18:40:04]MH_SAM_APDU [18:40:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 D7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 F1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8A 02 00 35 04 06 00 92 7F 6E 31 [18:40:04]Write to MH i2c: E2 02 01 EF 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 D7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 F1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8A 02 00 35 04 06 00 92 7F 6E 31 00 00 AE [18:40:04]Write i2c OK [18:40:04]MH_I2C_Read... [18:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:05]Read from MH i2c: E2 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 03 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [18:40:05]RAPDU: 90 00 [18:40:05]wFMCommunicate OK [18:40:05]wFMCommunicate request_size=7 [18:40:05]MH_SAM_APDU [18:40:05]CAPDU: 80 0D 02 02 02 1A 7F [18:40:05]Write to MH i2c: E2 0A 00 F0 05 80 0D 02 02 02 00 1A 7F 00 00 0C [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:05]Read from MH i2c: E2 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 03 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [18:40:05]RAPDU: 90 00 [18:40:05]wFMCommunicate OK [18:40:05]wFMCommunicate request_size=4 [18:40:05]MH_SAM_APDU [18:40:05]CAPDU: 80 0D 03 02 [18:40:05]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:05]Read from MH i2c: E2 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 0B 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 0B 00 F1 05 00 68 61 9F 95 32 B4 52 18 90 00 BF [18:40:05]RAPDU: 68 61 9F 95 32 B4 52 18 90 00 [18:40:05]wFMCommunicate OK [18:40:05]SAM_PROTO_SignData done [18:40:05]FM_MakeSignedData done [18:40:05]CreateOFDProtocolMessage [18:40:05]wFMCommunicate request_size=4 [18:40:05]MH_SAM_APDU [18:40:05]CAPDU: 80 11 00 00 [18:40:05]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:05]Read from MH i2c: E2 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 17 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [18:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:40:05]wFMCommunicate OK [18:40:05]CreateOFDProtocolMessage done [18:40:05]OFDSenderStorePacket 166505 [18:40:05]StoreOFDPacket docnum=166505 [18:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C 56 04 01 5F 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 D7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 F1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8A 02 00 35 04 06 00 92 7F 6E 31 1A 7F 68 61 9F 95 32 B4 52 18 [18:40:05]CheckFolder [18:40:05]dirname=/storage/ofd_packets [18:40:05]CheckFolder done [18:40:05]ProducePacketName [18:40:05]name=ofd_packets/00166505 [18:40:05]NVStorageSaveData ofd_packets/00166505 [18:40:05]File name is /storage/ofd_packets/00166505 [18:40:05]Write 298 bytes [18:40:05]NVStorageSaveData done [18:40:05]OFDSenderStorePacket done [18:40:05]KKMCreateOFDPacket done [18:40:05]NVStorageSaveData kkm_last_timestamp [18:40:05]File name is /storage/kkm_last_timestamp [18:40:05]Write 4 bytes [18:40:05]NVStorageSaveData done [18:40:05]ExternCall_PrintAddStr [18:40:05]wPrintStart [18:40:05]Write to MH i2c: 01 00 00 F3 05 F8 [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 07 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [18:40:05]RasterBufferAndPrint [18:40:05]line Счет N : (1)221086 [18:40:05]line ИНН: 02508201610067 [18:40:05]line Контрольно-Кассовый Чек [18:40:05]line ПРОДАЖА [18:40:05]line ТРК (МРК, ГНК) : 31 [18:40:05]line Товар: 2710194210 [18:40:05]line ДТ-К-5 [18:40:05]line 55.120 * 0.00 [18:40:05]line = 0.00 [18:40:05]line НДС 12% НСП 1% [18:40:05]line > о реализуемом товаре [18:40:05]line ИТОГО: 0.00 [18:40:05]line НСП 1% : 0.00 [18:40:05]line НДС 12% : 0.00 [18:40:05]line Наличными: 0.00 [18:40:05]line Безнал.: 0.00 [18:40:05]line Место: АЗС № 161 "Партнер Нефть" [18:40:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:40:05]line СНО: Общий режим [18:40:05]line Чек 260 22.10.2024 18:40 [18:40:05]line Смена: 536 ФФД: 1.0 [18:40:05]line ЗНМ: 0300000104 [18:40:05]line РНМ: 0000000000091764 [18:40:05]line Версия ККМ: 001 [18:40:05]line Талоны: Топливная Карта [18:40:05]line 85863 [18:40:05]line ФМ: 0000000000871759 [18:40:05]line ФД: 166505 [18:40:05]line ФПД: 161076007213695 [18:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166505&fm=161076007213695&tin=02508201610067®Number=0000000000091764&sum=0 [18:40:05]OFD Sender: Processing packet 166505 [packets to send 48, broken 47] [18:40:05]ProducePacketName [18:40:05]name=ofd_packets/00166505 [18:40:05]OFD Sender: To server: pG, [18:40:05]CommunicateWithHost lk.salyk.kg:30040 [18:40:05]ConnectInit lk.salyk.kg [18:40:05]written 0, free lines is 4095 [18:40:05]Connected sock=10 [18:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C 56 04 01 5F 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 D7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 F1 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8A 02 00 35 04 06 00 92 7F 6E 31 1A 7F 68 61 9F 95 32 B4 52 18 [18:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EF 2C 47 00 86 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 8A 02 00 F4 03 04 00 EE 97 17 67 B6 04 01 00 00 31 FF 7E 43 69 AB B9 42 [18:40:05]CommunicateWithHost err = 0 [18:40:05]CheckOFDResponse [18:40:05]1017 (14) - 77093643461234 [18:40:05]1041 (16) - 0000000000871759 [18:40:05]1040 (4) - 166505 [18:40:05]1012 (4) - 22.10.2024 12:17 [18:40:05]1206 (1) - 0 [18:40:05]OFD Sender: Remove packet 166505 [18:40:05]ProducePacketName [18:40:05]name=ofd_packets/00166505 [18:40:05]NVStorageDeleteData [18:40:05]Write to MH i2c: 01 00 00 1D 06 23 [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 07 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 C3 0C F9 [18:40:05]RasterBufferAndPrint [18:40:05]line [18:40:05]line [18:40:05]line [18:40:05]line [18:40:05]line [18:40:05]written 0, free lines is 3273 [18:40:05]MH_Cut [18:40:05]Write to MH i2c: D1 01 00 24 06 01 FC [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: D1 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: D1 01 00 [18:40:05]MH_I2C_Read... [18:40:05]Read from MH i2c: D1 01 00 24 06 00 FB [18:40:05]Write to MH i2c: 01 00 00 25 06 2B [18:40:05]Write i2c OK [18:40:05]MH_I2C_Read... [18:40:06]OFD Sender: No OFD packet to send [18:40:06]*** Cut start [18:40:06]*** Partial cut [18:40:06]*** CUTSNS_PIN = 1 [18:40:06]*** CUTSNS_PIN = 0 [18:40:07]*** Brake cut motor [18:40:07]Read from MH i2c: 01 [18:40:07]MH_I2C_Read... [18:40:07]*** Stop cut motor [18:40:07]*** Cut end [18:40:07]Read from MH i2c: 01 07 00 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [18:40:07]process_action close_receipt done [18:40:07]requested_data is exist [18:40:07]produce_requested_data [18:40:07]requested_item fm.sn is exist - process it [18:40:07]wFMCommunicate request_size=4 [18:40:07]MH_SAM_APDU [18:40:07]CAPDU: 80 11 00 00 [18:40:07]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [18:40:07]Write i2c OK [18:40:07]MH_I2C_Read... [18:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:07]Read from MH i2c: E2 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 17 00 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [18:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:40:07]wFMCommunicate OK [18:40:07]requested_item fd.num is exist - process it [18:40:07]SAM_PROTO_GetFieldsCounters [18:40:07]wFMCommunicate request_size=4 [18:40:07]MH_SAM_APDU [18:40:07]CAPDU: 80 13 00 00 [18:40:07]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [18:40:07]Write i2c OK [18:40:07]MH_I2C_Read... [18:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:07]Read from MH i2c: E2 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 62 00 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 62 00 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:40:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:07]wFMCommunicate OK [18:40:07]SAM_PROTO_GetFieldsCounters done [18:40:07]requested_item shift.num is exist - process it [18:40:07]requested_item shift.opened is exist - process it [18:40:07]req_shift_opened [18:40:07]FM_GetShiftState [18:40:07]SAM_PROTO_GetShiftState [18:40:07]wFMCommunicate request_size=4 [18:40:07]MH_SAM_APDU [18:40:07]CAPDU: 80 13 01 00 [18:40:07]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [18:40:07]Write i2c OK [18:40:07]MH_I2C_Read... [18:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:07]Read from MH i2c: E2 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 0E 00 [18:40:07]MH_I2C_Read... [18:40:07]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FE [18:40:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:40:07]wFMCommunicate OK [18:40:07]SAM_PROTO_GetShiftState done [18:40:07]FM_GetShiftState done [18:40:07]req_shift_opened done [18:40:07]requested_item shift.open_date is exist - process it [18:40:07]req_shift_open_date [18:40:07]req_shift_open_date done [18:40:07]produce_requested_data done [18:40:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166505,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:40:07]process_action_free close_receipt [18:40:07]json_value_free [18:40:07]json_value_free done [18:40:07]process_json_proto returns [18:40:07]Send response to host [18:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166505,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:40:07]free response buf [18:40:07]execute_script done [18:40:07]execute_script returns [18:40:07]free content buf [18:40:07]Sock 9.Close socket [18:40:07]Sock 9.Thread stoped [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:49]accept exits with 7 [18:42:49]New connection [18:42:49]New thread 3067489636 created [18:42:49]Thread 3067632996 joined [18:42:49]Waiting for new connection... [18:42:49] Sock 7.Parse request [18:42:49]Sock 7.Check first char [18:42:49]Sock 7.First char is OK [18:42:49]request: POST /json_proto HTTP/1.0 [18:42:49]Method: POST [18:42:49]URL: /json_proto [18:42:49]Method is POST - this is cgi request [18:42:49]url: /json_proto [18:42:49]query_string will be loaded in cgi processing [18:42:49]execute_cgi json_proto POST (null) [18:42:49]execute_cgi path=json_proto method=POST [18:42:49]POST find Content-Length [18:42:49]Host: 172.17.53.195:8080 [18:42:49]Content-Length: 769 [18:42:49]Content-Type: application/json [18:42:49] [18:42:49]POST finish read [18:42:49]Found Content-Length = 769 [18:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:49]execute_script... [18:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:49]POST & json_proto [18:42:49]process_json_proto [18:42:49]json parsed OK: [18:42:49]protocol is kg_v1.0 [18:42:49]action value=close_receipt [18:42:49]process_action close_receipt [18:42:49]cmd_close_receipt [18:42:49]MH_GetDate [18:42:49]Write to MH i2c: F0 00 00 29 06 1E [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 09 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 09 00 29 06 00 2A F2 17 67 21 48 4A 65 D9 [18:42:49]GetLastDocTimeStamp 1729622404 [18:42:49]current date 1729622570 [18:42:49]FM_GetShiftState [18:42:49]SAM_PROTO_GetShiftState [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 13 01 00 [18:42:49]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0E 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 00 [18:42:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:42:49]wFMCommunicate OK [18:42:49]SAM_PROTO_GetShiftState done [18:42:49]FM_GetShiftState done [18:42:49]opened in 1729557463 [18:42:49]opened+sec_in_day 1729643863 [18:42:49]quantity*price = 200031 [18:42:49]sum+1 = 200032 [18:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 261 22.10.2024 18:42 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166506 ФПД: 78666928897361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184250&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166506&fm=78666928897361&tin=02508201610067®Number=0000000000091764&sum=200031 [18:42:50]StoreToDocumentArchive [18:42:50]shift 536 fd 166506 [18:42:50]save to /storage/0536/doc_00166506 [18:42:50]save last doc name /storage/0536/doc_00166506 to /storage/kkm_last_doc_name [18:42:50]save OK [18:42:50]Clear old archive folders... [18:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:50]tlvbuf is 0120A8F0 [18:42:50]SAM_PROTO_ClearQueue [18:42:50]wFMCommunicate request_size=4 [18:42:50]MH_SAM_APDU [18:42:50]CAPDU: 80 09 00 00 [18:42:50]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:50]Read from MH i2c: E2 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]SAM_PROTO_ClearQueue done [18:42:51]KKMCreateOFDPacket [18:42:51]OFDProtocolAddRootSTLVToBuf [18:42:51]FM_MakeSignedData [18:42:51]FM_MakeSignedData [18:42:51]SAM_PROTO_SignData [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 01 02 [18:42:51]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]wFMCommunicate request_size=255 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2A F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8A 02 00 35 04 06 00 47 [18:42:51]Write to MH i2c: E2 02 01 39 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2A F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8A 02 00 35 04 06 00 47 00 00 C4 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]wFMCommunicate request_size=10 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 02 02 05 8C 12 5A 3D 51 [18:42:51]Write to MH i2c: E2 0D 00 3A 06 80 0D 02 02 05 00 8C 12 5A 3D 51 00 00 4A [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 03 02 [18:42:51]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0B 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0B 00 3B 06 00 DB 09 14 4D 56 75 11 91 90 00 6F [18:42:51]RAPDU: DB 09 14 4D 56 75 11 91 90 00 [18:42:51]wFMCommunicate OK [18:42:51]SAM_PROTO_SignData done [18:42:51]FM_MakeSignedData done [18:42:51]CreateOFDProtocolMessage [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 11 00 00 [18:42:51]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]OFD Sender: No OFD packet to send [18:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 17 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [18:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:51]wFMCommunicate OK [18:42:51]CreateOFDProtocolMessage done [18:42:51]OFDSenderStorePacket 166506 [18:42:51]StoreOFDPacket docnum=166506 [18:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E E1 07 01 63 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2A F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8A 02 00 35 04 06 00 47 8C 12 5A 3D 51 DB 09 14 4D 56 75 11 91 [18:42:51]CheckFolder [18:42:51]dirname=/storage/ofd_packets [18:42:51]CheckFolder done [18:42:51]ProducePacketName [18:42:51]name=ofd_packets/00166506 [18:42:51]NVStorageSaveData ofd_packets/00166506 [18:42:51]File name is /storage/ofd_packets/00166506 [18:42:51]Write 301 bytes [18:42:51]NVStorageSaveData done [18:42:51]OFDSenderStorePacket done [18:42:51]KKMCreateOFDPacket done [18:42:51]NVStorageSaveData kkm_last_timestamp [18:42:51]File name is /storage/kkm_last_timestamp [18:42:51]Write 4 bytes [18:42:51]NVStorageSaveData done [18:42:51]ExternCall_PrintAddStr [18:42:51]wPrintStart [18:42:51]Write to MH i2c: 01 00 00 3D 06 43 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 07 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [18:42:51]RasterBufferAndPrint [18:42:51]line Счет N : (1)221087 [18:42:51]line ИНН: 02508201610067 [18:42:51]line Контрольно-Кассовый Чек [18:42:51]line ПРОДАЖА [18:42:51]line ТРК (МРК, ГНК) : 23 [18:42:51]line Товар: 2710124130 [18:42:51]line Аи-92-К-5 [18:42:51]line 29.900 * 66.90 [18:42:51]line = 2000.31 [18:42:51]line НДС 12% НСП 1% [18:42:51]line > о реализуемом товаре [18:42:51]line ИТОГО: 2000.31 [18:42:51]line НСП 1% : 17.70 [18:42:51]line НДС 12% : 212.42 [18:42:51]line Наличными: 0.00 [18:42:51]line Безнал.: 2000.31 [18:42:51]line Место: АЗС № 161 "Партнер Нефть" [18:42:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:42:51]line СНО: Общий режим [18:42:51]line Чек 261 22.10.2024 18:42 [18:42:51]line Смена: 536 ФФД: 1.0 [18:42:51]line ЗНМ: 0300000104 [18:42:51]line РНМ: 0000000000091764 [18:42:51]line Версия ККМ: 001 [18:42:51]line Платежная система: Mbank [18:42:51]line ФМ: 0000000000871759 [18:42:51]line ФД: 166506 [18:42:51]line ФПД: 78666928897361 [18:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184250&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166506&fm=78666928897361&tin=02508201610067®Number=0000000000091764&sum=200031 [18:42:51]OFD Sender: Processing packet 166506 [packets to send 48, broken 47] [18:42:51]ProducePacketName [18:42:51]name=ofd_packets/00166506 [18:42:51]OFD Sender: To server: pG, [18:42:51]CommunicateWithHost lk.salyk.kg:30040 [18:42:51]ConnectInit lk.salyk.kg [18:42:51]written 0, free lines is 4095 [18:42:51]Connected sock=10 [18:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E E1 07 01 63 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2A F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8A 02 00 35 04 06 00 47 8C 12 5A 3D 51 DB 09 14 4D 56 75 11 91 [18:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 3C 47 00 C5 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 8A 02 00 F4 03 04 00 94 98 17 67 B6 04 01 00 00 00 F3 D1 23 2D F0 8A 34 [18:42:52]CommunicateWithHost err = 0 [18:42:52]CheckOFDResponse [18:42:52]1017 (14) - 77093643461234 [18:42:52]1041 (16) - 0000000000871759 [18:42:52]1040 (4) - 166506 [18:42:52]1012 (4) - 22.10.2024 12:20 [18:42:52]1206 (1) - 0 [18:42:52]OFD Sender: Remove packet 166506 [18:42:52]ProducePacketName [18:42:52]name=ofd_packets/00166506 [18:42:52]NVStorageDeleteData [18:42:52]Write to MH i2c: 01 00 00 66 06 6C [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 E4 0C 63 [18:42:52]RasterBufferAndPrint [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]written 0, free lines is 3306 [18:42:52]MH_Cut [18:42:52]Write to MH i2c: D1 01 00 6D 06 01 45 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 6D 06 00 44 [18:42:52]Write to MH i2c: 01 00 00 6E 06 74 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]OFD Sender: No OFD packet to send [18:42:53]*** Cut start [18:42:53]*** Partial cut [18:42:53]*** CUTSNS_PIN = 1 [18:42:53]*** CUTSNS_PIN = 0 [18:42:53]*** Brake cut motor [18:42:53]Read from MH i2c: 01 [18:42:53]MH_I2C_Read... [18:42:53]*** Stop cut motor [18:42:53]*** Cut end [18:42:53]Read from MH i2c: 01 07 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [18:42:53]process_action close_receipt done [18:42:53]requested_data is exist [18:42:53]produce_requested_data [18:42:53]requested_item fm.sn is exist - process it [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 11 00 00 [18:42:53]Write to MH i2c: E2 08 00 6F 06 80 11 00 00 00 00 00 00 EF [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 6F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [18:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:53]wFMCommunicate OK [18:42:53]requested_item fd.num is exist - process it [18:42:53]SAM_PROTO_GetFieldsCounters [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 13 00 00 [18:42:53]Write to MH i2c: E2 08 00 70 06 80 13 00 00 00 00 00 00 F2 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 62 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 62 00 70 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [18:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_GetFieldsCounters done [18:42:53]requested_item shift.num is exist - process it [18:42:53]requested_item shift.opened is exist - process it [18:42:53]req_shift_opened [18:42:53]FM_GetShiftState [18:42:53]SAM_PROTO_GetShiftState [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 13 01 00 [18:42:53]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0E 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 47 [18:42:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_GetShiftState done [18:42:53]FM_GetShiftState done [18:42:53]req_shift_opened done [18:42:53]requested_item shift.open_date is exist - process it [18:42:53]req_shift_open_date [18:42:53]req_shift_open_date done [18:42:53]produce_requested_data done [18:42:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166506,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:42:53]process_action_free close_receipt [18:42:53]json_value_free [18:42:53]json_value_free done [18:42:53]process_json_proto returns [18:42:53]Send response to host [18:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166506,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:42:53]free response buf [18:42:53]execute_script done [18:42:53]execute_script returns [18:42:53]free content buf [18:42:53]Sock 7.Close socket [18:42:53]Sock 7.Thread stoped [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:26]accept exits with 9 [18:45:26]New connection [18:45:26]New thread 3067632996 created [18:45:26]Thread 3067489636 joined [18:45:26]Waiting for new connection... [18:45:26] Sock 9.Parse request [18:45:26]Sock 9.Check first char [18:45:26]Sock 9.First char is OK [18:45:26]request: POST /json_proto HTTP/1.0 [18:45:26]Method: POST [18:45:26]URL: /json_proto [18:45:26]Method is POST - this is cgi request [18:45:26]url: /json_proto [18:45:26]query_string will be loaded in cgi processing [18:45:26]execute_cgi json_proto POST (null) [18:45:26]execute_cgi path=json_proto method=POST [18:45:26]POST find Content-Length [18:45:26]Host: 172.17.53.195:8080 [18:45:26]Content-Length: 682 [18:45:26]Content-Type: application/json [18:45:26] [18:45:26]POST finish read [18:45:26]Found Content-Length = 682 [18:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:26]execute_script... [18:45:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:26]POST & json_proto [18:45:26]process_json_proto [18:45:26]json parsed OK: [18:45:26]protocol is kg_v1.0 [18:45:26]action value=close_receipt [18:45:26]process_action close_receipt [18:45:26]cmd_close_receipt [18:45:26]MH_GetDate [18:45:26]Write to MH i2c: F0 00 00 72 06 67 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 09 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 09 00 72 06 00 C7 F2 17 67 21 48 4A 65 BF [18:45:26]GetLastDocTimeStamp 1729622570 [18:45:26]current date 1729622727 [18:45:26]FM_GetShiftState [18:45:26]SAM_PROTO_GetShiftState [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 13 01 00 [18:45:26]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0E 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 49 [18:45:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_GetShiftState done [18:45:26]FM_GetShiftState done [18:45:26]opened in 1729557463 [18:45:26]opened+sec_in_day 1729643863 [18:45:26]quantity*price = 100015 [18:45:26]sum+1 = 100017 [18:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 262 22.10.2024 18:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166507 ФПД: 182762842297290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166507&fm=182762842297290&tin=02508201610067®Number=0000000000091764&sum=100000 [18:45:27]StoreToDocumentArchive [18:45:27]shift 536 fd 166507 [18:45:27]save to /storage/0536/doc_00166507 [18:45:27]save last doc name /storage/0536/doc_00166507 to /storage/kkm_last_doc_name [18:45:27]save OK [18:45:27]Clear old archive folders... [18:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:27]tlvbuf is 011EFE40 [18:45:27]SAM_PROTO_ClearQueue [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 09 00 00 [18:45:27]Write to MH i2c: E2 08 00 80 06 80 09 00 00 00 00 00 00 F8 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_ClearQueue done [18:45:27]KKMCreateOFDPacket [18:45:27]OFDProtocolAddRootSTLVToBuf [18:45:27]FM_MakeSignedData [18:45:27]FM_MakeSignedData [18:45:27]SAM_PROTO_SignData [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 01 02 [18:45:27]Write to MH i2c: E2 08 00 81 06 80 0D 01 02 00 00 00 00 00 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=255 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 C7 F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8A 02 00 35 04 06 00 A6 [18:45:27]Write to MH i2c: E2 02 01 82 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 C7 F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8A 02 00 35 04 06 00 A6 00 00 85 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]OFD Sender: No OFD packet to send [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=10 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 05 38 CA 4B 13 CA [18:45:27]Write to MH i2c: E2 0D 00 83 06 80 0D 02 02 05 00 38 CA 4B 13 CA 00 00 37 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 03 02 [18:45:27]Write to MH i2c: E2 08 00 84 06 80 0D 03 02 00 00 00 00 05 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0B 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0B 00 84 06 00 79 00 3D FF A3 0D 8D 70 90 00 68 [18:45:28]RAPDU: 79 00 3D FF A3 0D 8D 70 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_SignData done [18:45:28]FM_MakeSignedData done [18:45:28]CreateOFDProtocolMessage [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:45:28]wFMCommunicate OK [18:45:28]CreateOFDProtocolMessage done [18:45:28]OFDSenderStorePacket 166507 [18:45:28]StoreOFDPacket docnum=166507 [18:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 48 07 01 75 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 C7 F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8A 02 00 35 04 06 00 A6 38 CA 4B 13 CA 79 00 3D FF A3 0D 8D 70 [18:45:28]CheckFolder [18:45:28]dirname=/storage/ofd_packets [18:45:28]CheckFolder done [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00166507 [18:45:28]NVStorageSaveData ofd_packets/00166507 [18:45:28]File name is /storage/ofd_packets/00166507 [18:45:28]Write 301 bytes [18:45:28]NVStorageSaveData done [18:45:28]OFDSenderStorePacket done [18:45:28]KKMCreateOFDPacket done [18:45:28]NVStorageSaveData kkm_last_timestamp [18:45:28]File name is /storage/kkm_last_timestamp [18:45:28]Write 4 bytes [18:45:28]NVStorageSaveData done [18:45:28]ExternCall_PrintAddStr [18:45:28]wPrintStart [18:45:28]Write to MH i2c: 01 00 00 86 06 8C [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [18:45:28]RasterBufferAndPrint [18:45:28]line Счет N : (1)221088 [18:45:28]line ИНН: 02508201610067 [18:45:28]line Контрольно-Кассовый Чек [18:45:28]line ПРОДАЖА [18:45:28]line ТРК (МРК, ГНК) : 13 [18:45:28]line Товар: 2710124130 [18:45:28]line Аи-92-К-5 [18:45:28]line 14.950 * 66.90 [18:45:28]line = 1000.16 [18:45:28]line НДС 12% НСП 1% [18:45:28]line > о реализуемом товаре [18:45:28]line ОКРУГЛЕНИЕ: -0.16 [18:45:28]line ИТОГО: 1000.00 [18:45:28]line Внесено: 1000.00 [18:45:28]line СДАЧА: 0.00 [18:45:28]line НСП 1% : 8.85 [18:45:28]line НДС 12% : 106.21 [18:45:28]line Наличными: 1000.00 [18:45:28]line Безнал.: 0.00 [18:45:28]line Место: АЗС № 161 "Партнер Нефть" [18:45:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:45:28]line СНО: Общий режим [18:45:28]line Чек 262 22.10.2024 18:45 [18:45:28]line Смена: 536 ФФД: 1.0 [18:45:28]line ЗНМ: 0300000104 [18:45:28]line РНМ: 0000000000091764 [18:45:28]line Версия ККМ: 001 [18:45:28]line ФМ: 0000000000871759 [18:45:28]line ФД: 166507 [18:45:28]line ФПД: 182762842297290 [18:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184527&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166507&fm=182762842297290&tin=02508201610067®Number=0000000000091764&sum=100000 [18:45:28]OFD Sender: Processing packet 166507 [packets to send 48, broken 47] [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00166507 [18:45:28]OFD Sender: To server: pG, [18:45:28]CommunicateWithHost lk.salyk.kg:30040 [18:45:28]ConnectInit lk.salyk.kg [18:45:28]written 0, free lines is 4095 [18:45:28]Connected sock=7 [18:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 48 07 01 75 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 C7 F2 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 8A 02 00 35 04 06 00 A6 38 CA 4B 13 CA 79 00 3D FF A3 0D 8D 70 [18:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 71 9A 47 00 89 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 31 37 35 39 10 04 04 00 6B 8A 02 00 F4 03 04 00 31 99 17 67 B6 04 01 00 00 13 E6 C8 6A CA 65 7A A1 [18:45:28]CommunicateWithHost err = 0 [18:45:28]CheckOFDResponse [18:45:28]1017 (14) - 77093643461234 [18:45:28]1041 (16) - 0000000000871759 [18:45:28]1040 (4) - 166507 [18:45:28]1012 (4) - 22.10.2024 12:23 [18:45:28]1206 (1) - 0 [18:45:28]OFD Sender: Remove packet 166507 [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00166507 [18:45:28]NVStorageDeleteData [18:45:28]Write to MH i2c: 01 00 00 B1 06 B7 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 BB 0C 85 [18:45:28]RasterBufferAndPrint [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]written 0, free lines is 3266 [18:45:28]MH_Cut [18:45:28]Write to MH i2c: D1 01 00 B8 06 01 90 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 B8 06 00 8F [18:45:28]Write to MH i2c: 01 00 00 B9 06 BF [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:29]OFD Sender: No OFD packet to send [18:45:29]*** Cut start [18:45:29]*** Partial cut [18:45:29]*** CUTSNS_PIN = 1 [18:45:29]*** CUTSNS_PIN = 0 [18:45:29]*** Brake cut motor [18:45:30]Read from MH i2c: 01 [18:45:30]MH_I2C_Read... [18:45:30]*** Stop cut motor [18:45:30]*** Cut end [18:45:30]Read from MH i2c: 01 07 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [18:45:30]process_action close_receipt done [18:45:30]requested_data is exist [18:45:30]produce_requested_data [18:45:30]requested_item fm.sn is exist - process it [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 11 00 00 [18:45:30]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [18:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:45:30]wFMCommunicate OK [18:45:30]requested_item fd.num is exist - process it [18:45:30]SAM_PROTO_GetFieldsCounters [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 00 00 [18:45:30]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 62 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 62 00 BB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [18:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetFieldsCounters done [18:45:30]requested_item shift.num is exist - process it [18:45:30]requested_item shift.opened is exist - process it [18:45:30]req_shift_opened [18:45:30]FM_GetShiftState [18:45:30]SAM_PROTO_GetShiftState [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 01 00 [18:45:30]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 92 [18:45:30]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetShiftState done [18:45:30]FM_GetShiftState done [18:45:30]req_shift_opened done [18:45:30]requested_item shift.open_date is exist - process it [18:45:30]req_shift_open_date [18:45:30]req_shift_open_date done [18:45:30]produce_requested_data done [18:45:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166507,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:45:30]process_action_free close_receipt [18:45:30]json_value_free [18:45:30]json_value_free done [18:45:30]process_json_proto returns [18:45:30]Send response to host [18:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166507,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:45:30]free response buf [18:45:30]execute_script done [18:45:30]execute_script returns [18:45:30]free content buf [18:45:30]Sock 9.Close socket [18:45:30]Sock 9.Thread stoped [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:46]accept exits with 10 [18:48:46]New connection [18:48:46]New thread 3067489636 created [18:48:46]Thread 3067632996 joined [18:48:46]Waiting for new connection... [18:48:46] Sock 10.Parse request [18:48:46]Sock 10.Check first char [18:48:46]Sock 10.First char is OK [18:48:46]request: POST /json_proto HTTP/1.0 [18:48:46]Method: POST [18:48:46]URL: /json_proto [18:48:46]Method is POST - this is cgi request [18:48:46]url: /json_proto [18:48:46]query_string will be loaded in cgi processing [18:48:46]execute_cgi json_proto POST (null) [18:48:46]execute_cgi path=json_proto method=POST [18:48:46]POST find Content-Length [18:48:46]Host: 172.17.53.195:8080 [18:48:46]Content-Length: 769 [18:48:46]Content-Type: application/json [18:48:46] [18:48:46]POST finish read [18:48:46]Found Content-Length = 769 [18:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]execute_script... [18:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]POST & json_proto [18:48:46]process_json_proto [18:48:46]json parsed OK: [18:48:46]protocol is kg_v1.0 [18:48:46]action value=close_receipt [18:48:46]process_action close_receipt [18:48:46]cmd_close_receipt [18:48:46]MH_GetDate [18:48:46]Write to MH i2c: F0 00 00 BD 06 B2 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 09 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 09 00 BD 06 00 8F F3 17 67 21 48 4A 65 D3 [18:48:46]GetLastDocTimeStamp 1729622727 [18:48:46]current date 1729622927 [18:48:46]FM_GetShiftState [18:48:46]SAM_PROTO_GetShiftState [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 13 01 00 [18:48:46]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 94 [18:48:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_GetShiftState done [18:48:46]FM_GetShiftState done [18:48:46]opened in 1729557463 [18:48:46]opened+sec_in_day 1729643863 [18:48:46]quantity*price = 120018 [18:48:46]sum+1 = 120020 [18:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 263 22.10.2024 18:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166508 ФПД: 49534276263683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184847&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166508&fm=49534276263683&tin=02508201610067®Number=0000000000091764&sum=120019 [18:48:48]StoreToDocumentArchive [18:48:48]shift 536 fd 166508 [18:48:48]save to /storage/0536/doc_00166508 [18:48:48]save last doc name /storage/0536/doc_00166508 to /storage/kkm_last_doc_name [18:48:48]save OK [18:48:48]Clear old archive folders... [18:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:48]tlvbuf is 011F0090 [18:48:48]SAM_PROTO_ClearQueue [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 09 00 00 [18:48:48]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_ClearQueue done [18:48:48]KKMCreateOFDPacket [18:48:48]OFDProtocolAddRootSTLVToBuf [18:48:48]FM_MakeSignedData [18:48:48]FM_MakeSignedData [18:48:48]SAM_PROTO_SignData [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 01 02 [18:48:48]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=255 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8A 02 00 35 04 06 00 2D [18:48:48]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8A 02 00 35 04 06 00 2D 00 00 55 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=10 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 02 02 05 0D 18 F0 DF 03 [18:48:48]Write to MH i2c: E2 0D 00 CE 06 80 0D 02 02 05 00 0D 18 F0 DF 03 00 00 4F [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 03 02 [18:48:48]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0B 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0B 00 CF 06 00 55 E9 A7 E5 54 55 64 0D 90 00 35 [18:48:48]RAPDU: 55 E9 A7 E5 54 55 64 0D 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_SignData done [18:48:48]FM_MakeSignedData done [18:48:48]CreateOFDProtocolMessage [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 11 00 00 [18:48:48]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [18:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:48]wFMCommunicate OK [18:48:48]CreateOFDProtocolMessage done [18:48:48]OFDSenderStorePacket 166508 [18:48:48]StoreOFDPacket docnum=166508 [18:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 72 5F 07 01 32 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8A 02 00 35 04 06 00 2D 0D 18 F0 DF 03 55 E9 A7 E5 54 55 64 0D [18:48:48]CheckFolder [18:48:48]dirname=/storage/ofd_packets [18:48:48]CheckFolder done [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00166508 [18:48:48]NVStorageSaveData ofd_packets/00166508 [18:48:48]File name is /storage/ofd_packets/00166508 [18:48:48]Write 301 bytes [18:48:48]NVStorageSaveData done [18:48:48]OFDSenderStorePacket done [18:48:48]KKMCreateOFDPacket done [18:48:48]NVStorageSaveData kkm_last_timestamp [18:48:48]File name is /storage/kkm_last_timestamp [18:48:48]Write 4 bytes [18:48:48]NVStorageSaveData done [18:48:48]ExternCall_PrintAddStr [18:48:48]wPrintStart [18:48:48]Write to MH i2c: 01 00 00 D1 06 D7 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [18:48:48]RasterBufferAndPrint [18:48:48]line Счет N : (1)221089 [18:48:48]line ИНН: 02508201610067 [18:48:48]line Контрольно-Кассовый Чек [18:48:48]line ПРОДАЖА [18:48:48]line ТРК (МРК, ГНК) : 23 [18:48:48]line Товар: 2710124130 [18:48:48]line Аи-92-К-5 [18:48:48]line 17.940 * 66.90 [18:48:48]line = 1200.19 [18:48:48]line НДС 12% НСП 1% [18:48:48]line > о реализуемом товаре [18:48:48]line ИТОГО: 1200.19 [18:48:48]line НСП 1% : 10.62 [18:48:48]line НДС 12% : 127.45 [18:48:48]line Наличными: 0.00 [18:48:48]line Безнал.: 1200.19 [18:48:48]line Место: АЗС № 161 "Партнер Нефть" [18:48:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:48:48]line СНО: Общий режим [18:48:48]line Чек 263 22.10.2024 18:48 [18:48:48]line Смена: 536 ФФД: 1.0 [18:48:48]line ЗНМ: 0300000104 [18:48:48]line РНМ: 0000000000091764 [18:48:48]line Версия ККМ: 001 [18:48:48]line Платежная система: Mbank [18:48:48]line ФМ: 0000000000871759 [18:48:48]line ФД: 166508 [18:48:48]line ФПД: 49534276263683 [18:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184847&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166508&fm=49534276263683&tin=02508201610067®Number=0000000000091764&sum=120019 [18:48:48]written 0, free lines is 4095 [18:48:48]OFD Sender: Processing packet 166508 [packets to send 48, broken 47] [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00166508 [18:48:48]OFD Sender: To server: pG, [18:48:48]CommunicateWithHost lk.salyk.kg:30040 [18:48:48]ConnectInit lk.salyk.kg [18:48:49]Connected sock=7 [18:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 72 5F 07 01 32 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8A 02 00 35 04 06 00 2D 0D 18 F0 DF 03 55 E9 A7 E5 54 55 64 0D [18:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C 36 47 00 FF C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 8A 02 00 F4 03 04 00 F9 99 17 67 B6 04 01 00 00 F4 D1 9D ED 05 51 93 FF [18:48:49]CommunicateWithHost err = 0 [18:48:49]CheckOFDResponse [18:48:49]1017 (14) - 77093643461234 [18:48:49]1041 (16) - 0000000000871759 [18:48:49]1040 (4) - 166508 [18:48:49]1012 (4) - 22.10.2024 12:26 [18:48:49]1206 (1) - 0 [18:48:49]OFD Sender: Remove packet 166508 [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00166508 [18:48:49]NVStorageDeleteData [18:48:49]Write to MH i2c: 01 00 00 FA 06 00 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 E3 0C F6 [18:48:49]RasterBufferAndPrint [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]written 0, free lines is 3305 [18:48:49]MH_Cut [18:48:49]Write to MH i2c: D1 01 00 01 07 01 DA [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 01 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 01 00 01 07 00 D9 [18:48:49]Write to MH i2c: 01 00 00 02 07 09 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]OFD Sender: No OFD packet to send [18:48:50]*** Cut start [18:48:50]*** Partial cut [18:48:50]*** CUTSNS_PIN = 1 [18:48:50]*** CUTSNS_PIN = 0 [18:48:50]*** Brake cut motor [18:48:50]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]*** Stop cut motor [18:48:50]*** Cut end [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 FF 0F 1E [18:48:50]process_action close_receipt done [18:48:50]requested_data is exist [18:48:50]produce_requested_data [18:48:50]requested_item fm.sn is exist - process it [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 11 00 00 [18:48:50]Write to MH i2c: E2 08 00 03 07 80 11 00 00 00 00 00 00 84 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 03 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [18:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:48:50]wFMCommunicate OK [18:48:50]requested_item fd.num is exist - process it [18:48:50]SAM_PROTO_GetFieldsCounters [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 13 00 00 [18:48:50]Write to MH i2c: E2 08 00 04 07 80 13 00 00 00 00 00 00 87 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 62 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 62 00 04 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [18:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:51]wFMCommunicate OK [18:48:51]SAM_PROTO_GetFieldsCounters done [18:48:51]requested_item shift.num is exist - process it [18:48:51]requested_item shift.opened is exist - process it [18:48:51]req_shift_opened [18:48:51]FM_GetShiftState [18:48:51]SAM_PROTO_GetShiftState [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 01 00 [18:48:51]Write to MH i2c: E2 08 00 05 07 80 13 01 00 00 00 00 00 89 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 0E 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 0E 00 05 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DC [18:48:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:48:51]wFMCommunicate OK [18:48:51]SAM_PROTO_GetShiftState done [18:48:51]FM_GetShiftState done [18:48:51]req_shift_opened done [18:48:51]requested_item shift.open_date is exist - process it [18:48:51]req_shift_open_date [18:48:51]req_shift_open_date done [18:48:51]produce_requested_data done [18:48:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166508,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:48:51]process_action_free close_receipt [18:48:51]json_value_free [18:48:51]json_value_free done [18:48:51]process_json_proto returns [18:48:51]Send response to host [18:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166508,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:48:51]free response buf [18:48:51]execute_script done [18:48:51]execute_script returns [18:48:51]free content buf [18:48:51]Sock 10.Close socket [18:48:51]Sock 10.Thread stoped [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:42]accept exits with 9 [18:49:42]New connection [18:49:42]New thread 3067632996 created [18:49:42]Thread 3067489636 joined [18:49:42]Waiting for new connection... [18:49:42] Sock 9.Parse request [18:49:42]Sock 9.Check first char [18:49:42]Sock 9.First char is OK [18:49:42]request: POST /json_proto HTTP/1.0 [18:49:42]Method: POST [18:49:42]URL: /json_proto [18:49:42]Method is POST - this is cgi request [18:49:42]url: /json_proto [18:49:42]query_string will be loaded in cgi processing [18:49:42]execute_cgi json_proto POST (null) [18:49:42]execute_cgi path=json_proto method=POST [18:49:42]POST find Content-Length [18:49:42]Host: 172.17.53.195:8080 [18:49:42]Content-Length: 677 [18:49:42]Content-Type: application/json [18:49:42] [18:49:42]POST finish read [18:49:42]Found Content-Length = 677 [18:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:42]execute_script... [18:49:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:42]POST & json_proto [18:49:42]process_json_proto [18:49:42]json parsed OK: [18:49:42]protocol is kg_v1.0 [18:49:42]action value=close_receipt [18:49:42]process_action close_receipt [18:49:42]cmd_close_receipt [18:49:42]MH_GetDate [18:49:42]Write to MH i2c: F0 00 00 06 07 FC [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 09 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: F0 09 00 06 07 00 C7 F3 17 67 21 48 4A 65 55 [18:49:42]GetLastDocTimeStamp 1729622927 [18:49:42]current date 1729622983 [18:49:42]FM_GetShiftState [18:49:42]SAM_PROTO_GetShiftState [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 13 01 00 [18:49:42]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:42]Read from MH i2c: E2 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 0E 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DE [18:49:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:49:42]wFMCommunicate OK [18:49:42]SAM_PROTO_GetShiftState done [18:49:42]FM_GetShiftState done [18:49:42]opened in 1729557463 [18:49:42]opened+sec_in_day 1729643863 [18:49:42]quantity*price = 50010 [18:49:42]sum+1 = 50012 [18:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 264 22.10.2024 18:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166509 ФПД: 175414465521818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166509&fm=175414465521818&tin=02508201610067®Number=0000000000091764&sum=50000 [18:49:43]StoreToDocumentArchive [18:49:43]shift 536 fd 166509 [18:49:43]save to /storage/0536/doc_00166509 [18:49:43]save last doc name /storage/0536/doc_00166509 to /storage/kkm_last_doc_name [18:49:43]save OK [18:49:43]Clear old archive folders... [18:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:43]tlvbuf is 0125D640 [18:49:43]SAM_PROTO_ClearQueue [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 09 00 00 [18:49:43]Write to MH i2c: E2 08 00 14 07 80 09 00 00 00 00 00 00 8D [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]SAM_PROTO_ClearQueue done [18:49:43]KKMCreateOFDPacket [18:49:43]OFDProtocolAddRootSTLVToBuf [18:49:43]FM_MakeSignedData [18:49:43]FM_MakeSignedData [18:49:43]SAM_PROTO_SignData [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 01 02 [18:49:43]Write to MH i2c: E2 08 00 15 07 80 0D 01 02 00 00 00 00 95 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [18:49:43]RAPDU: 90 00 [18:49:43]wFMCommunicate OK [18:49:43]wFMCommunicate request_size=255 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C7 F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8A 02 00 35 04 06 00 9F [18:49:43]Write to MH i2c: E2 02 01 16 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C7 F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8A 02 00 35 04 06 00 9F 00 00 F6 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 03 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [18:49:44]RAPDU: 90 00 [18:49:44]wFMCommunicate OK [18:49:44]wFMCommunicate request_size=10 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 0D 02 02 05 89 DC E7 E8 9A [18:49:44]Write to MH i2c: E2 0D 00 17 07 80 0D 02 02 05 00 89 DC E7 E8 9A 00 00 70 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 03 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [18:49:44]RAPDU: 90 00 [18:49:44]wFMCommunicate OK [18:49:44]wFMCommunicate request_size=4 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 0D 03 02 [18:49:44]Write to MH i2c: E2 08 00 18 07 80 0D 03 02 00 00 00 00 9A [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0B 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 0B 00 18 07 00 C9 13 F3 B1 05 42 CA 4D 90 00 79 [18:49:44]RAPDU: C9 13 F3 B1 05 42 CA 4D 90 00 [18:49:44]wFMCommunicate OK [18:49:44]SAM_PROTO_SignData done [18:49:44]FM_MakeSignedData done [18:49:44]CreateOFDProtocolMessage [18:49:44]wFMCommunicate request_size=4 [18:49:44]MH_SAM_APDU [18:49:44]CAPDU: 80 11 00 00 [18:49:44]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:44]Read from MH i2c: E2 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 17 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [18:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:44]wFMCommunicate OK [18:49:44]CreateOFDProtocolMessage done [18:49:44]OFDSenderStorePacket 166509 [18:49:44]StoreOFDPacket docnum=166509 [18:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 43 B9 07 01 6B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C7 F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8A 02 00 35 04 06 00 9F 89 DC E7 E8 9A C9 13 F3 B1 05 42 CA 4D [18:49:44]CheckFolder [18:49:44]dirname=/storage/ofd_packets [18:49:44]CheckFolder done [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00166509 [18:49:44]NVStorageSaveData ofd_packets/00166509 [18:49:44]File name is /storage/ofd_packets/00166509 [18:49:44]Write 301 bytes [18:49:44]NVStorageSaveData done [18:49:44]OFDSenderStorePacket done [18:49:44]KKMCreateOFDPacket done [18:49:44]NVStorageSaveData kkm_last_timestamp [18:49:44]File name is /storage/kkm_last_timestamp [18:49:44]Write 4 bytes [18:49:44]NVStorageSaveData done [18:49:44]ExternCall_PrintAddStr [18:49:44]wPrintStart [18:49:44]Write to MH i2c: 01 00 00 1A 07 21 [18:49:44]Write i2c OK [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 [18:49:44]MH_I2C_Read... [18:49:44]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [18:49:44]RasterBufferAndPrint [18:49:44]line Счет N : (1)221090 [18:49:44]line ИНН: 02508201610067 [18:49:44]line Контрольно-Кассовый Чек [18:49:44]line ПРОДАЖА [18:49:44]line ТРК (МРК, ГНК) : 14 [18:49:44]line Товар: 2710124500 [18:49:44]line Аи-95-К-5 [18:49:44]line 6.740 * 74.20 [18:49:44]line = 500.11 [18:49:44]line НДС 12% НСП 1% [18:49:44]line > о реализуемом товаре [18:49:44]line ОКРУГЛЕНИЕ: -0.11 [18:49:44]line ИТОГО: 500.00 [18:49:44]line Внесено: 500.00 [18:49:44]line СДАЧА: 0.00 [18:49:44]line НСП 1% : 4.43 [18:49:44]line НДС 12% : 53.11 [18:49:44]line Наличными: 500.00 [18:49:44]line Безнал.: 0.00 [18:49:44]line Место: АЗС № 161 "Партнер Нефть" [18:49:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:49:44]line СНО: Общий режим [18:49:44]line Чек 264 22.10.2024 18:49 [18:49:44]line Смена: 536 ФФД: 1.0 [18:49:44]line ЗНМ: 0300000104 [18:49:44]line РНМ: 0000000000091764 [18:49:44]line Версия ККМ: 001 [18:49:44]line ФМ: 0000000000871759 [18:49:44]line ФД: 166509 [18:49:44]line ФПД: 175414465521818 [18:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166509&fm=175414465521818&tin=02508201610067®Number=0000000000091764&sum=50000 [18:49:44]OFD Sender: Processing packet 166509 [packets to send 48, broken 47] [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00166509 [18:49:44]OFD Sender: To server: pG, [18:49:44]CommunicateWithHost lk.salyk.kg:30040 [18:49:44]ConnectInit lk.salyk.kg [18:49:44]written 0, free lines is 4095 [18:49:44]Connected sock=10 [18:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 43 B9 07 01 6B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 C7 F3 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8A 02 00 35 04 06 00 9F 89 DC E7 E8 9A C9 13 F3 B1 05 42 CA 4D [18:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 42 47 00 A4 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 8A 02 00 F4 03 04 00 31 9A 17 67 B6 04 01 00 00 E1 B2 7F 75 D1 33 90 81 [18:49:44]CommunicateWithHost err = 0 [18:49:44]CheckOFDResponse [18:49:44]1017 (14) - 77093643461234 [18:49:44]1041 (16) - 0000000000871759 [18:49:44]1040 (4) - 166509 [18:49:44]1012 (4) - 22.10.2024 12:27 [18:49:44]1206 (1) - 0 [18:49:44]OFD Sender: Remove packet 166509 [18:49:44]ProducePacketName [18:49:44]name=ofd_packets/00166509 [18:49:44]NVStorageDeleteData [18:49:45]Write to MH i2c: 01 00 00 45 07 4C [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: 01 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: 01 07 00 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 B4 0C 13 [18:49:45]RasterBufferAndPrint [18:49:45]line [18:49:45]line [18:49:45]line [18:49:45]line [18:49:45]line [18:49:45]written 0, free lines is 3258 [18:49:45]MH_Cut [18:49:45]Write to MH i2c: D1 01 00 4C 07 01 25 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: D1 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: D1 01 00 [18:49:45]MH_I2C_Read... [18:49:45]Read from MH i2c: D1 01 00 4C 07 00 24 [18:49:45]Write to MH i2c: 01 00 00 4D 07 54 [18:49:45]Write i2c OK [18:49:45]MH_I2C_Read... [18:49:45]OFD Sender: No OFD packet to send [18:49:45]*** Cut start [18:49:45]*** Partial cut [18:49:45]*** CUTSNS_PIN = 1 [18:49:45]*** CUTSNS_PIN = 0 [18:49:46]*** Brake cut motor [18:49:46]Read from MH i2c: 01 [18:49:46]MH_I2C_Read... [18:49:46]*** Stop cut motor [18:49:46]*** Cut end [18:49:46]Read from MH i2c: 01 07 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [18:49:46]process_action close_receipt done [18:49:46]requested_data is exist [18:49:46]produce_requested_data [18:49:46]requested_item fm.sn is exist - process it [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 11 00 00 [18:49:46]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [18:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:46]wFMCommunicate OK [18:49:46]requested_item fd.num is exist - process it [18:49:46]SAM_PROTO_GetFieldsCounters [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 13 00 00 [18:49:46]Write to MH i2c: E2 08 00 4F 07 80 13 00 00 00 00 00 00 D2 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 62 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 62 00 4F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [18:49:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_GetFieldsCounters done [18:49:46]requested_item shift.num is exist - process it [18:49:46]requested_item shift.opened is exist - process it [18:49:46]req_shift_opened [18:49:46]FM_GetShiftState [18:49:46]SAM_PROTO_GetShiftState [18:49:46]wFMCommunicate request_size=4 [18:49:46]MH_SAM_APDU [18:49:46]CAPDU: 80 13 01 00 [18:49:46]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [18:49:46]Write i2c OK [18:49:46]MH_I2C_Read... [18:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:46]Read from MH i2c: E2 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0E 00 [18:49:46]MH_I2C_Read... [18:49:46]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 27 [18:49:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:49:46]wFMCommunicate OK [18:49:46]SAM_PROTO_GetShiftState done [18:49:46]FM_GetShiftState done [18:49:46]req_shift_opened done [18:49:46]requested_item shift.open_date is exist - process it [18:49:46]req_shift_open_date [18:49:46]req_shift_open_date done [18:49:46]produce_requested_data done [18:49:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166509,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:49:46]process_action_free close_receipt [18:49:46]json_value_free [18:49:46]json_value_free done [18:49:46]process_json_proto returns [18:49:46]Send response to host [18:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166509,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:49:46]free response buf [18:49:46]execute_script done [18:49:46]execute_script returns [18:49:46]free content buf [18:49:46]Sock 9.Close socket [18:49:46]Sock 9.Thread stoped [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:43]ConnectInit Can't connect to host [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:26]accept exits with 7 [18:59:26]New connection [18:59:26]New thread 3067489636 created [18:59:26]Thread 3067632996 joined [18:59:26]Waiting for new connection... [18:59:26] Sock 7.Parse request [18:59:26]Sock 7.Check first char [18:59:26]Sock 7.First char is OK [18:59:26]request: POST /json_proto HTTP/1.0 [18:59:26]Method: POST [18:59:26]URL: /json_proto [18:59:26]Method is POST - this is cgi request [18:59:26]url: /json_proto [18:59:26]query_string will be loaded in cgi processing [18:59:26]execute_cgi json_proto POST (null) [18:59:26]execute_cgi path=json_proto method=POST [18:59:26]POST find Content-Length [18:59:26]Host: 172.17.53.195:8080 [18:59:26]Content-Length: 215 [18:59:26]Content-Type: application/json [18:59:26] [18:59:26]POST finish read [18:59:26]Found Content-Length = 215 [18:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]execute_script... [18:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]POST & json_proto [18:59:26]process_json_proto [18:59:26]json parsed OK: [18:59:26]protocol is kg_v1.0 [18:59:26]action value=get_value [18:59:26]process_action get_value [18:59:26]cmd_get_value [18:59:26]process_action get_value done [18:59:26]requested_data is exist [18:59:26]produce_requested_data [18:59:26]requested_item kkm.sn is exist - process it [18:59:26]requested_item kkm.ver is exist - process it [18:59:26]requested_item fm.sn is exist - process it [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 11 00 00 [18:59:26]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [18:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:59:26]wFMCommunicate OK [18:59:26]requested_item fd.num is exist - process it [18:59:26]SAM_PROTO_GetFieldsCounters [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 13 00 00 [18:59:26]Write to MH i2c: E2 08 00 52 07 80 13 00 00 00 00 00 00 D5 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 62 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 62 00 52 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:59:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_GetFieldsCounters done [18:59:26]requested_item shift.num is exist - process it [18:59:26]requested_item shift.opened is exist - process it [18:59:26]req_shift_opened [18:59:26]FM_GetShiftState [18:59:26]SAM_PROTO_GetShiftState [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 13 01 00 [18:59:26]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2A [18:59:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_GetShiftState done [18:59:26]FM_GetShiftState done [18:59:26]req_shift_opened done [18:59:26]requested_item shift.open_date is exist - process it [18:59:26]req_shift_open_date [18:59:26]req_shift_open_date done [18:59:26]produce_requested_data done [18:59:26]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166509,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:59:26]process_action_free get_value [18:59:26]json_value_free [18:59:26]json_value_free done [18:59:26]process_json_proto returns [18:59:26]Send response to host [18:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166509,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:59:26]free response buf [18:59:26]execute_script done [18:59:26]execute_script returns [18:59:26]free content buf [18:59:26]Sock 7.Close socket [18:59:26]Sock 7.Thread stoped [18:59:26]accept exits with 10 [18:59:26]New connection [18:59:26]New thread 3067632996 created [18:59:26]Thread 3067489636 joined [18:59:26]Waiting for new connection... [18:59:26] Sock 10.Parse request [18:59:26]Sock 10.Check first char [18:59:26]Sock 10.First char is OK [18:59:26]request: POST /json_proto HTTP/1.0 [18:59:26]Method: POST [18:59:26]URL: /json_proto [18:59:26]Method is POST - this is cgi request [18:59:26]url: /json_proto [18:59:26]query_string will be loaded in cgi processing [18:59:26]execute_cgi json_proto POST (null) [18:59:26]execute_cgi path=json_proto method=POST [18:59:26]POST find Content-Length [18:59:26]Host: 172.17.53.195:8080 [18:59:26]Content-Length: 331 [18:59:26]Content-Type: application/json [18:59:26] [18:59:26]POST finish read [18:59:26]Found Content-Length = 331 [18:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:59:26]execute_script... [18:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:59:26]POST & json_proto [18:59:26]process_json_proto [18:59:26]json parsed OK: [18:59:26]protocol is kg_v1.0 [18:59:26]action value=get_value [18:59:26]process_action get_value [18:59:26]cmd_get_value [18:59:26]process_action get_value done [18:59:26]requested_data is exist [18:59:26]produce_requested_data [18:59:26]requested_item fm.sale.total is exist - process it [18:59:26]SAM_PROTO_GetFMData [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 13 03 00 [18:59:26]Write to MH i2c: E2 08 00 54 07 80 13 03 00 00 00 00 00 DA [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 54 07 00 C5 04 85 04 C1 04 6E 04 04 00 3D 86 02 00 69 04 A3 00 6F 04 04 00 3E 85 02 00 B1 04 05 00 B3 AC FA B3 03 70 04 05 00 DC C1 2A 2A 03 72 04 04 00 D7 EA CF 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 82 B6 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 40 72 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 73 [18:59:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3D 86 02 00 69 04 A3 00 6F 04 04 00 3E 85 02 00 B1 04 05 00 B3 AC FA B3 03 70 04 05 00 DC C1 2A 2A 03 72 04 04 00 D7 EA CF 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B 82 B6 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 40 72 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 17 00 00 [18:59:27]Write to MH i2c: E2 08 00 55 07 80 17 00 00 00 00 00 00 DC [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 55 07 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A8 [18:59:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 17 00 00 [18:59:27]Write to MH i2c: E2 08 00 56 07 80 17 00 00 00 00 00 00 DD [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 56 07 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EF [18:59:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 17 00 00 [18:59:27]Write to MH i2c: E2 08 00 57 07 80 17 00 00 00 00 00 00 DE [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 FD 00 57 07 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6A [18:59:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 17 00 00 [18:59:27]Write to MH i2c: E2 08 00 58 07 80 17 00 00 00 00 00 00 DF [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 E2 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 E2 00 58 07 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BD [18:59:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:59:28]wFMCommunicate OK [18:59:28]SAM_PROTO_GetFMData done [18:59:28]requested_item fm.sale_refund.total is exist - process it [18:59:28]requested_item fm.buy.total is exist - process it [18:59:28]requested_item shift.sale.total is exist - process it [18:59:28]SAM_PROTO_GetShiftData [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 13 02 00 [18:59:28]Write to MH i2c: E2 08 00 59 07 80 13 02 00 00 00 00 00 DE [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 FD 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 FD 00 59 07 00 B1 04 AA 04 AD 04 6E 04 04 00 08 01 00 00 69 04 9E 00 6F 04 04 00 08 01 00 00 B1 04 04 00 FF DD 85 01 70 04 04 00 C4 53 5A 01 72 04 03 00 3B 8A 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 48 6A 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7B 73 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 57 [18:59:28]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 08 01 00 00 69 04 9E 00 6F 04 04 00 08 01 00 00 B1 04 04 00 FF DD 85 01 70 04 04 00 C4 53 5A 01 72 04 03 00 3B 8A 2B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 48 6A 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7B 73 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:59:28]wFMCommunicate OK [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 17 00 00 [18:59:28]Write to MH i2c: E2 08 00 5A 07 80 17 00 00 00 00 00 00 E1 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 FD 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 FD 00 5A 07 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 FA [18:59:28]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [18:59:28]wFMCommunicate OK [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 17 00 00 [18:59:28]Write to MH i2c: E2 08 00 5B 07 80 17 00 00 00 00 00 00 E2 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:29]Read from MH i2c: E2 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 FD 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 FD 00 5B 07 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 9B [18:59:29]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [18:59:29]wFMCommunicate OK [18:59:29]wFMCommunicate request_size=4 [18:59:29]MH_SAM_APDU [18:59:29]CAPDU: 80 17 00 00 [18:59:29]Write to MH i2c: E2 08 00 5C 07 80 17 00 00 00 00 00 00 E3 [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:29]Read from MH i2c: E2 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 FD 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 FD 00 5C 07 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5B [18:59:29]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:59:29]wFMCommunicate OK [18:59:29]wFMCommunicate request_size=4 [18:59:29]MH_SAM_APDU [18:59:29]CAPDU: 80 17 00 00 [18:59:29]Write to MH i2c: E2 08 00 5D 07 80 17 00 00 00 00 00 00 E4 [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [18:59:29]Read from MH i2c: E2 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 CE 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 CE 00 5D 07 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [18:59:29]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:59:29]wFMCommunicate OK [18:59:29]SAM_PROTO_GetShiftData done [18:59:29]requested_item shift.sale.total_cash is exist - process it [18:59:29]requested_item shift.sale_refund.total is exist - process it [18:59:29]requested_item shift.sale_refund.total_cash is exist - process it [18:59:29]requested_item shift.buy.total is exist - process it [18:59:29]requested_item shift.buy.total_cash is exist - process it [18:59:29]produce_requested_data done [18:59:29]produce_requested_data return {"fm.sale.total":159044517.63,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":255503.35,"shift.sale.total_cash":226969.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:59:29]process_action_free get_value [18:59:29]json_value_free [18:59:29]json_value_free done [18:59:29]process_json_proto returns [18:59:29]Send response to host [18:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159044517.63,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":255503.35,"shift.sale.total_cash":226969.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:59:29]free response buf [18:59:29]execute_script done [18:59:29]execute_script returns [18:59:29]free content buf [18:59:29]Sock 10.Close socket [18:59:29]Sock 10.Thread stoped [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:44]accept exits with 7 [18:59:44]New connection [18:59:44]New thread 3067489636 created [18:59:44]Thread 3067632996 joined [18:59:44]Waiting for new connection... [18:59:44] Sock 7.Parse request [18:59:44]Sock 7.Check first char [18:59:44]Sock 7.First char is OK [18:59:44]request: POST /json_proto HTTP/1.0 [18:59:44]Method: POST [18:59:44]URL: /json_proto [18:59:44]Method is POST - this is cgi request [18:59:44]url: /json_proto [18:59:44]query_string will be loaded in cgi processing [18:59:44]execute_cgi json_proto POST (null) [18:59:44]execute_cgi path=json_proto method=POST [18:59:44]POST find Content-Length [18:59:44]Host: 172.17.53.195:8080 [18:59:44]Content-Length: 766 [18:59:44]Content-Type: application/json [18:59:44] [18:59:44]POST finish read [18:59:44]Found Content-Length = 766 [18:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 76.20, "quantity" : 66.830, "sum" : 5092.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5092.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:44]execute_script... [18:59:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 76.20, "quantity" : 66.830, "sum" : 5092.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5092.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:44]POST & json_proto [18:59:44]process_json_proto [18:59:44]json parsed OK: [18:59:44]protocol is kg_v1.0 [18:59:44]action value=close_receipt [18:59:44]process_action close_receipt [18:59:44]cmd_close_receipt [18:59:44]MH_GetDate [18:59:44]Write to MH i2c: F0 00 00 5E 07 54 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: F0 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: F0 09 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: F0 09 00 5E 07 00 20 F6 17 67 21 48 4A 65 09 [18:59:44]GetLastDocTimeStamp 1729622983 [18:59:44]current date 1729623584 [18:59:44]FM_GetShiftState [18:59:44]SAM_PROTO_GetShiftState [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 13 01 00 [18:59:44]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0E 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [18:59:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_GetShiftState done [18:59:44]FM_GetShiftState done [18:59:44]opened in 1729557463 [18:59:44]opened+sec_in_day 1729643863 [18:59:44]quantity*price = 509244 [18:59:44]sum+1 = 509246 [18:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5092.45 НСП 1% : 45.07 НДС 12% : 540.79 Наличными: 0.00 Безнал.: 5092.45 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 265 22.10.2024 18:59 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166510 ФПД: 48361073580349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166510&fm=48361073580349&tin=02508201610067®Number=0000000000091764&sum=509245 [18:59:45]StoreToDocumentArchive [18:59:45]shift 536 fd 166510 [18:59:45]save to /storage/0536/doc_00166510 [18:59:45]save last doc name /storage/0536/doc_00166510 to /storage/kkm_last_doc_name [18:59:45]save OK [18:59:45]Clear old archive folders... [18:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:45]tlvbuf is 0120A8B0 [18:59:45]SAM_PROTO_ClearQueue [18:59:45]wFMCommunicate request_size=4 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 09 00 00 [18:59:45]Write to MH i2c: E2 08 00 6C 07 80 09 00 00 00 00 00 00 E5 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [18:59:45]RAPDU: 90 00 [18:59:45]wFMCommunicate OK [18:59:45]SAM_PROTO_ClearQueue done [18:59:45]KKMCreateOFDPacket [18:59:45]OFDProtocolAddRootSTLVToBuf [18:59:45]FM_MakeSignedData [18:59:45]FM_MakeSignedData [18:59:45]SAM_PROTO_SignData [18:59:45]wFMCommunicate request_size=4 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 0D 01 02 [18:59:45]Write to MH i2c: E2 08 00 6D 07 80 0D 01 02 00 00 00 00 ED [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [18:59:45]RAPDU: 90 00 [18:59:45]wFMCommunicate OK [18:59:45]wFMCommunicate request_size=255 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 0E 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D C5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D C5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D C5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 21 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8A 02 00 35 04 06 00 2B FB F0 9C [18:59:45]Write to MH i2c: E2 02 01 6E 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 0E 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D C5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D C5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D C5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 21 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8A 02 00 35 04 06 00 2B FB F0 9C 00 00 77 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [18:59:45]RAPDU: 90 00 [18:59:45]wFMCommunicate OK [18:59:45]wFMCommunicate request_size=7 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 0D 02 02 02 99 3D [18:59:45]Write to MH i2c: E2 0A 00 6F 07 80 0D 02 02 02 00 99 3D 00 00 CA [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [18:59:45]RAPDU: 90 00 [18:59:45]wFMCommunicate OK [18:59:45]wFMCommunicate request_size=4 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 0D 03 02 [18:59:45]Write to MH i2c: E2 08 00 70 07 80 0D 03 02 00 00 00 00 F2 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 0B 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 0B 00 70 07 00 92 33 B9 B9 5A 44 FF 53 90 00 1A [18:59:45]RAPDU: 92 33 B9 B9 5A 44 FF 53 90 00 [18:59:45]wFMCommunicate OK [18:59:45]SAM_PROTO_SignData done [18:59:45]FM_MakeSignedData done [18:59:45]CreateOFDProtocolMessage [18:59:45]wFMCommunicate request_size=4 [18:59:45]MH_SAM_APDU [18:59:45]CAPDU: 80 11 00 00 [18:59:45]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:45]Read from MH i2c: E2 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 17 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [18:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:59:45]wFMCommunicate OK [18:59:45]CreateOFDProtocolMessage done [18:59:45]OFDSenderStorePacket 166510 [18:59:45]StoreOFDPacket docnum=166510 [18:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 69 4E 04 01 D2 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 0E 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D C5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D C5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D C5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 21 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8A 02 00 35 04 06 00 2B FB F0 9C 99 3D 92 33 B9 B9 5A 44 FF 53 [18:59:45]CheckFolder [18:59:45]dirname=/storage/ofd_packets [18:59:45]CheckFolder done [18:59:45]ProducePacketName [18:59:45]name=ofd_packets/00166510 [18:59:45]NVStorageSaveData ofd_packets/00166510 [18:59:45]File name is /storage/ofd_packets/00166510 [18:59:45]Write 298 bytes [18:59:45]NVStorageSaveData done [18:59:45]OFDSenderStorePacket done [18:59:45]KKMCreateOFDPacket done [18:59:45]NVStorageSaveData kkm_last_timestamp [18:59:45]File name is /storage/kkm_last_timestamp [18:59:45]Write 4 bytes [18:59:45]NVStorageSaveData done [18:59:45]ExternCall_PrintAddStr [18:59:45]wPrintStart [18:59:45]Write to MH i2c: 01 00 00 72 07 79 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [18:59:45]RasterBufferAndPrint [18:59:45]line Счет N : (1)221091 [18:59:45]line ИНН: 02508201610067 [18:59:45]line Контрольно-Кассовый Чек [18:59:45]line ПРОДАЖА [18:59:45]line ТРК (МРК, ГНК) : 11 [18:59:45]line Товар: 2710124100 [18:59:45]line ДТ-К-1 [18:59:45]line 66.830 * 76.20 [18:59:45]line = 5092.45 [18:59:45]line НДС 12% НСП 1% [18:59:45]line > о реализуемом товаре [18:59:45]line ИТОГО: 5092.45 [18:59:45]line НСП 1% : 45.07 [18:59:45]line НДС 12% : 540.79 [18:59:45]line Наличными: 0.00 [18:59:45]line Безнал.: 5092.45 [18:59:45]line Место: АЗС № 161 "Партнер Нефть" [18:59:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:59:45]line СНО: Общий режим [18:59:45]line Чек 265 22.10.2024 18:59 [18:59:45]line Смена: 536 ФФД: 1.0 [18:59:45]line ЗНМ: 0300000104 [18:59:45]line РНМ: 0000000000091764 [18:59:45]line Версия ККМ: 001 [18:59:45]line Платежная система: Mbank [18:59:45]line ФМ: 0000000000871759 [18:59:45]line ФД: 166510 [18:59:45]line ФПД: 48361073580349 [18:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185945&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166510&fm=48361073580349&tin=02508201610067®Number=0000000000091764&sum=509245 [18:59:46]OFD Sender: Processing packet 166510 [packets to send 48, broken 47] [18:59:46]ProducePacketName [18:59:46]name=ofd_packets/00166510 [18:59:46]OFD Sender: To server: pG, [18:59:46]CommunicateWithHost lk.salyk.kg:30040 [18:59:46]ConnectInit lk.salyk.kg [18:59:46]written 0, free lines is 4095 [18:59:46]Connected sock=10 [18:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 69 4E 04 01 D2 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 0E 05 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D C5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D C5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D C5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 21 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8A 02 00 35 04 06 00 2B FB F0 9C 99 3D 92 33 B9 B9 5A 44 FF 53 [18:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 AD 47 00 3D 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 8A 02 00 F4 03 04 00 8B 9C 17 67 B6 04 01 00 00 39 8C B1 32 94 67 ED A5 [18:59:46]CommunicateWithHost err = 0 [18:59:46]CheckOFDResponse [18:59:46]1017 (14) - 77093643461234 [18:59:46]1041 (16) - 0000000000871759 [18:59:46]1040 (4) - 166510 [18:59:46]1012 (4) - 22.10.2024 12:37 [18:59:46]1206 (1) - 0 [18:59:46]OFD Sender: Remove packet 166510 [18:59:46]ProducePacketName [18:59:46]name=ofd_packets/00166510 [18:59:46]NVStorageDeleteData [18:59:46]Write to MH i2c: 01 00 00 9B 07 A2 [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: 01 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: 01 07 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 E5 0C 9A [18:59:46]RasterBufferAndPrint [18:59:46]line [18:59:46]line [18:59:46]line [18:59:46]line [18:59:46]line [18:59:46]written 0, free lines is 3310 [18:59:46]MH_Cut [18:59:46]Write to MH i2c: D1 01 00 A2 07 01 7B [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: D1 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: D1 01 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: D1 01 00 A2 07 00 7A [18:59:46]Write to MH i2c: 01 00 00 A3 07 AA [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:47]OFD Sender: No OFD packet to send [18:59:47]*** Cut start [18:59:47]*** Partial cut [18:59:47]*** CUTSNS_PIN = 1 [18:59:47]*** CUTSNS_PIN = 0 [18:59:47]*** Brake cut motor [18:59:48]Read from MH i2c: 01 [18:59:48]MH_I2C_Read... [18:59:48]*** Stop cut motor [18:59:48]*** Cut end [18:59:48]Read from MH i2c: 01 07 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [18:59:48]process_action close_receipt done [18:59:48]requested_data is exist [18:59:48]produce_requested_data [18:59:48]requested_item fm.sn is exist - process it [18:59:48]wFMCommunicate request_size=4 [18:59:48]MH_SAM_APDU [18:59:48]CAPDU: 80 11 00 00 [18:59:48]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [18:59:48]Write i2c OK [18:59:48]MH_I2C_Read... [18:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:48]Read from MH i2c: E2 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 17 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [18:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:59:48]wFMCommunicate OK [18:59:48]requested_item fd.num is exist - process it [18:59:48]SAM_PROTO_GetFieldsCounters [18:59:48]wFMCommunicate request_size=4 [18:59:48]MH_SAM_APDU [18:59:48]CAPDU: 80 13 00 00 [18:59:48]Write to MH i2c: E2 08 00 A5 07 80 13 00 00 00 00 00 00 28 [18:59:48]Write i2c OK [18:59:48]MH_I2C_Read... [18:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:48]Read from MH i2c: E2 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 62 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 62 00 A5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:48]wFMCommunicate OK [18:59:48]SAM_PROTO_GetFieldsCounters done [18:59:48]requested_item shift.num is exist - process it [18:59:48]requested_item shift.opened is exist - process it [18:59:48]req_shift_opened [18:59:48]FM_GetShiftState [18:59:48]SAM_PROTO_GetShiftState [18:59:48]wFMCommunicate request_size=4 [18:59:48]MH_SAM_APDU [18:59:48]CAPDU: 80 13 01 00 [18:59:48]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [18:59:48]Write i2c OK [18:59:48]MH_I2C_Read... [18:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:48]Read from MH i2c: E2 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 0E 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7D [18:59:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [18:59:48]wFMCommunicate OK [18:59:48]SAM_PROTO_GetShiftState done [18:59:48]FM_GetShiftState done [18:59:48]req_shift_opened done [18:59:48]requested_item shift.open_date is exist - process it [18:59:48]req_shift_open_date [18:59:48]req_shift_open_date done [18:59:48]produce_requested_data done [18:59:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166510,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [18:59:48]process_action_free close_receipt [18:59:48]json_value_free [18:59:48]json_value_free done [18:59:48]process_json_proto returns [18:59:48]Send response to host [18:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166510,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [18:59:48]free response buf [18:59:48]execute_script done [18:59:48]execute_script returns [18:59:48]free content buf [18:59:48]Sock 7.Close socket [18:59:48]Sock 7.Thread stoped [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:22]accept exits with 9 [19:00:22]New connection [19:00:22]New thread 3067632996 created [19:00:22]Thread 3067489636 joined [19:00:22]Waiting for new connection... [19:00:22] Sock 9.Parse request [19:00:22]Sock 9.Check first char [19:00:22]Sock 9.First char is OK [19:00:22]request: POST /json_proto HTTP/1.0 [19:00:22]Method: POST [19:00:22]URL: /json_proto [19:00:22]Method is POST - this is cgi request [19:00:22]url: /json_proto [19:00:22]query_string will be loaded in cgi processing [19:00:22]execute_cgi json_proto POST (null) [19:00:22]execute_cgi path=json_proto method=POST [19:00:22]POST find Content-Length [19:00:22]Host: 172.17.53.195:8080 [19:00:22]Content-Length: 682 [19:00:22]Content-Type: application/json [19:00:22] [19:00:22]POST finish read [19:00:22]Found Content-Length = 682 [19:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:22]execute_script... [19:00:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:22]POST & json_proto [19:00:22]process_json_proto [19:00:22]json parsed OK: [19:00:22]protocol is kg_v1.0 [19:00:22]action value=close_receipt [19:00:22]process_action close_receipt [19:00:22]cmd_close_receipt [19:00:22]MH_GetDate [19:00:22]Write to MH i2c: F0 00 00 A7 07 9D [19:00:22]Write i2c OK [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: F0 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: F0 09 00 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: F0 09 00 A7 07 00 47 F6 17 67 21 48 4A 65 79 [19:00:22]GetLastDocTimeStamp 1729623585 [19:00:22]current date 1729623623 [19:00:22]FM_GetShiftState [19:00:22]SAM_PROTO_GetShiftState [19:00:22]wFMCommunicate request_size=4 [19:00:22]MH_SAM_APDU [19:00:22]CAPDU: 80 13 01 00 [19:00:22]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [19:00:22]Write i2c OK [19:00:22]MH_I2C_Read... [19:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:22]Read from MH i2c: E2 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: E2 0E 00 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7F [19:00:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:00:22]wFMCommunicate OK [19:00:22]SAM_PROTO_GetShiftState done [19:00:22]FM_GetShiftState done [19:00:22]opened in 1729557463 [19:00:22]opened+sec_in_day 1729643863 [19:00:22]quantity*price = 100015 [19:00:22]sum+1 = 100017 [19:00:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 266 22.10.2024 19:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166511 ФПД: 265255890679054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166511&fm=265255890679054&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:23]StoreToDocumentArchive [19:00:23]shift 536 fd 166511 [19:00:23]save to /storage/0536/doc_00166511 [19:00:23]save last doc name /storage/0536/doc_00166511 to /storage/kkm_last_doc_name [19:00:23]save OK [19:00:23]Clear old archive folders... [19:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:23]tlvbuf is 0124E1C0 [19:00:23]SAM_PROTO_ClearQueue [19:00:23]wFMCommunicate request_size=4 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 09 00 00 [19:00:23]Write to MH i2c: E2 08 00 B5 07 80 09 00 00 00 00 00 00 2E [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:23]Read from MH i2c: E2 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 03 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [19:00:23]RAPDU: 90 00 [19:00:23]wFMCommunicate OK [19:00:23]SAM_PROTO_ClearQueue done [19:00:23]KKMCreateOFDPacket [19:00:23]OFDProtocolAddRootSTLVToBuf [19:00:23]FM_MakeSignedData [19:00:23]FM_MakeSignedData [19:00:23]SAM_PROTO_SignData [19:00:23]wFMCommunicate request_size=4 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 0D 01 02 [19:00:23]Write to MH i2c: E2 08 00 B6 07 80 0D 01 02 00 00 00 00 36 [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:23]Read from MH i2c: E2 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 03 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [19:00:23]RAPDU: 90 00 [19:00:23]wFMCommunicate OK [19:00:23]wFMCommunicate request_size=255 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 47 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8A 02 00 35 04 06 00 F1 [19:00:23]Write to MH i2c: E2 02 01 B7 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 47 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8A 02 00 35 04 06 00 F1 00 00 92 [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]wFMCommunicate request_size=10 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 0D 02 02 05 3F B3 23 75 0E [19:00:24]Write to MH i2c: E2 0D 00 B8 07 80 0D 02 02 05 00 3F B3 23 75 0E 00 00 DB [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 0D 03 02 [19:00:24]Write to MH i2c: E2 08 00 B9 07 80 0D 03 02 00 00 00 00 3B [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0B 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0B 00 B9 07 00 EA 4C 43 93 81 DA 72 97 90 00 AC [19:00:24]RAPDU: EA 4C 43 93 81 DA 72 97 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_SignData done [19:00:24]FM_MakeSignedData done [19:00:24]CreateOFDProtocolMessage [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 11 00 00 [19:00:24]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [19:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:24]wFMCommunicate OK [19:00:24]CreateOFDProtocolMessage done [19:00:24]OFDSenderStorePacket 166511 [19:00:24]StoreOFDPacket docnum=166511 [19:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 A0 07 01 15 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 47 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8A 02 00 35 04 06 00 F1 3F B3 23 75 0E EA 4C 43 93 81 DA 72 97 [19:00:24]CheckFolder [19:00:24]dirname=/storage/ofd_packets [19:00:24]CheckFolder done [19:00:24]ProducePacketName [19:00:24]name=ofd_packets/00166511 [19:00:24]NVStorageSaveData ofd_packets/00166511 [19:00:24]File name is /storage/ofd_packets/00166511 [19:00:24]Write 301 bytes [19:00:24]NVStorageSaveData done [19:00:24]OFDSenderStorePacket done [19:00:24]KKMCreateOFDPacket done [19:00:24]NVStorageSaveData kkm_last_timestamp [19:00:24]File name is /storage/kkm_last_timestamp [19:00:24]Write 4 bytes [19:00:24]NVStorageSaveData done [19:00:24]ExternCall_PrintAddStr [19:00:24]wPrintStart [19:00:24]Write to MH i2c: 01 00 00 BB 07 C2 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [19:00:24]RasterBufferAndPrint [19:00:24]line Счет N : (1)221093 [19:00:24]line ИНН: 02508201610067 [19:00:24]line Контрольно-Кассовый Чек [19:00:24]line ПРОДАЖА [19:00:24]line ТРК (МРК, ГНК) : 13 [19:00:24]line Товар: 2710124130 [19:00:24]line Аи-92-К-5 [19:00:24]line 14.950 * 66.90 [19:00:24]line = 1000.16 [19:00:24]line НДС 12% НСП 1% [19:00:24]line > о реализуемом товаре [19:00:24]line ОКРУГЛЕНИЕ: -0.16 [19:00:24]line ИТОГО: 1000.00 [19:00:24]line Внесено: 1000.00 [19:00:24]line СДАЧА: 0.00 [19:00:24]line НСП 1% : 8.85 [19:00:24]line НДС 12% : 106.21 [19:00:24]line Наличными: 1000.00 [19:00:24]line Безнал.: 0.00 [19:00:24]line Место: АЗС № 161 "Партнер Нефть" [19:00:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:00:24]line СНО: Общий режим [19:00:24]line Чек 266 22.10.2024 19:00 [19:00:24]line Смена: 536 ФФД: 1.0 [19:00:24]line ЗНМ: 0300000104 [19:00:24]line РНМ: 0000000000091764 [19:00:24]line Версия ККМ: 001 [19:00:24]line ФМ: 0000000000871759 [19:00:24]line ФД: 166511 [19:00:24]line ФПД: 265255890679054 [19:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166511&fm=265255890679054&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:24]OFD Sender: Processing packet 166511 [packets to send 48, broken 47] [19:00:24]ProducePacketName [19:00:24]name=ofd_packets/00166511 [19:00:24]OFD Sender: To server: pG, [19:00:24]CommunicateWithHost lk.salyk.kg:30040 [19:00:24]ConnectInit lk.salyk.kg [19:00:24]written 0, free lines is 4095 [19:00:24]Connected sock=10 [19:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 17 A0 07 01 15 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 47 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8A 02 00 35 04 06 00 F1 3F B3 23 75 0E EA 4C 43 93 81 DA 72 97 [19:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 57 E3 47 00 D5 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 8A 02 00 F4 03 04 00 B1 9C 17 67 B6 04 01 00 00 AE 8C D8 EC 79 D9 C1 44 [19:00:24]CommunicateWithHost err = 0 [19:00:24]CheckOFDResponse [19:00:24]1017 (14) - 77093643461234 [19:00:24]1041 (16) - 0000000000871759 [19:00:24]1040 (4) - 166511 [19:00:24]1012 (4) - 22.10.2024 12:38 [19:00:24]1206 (1) - 0 [19:00:24]OFD Sender: Remove packet 166511 [19:00:24]ProducePacketName [19:00:24]name=ofd_packets/00166511 [19:00:24]NVStorageDeleteData [19:00:24]Write to MH i2c: 01 00 00 E6 07 ED [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 B5 0C B5 [19:00:24]RasterBufferAndPrint [19:00:24]line [19:00:24]line [19:00:24]line [19:00:24]line [19:00:24]line [19:00:24]written 0, free lines is 3257 [19:00:24]MH_Cut [19:00:24]Write to MH i2c: D1 01 00 ED 07 01 C6 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: D1 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: D1 01 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: D1 01 00 ED 07 00 C5 [19:00:24]Write to MH i2c: 01 00 00 EE 07 F5 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:25]OFD Sender: No OFD packet to send [19:00:25]*** Cut start [19:00:25]*** Partial cut [19:00:25]*** CUTSNS_PIN = 1 [19:00:25]*** CUTSNS_PIN = 0 [19:00:26]*** Brake cut motor [19:00:26]Read from MH i2c: 01 [19:00:26]MH_I2C_Read... [19:00:26]*** Stop cut motor [19:00:26]*** Cut end [19:00:26]Read from MH i2c: 01 07 00 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [19:00:26]process_action close_receipt done [19:00:26]requested_data is exist [19:00:26]produce_requested_data [19:00:26]requested_item fm.sn is exist - process it [19:00:26]wFMCommunicate request_size=4 [19:00:26]MH_SAM_APDU [19:00:26]CAPDU: 80 11 00 00 [19:00:26]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [19:00:26]Write i2c OK [19:00:26]MH_I2C_Read... [19:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:26]Read from MH i2c: E2 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 17 00 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [19:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:26]wFMCommunicate OK [19:00:26]requested_item fd.num is exist - process it [19:00:26]SAM_PROTO_GetFieldsCounters [19:00:26]wFMCommunicate request_size=4 [19:00:26]MH_SAM_APDU [19:00:26]CAPDU: 80 13 00 00 [19:00:26]Write to MH i2c: E2 08 00 F0 07 80 13 00 00 00 00 00 00 73 [19:00:26]Write i2c OK [19:00:26]MH_I2C_Read... [19:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:26]Read from MH i2c: E2 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 62 00 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 62 00 F0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:26]wFMCommunicate OK [19:00:26]SAM_PROTO_GetFieldsCounters done [19:00:26]requested_item shift.num is exist - process it [19:00:26]requested_item shift.opened is exist - process it [19:00:26]req_shift_opened [19:00:26]FM_GetShiftState [19:00:26]SAM_PROTO_GetShiftState [19:00:26]wFMCommunicate request_size=4 [19:00:26]MH_SAM_APDU [19:00:26]CAPDU: 80 13 01 00 [19:00:26]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [19:00:26]Write i2c OK [19:00:26]MH_I2C_Read... [19:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:26]Read from MH i2c: E2 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 0E 00 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C8 [19:00:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:00:26]wFMCommunicate OK [19:00:26]SAM_PROTO_GetShiftState done [19:00:26]FM_GetShiftState done [19:00:26]req_shift_opened done [19:00:26]requested_item shift.open_date is exist - process it [19:00:26]req_shift_open_date [19:00:26]req_shift_open_date done [19:00:26]produce_requested_data done [19:00:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166511,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:00:26]process_action_free close_receipt [19:00:26]json_value_free [19:00:26]json_value_free done [19:00:26]process_json_proto returns [19:00:26]Send response to host [19:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166511,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:00:26]free response buf [19:00:26]execute_script done [19:00:26]execute_script returns [19:00:26]free content buf [19:00:26]Sock 9.Close socket [19:00:26]Sock 9.Thread stoped [19:00:30]OFD Sender: No OFD packet to send [19:00:34]accept exits with 7 [19:00:34]New connection [19:00:34]New thread 3067489636 created [19:00:34]Thread 3067632996 joined [19:00:34]Waiting for new connection... [19:00:34] Sock 7.Parse request [19:00:34]Sock 7.Check first char [19:00:34]Sock 7.First char is OK [19:00:34]request: POST /json_proto HTTP/1.0 [19:00:34]Method: POST [19:00:34]URL: /json_proto [19:00:34]Method is POST - this is cgi request [19:00:34]url: /json_proto [19:00:34]query_string will be loaded in cgi processing [19:00:34]execute_cgi json_proto POST (null) [19:00:34]execute_cgi path=json_proto method=POST [19:00:34]POST find Content-Length [19:00:34]Host: 172.17.53.195:8080 [19:00:34]Content-Length: 682 [19:00:34]Content-Type: application/json [19:00:34] [19:00:34]POST finish read [19:00:34]Found Content-Length = 682 [19:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:34]execute_script... [19:00:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:34]POST & json_proto [19:00:34]process_json_proto [19:00:34]json parsed OK: [19:00:34]protocol is kg_v1.0 [19:00:34]action value=close_receipt [19:00:34]process_action close_receipt [19:00:34]cmd_close_receipt [19:00:34]MH_GetDate [19:00:34]Write to MH i2c: F0 00 00 F2 07 E8 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: F0 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: F0 09 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: F0 09 00 F2 07 00 53 F6 17 67 21 48 4A 65 D0 [19:00:34]GetLastDocTimeStamp 1729623623 [19:00:34]current date 1729623635 [19:00:34]FM_GetShiftState [19:00:34]SAM_PROTO_GetShiftState [19:00:34]wFMCommunicate request_size=4 [19:00:34]MH_SAM_APDU [19:00:34]CAPDU: 80 13 01 00 [19:00:34]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:34]Read from MH i2c: E2 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: E2 0E 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CA [19:00:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:00:34]wFMCommunicate OK [19:00:34]SAM_PROTO_GetShiftState done [19:00:34]FM_GetShiftState done [19:00:34]opened in 1729557463 [19:00:34]opened+sec_in_day 1729643863 [19:00:34]quantity*price = 100015 [19:00:34]sum+1 = 100017 [19:00:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 267 22.10.2024 19:00 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166512 ФПД: 229388542069455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166512&fm=229388542069455&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:36]StoreToDocumentArchive [19:00:36]shift 536 fd 166512 [19:00:36]save to /storage/0536/doc_00166512 [19:00:36]save last doc name /storage/0536/doc_00166512 to /storage/kkm_last_doc_name [19:00:36]save OK [19:00:36]Clear old archive folders... [19:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:36]tlvbuf is 011CFF10 [19:00:36]SAM_PROTO_ClearQueue [19:00:36]wFMCommunicate request_size=4 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 09 00 00 [19:00:36]Write to MH i2c: E2 08 00 00 08 80 09 00 00 00 00 00 00 7A [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [19:00:36]RAPDU: 90 00 [19:00:36]wFMCommunicate OK [19:00:36]SAM_PROTO_ClearQueue done [19:00:36]KKMCreateOFDPacket [19:00:36]OFDProtocolAddRootSTLVToBuf [19:00:36]FM_MakeSignedData [19:00:36]FM_MakeSignedData [19:00:36]SAM_PROTO_SignData [19:00:36]wFMCommunicate request_size=4 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 0D 01 02 [19:00:36]Write to MH i2c: E2 08 00 01 08 80 0D 01 02 00 00 00 00 82 [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [19:00:36]RAPDU: 90 00 [19:00:36]wFMCommunicate OK [19:00:36]wFMCommunicate request_size=255 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 53 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8A 02 00 35 04 06 00 D0 [19:00:36]Write to MH i2c: E2 02 01 02 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 53 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8A 02 00 35 04 06 00 D0 00 00 CB [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [19:00:36]RAPDU: 90 00 [19:00:36]wFMCommunicate OK [19:00:36]wFMCommunicate request_size=10 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 0D 02 02 05 A0 AE 90 CA CF [19:00:36]Write to MH i2c: E2 0D 00 03 08 80 0D 02 02 05 00 A0 AE 90 CA CF 00 00 06 [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [19:00:36]RAPDU: 90 00 [19:00:36]wFMCommunicate OK [19:00:36]wFMCommunicate request_size=4 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 0D 03 02 [19:00:36]Write to MH i2c: E2 08 00 04 08 80 0D 03 02 00 00 00 00 87 [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 0B 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 0B 00 04 08 00 92 68 77 4D 2B 1B F1 33 90 00 B0 [19:00:36]RAPDU: 92 68 77 4D 2B 1B F1 33 90 00 [19:00:36]wFMCommunicate OK [19:00:36]SAM_PROTO_SignData done [19:00:36]FM_MakeSignedData done [19:00:36]CreateOFDProtocolMessage [19:00:36]wFMCommunicate request_size=4 [19:00:36]MH_SAM_APDU [19:00:36]CAPDU: 80 11 00 00 [19:00:36]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:36]Read from MH i2c: E2 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 17 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [19:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:36]wFMCommunicate OK [19:00:36]CreateOFDProtocolMessage done [19:00:36]OFDSenderStorePacket 166512 [19:00:36]StoreOFDPacket docnum=166512 [19:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 A0 07 01 24 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 53 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8A 02 00 35 04 06 00 D0 A0 AE 90 CA CF 92 68 77 4D 2B 1B F1 33 [19:00:36]CheckFolder [19:00:36]dirname=/storage/ofd_packets [19:00:36]CheckFolder done [19:00:36]ProducePacketName [19:00:36]name=ofd_packets/00166512 [19:00:36]NVStorageSaveData ofd_packets/00166512 [19:00:36]File name is /storage/ofd_packets/00166512 [19:00:36]Write 301 bytes [19:00:36]NVStorageSaveData done [19:00:36]OFDSenderStorePacket done [19:00:36]KKMCreateOFDPacket done [19:00:36]NVStorageSaveData kkm_last_timestamp [19:00:36]File name is /storage/kkm_last_timestamp [19:00:36]Write 4 bytes [19:00:36]NVStorageSaveData done [19:00:36]ExternCall_PrintAddStr [19:00:36]wPrintStart [19:00:36]Write to MH i2c: 01 00 00 06 08 0E [19:00:36]Write i2c OK [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: 01 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: 01 07 00 [19:00:36]MH_I2C_Read... [19:00:36]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [19:00:36]RasterBufferAndPrint [19:00:36]line Счет N : (1)221092 [19:00:36]line ИНН: 02508201610067 [19:00:36]line Контрольно-Кассовый Чек [19:00:36]line ПРОДАЖА [19:00:36]line ТРК (МРК, ГНК) : 33 [19:00:36]line Товар: 2710124130 [19:00:36]line Аи-92-К-5 [19:00:36]line 14.950 * 66.90 [19:00:36]line = 1000.16 [19:00:36]line НДС 12% НСП 1% [19:00:36]line > о реализуемом товаре [19:00:36]line ОКРУГЛЕНИЕ: -0.16 [19:00:36]line ИТОГО: 1000.00 [19:00:36]line Внесено: 1000.00 [19:00:36]line СДАЧА: 0.00 [19:00:36]line НСП 1% : 8.85 [19:00:36]line НДС 12% : 106.21 [19:00:36]line Наличными: 1000.00 [19:00:36]line Безнал.: 0.00 [19:00:36]line Место: АЗС № 161 "Партнер Нефть" [19:00:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:00:36]line СНО: Общий режим [19:00:36]line Чек 267 22.10.2024 19:00 [19:00:36]line Смена: 536 ФФД: 1.0 [19:00:36]line ЗНМ: 0300000104 [19:00:36]line РНМ: 0000000000091764 [19:00:36]line Версия ККМ: 001 [19:00:36]line ФМ: 0000000000871759 [19:00:36]line ФД: 166512 [19:00:36]line ФПД: 229388542069455 [19:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166512&fm=229388542069455&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:36]OFD Sender: Processing packet 166512 [packets to send 48, broken 47] [19:00:36]ProducePacketName [19:00:36]name=ofd_packets/00166512 [19:00:36]OFD Sender: To server: pG, [19:00:36]CommunicateWithHost lk.salyk.kg:30040 [19:00:36]ConnectInit lk.salyk.kg [19:00:36]written 0, free lines is 4095 [19:00:36]Connected sock=9 [19:00:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 A0 07 01 24 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 53 F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8A 02 00 35 04 06 00 D0 A0 AE 90 CA CF 92 68 77 4D 2B 1B F1 33 [19:00:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 62 01 47 00 5D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 8A 02 00 F4 03 04 00 BD 9C 17 67 B6 04 01 00 00 7C EC 09 C4 62 65 A7 8D [19:00:37]CommunicateWithHost err = 0 [19:00:37]CheckOFDResponse [19:00:37]1017 (14) - 77093643461234 [19:00:37]1041 (16) - 0000000000871759 [19:00:37]1040 (4) - 166512 [19:00:37]1012 (4) - 22.10.2024 12:38 [19:00:37]1206 (1) - 0 [19:00:37]OFD Sender: Remove packet 166512 [19:00:37]ProducePacketName [19:00:37]name=ofd_packets/00166512 [19:00:37]NVStorageDeleteData [19:00:37]Write to MH i2c: 01 00 00 31 08 39 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: 01 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: 01 07 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 C7 0C 13 [19:00:37]RasterBufferAndPrint [19:00:37]line [19:00:37]line [19:00:37]line [19:00:37]line [19:00:37]line [19:00:37]written 0, free lines is 3277 [19:00:37]MH_Cut [19:00:37]Write to MH i2c: D1 01 00 38 08 01 12 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: D1 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: D1 01 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: D1 01 00 38 08 00 11 [19:00:37]Write to MH i2c: 01 00 00 39 08 41 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]OFD Sender: No OFD packet to send [19:00:38]*** Cut start [19:00:38]*** Partial cut [19:00:38]*** CUTSNS_PIN = 1 [19:00:38]*** CUTSNS_PIN = 0 [19:00:38]*** Brake cut motor [19:00:38]Read from MH i2c: 01 [19:00:38]MH_I2C_Read... [19:00:38]*** Stop cut motor [19:00:38]*** Cut end [19:00:38]Read from MH i2c: 01 07 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [19:00:38]process_action close_receipt done [19:00:38]requested_data is exist [19:00:38]produce_requested_data [19:00:38]requested_item fm.sn is exist - process it [19:00:38]wFMCommunicate request_size=4 [19:00:38]MH_SAM_APDU [19:00:38]CAPDU: 80 11 00 00 [19:00:38]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:38]Read from MH i2c: E2 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 17 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [19:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:38]wFMCommunicate OK [19:00:38]requested_item fd.num is exist - process it [19:00:38]SAM_PROTO_GetFieldsCounters [19:00:38]wFMCommunicate request_size=4 [19:00:38]MH_SAM_APDU [19:00:38]CAPDU: 80 13 00 00 [19:00:38]Write to MH i2c: E2 08 00 3B 08 80 13 00 00 00 00 00 00 BF [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:38]Read from MH i2c: E2 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 62 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 62 00 3B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [19:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:39]wFMCommunicate OK [19:00:39]SAM_PROTO_GetFieldsCounters done [19:00:39]requested_item shift.num is exist - process it [19:00:39]requested_item shift.opened is exist - process it [19:00:39]req_shift_opened [19:00:39]FM_GetShiftState [19:00:39]SAM_PROTO_GetShiftState [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 13 01 00 [19:00:39]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 0E 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 14 [19:00:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:00:39]wFMCommunicate OK [19:00:39]SAM_PROTO_GetShiftState done [19:00:39]FM_GetShiftState done [19:00:39]req_shift_opened done [19:00:39]requested_item shift.open_date is exist - process it [19:00:39]req_shift_open_date [19:00:39]req_shift_open_date done [19:00:39]produce_requested_data done [19:00:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166512,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:00:39]process_action_free close_receipt [19:00:39]json_value_free [19:00:39]json_value_free done [19:00:39]process_json_proto returns [19:00:39]Send response to host [19:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166512,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:00:39]free response buf [19:00:39]execute_script done [19:00:39]execute_script returns [19:00:39]free content buf [19:00:39]Sock 7.Close socket [19:00:39]Sock 7.Thread stoped [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:21]accept exits with 10 [19:02:21]New connection [19:02:21]New thread 3067632996 created [19:02:21]Thread 3067489636 joined [19:02:21]Waiting for new connection... [19:02:21] Sock 10.Parse request [19:02:21]Sock 10.Check first char [19:02:21]Sock 10.First char is OK [19:02:21]request: POST /json_proto HTTP/1.0 [19:02:21]Method: POST [19:02:21]URL: /json_proto [19:02:21]Method is POST - this is cgi request [19:02:21]url: /json_proto [19:02:21]query_string will be loaded in cgi processing [19:02:21]execute_cgi json_proto POST (null) [19:02:21]execute_cgi path=json_proto method=POST [19:02:21]POST find Content-Length [19:02:21]Host: 172.17.53.195:8080 [19:02:21]Content-Length: 766 [19:02:21]Content-Type: application/json [19:02:21] [19:02:21]POST finish read [19:02:21]Found Content-Length = 766 [19:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:21]execute_script... [19:02:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:21]POST & json_proto [19:02:21]process_json_proto [19:02:21]json parsed OK: [19:02:21]protocol is kg_v1.0 [19:02:21]action value=close_receipt [19:02:21]process_action close_receipt [19:02:21]cmd_close_receipt [19:02:21]MH_GetDate [19:02:21]Write to MH i2c: F0 00 00 3D 08 34 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: F0 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: F0 09 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: F0 09 00 3D 08 00 BE F6 17 67 21 48 4A 65 87 [19:02:21]GetLastDocTimeStamp 1729623635 [19:02:21]current date 1729623742 [19:02:21]FM_GetShiftState [19:02:21]SAM_PROTO_GetShiftState [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 13 01 00 [19:02:21]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0E 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 16 [19:02:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_GetShiftState done [19:02:21]FM_GetShiftState done [19:02:21]opened in 1729557463 [19:02:21]opened+sec_in_day 1729643863 [19:02:21]quantity*price = 100050 [19:02:21]sum+1 = 100052 [19:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 268 22.10.2024 19:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166513 ФПД: 172102829282059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190222&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166513&fm=172102829282059&tin=02508201610067®Number=0000000000091764&sum=100051 [19:02:22]StoreToDocumentArchive [19:02:22]shift 536 fd 166513 [19:02:22]save to /storage/0536/doc_00166513 [19:02:22]save last doc name /storage/0536/doc_00166513 to /storage/kkm_last_doc_name [19:02:22]save OK [19:02:22]Clear old archive folders... [19:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:02:22]tlvbuf is 0120A5F0 [19:02:22]SAM_PROTO_ClearQueue [19:02:22]wFMCommunicate request_size=4 [19:02:22]MH_SAM_APDU [19:02:22]CAPDU: 80 09 00 00 [19:02:22]Write to MH i2c: E2 08 00 4B 08 80 09 00 00 00 00 00 00 C5 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:22]Read from MH i2c: E2 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 03 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [19:02:22]RAPDU: 90 00 [19:02:22]wFMCommunicate OK [19:02:22]SAM_PROTO_ClearQueue done [19:02:22]KKMCreateOFDPacket [19:02:22]OFDProtocolAddRootSTLVToBuf [19:02:22]FM_MakeSignedData [19:02:22]FM_MakeSignedData [19:02:22]SAM_PROTO_SignData [19:02:22]wFMCommunicate request_size=4 [19:02:22]MH_SAM_APDU [19:02:22]CAPDU: 80 0D 01 02 [19:02:22]Write to MH i2c: E2 08 00 4C 08 80 0D 01 02 00 00 00 00 CD [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:22]Read from MH i2c: E2 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 03 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [19:02:22]RAPDU: 90 00 [19:02:22]wFMCommunicate OK [19:02:22]wFMCommunicate request_size=255 [19:02:22]MH_SAM_APDU [19:02:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 BE F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8A 02 00 35 04 06 00 9C 86 D0 01 [19:02:22]Write to MH i2c: E2 02 01 4D 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 BE F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8A 02 00 35 04 06 00 9C 86 D0 01 00 00 08 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 03 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [19:02:23]RAPDU: 90 00 [19:02:23]wFMCommunicate OK [19:02:23]wFMCommunicate request_size=7 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 0D 02 02 02 13 0B [19:02:23]Write to MH i2c: E2 0A 00 4E 08 80 0D 02 02 02 00 13 0B 00 00 F2 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 03 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [19:02:23]RAPDU: 90 00 [19:02:23]wFMCommunicate OK [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 0D 03 02 [19:02:23]Write to MH i2c: E2 08 00 4F 08 80 0D 03 02 00 00 00 00 D2 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 0B 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 0B 00 4F 08 00 64 F3 CE 92 EE 63 C1 92 90 00 2E [19:02:23]RAPDU: 64 F3 CE 92 EE 63 C1 92 90 00 [19:02:23]wFMCommunicate OK [19:02:23]SAM_PROTO_SignData done [19:02:23]FM_MakeSignedData done [19:02:23]CreateOFDProtocolMessage [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 11 00 00 [19:02:23]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [19:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:02:23]wFMCommunicate OK [19:02:23]CreateOFDProtocolMessage done [19:02:23]OFDSenderStorePacket 166513 [19:02:23]StoreOFDPacket docnum=166513 [19:02:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E 0E 04 01 F6 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 BE F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8A 02 00 35 04 06 00 9C 86 D0 01 13 0B 64 F3 CE 92 EE 63 C1 92 [19:02:23]CheckFolder [19:02:23]dirname=/storage/ofd_packets [19:02:23]CheckFolder done [19:02:23]ProducePacketName [19:02:23]name=ofd_packets/00166513 [19:02:23]NVStorageSaveData ofd_packets/00166513 [19:02:23]File name is /storage/ofd_packets/00166513 [19:02:23]Write 298 bytes [19:02:23]NVStorageSaveData done [19:02:23]OFDSenderStorePacket done [19:02:23]KKMCreateOFDPacket done [19:02:23]NVStorageSaveData kkm_last_timestamp [19:02:23]File name is /storage/kkm_last_timestamp [19:02:23]Write 4 bytes [19:02:23]NVStorageSaveData done [19:02:23]ExternCall_PrintAddStr [19:02:23]wPrintStart [19:02:23]Write to MH i2c: 01 00 00 51 08 59 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: 01 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: 01 07 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 FF 0F 6E [19:02:23]RasterBufferAndPrint [19:02:23]line Счет N : (1)221094 [19:02:23]line ИНН: 02508201610067 [19:02:23]line Контрольно-Кассовый Чек [19:02:23]line ПРОДАЖА [19:02:23]line ТРК (МРК, ГНК) : 11 [19:02:23]line Товар: 2710194210 [19:02:23]line ДТ-К-5 [19:02:23]line 13.130 * 76.20 [19:02:23]line = 1000.51 [19:02:23]line НДС 12% НСП 1% [19:02:23]line > о реализуемом товаре [19:02:23]line ИТОГО: 1000.51 [19:02:23]line НСП 1% : 8.85 [19:02:23]line НДС 12% : 106.25 [19:02:23]line Наличными: 0.00 [19:02:23]line Безнал.: 1000.51 [19:02:23]line Место: АЗС № 161 "Партнер Нефть" [19:02:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:02:23]line СНО: Общий режим [19:02:23]line Чек 268 22.10.2024 19:02 [19:02:23]line Смена: 536 ФФД: 1.0 [19:02:23]line ЗНМ: 0300000104 [19:02:23]line РНМ: 0000000000091764 [19:02:23]line Версия ККМ: 001 [19:02:23]line Платежная система: Mbank [19:02:23]line ФМ: 0000000000871759 [19:02:23]line ФД: 166513 [19:02:23]line ФПД: 172102829282059 [19:02:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190222&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166513&fm=172102829282059&tin=02508201610067®Number=0000000000091764&sum=100051 [19:02:23]OFD Sender: Processing packet 166513 [packets to send 48, broken 47] [19:02:23]ProducePacketName [19:02:23]name=ofd_packets/00166513 [19:02:23]OFD Sender: To server: pG, [19:02:23]CommunicateWithHost lk.salyk.kg:30040 [19:02:23]ConnectInit lk.salyk.kg [19:02:23]written 0, free lines is 4095 [19:02:23]Connected sock=9 [19:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6E 0E 04 01 F6 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 BE F6 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8A 02 00 35 04 06 00 9C 86 D0 01 13 0B 64 F3 CE 92 EE 63 C1 92 [19:02:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 75 47 00 40 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 8A 02 00 F4 03 04 00 28 9D 17 67 B6 04 01 00 00 26 26 F7 05 11 8B 8F A2 [19:02:24]CommunicateWithHost err = 0 [19:02:24]CheckOFDResponse [19:02:24]1017 (14) - 77093643461234 [19:02:24]1041 (16) - 0000000000871759 [19:02:24]1040 (4) - 166513 [19:02:24]1012 (4) - 22.10.2024 12:40 [19:02:24]1206 (1) - 0 [19:02:24]OFD Sender: Remove packet 166513 [19:02:24]ProducePacketName [19:02:24]name=ofd_packets/00166513 [19:02:24]NVStorageDeleteData [19:02:24]Write to MH i2c: 01 00 00 7A 08 82 [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: 01 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: 01 07 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 F2 0C 87 [19:02:24]RasterBufferAndPrint [19:02:24]line [19:02:24]line [19:02:24]line [19:02:24]line [19:02:24]line [19:02:24]written 0, free lines is 3319 [19:02:24]MH_Cut [19:02:24]Write to MH i2c: D1 01 00 81 08 01 5B [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: D1 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: D1 01 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: D1 01 00 81 08 00 5A [19:02:24]Write to MH i2c: 01 00 00 82 08 8A [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]OFD Sender: No OFD packet to send [19:02:24]*** Cut start [19:02:24]*** Partial cut [19:02:24]*** CUTSNS_PIN = 1 [19:02:25]*** CUTSNS_PIN = 0 [19:02:25]*** Brake cut motor [19:02:25]*** Stop cut motor [19:02:25]*** Cut end [19:02:25]Read from MH i2c: 01 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: 01 07 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [19:02:25]process_action close_receipt done [19:02:25]requested_data is exist [19:02:25]produce_requested_data [19:02:25]requested_item fm.sn is exist - process it [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 11 00 00 [19:02:25]Write to MH i2c: E2 08 00 83 08 80 11 00 00 00 00 00 00 05 [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:25]Read from MH i2c: E2 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 17 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 17 00 83 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [19:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:02:25]wFMCommunicate OK [19:02:25]requested_item fd.num is exist - process it [19:02:25]SAM_PROTO_GetFieldsCounters [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 13 00 00 [19:02:25]Write to MH i2c: E2 08 00 84 08 80 13 00 00 00 00 00 00 08 [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:25]Read from MH i2c: E2 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 62 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 62 00 84 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:02:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:25]wFMCommunicate OK [19:02:25]SAM_PROTO_GetFieldsCounters done [19:02:25]requested_item shift.num is exist - process it [19:02:25]requested_item shift.opened is exist - process it [19:02:25]req_shift_opened [19:02:25]FM_GetShiftState [19:02:25]SAM_PROTO_GetShiftState [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 13 01 00 [19:02:25]Write to MH i2c: E2 08 00 85 08 80 13 01 00 00 00 00 00 0A [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:25]Read from MH i2c: E2 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 0E 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 0E 00 85 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5D [19:02:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:02:25]wFMCommunicate OK [19:02:25]SAM_PROTO_GetShiftState done [19:02:25]FM_GetShiftState done [19:02:25]req_shift_opened done [19:02:25]requested_item shift.open_date is exist - process it [19:02:25]req_shift_open_date [19:02:25]req_shift_open_date done [19:02:25]produce_requested_data done [19:02:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166513,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:02:25]process_action_free close_receipt [19:02:25]json_value_free [19:02:25]json_value_free done [19:02:25]process_json_proto returns [19:02:25]Send response to host [19:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166513,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:02:25]free response buf [19:02:25]execute_script done [19:02:25]execute_script returns [19:02:25]free content buf [19:02:25]Sock 10.Close socket [19:02:25]Sock 10.Thread stoped [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:38]accept exits with 7 [19:05:38]New connection [19:05:38]New thread 3067489636 created [19:05:38]Thread 3067632996 joined [19:05:38]Waiting for new connection... [19:05:38] Sock 7.Parse request [19:05:38]Sock 7.Check first char [19:05:38]Sock 7.First char is OK [19:05:38]request: POST /json_proto HTTP/1.0 [19:05:38]Method: POST [19:05:38]URL: /json_proto [19:05:38]Method is POST - this is cgi request [19:05:38]url: /json_proto [19:05:38]query_string will be loaded in cgi processing [19:05:38]execute_cgi json_proto POST (null) [19:05:38]execute_cgi path=json_proto method=POST [19:05:38]POST find Content-Length [19:05:38]Host: 172.17.53.195:8080 [19:05:38]Content-Length: 677 [19:05:38]Content-Type: application/json [19:05:38] [19:05:38]POST finish read [19:05:38]Found Content-Length = 677 [19:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:38]execute_script... [19:05:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:38]POST & json_proto [19:05:38]process_json_proto [19:05:38]json parsed OK: [19:05:38]protocol is kg_v1.0 [19:05:38]action value=close_receipt [19:05:38]process_action close_receipt [19:05:38]cmd_close_receipt [19:05:38]MH_GetDate [19:05:38]Write to MH i2c: F0 00 00 86 08 7D [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 86 08 00 83 F7 17 67 21 48 4A 65 96 [19:05:38]GetLastDocTimeStamp 1729623742 [19:05:38]current date 1729623939 [19:05:38]FM_GetShiftState [19:05:38]SAM_PROTO_GetShiftState [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 13 01 00 [19:05:38]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5F [19:05:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:05:38]wFMCommunicate OK [19:05:38]SAM_PROTO_GetShiftState done [19:05:38]FM_GetShiftState done [19:05:38]opened in 1729557463 [19:05:38]opened+sec_in_day 1729643863 [19:05:38]quantity*price = 30038 [19:05:38]sum+1 = 30039 [19:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 269 22.10.2024 19:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166514 ФПД: 135077714054088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166514&fm=135077714054088&tin=02508201610067®Number=0000000000091764&sum=30000 [19:05:39]StoreToDocumentArchive [19:05:39]shift 536 fd 166514 [19:05:39]save to /storage/0536/doc_00166514 [19:05:39]save last doc name /storage/0536/doc_00166514 to /storage/kkm_last_doc_name [19:05:39]save OK [19:05:39]Clear old archive folders... [19:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:39]tlvbuf is 011EF440 [19:05:39]SAM_PROTO_ClearQueue [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 09 00 00 [19:05:39]Write to MH i2c: E2 08 00 94 08 80 09 00 00 00 00 00 00 0E [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_ClearQueue done [19:05:39]KKMCreateOFDPacket [19:05:39]OFDProtocolAddRootSTLVToBuf [19:05:39]FM_MakeSignedData [19:05:39]FM_MakeSignedData [19:05:39]SAM_PROTO_SignData [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 01 02 [19:05:39]Write to MH i2c: E2 08 00 95 08 80 0D 01 02 00 00 00 00 16 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:39]OFD Sender: No OFD packet to send [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=255 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 83 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8A 02 00 35 04 06 00 7A [19:05:39]Write to MH i2c: E2 02 01 96 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 83 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8A 02 00 35 04 06 00 7A 00 00 38 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [19:05:40]RAPDU: 90 00 [19:05:40]wFMCommunicate OK [19:05:40]wFMCommunicate request_size=10 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 0D 02 02 05 DA 3B 29 CB C8 [19:05:40]Write to MH i2c: E2 0D 00 97 08 80 0D 02 02 05 00 DA 3B 29 CB C8 00 00 F4 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [19:05:40]RAPDU: 90 00 [19:05:40]wFMCommunicate OK [19:05:40]wFMCommunicate request_size=4 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 0D 03 02 [19:05:40]Write to MH i2c: E2 08 00 98 08 80 0D 03 02 00 00 00 00 1B [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 0B 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 0B 00 98 08 00 D8 EA CD A5 76 86 55 10 90 00 B1 [19:05:40]RAPDU: D8 EA CD A5 76 86 55 10 90 00 [19:05:40]wFMCommunicate OK [19:05:40]SAM_PROTO_SignData done [19:05:40]FM_MakeSignedData done [19:05:40]CreateOFDProtocolMessage [19:05:40]wFMCommunicate request_size=4 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 11 00 00 [19:05:40]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 17 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [19:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:05:40]wFMCommunicate OK [19:05:40]CreateOFDProtocolMessage done [19:05:40]OFDSenderStorePacket 166514 [19:05:40]StoreOFDPacket docnum=166514 [19:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 DC 07 01 C0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 83 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8A 02 00 35 04 06 00 7A DA 3B 29 CB C8 D8 EA CD A5 76 86 55 10 [19:05:40]CheckFolder [19:05:40]dirname=/storage/ofd_packets [19:05:40]CheckFolder done [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00166514 [19:05:40]NVStorageSaveData ofd_packets/00166514 [19:05:40]File name is /storage/ofd_packets/00166514 [19:05:40]Write 301 bytes [19:05:40]NVStorageSaveData done [19:05:40]OFDSenderStorePacket done [19:05:40]KKMCreateOFDPacket done [19:05:40]NVStorageSaveData kkm_last_timestamp [19:05:40]File name is /storage/kkm_last_timestamp [19:05:40]Write 4 bytes [19:05:40]NVStorageSaveData done [19:05:40]ExternCall_PrintAddStr [19:05:40]wPrintStart [19:05:40]Write to MH i2c: 01 00 00 9A 08 A2 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [19:05:40]RasterBufferAndPrint [19:05:40]line Счет N : (1)221095 [19:05:40]line ИНН: 02508201610067 [19:05:40]line Контрольно-Кассовый Чек [19:05:40]line ПРОДАЖА [19:05:40]line ТРК (МРК, ГНК) : 13 [19:05:40]line Товар: 2710124130 [19:05:40]line Аи-92-К-5 [19:05:40]line 4.490 * 66.90 [19:05:40]line = 300.38 [19:05:40]line НДС 12% НСП 1% [19:05:40]line > о реализуемом товаре [19:05:40]line ОКРУГЛЕНИЕ: -0.38 [19:05:40]line ИТОГО: 300.00 [19:05:40]line Внесено: 300.00 [19:05:40]line СДАЧА: 0.00 [19:05:40]line НСП 1% : 2.66 [19:05:40]line НДС 12% : 31.90 [19:05:40]line Наличными: 300.00 [19:05:40]line Безнал.: 0.00 [19:05:40]line Место: АЗС № 161 "Партнер Нефть" [19:05:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:05:40]line СНО: Общий режим [19:05:40]line Чек 269 22.10.2024 19:05 [19:05:40]line Смена: 536 ФФД: 1.0 [19:05:40]line ЗНМ: 0300000104 [19:05:40]line РНМ: 0000000000091764 [19:05:40]line Версия ККМ: 001 [19:05:40]line ФМ: 0000000000871759 [19:05:40]line ФД: 166514 [19:05:40]line ФПД: 135077714054088 [19:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166514&fm=135077714054088&tin=02508201610067®Number=0000000000091764&sum=30000 [19:05:40]OFD Sender: Processing packet 166514 [packets to send 48, broken 47] [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00166514 [19:05:40]OFD Sender: To server: pG, [19:05:40]CommunicateWithHost lk.salyk.kg:30040 [19:05:40]ConnectInit lk.salyk.kg [19:05:40]written 0, free lines is 4095 [19:05:40]Connected sock=10 [19:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 DC 07 01 C0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 83 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8A 02 00 35 04 06 00 7A DA 3B 29 CB C8 D8 EA CD A5 76 86 55 10 [19:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 E9 47 00 01 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 8A 02 00 F4 03 04 00 ED 9D 17 67 B6 04 01 00 00 E9 45 92 C4 3E 12 CA B2 [19:05:40]CommunicateWithHost err = 0 [19:05:40]CheckOFDResponse [19:05:40]1017 (14) - 77093643461234 [19:05:40]1041 (16) - 0000000000871759 [19:05:40]1040 (4) - 166514 [19:05:40]1012 (4) - 22.10.2024 12:43 [19:05:40]1206 (1) - 0 [19:05:40]OFD Sender: Remove packet 166514 [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00166514 [19:05:40]NVStorageDeleteData [19:05:40]Write to MH i2c: 01 00 00 C5 08 CD [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 C5 08 00 00 00 00 00 B6 0C 96 [19:05:40]RasterBufferAndPrint [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]written 0, free lines is 3260 [19:05:40]MH_Cut [19:05:40]Write to MH i2c: D1 01 00 CC 08 01 A6 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 CC 08 00 A5 [19:05:40]Write to MH i2c: 01 00 00 CD 08 D5 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:41]OFD Sender: No OFD packet to send [19:05:41]*** Cut start [19:05:41]*** Partial cut [19:05:41]*** CUTSNS_PIN = 1 [19:05:41]*** CUTSNS_PIN = 0 [19:05:42]*** Brake cut motor [19:05:42]Read from MH i2c: 01 [19:05:42]MH_I2C_Read... [19:05:42]*** Stop cut motor [19:05:42]*** Cut end [19:05:42]Read from MH i2c: 01 07 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [19:05:42]process_action close_receipt done [19:05:42]requested_data is exist [19:05:42]produce_requested_data [19:05:42]requested_item fm.sn is exist - process it [19:05:42]wFMCommunicate request_size=4 [19:05:42]MH_SAM_APDU [19:05:42]CAPDU: 80 11 00 00 [19:05:42]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 17 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [19:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:05:42]wFMCommunicate OK [19:05:42]requested_item fd.num is exist - process it [19:05:42]SAM_PROTO_GetFieldsCounters [19:05:42]wFMCommunicate request_size=4 [19:05:42]MH_SAM_APDU [19:05:42]CAPDU: 80 13 00 00 [19:05:42]Write to MH i2c: E2 08 00 CF 08 80 13 00 00 00 00 00 00 53 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 62 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 62 00 CF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [19:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:42]wFMCommunicate OK [19:05:42]SAM_PROTO_GetFieldsCounters done [19:05:42]requested_item shift.num is exist - process it [19:05:42]requested_item shift.opened is exist - process it [19:05:42]req_shift_opened [19:05:42]FM_GetShiftState [19:05:42]SAM_PROTO_GetShiftState [19:05:42]wFMCommunicate request_size=4 [19:05:42]MH_SAM_APDU [19:05:42]CAPDU: 80 13 01 00 [19:05:42]Write to MH i2c: E2 08 00 D0 08 80 13 01 00 00 00 00 00 55 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 D0 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A8 [19:05:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:05:42]wFMCommunicate OK [19:05:42]SAM_PROTO_GetShiftState done [19:05:42]FM_GetShiftState done [19:05:42]req_shift_opened done [19:05:42]requested_item shift.open_date is exist - process it [19:05:42]req_shift_open_date [19:05:42]req_shift_open_date done [19:05:42]produce_requested_data done [19:05:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166514,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:05:42]process_action_free close_receipt [19:05:42]json_value_free [19:05:42]json_value_free done [19:05:42]process_json_proto returns [19:05:42]Send response to host [19:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166514,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:05:42]free response buf [19:05:42]execute_script done [19:05:42]execute_script returns [19:05:42]free content buf [19:05:42]Sock 7.Close socket [19:05:42]Sock 7.Thread stoped [19:05:43]accept exits with 9 [19:05:43]New connection [19:05:43]New thread 3067632996 created [19:05:43]Thread 3067489636 joined [19:05:43]Waiting for new connection... [19:05:43] Sock 9.Parse request [19:05:43]Sock 9.Check first char [19:05:43]Sock 9.First char is OK [19:05:43]request: POST /json_proto HTTP/1.0 [19:05:43]Method: POST [19:05:43]URL: /json_proto [19:05:43]Method is POST - this is cgi request [19:05:43]url: /json_proto [19:05:43]query_string will be loaded in cgi processing [19:05:43]execute_cgi json_proto POST (null) [19:05:43]execute_cgi path=json_proto method=POST [19:05:43]POST find Content-Length [19:05:43]Host: 172.17.53.195:8080 [19:05:43]Content-Length: 766 [19:05:43]Content-Type: application/json [19:05:43] [19:05:43]POST finish read [19:05:43]Found Content-Length = 766 [19:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:43]execute_script... [19:05:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:43]POST & json_proto [19:05:43]process_json_proto [19:05:43]json parsed OK: [19:05:43]protocol is kg_v1.0 [19:05:43]action value=close_receipt [19:05:43]process_action close_receipt [19:05:43]cmd_close_receipt [19:05:43]MH_GetDate [19:05:43]Write to MH i2c: F0 00 00 D1 08 C8 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: F0 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: F0 09 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: F0 09 00 D1 08 00 88 F7 17 67 21 48 4A 65 E6 [19:05:43]GetLastDocTimeStamp 1729623939 [19:05:43]current date 1729623944 [19:05:43]FM_GetShiftState [19:05:43]SAM_PROTO_GetShiftState [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 13 01 00 [19:05:43]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:43]Read from MH i2c: E2 0E 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AA [19:05:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:05:43]wFMCommunicate OK [19:05:43]SAM_PROTO_GetShiftState done [19:05:43]FM_GetShiftState done [19:05:43]opened in 1729557463 [19:05:43]opened+sec_in_day 1729643863 [19:05:43]quantity*price = 50010 [19:05:43]sum+1 = 50012 [19:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 270 22.10.2024 19:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166515 ФПД: 121738262748299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166515&fm=121738262748299&tin=02508201610067®Number=0000000000091764&sum=50011 [19:05:44]StoreToDocumentArchive [19:05:44]shift 536 fd 166515 [19:05:44]save to /storage/0536/doc_00166515 [19:05:44]save last doc name /storage/0536/doc_00166515 to /storage/kkm_last_doc_name [19:05:44]save OK [19:05:44]Clear old archive folders... [19:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:44]tlvbuf is 01213110 [19:05:44]SAM_PROTO_ClearQueue [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 09 00 00 [19:05:44]Write to MH i2c: E2 08 00 DF 08 80 09 00 00 00 00 00 00 59 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [19:05:45]RAPDU: 90 00 [19:05:45]wFMCommunicate OK [19:05:45]SAM_PROTO_ClearQueue done [19:05:45]KKMCreateOFDPacket [19:05:45]OFDProtocolAddRootSTLVToBuf [19:05:45]FM_MakeSignedData [19:05:45]FM_MakeSignedData [19:05:45]SAM_PROTO_SignData [19:05:45]wFMCommunicate request_size=4 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 0D 01 02 [19:05:45]Write to MH i2c: E2 08 00 E0 08 80 0D 01 02 00 00 00 00 61 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [19:05:45]RAPDU: 90 00 [19:05:45]wFMCommunicate OK [19:05:45]wFMCommunicate request_size=255 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 88 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8A 02 00 35 04 06 00 6E [19:05:45]Write to MH i2c: E2 02 01 E1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 88 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8A 02 00 35 04 06 00 6E 00 00 78 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [19:05:45]RAPDU: 90 00 [19:05:45]wFMCommunicate OK [19:05:45]wFMCommunicate request_size=10 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 0D 02 02 05 B8 65 E8 1C 8B [19:05:45]Write to MH i2c: E2 0D 00 E2 08 80 0D 02 02 05 00 B8 65 E8 1C 8B 00 00 1A [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [19:05:45]RAPDU: 90 00 [19:05:45]wFMCommunicate OK [19:05:45]wFMCommunicate request_size=4 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 0D 03 02 [19:05:45]Write to MH i2c: E2 08 00 E3 08 80 0D 03 02 00 00 00 00 66 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 0B 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 0B 00 E3 08 00 9A 62 B1 CB D2 9B B0 A1 90 00 9D [19:05:45]RAPDU: 9A 62 B1 CB D2 9B B0 A1 90 00 [19:05:45]wFMCommunicate OK [19:05:45]SAM_PROTO_SignData done [19:05:45]FM_MakeSignedData done [19:05:45]CreateOFDProtocolMessage [19:05:45]wFMCommunicate request_size=4 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 11 00 00 [19:05:45]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 17 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [19:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:05:45]wFMCommunicate OK [19:05:45]CreateOFDProtocolMessage done [19:05:45]OFDSenderStorePacket 166515 [19:05:45]StoreOFDPacket docnum=166515 [19:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 0C 07 01 1C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 88 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8A 02 00 35 04 06 00 6E B8 65 E8 1C 8B 9A 62 B1 CB D2 9B B0 A1 [19:05:45]CheckFolder [19:05:45]dirname=/storage/ofd_packets [19:05:45]CheckFolder done [19:05:45]ProducePacketName [19:05:45]name=ofd_packets/00166515 [19:05:45]NVStorageSaveData ofd_packets/00166515 [19:05:45]File name is /storage/ofd_packets/00166515 [19:05:45]Write 301 bytes [19:05:45]NVStorageSaveData done [19:05:45]OFDSenderStorePacket done [19:05:45]KKMCreateOFDPacket done [19:05:45]NVStorageSaveData kkm_last_timestamp [19:05:45]File name is /storage/kkm_last_timestamp [19:05:45]Write 4 bytes [19:05:45]NVStorageSaveData done [19:05:45]ExternCall_PrintAddStr [19:05:45]wPrintStart [19:05:45]Write to MH i2c: 01 00 00 E5 08 ED [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 07 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [19:05:45]RasterBufferAndPrint [19:05:45]line Счет N : (1)221096 [19:05:45]line ИНН: 02508201610067 [19:05:45]line Контрольно-Кассовый Чек [19:05:45]line ПРОДАЖА [19:05:45]line ТРК (МРК, ГНК) : 24 [19:05:45]line Товар: 2710124500 [19:05:45]line Аи-95-К-5 [19:05:45]line 6.740 * 74.20 [19:05:45]line = 500.11 [19:05:45]line НДС 12% НСП 1% [19:05:45]line > о реализуемом товаре [19:05:45]line ИТОГО: 500.11 [19:05:45]line НСП 1% : 4.43 [19:05:45]line НДС 12% : 53.11 [19:05:45]line Наличными: 0.00 [19:05:45]line Безнал.: 500.11 [19:05:45]line Место: АЗС № 161 "Партнер Нефть" [19:05:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:05:45]line СНО: Общий режим [19:05:45]line Чек 270 22.10.2024 19:05 [19:05:45]line Смена: 536 ФФД: 1.0 [19:05:45]line ЗНМ: 0300000104 [19:05:45]line РНМ: 0000000000091764 [19:05:45]line Версия ККМ: 001 [19:05:45]line Платежная система: Mbank [19:05:45]line ФМ: 0000000000871759 [19:05:45]line ФД: 166515 [19:05:45]line ФПД: 121738262748299 [19:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166515&fm=121738262748299&tin=02508201610067®Number=0000000000091764&sum=50011 [19:05:45]written 0, free lines is 4095 [19:05:45]OFD Sender: Processing packet 166515 [packets to send 48, broken 47] [19:05:45]ProducePacketName [19:05:45]name=ofd_packets/00166515 [19:05:45]OFD Sender: To server: pG, [19:05:45]CommunicateWithHost lk.salyk.kg:30040 [19:05:45]ConnectInit lk.salyk.kg [19:05:45]Connected sock=10 [19:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF 0C 07 01 1C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 88 F7 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8A 02 00 35 04 06 00 6E B8 65 E8 1C 8B 9A 62 B1 CB D2 9B B0 A1 [19:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 39 47 00 52 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 8A 02 00 F4 03 04 00 F2 9D 17 67 B6 04 01 00 00 6D ED C5 91 98 44 30 37 [19:05:45]CommunicateWithHost err = 0 [19:05:45]CheckOFDResponse [19:05:45]1017 (14) - 77093643461234 [19:05:45]1041 (16) - 0000000000871759 [19:05:45]1040 (4) - 166515 [19:05:45]1012 (4) - 22.10.2024 12:43 [19:05:45]1206 (1) - 0 [19:05:45]OFD Sender: Remove packet 166515 [19:05:45]ProducePacketName [19:05:45]name=ofd_packets/00166515 [19:05:45]NVStorageDeleteData [19:05:46]Write to MH i2c: 01 00 00 0E 09 17 [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: 01 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: 01 07 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 F3 0C 1D [19:05:46]RasterBufferAndPrint [19:05:46]line [19:05:46]line [19:05:46]line [19:05:46]line [19:05:46]line [19:05:46]written 0, free lines is 3328 [19:05:46]MH_Cut [19:05:46]Write to MH i2c: D1 01 00 15 09 01 F0 [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: D1 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: D1 01 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: D1 01 00 15 09 00 EF [19:05:46]Write to MH i2c: 01 00 00 16 09 1F [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]OFD Sender: No OFD packet to send [19:05:46]*** Cut start [19:05:46]*** Partial cut [19:05:46]*** CUTSNS_PIN = 1 [19:05:46]*** CUTSNS_PIN = 0 [19:05:47]*** Brake cut motor [19:05:47]Read from MH i2c: 01 [19:05:47]MH_I2C_Read... [19:05:47]*** Stop cut motor [19:05:47]*** Cut end [19:05:47]Read from MH i2c: 01 07 00 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [19:05:47]process_action close_receipt done [19:05:47]requested_data is exist [19:05:47]produce_requested_data [19:05:47]requested_item fm.sn is exist - process it [19:05:47]wFMCommunicate request_size=4 [19:05:47]MH_SAM_APDU [19:05:47]CAPDU: 80 11 00 00 [19:05:47]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [19:05:47]Write i2c OK [19:05:47]MH_I2C_Read... [19:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:47]Read from MH i2c: E2 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 17 00 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [19:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:05:47]wFMCommunicate OK [19:05:47]requested_item fd.num is exist - process it [19:05:47]SAM_PROTO_GetFieldsCounters [19:05:47]wFMCommunicate request_size=4 [19:05:47]MH_SAM_APDU [19:05:47]CAPDU: 80 13 00 00 [19:05:47]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [19:05:47]Write i2c OK [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 [19:05:47]MH_I2C_Read... [19:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:47]Read from MH i2c: E2 62 00 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 62 00 18 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [19:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:47]wFMCommunicate OK [19:05:47]SAM_PROTO_GetFieldsCounters done [19:05:47]requested_item shift.num is exist - process it [19:05:47]requested_item shift.opened is exist - process it [19:05:47]req_shift_opened [19:05:47]FM_GetShiftState [19:05:47]SAM_PROTO_GetShiftState [19:05:47]wFMCommunicate request_size=4 [19:05:47]MH_SAM_APDU [19:05:47]CAPDU: 80 13 01 00 [19:05:47]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [19:05:47]Write i2c OK [19:05:47]MH_I2C_Read... [19:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:47]Read from MH i2c: E2 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 0E 00 [19:05:47]MH_I2C_Read... [19:05:47]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F2 [19:05:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:05:47]wFMCommunicate OK [19:05:47]SAM_PROTO_GetShiftState done [19:05:47]FM_GetShiftState done [19:05:47]req_shift_opened done [19:05:47]requested_item shift.open_date is exist - process it [19:05:47]req_shift_open_date [19:05:47]req_shift_open_date done [19:05:47]produce_requested_data done [19:05:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166515,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:05:47]process_action_free close_receipt [19:05:47]json_value_free [19:05:47]json_value_free done [19:05:47]process_json_proto returns [19:05:47]Send response to host [19:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166515,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:05:47]free response buf [19:05:47]execute_script done [19:05:47]execute_script returns [19:05:47]free content buf [19:05:47]Sock 9.Close socket [19:05:47]Sock 9.Thread stoped [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [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:19]accept exits with 7 [19:21:19]New connection [19:21:19]New thread 3067489636 created [19:21:19]Thread 3067632996 joined [19:21:19]Waiting for new connection... [19:21:19] Sock 7.Parse request [19:21:19]Sock 7.Check first char [19:21:19]Sock 7.First char is OK [19:21:19]request: POST /json_proto HTTP/1.0 [19:21:19]Method: POST [19:21:19]URL: /json_proto [19:21:19]Method is POST - this is cgi request [19:21:19]url: /json_proto [19:21:19]query_string will be loaded in cgi processing [19:21:19]execute_cgi json_proto POST (null) [19:21:19]execute_cgi path=json_proto method=POST [19:21:19]POST find Content-Length [19:21:19]Host: 172.17.53.195:8080 [19:21:19]Content-Length: 678 [19:21:19]Content-Type: application/json [19:21:19] [19:21:19]POST finish read [19:21:19]Found Content-Length = 678 [19:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:19]execute_script... [19:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:19]POST & json_proto [19:21:19]process_json_proto [19:21:19]json parsed OK: [19:21:19]protocol is kg_v1.0 [19:21:19]action value=close_receipt [19:21:19]process_action close_receipt [19:21:19]cmd_close_receipt [19:21:19]MH_GetDate [19:21:19]Write to MH i2c: F0 00 00 1A 09 12 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 09 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 09 00 1A 09 00 30 FB 17 67 21 48 4A 65 DC [19:21:19]GetLastDocTimeStamp 1729623944 [19:21:19]current date 1729624880 [19:21:19]FM_GetShiftState [19:21:19]SAM_PROTO_GetShiftState [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 01 00 [19:21:19]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F4 [19:21:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetShiftState done [19:21:19]FM_GetShiftState done [19:21:19]opened in 1729557463 [19:21:19]opened+sec_in_day 1729643863 [19:21:19]quantity*price = 80012 [19:21:19]sum+1 = 80013 [19:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 271 22.10.2024 19:21 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166516 ФПД: 264848995766431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166516&fm=264848995766431&tin=02508201610067®Number=0000000000091764&sum=80000 [19:21:20]StoreToDocumentArchive [19:21:20]shift 536 fd 166516 [19:21:20]save to /storage/0536/doc_00166516 [19:21:20]save last doc name /storage/0536/doc_00166516 to /storage/kkm_last_doc_name [19:21:20]save OK [19:21:20]Clear old archive folders... [19:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:20]tlvbuf is 0124E9E0 [19:21:20]SAM_PROTO_ClearQueue [19:21:20]wFMCommunicate request_size=4 [19:21:20]MH_SAM_APDU [19:21:20]CAPDU: 80 09 00 00 [19:21:20]Write to MH i2c: E2 08 00 28 09 80 09 00 00 00 00 00 00 A3 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:20]Read from MH i2c: E2 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: E2 03 00 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [19:21:20]RAPDU: 90 00 [19:21:20]wFMCommunicate OK [19:21:20]SAM_PROTO_ClearQueue done [19:21:20]KKMCreateOFDPacket [19:21:20]OFDProtocolAddRootSTLVToBuf [19:21:20]FM_MakeSignedData [19:21:20]FM_MakeSignedData [19:21:20]SAM_PROTO_SignData [19:21:20]wFMCommunicate request_size=4 [19:21:20]MH_SAM_APDU [19:21:20]CAPDU: 80 0D 01 02 [19:21:20]Write to MH i2c: E2 08 00 29 09 80 0D 01 02 00 00 00 00 AB [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:20]Read from MH i2c: E2 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: E2 03 00 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [19:21:20]RAPDU: 90 00 [19:21:20]wFMCommunicate OK [19:21:20]wFMCommunicate request_size=255 [19:21:20]MH_SAM_APDU [19:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 30 FB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8A 02 00 35 04 06 00 F0 [19:21:20]Write to MH i2c: E2 02 01 2A 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 30 FB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8A 02 00 35 04 06 00 F0 00 00 F0 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]wFMCommunicate request_size=10 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 02 02 05 E0 F6 4F D0 9F [19:21:21]Write to MH i2c: E2 0D 00 2B 09 80 0D 02 02 05 00 E0 F6 4F D0 9F 00 00 4C [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 03 02 [19:21:21]Write to MH i2c: E2 08 00 2C 09 80 0D 03 02 00 00 00 00 B0 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0B 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0B 00 2C 09 00 7D 38 65 C1 EC 0B D1 DF 90 00 33 [19:21:21]RAPDU: 7D 38 65 C1 EC 0B D1 DF 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_SignData done [19:21:21]FM_MakeSignedData done [19:21:21]CreateOFDProtocolMessage [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 11 00 00 [19:21:21]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [19:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:21:21]wFMCommunicate OK [19:21:21]CreateOFDProtocolMessage done [19:21:21]OFDSenderStorePacket 166516 [19:21:21]StoreOFDPacket docnum=166516 [19:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 A2 07 01 7B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 30 FB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8A 02 00 35 04 06 00 F0 E0 F6 4F D0 9F 7D 38 65 C1 EC 0B D1 DF [19:21:21]CheckFolder [19:21:21]dirname=/storage/ofd_packets [19:21:21]CheckFolder done [19:21:21]ProducePacketName [19:21:21]name=ofd_packets/00166516 [19:21:21]NVStorageSaveData ofd_packets/00166516 [19:21:21]File name is /storage/ofd_packets/00166516 [19:21:21]Write 301 bytes [19:21:21]NVStorageSaveData done [19:21:21]OFDSenderStorePacket done [19:21:21]KKMCreateOFDPacket done [19:21:21]NVStorageSaveData kkm_last_timestamp [19:21:21]File name is /storage/kkm_last_timestamp [19:21:21]Write 4 bytes [19:21:21]NVStorageSaveData done [19:21:21]ExternCall_PrintAddStr [19:21:21]wPrintStart [19:21:21]Write to MH i2c: 01 00 00 2E 09 37 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [19:21:21]RasterBufferAndPrint [19:21:21]line Счет N : (1)221097 [19:21:21]line ИНН: 02508201610067 [19:21:21]line Контрольно-Кассовый Чек [19:21:21]line ПРОДАЖА [19:21:21]line ТРК (МРК, ГНК) : 23 [19:21:21]line Товар: 2710124130 [19:21:21]line Аи-92-К-5 [19:21:21]line 11.960 * 66.90 [19:21:21]line = 800.12 [19:21:21]line НДС 12% НСП 1% [19:21:21]line > о реализуемом товаре [19:21:21]line ОКРУГЛЕНИЕ: -0.12 [19:21:21]line ИТОГО: 800.00 [19:21:21]line Внесено: 800.00 [19:21:21]line СДАЧА: 0.00 [19:21:21]line НСП 1% : 7.08 [19:21:21]line НДС 12% : 84.97 [19:21:21]line Наличными: 800.00 [19:21:21]line Безнал.: 0.00 [19:21:21]line Место: АЗС № 161 "Партнер Нефть" [19:21:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:21:21]line СНО: Общий режим [19:21:21]line Чек 271 22.10.2024 19:21 [19:21:21]line Смена: 536 ФФД: 1.0 [19:21:21]line ЗНМ: 0300000104 [19:21:21]line РНМ: 0000000000091764 [19:21:21]line Версия ККМ: 001 [19:21:21]line ФМ: 0000000000871759 [19:21:21]line ФД: 166516 [19:21:21]line ФПД: 264848995766431 [19:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192120&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166516&fm=264848995766431&tin=02508201610067®Number=0000000000091764&sum=80000 [19:21:21]OFD Sender: Processing packet 166516 [packets to send 48, broken 47] [19:21:21]ProducePacketName [19:21:21]name=ofd_packets/00166516 [19:21:21]OFD Sender: To server: pG, [19:21:21]CommunicateWithHost lk.salyk.kg:30040 [19:21:21]ConnectInit lk.salyk.kg [19:21:21]written 0, free lines is 4095 [19:21:21]Connected sock=10 [19:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 A2 07 01 7B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 30 FB 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8A 02 00 35 04 06 00 F0 E0 F6 4F D0 9F 7D 38 65 C1 EC 0B D1 DF [19:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 45 47 00 59 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 8A 02 00 F4 03 04 00 9A A1 17 67 B6 04 01 00 00 10 7A 17 B5 F8 06 F9 35 [19:21:21]CommunicateWithHost err = 0 [19:21:21]CheckOFDResponse [19:21:21]1017 (14) - 77093643461234 [19:21:21]1041 (16) - 0000000000871759 [19:21:21]1040 (4) - 166516 [19:21:21]1012 (4) - 22.10.2024 12:59 [19:21:21]1206 (1) - 0 [19:21:21]OFD Sender: Remove packet 166516 [19:21:21]ProducePacketName [19:21:21]name=ofd_packets/00166516 [19:21:21]NVStorageDeleteData [19:21:22]Write to MH i2c: 01 00 00 59 09 62 [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 07 00 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 07 00 59 09 00 00 00 00 00 B8 0C 2D [19:21:22]RasterBufferAndPrint [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]written 0, free lines is 3263 [19:21:22]MH_Cut [19:21:22]Write to MH i2c: D1 01 00 60 09 01 3B [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 01 00 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 01 00 60 09 00 3A [19:21:22]Write to MH i2c: 01 00 00 61 09 6A [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]OFD Sender: No OFD packet to send [19:21:22]*** Cut start [19:21:22]*** Partial cut [19:21:22]*** CUTSNS_PIN = 1 [19:21:22]*** CUTSNS_PIN = 0 [19:21:23]*** Brake cut motor [19:21:23]Read from MH i2c: 01 [19:21:23]MH_I2C_Read... [19:21:23]*** Stop cut motor [19:21:23]*** Cut end [19:21:23]Read from MH i2c: 01 07 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 FF 0F 7F [19:21:23]process_action close_receipt done [19:21:23]requested_data is exist [19:21:23]produce_requested_data [19:21:23]requested_item fm.sn is exist - process it [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 11 00 00 [19:21:23]Write to MH i2c: E2 08 00 62 09 80 11 00 00 00 00 00 00 E5 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 17 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 17 00 62 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [19:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:21:23]wFMCommunicate OK [19:21:23]requested_item fd.num is exist - process it [19:21:23]SAM_PROTO_GetFieldsCounters [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 13 00 00 [19:21:23]Write to MH i2c: E2 08 00 63 09 80 13 00 00 00 00 00 00 E8 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 62 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 62 00 63 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_GetFieldsCounters done [19:21:23]requested_item shift.num is exist - process it [19:21:23]requested_item shift.opened is exist - process it [19:21:23]req_shift_opened [19:21:23]FM_GetShiftState [19:21:23]SAM_PROTO_GetShiftState [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 13 01 00 [19:21:23]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0E 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [19:21:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_GetShiftState done [19:21:23]FM_GetShiftState done [19:21:23]req_shift_opened done [19:21:23]requested_item shift.open_date is exist - process it [19:21:23]req_shift_open_date [19:21:23]req_shift_open_date done [19:21:23]produce_requested_data done [19:21:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166516,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:21:23]process_action_free close_receipt [19:21:23]json_value_free [19:21:23]json_value_free done [19:21:23]process_json_proto returns [19:21:23]Send response to host [19:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166516,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:21:23]free response buf [19:21:23]execute_script done [19:21:23]execute_script returns [19:21:23]free content buf [19:21:23]Sock 7.Close socket [19:21:23]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]accept exits with 9 [19:25:22]New connection [19:25:22]New thread 3067632996 created [19:25:22]Thread 3067489636 joined [19:25:22]Waiting for new connection... [19:25:22] Sock 9.Parse request [19:25:22]Sock 9.Check first char [19:25:22]Sock 9.First char is OK [19:25:22]request: POST /json_proto HTTP/1.0 [19:25:22]Method: POST [19:25:22]URL: /json_proto [19:25:22]Method is POST - this is cgi request [19:25:22]url: /json_proto [19:25:22]query_string will be loaded in cgi processing [19:25:22]execute_cgi json_proto POST (null) [19:25:22]execute_cgi path=json_proto method=POST [19:25:22]POST find Content-Length [19:25:22]Host: 172.17.53.195:8080 [19:25:22]Content-Length: 766 [19:25:22]Content-Type: application/json [19:25:22] [19:25:22]POST finish read [19:25:22]Found Content-Length = 766 [19:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:22]execute_script... [19:25:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:22]POST & json_proto [19:25:22]process_json_proto [19:25:22]json parsed OK: [19:25:22]protocol is kg_v1.0 [19:25:22]action value=close_receipt [19:25:22]process_action close_receipt [19:25:22]cmd_close_receipt [19:25:22]MH_GetDate [19:25:22]Write to MH i2c: F0 00 00 65 09 5D [19:25:22]Write i2c OK [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 09 00 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 09 00 65 09 00 23 FC 17 67 21 48 4A 65 1B [19:25:22]GetLastDocTimeStamp 1729624880 [19:25:22]current date 1729625123 [19:25:22]FM_GetShiftState [19:25:22]SAM_PROTO_GetShiftState [19:25:22]wFMCommunicate request_size=4 [19:25:22]MH_SAM_APDU [19:25:22]CAPDU: 80 13 01 00 [19:25:22]Write to MH i2c: E2 08 00 66 09 80 13 01 00 00 00 00 00 EC [19:25:22]Write i2c OK [19:25:22]MH_I2C_Read... [19:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:22]Read from MH i2c: E2 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: E2 0E 00 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: E2 0E 00 66 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3F [19:25:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:25:22]wFMCommunicate OK [19:25:22]SAM_PROTO_GetShiftState done [19:25:22]FM_GetShiftState done [19:25:22]opened in 1729557463 [19:25:22]opened+sec_in_day 1729643863 [19:25:22]quantity*price = 200025 [19:25:22]sum+1 = 200026 [19:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 272 22.10.2024 19:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166517 ФПД: 135168388784851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166517&fm=135168388784851&tin=02508201610067®Number=0000000000091764&sum=200025 [19:25:23]StoreToDocumentArchive [19:25:23]shift 536 fd 166517 [19:25:23]save to /storage/0536/doc_00166517 [19:25:23]save last doc name /storage/0536/doc_00166517 to /storage/kkm_last_doc_name [19:25:23]save OK [19:25:23]Clear old archive folders... [19:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:25:23]tlvbuf is 01297750 [19:25:23]SAM_PROTO_ClearQueue [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 09 00 00 [19:25:23]Write to MH i2c: E2 08 00 73 09 80 09 00 00 00 00 00 00 EE [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]SAM_PROTO_ClearQueue done [19:25:23]KKMCreateOFDPacket [19:25:23]OFDProtocolAddRootSTLVToBuf [19:25:23]FM_MakeSignedData [19:25:23]FM_MakeSignedData [19:25:23]SAM_PROTO_SignData [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 0D 01 02 [19:25:23]Write to MH i2c: E2 08 00 74 09 80 0D 01 02 00 00 00 00 F6 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]wFMCommunicate request_size=255 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 23 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8A 02 00 35 04 06 00 7A EF 57 CC [19:25:23]Write to MH i2c: E2 02 01 75 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 23 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8A 02 00 35 04 06 00 7A EF 57 CC 00 00 F7 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 03 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [19:25:24]RAPDU: 90 00 [19:25:24]wFMCommunicate OK [19:25:24]wFMCommunicate request_size=7 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 0D 02 02 02 62 D3 [19:25:24]Write to MH i2c: E2 0A 00 76 09 80 0D 02 02 02 00 62 D3 00 00 32 [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 03 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [19:25:24]RAPDU: 90 00 [19:25:24]wFMCommunicate OK [19:25:24]wFMCommunicate request_size=4 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 0D 03 02 [19:25:24]Write to MH i2c: E2 08 00 77 09 80 0D 03 02 00 00 00 00 FB [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 0B 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 0B 00 77 09 00 B9 C7 1C B6 D7 AA 67 A5 90 00 DB [19:25:24]RAPDU: B9 C7 1C B6 D7 AA 67 A5 90 00 [19:25:24]wFMCommunicate OK [19:25:24]SAM_PROTO_SignData done [19:25:24]FM_MakeSignedData done [19:25:24]CreateOFDProtocolMessage [19:25:24]wFMCommunicate request_size=4 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 11 00 00 [19:25:24]Write to MH i2c: E2 08 00 78 09 80 11 00 00 00 00 00 00 FB [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 17 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 17 00 78 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [19:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:25:24]wFMCommunicate OK [19:25:24]CreateOFDProtocolMessage done [19:25:24]OFDSenderStorePacket 166517 [19:25:24]StoreOFDPacket docnum=166517 [19:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7C BA 04 01 FD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 23 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8A 02 00 35 04 06 00 7A EF 57 CC 62 D3 B9 C7 1C B6 D7 AA 67 A5 [19:25:24]CheckFolder [19:25:24]dirname=/storage/ofd_packets [19:25:24]CheckFolder done [19:25:24]ProducePacketName [19:25:24]name=ofd_packets/00166517 [19:25:24]NVStorageSaveData ofd_packets/00166517 [19:25:24]File name is /storage/ofd_packets/00166517 [19:25:24]Write 298 bytes [19:25:24]NVStorageSaveData done [19:25:24]OFDSenderStorePacket done [19:25:24]KKMCreateOFDPacket done [19:25:24]NVStorageSaveData kkm_last_timestamp [19:25:24]File name is /storage/kkm_last_timestamp [19:25:24]Write 4 bytes [19:25:24]NVStorageSaveData done [19:25:24]ExternCall_PrintAddStr [19:25:24]wPrintStart [19:25:24]Write to MH i2c: 01 00 00 79 09 82 [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 FF 0F 97 [19:25:24]RasterBufferAndPrint [19:25:24]line Счет N : (1)221098 [19:25:24]line ИНН: 02508201610067 [19:25:24]line Контрольно-Кассовый Чек [19:25:24]line ПРОДАЖА [19:25:24]line ТРК (МРК, ГНК) : 11 [19:25:24]line Товар: 2710194210 [19:25:24]line ДТ-К-5 [19:25:24]line 26.250 * 76.20 [19:25:24]line = 2000.25 [19:25:24]line НДС 12% НСП 1% [19:25:24]line > о реализуемом товаре [19:25:24]line ИТОГО: 2000.25 [19:25:24]line НСП 1% : 17.70 [19:25:24]line НДС 12% : 212.42 [19:25:24]line Наличными: 0.00 [19:25:24]line Безнал.: 2000.25 [19:25:24]line Место: АЗС № 161 "Партнер Нефть" [19:25:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:25:24]line СНО: Общий режим [19:25:24]line Чек 272 22.10.2024 19:25 [19:25:24]line Смена: 536 ФФД: 1.0 [19:25:24]line ЗНМ: 0300000104 [19:25:24]line РНМ: 0000000000091764 [19:25:24]line Версия ККМ: 001 [19:25:24]line Платежная система: Mbank [19:25:24]line ФМ: 0000000000871759 [19:25:24]line ФД: 166517 [19:25:24]line ФПД: 135168388784851 [19:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192523&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166517&fm=135168388784851&tin=02508201610067®Number=0000000000091764&sum=200025 [19:25:24]OFD Sender: Processing packet 166517 [packets to send 48, broken 47] [19:25:24]ProducePacketName [19:25:24]name=ofd_packets/00166517 [19:25:24]OFD Sender: To server: pG, [19:25:24]CommunicateWithHost lk.salyk.kg:30040 [19:25:24]ConnectInit lk.salyk.kg [19:25:24]written 0, free lines is 4095 [19:25:24]Connected sock=10 [19:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7C BA 04 01 FD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 23 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8A 02 00 35 04 06 00 7A EF 57 CC 62 D3 B9 C7 1C B6 D7 AA 67 A5 [19:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD A7 47 00 0D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 8A 02 00 F4 03 04 00 8D A2 17 67 B6 04 01 00 00 1E 95 A5 B8 A3 EF 1C F5 [19:25:24]CommunicateWithHost err = 0 [19:25:24]CheckOFDResponse [19:25:24]1017 (14) - 77093643461234 [19:25:24]1041 (16) - 0000000000871759 [19:25:24]1040 (4) - 166517 [19:25:24]1012 (4) - 22.10.2024 13:03 [19:25:24]1206 (1) - 0 [19:25:24]OFD Sender: Remove packet 166517 [19:25:24]ProducePacketName [19:25:24]name=ofd_packets/00166517 [19:25:24]NVStorageDeleteData [19:25:24]Write to MH i2c: 01 00 00 A2 09 AB [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 D5 0C 93 [19:25:24]RasterBufferAndPrint [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]written 0, free lines is 3294 [19:25:25]MH_Cut [19:25:25]Write to MH i2c: D1 01 00 A9 09 01 84 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D1 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D1 01 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D1 01 00 A9 09 00 83 [19:25:25]Write to MH i2c: 01 00 00 AA 09 B3 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]OFD Sender: No OFD packet to send [19:25:25]*** Cut start [19:25:25]*** Partial cut [19:25:25]*** CUTSNS_PIN = 1 [19:25:25]*** CUTSNS_PIN = 0 [19:25:26]*** Brake cut motor [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]*** Stop cut motor [19:25:26]*** Cut end [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [19:25:26]process_action close_receipt done [19:25:26]requested_data is exist [19:25:26]produce_requested_data [19:25:26]requested_item fm.sn is exist - process it [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 11 00 00 [19:25:26]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 17 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [19:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:25:26]wFMCommunicate OK [19:25:26]requested_item fd.num is exist - process it [19:25:26]SAM_PROTO_GetFieldsCounters [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 13 00 00 [19:25:26]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 62 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 62 00 AC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_GetFieldsCounters done [19:25:26]requested_item shift.num is exist - process it [19:25:26]requested_item shift.opened is exist - process it [19:25:26]req_shift_opened [19:25:26]FM_GetShiftState [19:25:26]SAM_PROTO_GetShiftState [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 13 01 00 [19:25:26]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:26]Read from MH i2c: E2 0E 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [19:25:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_GetShiftState done [19:25:26]FM_GetShiftState done [19:25:26]req_shift_opened done [19:25:26]requested_item shift.open_date is exist - process it [19:25:26]req_shift_open_date [19:25:26]req_shift_open_date done [19:25:26]produce_requested_data done [19:25:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166517,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:25:26]process_action_free close_receipt [19:25:26]json_value_free [19:25:26]json_value_free done [19:25:26]process_json_proto returns [19:25:26]Send response to host [19:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166517,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:25:26]free response buf [19:25:26]execute_script done [19:25:26]execute_script returns [19:25:26]free content buf [19:25:26]Sock 9.Close socket [19:25:26]Sock 9.Thread stoped [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:19]accept exits with 7 [19:28:19]New connection [19:28:19]New thread 3067489636 created [19:28:19]Thread 3067632996 joined [19:28:19]Waiting for new connection... [19:28:19] Sock 7.Parse request [19:28:19]Sock 7.Check first char [19:28:19]Sock 7.First char is OK [19:28:19]request: POST /json_proto HTTP/1.0 [19:28:19]Method: POST [19:28:19]URL: /json_proto [19:28:19]Method is POST - this is cgi request [19:28:19]url: /json_proto [19:28:19]query_string will be loaded in cgi processing [19:28:19]execute_cgi json_proto POST (null) [19:28:19]execute_cgi path=json_proto method=POST [19:28:19]POST find Content-Length [19:28:19]Host: 172.17.53.195:8080 [19:28:19]Content-Length: 766 [19:28:19]Content-Type: application/json [19:28:19] [19:28:19]POST finish read [19:28:19]Found Content-Length = 766 [19:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:19]execute_script... [19:28:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:19]POST & json_proto [19:28:19]process_json_proto [19:28:19]json parsed OK: [19:28:19]protocol is kg_v1.0 [19:28:19]action value=close_receipt [19:28:19]process_action close_receipt [19:28:19]cmd_close_receipt [19:28:19]MH_GetDate [19:28:19]Write to MH i2c: F0 00 00 AE 09 A6 [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 09 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: F0 09 00 AE 09 00 D4 FC 17 67 21 48 4A 65 15 [19:28:19]GetLastDocTimeStamp 1729625123 [19:28:19]current date 1729625300 [19:28:19]FM_GetShiftState [19:28:19]SAM_PROTO_GetShiftState [19:28:19]wFMCommunicate request_size=4 [19:28:19]MH_SAM_APDU [19:28:19]CAPDU: 80 13 01 00 [19:28:19]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0E 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 88 [19:28:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:28:19]wFMCommunicate OK [19:28:19]SAM_PROTO_GetShiftState done [19:28:19]FM_GetShiftState done [19:28:19]opened in 1729557463 [19:28:19]opened+sec_in_day 1729643863 [19:28:19]quantity*price = 50041 [19:28:19]sum+1 = 50042 [19:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 273 22.10.2024 19:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166518 ФПД: 251416266444307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166518&fm=251416266444307&tin=02508201610067®Number=0000000000091764&sum=50041 [19:28:20]StoreToDocumentArchive [19:28:20]shift 536 fd 166518 [19:28:20]save to /storage/0536/doc_00166518 [19:28:20]save last doc name /storage/0536/doc_00166518 to /storage/kkm_last_doc_name [19:28:20]save OK [19:28:20]Clear old archive folders... [19:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:20]tlvbuf is 011FF1F0 [19:28:20]SAM_PROTO_ClearQueue [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 09 00 00 [19:28:20]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [19:28:20]RAPDU: 90 00 [19:28:20]wFMCommunicate OK [19:28:20]SAM_PROTO_ClearQueue done [19:28:20]KKMCreateOFDPacket [19:28:20]OFDProtocolAddRootSTLVToBuf [19:28:20]FM_MakeSignedData [19:28:20]FM_MakeSignedData [19:28:20]SAM_PROTO_SignData [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 0D 01 02 [19:28:20]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=255 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8A 02 00 35 04 06 00 E4 [19:28:21]Write to MH i2c: E2 02 01 BE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8A 02 00 35 04 06 00 E4 00 00 87 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=10 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 02 02 05 A9 69 40 8E 13 [19:28:21]Write to MH i2c: E2 0D 00 BF 09 80 0D 02 02 05 00 A9 69 40 8E 13 00 00 3F [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 03 02 [19:28:21]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 C0 09 00 76 EF 7C B5 D1 73 ED 65 90 00 71 [19:28:21]RAPDU: 76 EF 7C B5 D1 73 ED 65 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_SignData done [19:28:21]FM_MakeSignedData done [19:28:21]CreateOFDProtocolMessage [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 11 00 00 [19:28:21]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [19:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:21]wFMCommunicate OK [19:28:21]CreateOFDProtocolMessage done [19:28:21]OFDSenderStorePacket 166518 [19:28:21]StoreOFDPacket docnum=166518 [19:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 62 07 01 D6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8A 02 00 35 04 06 00 E4 A9 69 40 8E 13 76 EF 7C B5 D1 73 ED 65 [19:28:21]CheckFolder [19:28:21]dirname=/storage/ofd_packets [19:28:21]CheckFolder done [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00166518 [19:28:21]NVStorageSaveData ofd_packets/00166518 [19:28:21]File name is /storage/ofd_packets/00166518 [19:28:21]Write 301 bytes [19:28:21]NVStorageSaveData done [19:28:21]OFDSenderStorePacket done [19:28:21]KKMCreateOFDPacket done [19:28:21]NVStorageSaveData kkm_last_timestamp [19:28:21]File name is /storage/kkm_last_timestamp [19:28:21]Write 4 bytes [19:28:21]NVStorageSaveData done [19:28:21]ExternCall_PrintAddStr [19:28:21]wPrintStart [19:28:21]Write to MH i2c: 01 00 00 C2 09 CB [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [19:28:21]RasterBufferAndPrint [19:28:21]line Счет N : (1)221100 [19:28:21]line ИНН: 02508201610067 [19:28:21]line Контрольно-Кассовый Чек [19:28:21]line ПРОДАЖА [19:28:21]line ТРК (МРК, ГНК) : 23 [19:28:21]line Товар: 2710124130 [19:28:21]line Аи-92-К-5 [19:28:21]line 7.480 * 66.90 [19:28:21]line = 500.41 [19:28:21]line НДС 12% НСП 1% [19:28:21]line > о реализуемом товаре [19:28:21]line ИТОГО: 500.41 [19:28:21]line НСП 1% : 4.43 [19:28:21]line НДС 12% : 53.14 [19:28:21]line Наличными: 0.00 [19:28:21]line Безнал.: 500.41 [19:28:21]line Место: АЗС № 161 "Партнер Нефть" [19:28:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:28:21]line СНО: Общий режим [19:28:21]line Чек 273 22.10.2024 19:28 [19:28:21]line Смена: 536 ФФД: 1.0 [19:28:21]line ЗНМ: 0300000104 [19:28:21]line РНМ: 0000000000091764 [19:28:21]line Версия ККМ: 001 [19:28:21]line Платежная система: Mbank [19:28:21]line ФМ: 0000000000871759 [19:28:21]line ФД: 166518 [19:28:21]line ФПД: 251416266444307 [19:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166518&fm=251416266444307&tin=02508201610067®Number=0000000000091764&sum=50041 [19:28:21]OFD Sender: Processing packet 166518 [packets to send 48, broken 47] [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00166518 [19:28:21]OFD Sender: To server: pG, [19:28:21]CommunicateWithHost lk.salyk.kg:30040 [19:28:21]ConnectInit lk.salyk.kg [19:28:21]written 0, free lines is 4095 [19:28:21]Connected sock=10 [19:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 75 62 07 01 D6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8A 02 00 35 04 06 00 E4 A9 69 40 8E 13 76 EF 7C B5 D1 73 ED 65 [19:28:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A A1 47 00 BF BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 8A 02 00 F4 03 04 00 3E A3 17 67 B6 04 01 00 00 B3 9D 11 EC CD CE 99 34 [19:28:22]CommunicateWithHost err = 0 [19:28:22]CheckOFDResponse [19:28:22]1017 (14) - 77093643461234 [19:28:22]1041 (16) - 0000000000871759 [19:28:22]1040 (4) - 166518 [19:28:22]1012 (4) - 22.10.2024 13:06 [19:28:22]1206 (1) - 0 [19:28:22]OFD Sender: Remove packet 166518 [19:28:22]ProducePacketName [19:28:22]name=ofd_packets/00166518 [19:28:22]NVStorageDeleteData [19:28:22]Write to MH i2c: 01 00 00 EB 09 F4 [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 EF 0C F6 [19:28:22]RasterBufferAndPrint [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]written 0, free lines is 3317 [19:28:22]MH_Cut [19:28:22]Write to MH i2c: D1 01 00 F2 09 01 CD [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 F2 09 00 CC [19:28:22]Write to MH i2c: 01 00 00 F3 09 FC [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]OFD Sender: No OFD packet to send [19:28:23]*** Cut start [19:28:23]*** Partial cut [19:28:23]*** CUTSNS_PIN = 1 [19:28:23]*** CUTSNS_PIN = 0 [19:28:23]*** Brake cut motor [19:28:23]Read from MH i2c: 01 [19:28:23]MH_I2C_Read... [19:28:23]*** Stop cut motor [19:28:23]*** Cut end [19:28:23]Read from MH i2c: 01 07 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 FF 0F 11 [19:28:23]process_action close_receipt done [19:28:23]requested_data is exist [19:28:23]produce_requested_data [19:28:23]requested_item fm.sn is exist - process it [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 11 00 00 [19:28:23]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 17 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [19:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:23]wFMCommunicate OK [19:28:23]requested_item fd.num is exist - process it [19:28:23]SAM_PROTO_GetFieldsCounters [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 13 00 00 [19:28:23]Write to MH i2c: E2 08 00 F5 09 80 13 00 00 00 00 00 00 7A [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 62 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 62 00 F5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:23]wFMCommunicate OK [19:28:23]SAM_PROTO_GetFieldsCounters done [19:28:23]requested_item shift.num is exist - process it [19:28:23]requested_item shift.opened is exist - process it [19:28:23]req_shift_opened [19:28:23]FM_GetShiftState [19:28:23]SAM_PROTO_GetShiftState [19:28:23]wFMCommunicate request_size=4 [19:28:23]MH_SAM_APDU [19:28:23]CAPDU: 80 13 01 00 [19:28:23]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [19:28:23]Write i2c OK [19:28:23]MH_I2C_Read... [19:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:23]Read from MH i2c: E2 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 0E 00 [19:28:23]MH_I2C_Read... [19:28:23]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 CF [19:28:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:28:23]wFMCommunicate OK [19:28:23]SAM_PROTO_GetShiftState done [19:28:23]FM_GetShiftState done [19:28:23]req_shift_opened done [19:28:23]requested_item shift.open_date is exist - process it [19:28:23]req_shift_open_date [19:28:23]req_shift_open_date done [19:28:23]produce_requested_data done [19:28:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166518,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:28:23]process_action_free close_receipt [19:28:23]json_value_free [19:28:23]json_value_free done [19:28:23]process_json_proto returns [19:28:23]Send response to host [19:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166518,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:28:23]free response buf [19:28:23]execute_script done [19:28:23]execute_script returns [19:28:23]free content buf [19:28:23]Sock 7.Close socket [19:28:23]Sock 7.Thread stoped [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:53]accept exits with 9 [19:28:53]New connection [19:28:53]New thread 3067632996 created [19:28:53]Thread 3067489636 joined [19:28:53]Waiting for new connection... [19:28:53] Sock 9.Parse request [19:28:53]Sock 9.Check first char [19:28:53]Sock 9.First char is OK [19:28:53]request: POST /json_proto HTTP/1.0 [19:28:53]Method: POST [19:28:53]URL: /json_proto [19:28:53]Method is POST - this is cgi request [19:28:53]url: /json_proto [19:28:53]query_string will be loaded in cgi processing [19:28:53]execute_cgi json_proto POST (null) [19:28:53]execute_cgi path=json_proto method=POST [19:28:53]POST find Content-Length [19:28:53]Host: 172.17.53.195:8080 [19:28:53]Content-Length: 789 [19:28:53]Content-Type: application/json [19:28:53] [19:28:53]POST finish read [19:28:53]Found Content-Length = 789 [19:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:53]execute_script... [19:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:53]POST & json_proto [19:28:53]process_json_proto [19:28:53]json parsed OK: [19:28:53]protocol is kg_v1.0 [19:28:53]action value=close_receipt [19:28:53]process_action close_receipt [19:28:53]cmd_close_receipt [19:28:53]MH_GetDate [19:28:53]Write to MH i2c: F0 00 00 F7 09 EF [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 09 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 09 00 F7 09 00 F5 FC 17 67 21 48 4A 65 7F [19:28:53]GetLastDocTimeStamp 1729625300 [19:28:53]current date 1729625333 [19:28:53]FM_GetShiftState [19:28:53]SAM_PROTO_GetShiftState [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 01 00 [19:28:53]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [19:28:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetShiftState done [19:28:53]FM_GetShiftState done [19:28:53]opened in 1729557463 [19:28:53]opened+sec_in_day 1729643863 [19:28:53]quantity*price = 0 [19:28:53]sum+1 = 1 [19:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 274 22.10.2024 19:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166519 ФПД: 75941323019940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166519&fm=75941323019940&tin=02508201610067®Number=0000000000091764&sum=0 [19:28:54]StoreToDocumentArchive [19:28:54]shift 536 fd 166519 [19:28:54]save to /storage/0536/doc_00166519 [19:28:54]save last doc name /storage/0536/doc_00166519 to /storage/kkm_last_doc_name [19:28:54]save OK [19:28:54]Clear old archive folders... [19:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:28:54]tlvbuf is 011F12B0 [19:28:54]SAM_PROTO_ClearQueue [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 09 00 00 [19:28:54]Write to MH i2c: E2 08 00 05 0A 80 09 00 00 00 00 00 00 81 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_ClearQueue done [19:28:54]KKMCreateOFDPacket [19:28:54]OFDProtocolAddRootSTLVToBuf [19:28:54]FM_MakeSignedData [19:28:54]FM_MakeSignedData [19:28:54]SAM_PROTO_SignData [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 01 02 [19:28:54]Write to MH i2c: E2 08 00 06 0A 80 0D 01 02 00 00 00 00 89 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=255 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 F6 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8A 02 00 35 04 06 00 45 11 77 95 [19:28:54]Write to MH i2c: E2 02 01 07 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 F6 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8A 02 00 35 04 06 00 45 11 77 95 00 00 5C [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=7 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 02 02 02 16 A4 [19:28:54]Write to MH i2c: E2 0A 00 08 0A 80 0D 02 02 02 00 16 A4 00 00 4A [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 03 02 [19:28:54]Write to MH i2c: E2 08 00 09 0A 80 0D 03 02 00 00 00 00 8E [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0B 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0B 00 09 0A 00 93 6D 39 65 A7 D0 7D 66 90 00 87 [19:28:54]RAPDU: 93 6D 39 65 A7 D0 7D 66 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_SignData done [19:28:54]FM_MakeSignedData done [19:28:54]CreateOFDProtocolMessage [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 0A 0A 80 11 00 00 00 00 00 00 8E [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 0A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [19:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:54]wFMCommunicate OK [19:28:54]CreateOFDProtocolMessage done [19:28:54]OFDSenderStorePacket 166519 [19:28:54]StoreOFDPacket docnum=166519 [19:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D7 9C 04 01 98 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 F6 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8A 02 00 35 04 06 00 45 11 77 95 16 A4 93 6D 39 65 A7 D0 7D 66 [19:28:54]CheckFolder [19:28:54]dirname=/storage/ofd_packets [19:28:54]CheckFolder done [19:28:54]ProducePacketName [19:28:54]name=ofd_packets/00166519 [19:28:54]NVStorageSaveData ofd_packets/00166519 [19:28:54]File name is /storage/ofd_packets/00166519 [19:28:54]Write 298 bytes [19:28:54]NVStorageSaveData done [19:28:54]OFDSenderStorePacket done [19:28:54]KKMCreateOFDPacket done [19:28:54]NVStorageSaveData kkm_last_timestamp [19:28:54]File name is /storage/kkm_last_timestamp [19:28:54]Write 4 bytes [19:28:54]NVStorageSaveData done [19:28:54]ExternCall_PrintAddStr [19:28:54]wPrintStart [19:28:54]Write to MH i2c: 01 00 00 0B 0A 15 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [19:28:54]RasterBufferAndPrint [19:28:54]line Счет N : (1)221099 [19:28:54]line ИНН: 02508201610067 [19:28:54]line Контрольно-Кассовый Чек [19:28:54]line ПРОДАЖА [19:28:54]line ТРК (МРК, ГНК) : 31 [19:28:54]line Товар: 2710194210 [19:28:54]line ДТ-К-5 [19:28:54]line 39.380 * 0.00 [19:28:54]line = 0.00 [19:28:54]line НДС 12% НСП 1% [19:28:54]line > о реализуемом товаре [19:28:54]line ИТОГО: 0.00 [19:28:54]line НСП 1% : 0.00 [19:28:54]line НДС 12% : 0.00 [19:28:54]line Наличными: 0.00 [19:28:54]line Безнал.: 0.00 [19:28:54]line Место: АЗС № 161 "Партнер Нефть" [19:28:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:28:54]line СНО: Общий режим [19:28:54]line Чек 274 22.10.2024 19:28 [19:28:54]line Смена: 536 ФФД: 1.0 [19:28:54]line ЗНМ: 0300000104 [19:28:54]line РНМ: 0000000000091764 [19:28:54]line Версия ККМ: 001 [19:28:54]line Талоны: Топливная Карта [19:28:54]line 85863 [19:28:54]line ФМ: 0000000000871759 [19:28:54]line ФД: 166519 [19:28:54]line ФПД: 75941323019940 [19:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166519&fm=75941323019940&tin=02508201610067®Number=0000000000091764&sum=0 [19:28:55]OFD Sender: Processing packet 166519 [packets to send 48, broken 47] [19:28:55]ProducePacketName [19:28:55]name=ofd_packets/00166519 [19:28:55]OFD Sender: To server: pG, [19:28:55]CommunicateWithHost lk.salyk.kg:30040 [19:28:55]ConnectInit lk.salyk.kg [19:28:55]written 0, free lines is 4095 [19:28:55]Connected sock=10 [19:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D7 9C 04 01 98 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 F6 FC 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8A 02 00 35 04 06 00 45 11 77 95 16 A4 93 6D 39 65 A7 D0 7D 66 [19:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 04 2A 47 00 63 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 8A 02 00 F4 03 04 00 60 A3 17 67 B6 04 01 00 00 53 4B F1 43 50 0E A7 EB [19:28:55]CommunicateWithHost err = 0 [19:28:55]CheckOFDResponse [19:28:55]1017 (14) - 77093643461234 [19:28:55]1041 (16) - 0000000000871759 [19:28:55]1040 (4) - 166519 [19:28:55]1012 (4) - 22.10.2024 13:06 [19:28:55]1206 (1) - 0 [19:28:55]OFD Sender: Remove packet 166519 [19:28:55]ProducePacketName [19:28:55]name=ofd_packets/00166519 [19:28:55]NVStorageDeleteData [19:28:55]Write to MH i2c: 01 00 00 35 0A 3F [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 C5 0C 17 [19:28:55]RasterBufferAndPrint [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]written 0, free lines is 3279 [19:28:55]MH_Cut [19:28:55]Write to MH i2c: D1 01 00 3C 0A 01 18 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 01 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 01 00 3C 0A 00 17 [19:28:55]Write to MH i2c: 01 00 00 3D 0A 47 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]OFD Sender: No OFD packet to send [19:28:56]*** Cut start [19:28:56]*** Partial cut [19:28:56]*** CUTSNS_PIN = 1 [19:28:56]*** CUTSNS_PIN = 0 [19:28:56]*** Brake cut motor [19:28:57]Read from MH i2c: 01 [19:28:57]MH_I2C_Read... [19:28:57]*** Stop cut motor [19:28:57]*** Cut end [19:28:57]Read from MH i2c: 01 07 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [19:28:57]process_action close_receipt done [19:28:57]requested_data is exist [19:28:57]produce_requested_data [19:28:57]requested_item fm.sn is exist - process it [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 11 00 00 [19:28:57]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 17 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [19:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:28:57]wFMCommunicate OK [19:28:57]requested_item fd.num is exist - process it [19:28:57]SAM_PROTO_GetFieldsCounters [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 13 00 00 [19:28:57]Write to MH i2c: E2 08 00 3F 0A 80 13 00 00 00 00 00 00 C5 [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 62 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 62 00 3F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:57]wFMCommunicate OK [19:28:57]SAM_PROTO_GetFieldsCounters done [19:28:57]requested_item shift.num is exist - process it [19:28:57]requested_item shift.opened is exist - process it [19:28:57]req_shift_opened [19:28:57]FM_GetShiftState [19:28:57]SAM_PROTO_GetShiftState [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 13 01 00 [19:28:57]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 0E 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1A [19:28:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:28:57]wFMCommunicate OK [19:28:57]SAM_PROTO_GetShiftState done [19:28:57]FM_GetShiftState done [19:28:57]req_shift_opened done [19:28:57]requested_item shift.open_date is exist - process it [19:28:57]req_shift_open_date [19:28:57]req_shift_open_date done [19:28:57]produce_requested_data done [19:28:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166519,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:28:57]process_action_free close_receipt [19:28:57]json_value_free [19:28:57]json_value_free done [19:28:57]process_json_proto returns [19:28:57]Send response to host [19:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166519,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:28:57]free response buf [19:28:57]execute_script done [19:28:57]execute_script returns [19:28:57]free content buf [19:28:57]Sock 9.Close socket [19:28:57]Sock 9.Thread stoped [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:14]accept exits with 7 [19:31:14]New connection [19:31:14]New thread 3067489636 created [19:31:14]Thread 3067632996 joined [19:31:14]Waiting for new connection... [19:31:14] Sock 7.Parse request [19:31:14]Sock 7.Check first char [19:31:14]Sock 7.First char is OK [19:31:14]request: POST /json_proto HTTP/1.0 [19:31:14]Method: POST [19:31:14]URL: /json_proto [19:31:14]Method is POST - this is cgi request [19:31:14]url: /json_proto [19:31:14]query_string will be loaded in cgi processing [19:31:14]execute_cgi json_proto POST (null) [19:31:14]execute_cgi path=json_proto method=POST [19:31:14]POST find Content-Length [19:31:14]Host: 172.17.53.195:8080 [19:31:14]Content-Length: 766 [19:31:14]Content-Type: application/json [19:31:14] [19:31:14]POST finish read [19:31:14]Found Content-Length = 766 [19:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:14]execute_script... [19:31:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:14]POST & json_proto [19:31:14]process_json_proto [19:31:14]json parsed OK: [19:31:14]protocol is kg_v1.0 [19:31:14]action value=close_receipt [19:31:14]process_action close_receipt [19:31:14]cmd_close_receipt [19:31:14]MH_GetDate [19:31:14]Write to MH i2c: F0 00 00 41 0A 3A [19:31:14]Write i2c OK [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 09 00 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 09 00 41 0A 00 83 FD 17 67 21 48 4A 65 59 [19:31:14]GetLastDocTimeStamp 1729625334 [19:31:14]current date 1729625475 [19:31:14]FM_GetShiftState [19:31:14]SAM_PROTO_GetShiftState [19:31:14]wFMCommunicate request_size=4 [19:31:14]MH_SAM_APDU [19:31:14]CAPDU: 80 13 01 00 [19:31:14]Write to MH i2c: E2 08 00 42 0A 80 13 01 00 00 00 00 00 C9 [19:31:14]Write i2c OK [19:31:14]MH_I2C_Read... [19:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:14]Read from MH i2c: E2 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: E2 0E 00 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: E2 0E 00 42 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1C [19:31:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:31:14]wFMCommunicate OK [19:31:14]SAM_PROTO_GetShiftState done [19:31:14]FM_GetShiftState done [19:31:14]opened in 1729557463 [19:31:14]opened+sec_in_day 1729643863 [19:31:14]quantity*price = 50041 [19:31:14]sum+1 = 50042 [19:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 275 22.10.2024 19:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166520 ФПД: 128716620527702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166520&fm=128716620527702&tin=02508201610067®Number=0000000000091764&sum=50041 [19:31:15]StoreToDocumentArchive [19:31:15]shift 536 fd 166520 [19:31:15]save to /storage/0536/doc_00166520 [19:31:15]save last doc name /storage/0536/doc_00166520 to /storage/kkm_last_doc_name [19:31:15]save OK [19:31:15]Clear old archive folders... [19:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:15]tlvbuf is B6FFE9E0 [19:31:15]SAM_PROTO_ClearQueue [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 09 00 00 [19:31:15]Write to MH i2c: E2 08 00 4F 0A 80 09 00 00 00 00 00 00 CB [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_ClearQueue done [19:31:15]KKMCreateOFDPacket [19:31:15]OFDProtocolAddRootSTLVToBuf [19:31:15]FM_MakeSignedData [19:31:15]FM_MakeSignedData [19:31:15]SAM_PROTO_SignData [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 01 02 [19:31:15]Write to MH i2c: E2 08 00 50 0A 80 0D 01 02 00 00 00 00 D3 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=255 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 83 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8A 02 00 35 04 06 00 75 [19:31:15]Write to MH i2c: E2 02 01 51 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 83 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8A 02 00 35 04 06 00 75 00 00 60 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=10 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 02 02 05 11 2C 71 78 56 [19:31:15]Write to MH i2c: E2 0D 00 52 0A 80 0D 02 02 05 00 11 2C 71 78 56 00 00 5C [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 03 02 [19:31:15]Write to MH i2c: E2 08 00 53 0A 80 0D 03 02 00 00 00 00 D8 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 53 0A 00 05 EF A8 CF CD 82 57 A5 90 00 8F [19:31:15]RAPDU: 05 EF A8 CF CD 82 57 A5 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_SignData done [19:31:15]FM_MakeSignedData done [19:31:15]CreateOFDProtocolMessage [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 11 00 00 [19:31:15]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [19:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:15]wFMCommunicate OK [19:31:15]CreateOFDProtocolMessage done [19:31:15]OFDSenderStorePacket 166520 [19:31:15]StoreOFDPacket docnum=166520 [19:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 04 07 01 15 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 83 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8A 02 00 35 04 06 00 75 11 2C 71 78 56 05 EF A8 CF CD 82 57 A5 [19:31:15]CheckFolder [19:31:15]dirname=/storage/ofd_packets [19:31:15]CheckFolder done [19:31:15]ProducePacketName [19:31:15]name=ofd_packets/00166520 [19:31:15]NVStorageSaveData ofd_packets/00166520 [19:31:15]File name is /storage/ofd_packets/00166520 [19:31:15]Write 301 bytes [19:31:15]NVStorageSaveData done [19:31:15]OFDSenderStorePacket done [19:31:15]KKMCreateOFDPacket done [19:31:15]NVStorageSaveData kkm_last_timestamp [19:31:15]File name is /storage/kkm_last_timestamp [19:31:15]Write 4 bytes [19:31:15]NVStorageSaveData done [19:31:15]ExternCall_PrintAddStr [19:31:15]wPrintStart [19:31:15]Write to MH i2c: 01 00 00 55 0A 5F [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [19:31:15]RasterBufferAndPrint [19:31:15]line Счет N : (1)221101 [19:31:15]line ИНН: 02508201610067 [19:31:15]line Контрольно-Кассовый Чек [19:31:15]line ПРОДАЖА [19:31:15]line ТРК (МРК, ГНК) : 23 [19:31:15]line Товар: 2710124130 [19:31:15]line Аи-92-К-5 [19:31:15]line 7.480 * 66.90 [19:31:15]line = 500.41 [19:31:15]line НДС 12% НСП 1% [19:31:15]line > о реализуемом товаре [19:31:15]line ИТОГО: 500.41 [19:31:15]line НСП 1% : 4.43 [19:31:15]line НДС 12% : 53.14 [19:31:15]line Наличными: 0.00 [19:31:15]line Безнал.: 500.41 [19:31:15]line Место: АЗС № 161 "Партнер Нефть" [19:31:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:31:15]line СНО: Общий режим [19:31:15]line Чек 275 22.10.2024 19:31 [19:31:15]line Смена: 536 ФФД: 1.0 [19:31:15]line ЗНМ: 0300000104 [19:31:15]line РНМ: 0000000000091764 [19:31:15]line Версия ККМ: 001 [19:31:15]line Платежная система: Mbank [19:31:15]line ФМ: 0000000000871759 [19:31:15]line ФД: 166520 [19:31:15]line ФПД: 128716620527702 [19:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193115&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166520&fm=128716620527702&tin=02508201610067®Number=0000000000091764&sum=50041 [19:31:16]OFD Sender: Processing packet 166520 [packets to send 48, broken 47] [19:31:16]ProducePacketName [19:31:16]name=ofd_packets/00166520 [19:31:16]OFD Sender: To server: pG, [19:31:16]CommunicateWithHost lk.salyk.kg:30040 [19:31:16]ConnectInit lk.salyk.kg [19:31:16]written 0, free lines is 4095 [19:31:16]Connected sock=10 [19:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 04 07 01 15 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 83 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8A 02 00 35 04 06 00 75 11 2C 71 78 56 05 EF A8 CF CD 82 57 A5 [19:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D5 31 47 00 2B F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 8A 02 00 F4 03 04 00 ED A3 17 67 B6 04 01 00 00 91 3B 8C 6D 8A 04 37 8F [19:31:16]CommunicateWithHost err = 0 [19:31:16]CheckOFDResponse [19:31:16]1017 (14) - 77093643461234 [19:31:16]1041 (16) - 0000000000871759 [19:31:16]1040 (4) - 166520 [19:31:16]1012 (4) - 22.10.2024 13:09 [19:31:16]1206 (1) - 0 [19:31:16]OFD Sender: Remove packet 166520 [19:31:16]ProducePacketName [19:31:16]name=ofd_packets/00166520 [19:31:16]NVStorageDeleteData [19:31:16]Write to MH i2c: 01 00 00 7E 0A 88 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 D3 0C 6E [19:31:16]RasterBufferAndPrint [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]written 0, free lines is 3289 [19:31:16]MH_Cut [19:31:16]Write to MH i2c: D1 01 00 85 0A 01 61 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 01 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 01 00 85 0A 00 60 [19:31:16]Write to MH i2c: 01 00 00 86 0A 90 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:17]OFD Sender: No OFD packet to send [19:31:17]*** Cut start [19:31:17]*** Partial cut [19:31:17]*** CUTSNS_PIN = 1 [19:31:17]*** CUTSNS_PIN = 0 [19:31:17]*** Brake cut motor [19:31:18]Read from MH i2c: 01 [19:31:18]MH_I2C_Read... [19:31:18]*** Stop cut motor [19:31:18]*** Cut end [19:31:18]Read from MH i2c: 01 07 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [19:31:18]process_action close_receipt done [19:31:18]requested_data is exist [19:31:18]produce_requested_data [19:31:18]requested_item fm.sn is exist - process it [19:31:18]wFMCommunicate request_size=4 [19:31:18]MH_SAM_APDU [19:31:18]CAPDU: 80 11 00 00 [19:31:18]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [19:31:18]Write i2c OK [19:31:18]MH_I2C_Read... [19:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:18]Read from MH i2c: E2 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 17 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [19:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:18]wFMCommunicate OK [19:31:18]requested_item fd.num is exist - process it [19:31:18]SAM_PROTO_GetFieldsCounters [19:31:18]wFMCommunicate request_size=4 [19:31:18]MH_SAM_APDU [19:31:18]CAPDU: 80 13 00 00 [19:31:18]Write to MH i2c: E2 08 00 88 0A 80 13 00 00 00 00 00 00 0E [19:31:18]Write i2c OK [19:31:18]MH_I2C_Read... [19:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:18]Read from MH i2c: E2 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 62 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 62 00 88 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:18]wFMCommunicate OK [19:31:18]SAM_PROTO_GetFieldsCounters done [19:31:18]requested_item shift.num is exist - process it [19:31:18]requested_item shift.opened is exist - process it [19:31:18]req_shift_opened [19:31:18]FM_GetShiftState [19:31:18]SAM_PROTO_GetShiftState [19:31:18]wFMCommunicate request_size=4 [19:31:18]MH_SAM_APDU [19:31:18]CAPDU: 80 13 01 00 [19:31:18]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [19:31:18]Write i2c OK [19:31:18]MH_I2C_Read... [19:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:18]Read from MH i2c: E2 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 0E 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 63 [19:31:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:31:18]wFMCommunicate OK [19:31:18]SAM_PROTO_GetShiftState done [19:31:18]FM_GetShiftState done [19:31:18]req_shift_opened done [19:31:18]requested_item shift.open_date is exist - process it [19:31:18]req_shift_open_date [19:31:18]req_shift_open_date done [19:31:18]produce_requested_data done [19:31:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166520,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:31:18]process_action_free close_receipt [19:31:18]json_value_free [19:31:18]json_value_free done [19:31:18]process_json_proto returns [19:31:18]Send response to host [19:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166520,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:31:18]free response buf [19:31:18]execute_script done [19:31:18]execute_script returns [19:31:18]free content buf [19:31:18]Sock 7.Close socket [19:31:18]Sock 7.Thread stoped [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:48]accept exits with 9 [19:31:48]New connection [19:31:48]New thread 3067632996 created [19:31:48]Thread 3067489636 joined [19:31:48]Waiting for new connection... [19:31:48] Sock 9.Parse request [19:31:48]Sock 9.Check first char [19:31:48]Sock 9.First char is OK [19:31:48]request: POST /json_proto HTTP/1.0 [19:31:48]Method: POST [19:31:48]URL: /json_proto [19:31:48]Method is POST - this is cgi request [19:31:48]url: /json_proto [19:31:48]query_string will be loaded in cgi processing [19:31:48]execute_cgi json_proto POST (null) [19:31:48]execute_cgi path=json_proto method=POST [19:31:48]POST find Content-Length [19:31:48]Host: 172.17.53.195:8080 [19:31:48]Content-Length: 677 [19:31:48]Content-Type: application/json [19:31:48] [19:31:48]POST finish read [19:31:48]Found Content-Length = 677 [19:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:48]execute_script... [19:31:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:48]POST & json_proto [19:31:48]process_json_proto [19:31:48]json parsed OK: [19:31:48]protocol is kg_v1.0 [19:31:48]action value=close_receipt [19:31:48]process_action close_receipt [19:31:48]cmd_close_receipt [19:31:48]MH_GetDate [19:31:48]Write to MH i2c: F0 00 00 8A 0A 83 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 09 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 09 00 8A 0A 00 A5 FD 17 67 21 48 4A 65 C4 [19:31:48]GetLastDocTimeStamp 1729625475 [19:31:48]current date 1729625509 [19:31:48]FM_GetShiftState [19:31:48]SAM_PROTO_GetShiftState [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 13 01 00 [19:31:48]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:48]Read from MH i2c: E2 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 65 [19:31:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:31:48]wFMCommunicate OK [19:31:48]SAM_PROTO_GetShiftState done [19:31:48]FM_GetShiftState done [19:31:48]opened in 1729557463 [19:31:48]opened+sec_in_day 1729643863 [19:31:48]quantity*price = 30038 [19:31:48]sum+1 = 30039 [19:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 276 22.10.2024 19:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166521 ФПД: 78389110358991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166521&fm=78389110358991&tin=02508201610067®Number=0000000000091764&sum=30000 [19:31:50]StoreToDocumentArchive [19:31:50]shift 536 fd 166521 [19:31:50]save to /storage/0536/doc_00166521 [19:31:50]save last doc name /storage/0536/doc_00166521 to /storage/kkm_last_doc_name [19:31:50]save OK [19:31:50]Clear old archive folders... [19:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:50]tlvbuf is 011FF370 [19:31:50]SAM_PROTO_ClearQueue [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 09 00 00 [19:31:50]Write to MH i2c: E2 08 00 98 0A 80 09 00 00 00 00 00 00 14 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [19:31:50]RAPDU: 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_ClearQueue done [19:31:50]KKMCreateOFDPacket [19:31:50]OFDProtocolAddRootSTLVToBuf [19:31:50]FM_MakeSignedData [19:31:50]FM_MakeSignedData [19:31:50]SAM_PROTO_SignData [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 0D 01 02 [19:31:50]Write to MH i2c: E2 08 00 99 0A 80 0D 01 02 00 00 00 00 1C [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [19:31:50]RAPDU: 90 00 [19:31:50]wFMCommunicate OK [19:31:50]wFMCommunicate request_size=255 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A5 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8A 02 00 35 04 06 00 47 [19:31:50]Write to MH i2c: E2 02 01 9A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A5 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8A 02 00 35 04 06 00 47 00 00 41 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [19:31:50]RAPDU: 90 00 [19:31:50]wFMCommunicate OK [19:31:50]wFMCommunicate request_size=10 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 0D 02 02 05 4B 63 13 C3 CF [19:31:50]Write to MH i2c: E2 0D 00 9B 0A 80 0D 02 02 05 00 4B 63 13 C3 CF 00 00 7C [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [19:31:50]RAPDU: 90 00 [19:31:50]wFMCommunicate OK [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 0D 03 02 [19:31:50]Write to MH i2c: E2 08 00 9C 0A 80 0D 03 02 00 00 00 00 21 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0B 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0B 00 9C 0A 00 F2 73 3D D1 81 C0 3A 02 90 00 12 [19:31:50]RAPDU: F2 73 3D D1 81 C0 3A 02 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_SignData done [19:31:50]FM_MakeSignedData done [19:31:50]CreateOFDProtocolMessage [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 11 00 00 [19:31:50]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [19:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:50]wFMCommunicate OK [19:31:50]CreateOFDProtocolMessage done [19:31:50]OFDSenderStorePacket 166521 [19:31:50]StoreOFDPacket docnum=166521 [19:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 D1 07 01 FC 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A5 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8A 02 00 35 04 06 00 47 4B 63 13 C3 CF F2 73 3D D1 81 C0 3A 02 [19:31:50]CheckFolder [19:31:50]dirname=/storage/ofd_packets [19:31:50]CheckFolder done [19:31:50]ProducePacketName [19:31:50]name=ofd_packets/00166521 [19:31:50]NVStorageSaveData ofd_packets/00166521 [19:31:50]File name is /storage/ofd_packets/00166521 [19:31:50]Write 301 bytes [19:31:50]NVStorageSaveData done [19:31:50]OFDSenderStorePacket done [19:31:50]KKMCreateOFDPacket done [19:31:50]NVStorageSaveData kkm_last_timestamp [19:31:50]File name is /storage/kkm_last_timestamp [19:31:50]Write 4 bytes [19:31:50]NVStorageSaveData done [19:31:50]ExternCall_PrintAddStr [19:31:50]wPrintStart [19:31:50]Write to MH i2c: 01 00 00 9E 0A A8 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [19:31:50]RasterBufferAndPrint [19:31:50]line Счет N : (1)221103 [19:31:50]line ИНН: 02508201610067 [19:31:50]line Контрольно-Кассовый Чек [19:31:50]line ПРОДАЖА [19:31:50]line ТРК (МРК, ГНК) : 33 [19:31:50]line Товар: 2710124130 [19:31:50]line Аи-92-К-5 [19:31:50]line 4.490 * 66.90 [19:31:50]line = 300.38 [19:31:50]line НДС 12% НСП 1% [19:31:50]line > о реализуемом товаре [19:31:50]line ОКРУГЛЕНИЕ: -0.38 [19:31:50]line ИТОГО: 300.00 [19:31:50]line Внесено: 300.00 [19:31:50]line СДАЧА: 0.00 [19:31:50]line НСП 1% : 2.66 [19:31:50]line НДС 12% : 31.90 [19:31:50]line Наличными: 300.00 [19:31:50]line Безнал.: 0.00 [19:31:50]line Место: АЗС № 161 "Партнер Нефть" [19:31:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:31:50]line СНО: Общий режим [19:31:50]line Чек 276 22.10.2024 19:31 [19:31:50]line Смена: 536 ФФД: 1.0 [19:31:50]line ЗНМ: 0300000104 [19:31:50]line РНМ: 0000000000091764 [19:31:50]line Версия ККМ: 001 [19:31:50]line ФМ: 0000000000871759 [19:31:50]line ФД: 166521 [19:31:50]line ФПД: 78389110358991 [19:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166521&fm=78389110358991&tin=02508201610067®Number=0000000000091764&sum=30000 [19:31:50]OFD Sender: Processing packet 166521 [packets to send 48, broken 47] [19:31:50]ProducePacketName [19:31:50]name=ofd_packets/00166521 [19:31:50]OFD Sender: To server: pG, [19:31:50]CommunicateWithHost lk.salyk.kg:30040 [19:31:50]ConnectInit lk.salyk.kg [19:31:50]written 0, free lines is 4095 [19:31:51]Connected sock=10 [19:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 D1 07 01 FC 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 A5 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8A 02 00 35 04 06 00 47 4B 63 13 C3 CF F2 73 3D D1 81 C0 3A 02 [19:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F9 82 47 00 CE D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 8A 02 00 F4 03 04 00 0F A4 17 67 B6 04 01 00 00 9B 9D 00 E3 A3 69 02 49 [19:31:51]CommunicateWithHost err = 0 [19:31:51]CheckOFDResponse [19:31:51]1017 (14) - 77093643461234 [19:31:51]1041 (16) - 0000000000871759 [19:31:51]1040 (4) - 166521 [19:31:51]1012 (4) - 22.10.2024 13:09 [19:31:51]1206 (1) - 0 [19:31:51]OFD Sender: Remove packet 166521 [19:31:51]ProducePacketName [19:31:51]name=ofd_packets/00166521 [19:31:51]NVStorageDeleteData [19:31:51]Write to MH i2c: 01 00 00 C9 0A D3 [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: 01 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: 01 07 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 BE 0C A4 [19:31:51]RasterBufferAndPrint [19:31:51]line [19:31:51]line [19:31:51]line [19:31:51]line [19:31:51]line [19:31:51]written 0, free lines is 3268 [19:31:51]MH_Cut [19:31:51]Write to MH i2c: D1 01 00 D0 0A 01 AC [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: D1 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: D1 01 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: D1 01 00 D0 0A 00 AB [19:31:51]Write to MH i2c: 01 00 00 D1 0A DB [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]OFD Sender: No OFD packet to send [19:31:52]*** Cut start [19:31:52]*** Partial cut [19:31:52]*** CUTSNS_PIN = 1 [19:31:52]*** CUTSNS_PIN = 0 [19:31:52]*** Brake cut motor [19:31:52]Read from MH i2c: 01 [19:31:52]MH_I2C_Read... [19:31:52]*** Stop cut motor [19:31:52]*** Cut end [19:31:52]Read from MH i2c: 01 07 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 FF 0F F0 [19:31:52]process_action close_receipt done [19:31:52]requested_data is exist [19:31:52]produce_requested_data [19:31:52]requested_item fm.sn is exist - process it [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 11 00 00 [19:31:52]Write to MH i2c: E2 08 00 D2 0A 80 11 00 00 00 00 00 00 56 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 D2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [19:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:31:52]wFMCommunicate OK [19:31:52]requested_item fd.num is exist - process it [19:31:52]SAM_PROTO_GetFieldsCounters [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 13 00 00 [19:31:52]Write to MH i2c: E2 08 00 D3 0A 80 13 00 00 00 00 00 00 59 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 62 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 62 00 D3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetFieldsCounters done [19:31:53]requested_item shift.num is exist - process it [19:31:53]requested_item shift.opened is exist - process it [19:31:53]req_shift_opened [19:31:53]FM_GetShiftState [19:31:53]SAM_PROTO_GetShiftState [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 13 01 00 [19:31:53]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AE [19:31:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetShiftState done [19:31:53]FM_GetShiftState done [19:31:53]req_shift_opened done [19:31:53]requested_item shift.open_date is exist - process it [19:31:53]req_shift_open_date [19:31:53]req_shift_open_date done [19:31:53]produce_requested_data done [19:31:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166521,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:31:53]process_action_free close_receipt [19:31:53]json_value_free [19:31:53]json_value_free done [19:31:53]process_json_proto returns [19:31:53]Send response to host [19:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166521,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:31:53]free response buf [19:31:53]execute_script done [19:31:53]execute_script returns [19:31:53]free content buf [19:31:53]Sock 9.Close socket [19:31:53]Sock 9.Thread stoped [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]accept exits with 7 [19:32:56]New connection [19:32:56]New thread 3067489636 created [19:32:56]Thread 3067632996 joined [19:32:56]Waiting for new connection... [19:32:56] Sock 7.Parse request [19:32:56]Sock 7.Check first char [19:32:56]Sock 7.First char is OK [19:32:56]request: POST /json_proto HTTP/1.0 [19:32:56]Method: POST [19:32:56]URL: /json_proto [19:32:56]Method is POST - this is cgi request [19:32:56]url: /json_proto [19:32:56]query_string will be loaded in cgi processing [19:32:56]execute_cgi json_proto POST (null) [19:32:56]execute_cgi path=json_proto method=POST [19:32:56]POST find Content-Length [19:32:56]Host: 172.17.53.195:8080 [19:32:56]Content-Length: 789 [19:32:56]Content-Type: application/json [19:32:56] [19:32:56]POST finish read [19:32:56]Found Content-Length = 789 [19:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 85.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:56]execute_script... [19:32:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 85.310, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A85863", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:56]POST & json_proto [19:32:56]process_json_proto [19:32:56]json parsed OK: [19:32:56]protocol is kg_v1.0 [19:32:56]action value=close_receipt [19:32:56]process_action close_receipt [19:32:56]cmd_close_receipt [19:32:56]MH_GetDate [19:32:56]Write to MH i2c: F0 00 00 D5 0A CE [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 09 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 09 00 D5 0A 00 E9 FD 17 67 21 48 4A 65 53 [19:32:56]GetLastDocTimeStamp 1729625509 [19:32:56]current date 1729625577 [19:32:56]FM_GetShiftState [19:32:56]SAM_PROTO_GetShiftState [19:32:56]wFMCommunicate request_size=4 [19:32:56]MH_SAM_APDU [19:32:56]CAPDU: 80 13 01 00 [19:32:56]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0E 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B0 [19:32:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:32:56]wFMCommunicate OK [19:32:56]SAM_PROTO_GetShiftState done [19:32:56]FM_GetShiftState done [19:32:56]opened in 1729557463 [19:32:56]opened+sec_in_day 1729643863 [19:32:56]quantity*price = 0 [19:32:56]sum+1 = 1 [19:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 277 22.10.2024 19:32 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 85863 ФМ: 0000000000871759 ФД: 166522 ФПД: 113040160892504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166522&fm=113040160892504&tin=02508201610067®Number=0000000000091764&sum=0 [19:32:57]StoreToDocumentArchive [19:32:57]shift 536 fd 166522 [19:32:57]save to /storage/0536/doc_00166522 [19:32:57]save last doc name /storage/0536/doc_00166522 to /storage/kkm_last_doc_name [19:32:57]save OK [19:32:57]Clear old archive folders... [19:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:57]tlvbuf is 012946E0 [19:32:57]SAM_PROTO_ClearQueue [19:32:57]wFMCommunicate request_size=4 [19:32:57]MH_SAM_APDU [19:32:57]CAPDU: 80 09 00 00 [19:32:57]Write to MH i2c: E2 08 00 E3 0A 80 09 00 00 00 00 00 00 5F [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:57]Read from MH i2c: E2 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: E2 03 00 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [19:32:57]RAPDU: 90 00 [19:32:57]wFMCommunicate OK [19:32:57]SAM_PROTO_ClearQueue done [19:32:57]KKMCreateOFDPacket [19:32:57]OFDProtocolAddRootSTLVToBuf [19:32:57]FM_MakeSignedData [19:32:57]FM_MakeSignedData [19:32:57]SAM_PROTO_SignData [19:32:57]wFMCommunicate request_size=4 [19:32:57]MH_SAM_APDU [19:32:57]CAPDU: 80 0D 01 02 [19:32:57]Write to MH i2c: E2 08 00 E4 0A 80 0D 01 02 00 00 00 00 67 [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:57]Read from MH i2c: E2 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: E2 03 00 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [19:32:57]RAPDU: 90 00 [19:32:57]wFMCommunicate OK [19:32:57]wFMCommunicate request_size=255 [19:32:57]MH_SAM_APDU [19:32:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 E9 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8A 02 00 35 04 06 00 66 CF 36 A2 [19:32:57]Write to MH i2c: E2 02 01 E5 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 E9 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8A 02 00 35 04 06 00 66 CF 36 A2 00 00 FE [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]wFMCommunicate request_size=7 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 0D 02 02 02 A6 58 [19:32:58]Write to MH i2c: E2 0A 00 E6 0A 80 0D 02 02 02 00 A6 58 00 00 6C [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 0D 03 02 [19:32:58]Write to MH i2c: E2 08 00 E7 0A 80 0D 03 02 00 00 00 00 6C [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0B 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0B 00 E7 0A 00 BB A7 6D F4 42 0C B4 CE 90 00 00 [19:32:58]RAPDU: BB A7 6D F4 42 0C B4 CE 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_SignData done [19:32:58]FM_MakeSignedData done [19:32:58]CreateOFDProtocolMessage [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 11 00 00 [19:32:58]Write to MH i2c: E2 08 00 E8 0A 80 11 00 00 00 00 00 00 6C [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 E8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [19:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:32:58]wFMCommunicate OK [19:32:58]CreateOFDProtocolMessage done [19:32:58]OFDSenderStorePacket 166522 [19:32:58]StoreOFDPacket docnum=166522 [19:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 D7 04 01 22 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 E9 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8A 02 00 35 04 06 00 66 CF 36 A2 A6 58 BB A7 6D F4 42 0C B4 CE [19:32:58]CheckFolder [19:32:58]dirname=/storage/ofd_packets [19:32:58]CheckFolder done [19:32:58]ProducePacketName [19:32:58]name=ofd_packets/00166522 [19:32:58]NVStorageSaveData ofd_packets/00166522 [19:32:58]File name is /storage/ofd_packets/00166522 [19:32:58]Write 298 bytes [19:32:58]NVStorageSaveData done [19:32:58]OFDSenderStorePacket done [19:32:58]KKMCreateOFDPacket done [19:32:58]NVStorageSaveData kkm_last_timestamp [19:32:58]File name is /storage/kkm_last_timestamp [19:32:58]Write 4 bytes [19:32:58]NVStorageSaveData done [19:32:58]ExternCall_PrintAddStr [19:32:58]wPrintStart [19:32:58]Write to MH i2c: 01 00 00 E9 0A F3 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 07 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [19:32:58]RasterBufferAndPrint [19:32:58]line Счет N : (1)221102 [19:32:58]line ИНН: 02508201610067 [19:32:58]line Контрольно-Кассовый Чек [19:32:58]line ПРОДАЖА [19:32:58]line ТРК (МРК, ГНК) : 11 [19:32:58]line Товар: 2710194210 [19:32:58]line ДТ-К-5 [19:32:58]line 85.310 * 0.00 [19:32:58]line = 0.00 [19:32:58]line НДС 12% НСП 1% [19:32:58]line > о реализуемом товаре [19:32:58]line ИТОГО: 0.00 [19:32:58]line НСП 1% : 0.00 [19:32:58]line НДС 12% : 0.00 [19:32:58]line Наличными: 0.00 [19:32:58]line Безнал.: 0.00 [19:32:58]line Место: АЗС № 161 "Партнер Нефть" [19:32:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:32:58]line СНО: Общий режим [19:32:58]line Чек 277 22.10.2024 19:32 [19:32:58]line Смена: 536 ФФД: 1.0 [19:32:58]line ЗНМ: 0300000104 [19:32:58]line РНМ: 0000000000091764 [19:32:58]line Версия ККМ: 001 [19:32:58]line Талоны: Топливная Карта [19:32:58]line 85863 [19:32:58]line ФМ: 0000000000871759 [19:32:58]line ФД: 166522 [19:32:58]line ФПД: 113040160892504 [19:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166522&fm=113040160892504&tin=02508201610067®Number=0000000000091764&sum=0 [19:32:58]OFD Sender: Processing packet 166522 [packets to send 48, broken 47] [19:32:58]ProducePacketName [19:32:58]name=ofd_packets/00166522 [19:32:58]OFD Sender: To server: pG, [19:32:58]CommunicateWithHost lk.salyk.kg:30040 [19:32:58]ConnectInit lk.salyk.kg [19:32:58]written 0, free lines is 4095 [19:32:58]Connected sock=10 [19:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 14 D7 04 01 22 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 E9 FD 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8A 02 00 35 04 06 00 66 CF 36 A2 A6 58 BB A7 6D F4 42 0C B4 CE [19:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 66 8B 47 00 64 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 8A 02 00 F4 03 04 00 53 A4 17 67 B6 04 01 00 00 47 8C 2D 42 18 B4 42 16 [19:32:59]CommunicateWithHost err = 0 [19:32:59]CheckOFDResponse [19:32:59]1017 (14) - 77093643461234 [19:32:59]1041 (16) - 0000000000871759 [19:32:59]1040 (4) - 166522 [19:32:59]1012 (4) - 22.10.2024 13:10 [19:32:59]1206 (1) - 0 [19:32:59]OFD Sender: Remove packet 166522 [19:32:59]ProducePacketName [19:32:59]name=ofd_packets/00166522 [19:32:59]NVStorageDeleteData [19:32:59]Write to MH i2c: 01 00 00 13 0B 1E [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 07 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 C5 0C F6 [19:32:59]RasterBufferAndPrint [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]written 0, free lines is 3279 [19:32:59]MH_Cut [19:32:59]Write to MH i2c: D1 01 00 1A 0B 01 F7 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 01 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 01 00 1A 0B 00 F6 [19:32:59]Write to MH i2c: 01 00 00 1B 0B 26 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]OFD Sender: No OFD packet to send [19:32:59]*** Cut start [19:32:59]*** Partial cut [19:32:59]*** CUTSNS_PIN = 1 [19:33:00]*** CUTSNS_PIN = 0 [19:33:00]*** Brake cut motor [19:33:00]Read from MH i2c: 01 [19:33:00]MH_I2C_Read... [19:33:00]*** Stop cut motor [19:33:00]*** Cut end [19:33:00]Read from MH i2c: 01 07 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [19:33:00]process_action close_receipt done [19:33:00]requested_data is exist [19:33:00]produce_requested_data [19:33:00]requested_item fm.sn is exist - process it [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 11 00 00 [19:33:00]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [19:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:33:00]wFMCommunicate OK [19:33:00]requested_item fd.num is exist - process it [19:33:00]SAM_PROTO_GetFieldsCounters [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 00 00 [19:33:00]Write to MH i2c: E2 08 00 1D 0B 80 13 00 00 00 00 00 00 A4 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 62 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 62 00 1D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetFieldsCounters done [19:33:00]requested_item shift.num is exist - process it [19:33:00]requested_item shift.opened is exist - process it [19:33:00]req_shift_opened [19:33:00]FM_GetShiftState [19:33:00]SAM_PROTO_GetShiftState [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 01 00 [19:33:00]Write to MH i2c: E2 08 00 1E 0B 80 13 01 00 00 00 00 00 A6 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 1E 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F9 [19:33:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetShiftState done [19:33:00]FM_GetShiftState done [19:33:00]req_shift_opened done [19:33:00]requested_item shift.open_date is exist - process it [19:33:00]req_shift_open_date [19:33:00]req_shift_open_date done [19:33:00]produce_requested_data done [19:33:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166522,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:33:00]process_action_free close_receipt [19:33:00]json_value_free [19:33:00]json_value_free done [19:33:00]process_json_proto returns [19:33:00]Send response to host [19:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166522,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:33:00]free response buf [19:33:00]execute_script done [19:33:00]execute_script returns [19:33:00]free content buf [19:33:00]Sock 7.Close socket [19:33:00]Sock 7.Thread stoped [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:22]accept exits with 9 [19:40:22]New connection [19:40:22]New thread 3067632996 created [19:40:22]Thread 3067489636 joined [19:40:22]Waiting for new connection... [19:40:22] Sock 9.Parse request [19:40:22]Sock 9.Check first char [19:40:22]Sock 9.First char is OK [19:40:22]request: POST /json_proto HTTP/1.0 [19:40:22]Method: POST [19:40:22]URL: /json_proto [19:40:22]Method is POST - this is cgi request [19:40:22]url: /json_proto [19:40:22]query_string will be loaded in cgi processing [19:40:22]execute_cgi json_proto POST (null) [19:40:22]execute_cgi path=json_proto method=POST [19:40:22]POST find Content-Length [19:40:22]Host: 172.17.53.195:8080 [19:40:22]Content-Length: 677 [19:40:22]Content-Type: application/json [19:40:22] [19:40:22]POST finish read [19:40:22]Found Content-Length = 677 [19:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:22]execute_script... [19:40:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:22]POST & json_proto [19:40:22]process_json_proto [19:40:22]json parsed OK: [19:40:22]protocol is kg_v1.0 [19:40:22]action value=close_receipt [19:40:22]process_action close_receipt [19:40:22]cmd_close_receipt [19:40:22]MH_GetDate [19:40:22]Write to MH i2c: F0 00 00 1F 0B 19 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 09 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 09 00 1F 0B 00 A7 FF 17 67 21 48 4A 65 5E [19:40:22]GetLastDocTimeStamp 1729625577 [19:40:22]current date 1729626023 [19:40:22]FM_GetShiftState [19:40:22]SAM_PROTO_GetShiftState [19:40:22]wFMCommunicate request_size=4 [19:40:22]MH_SAM_APDU [19:40:22]CAPDU: 80 13 01 00 [19:40:22]Write to MH i2c: E2 08 00 20 0B 80 13 01 00 00 00 00 00 A8 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:22]Read from MH i2c: E2 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 0E 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 0E 00 20 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FB [19:40:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:40:22]wFMCommunicate OK [19:40:22]SAM_PROTO_GetShiftState done [19:40:22]FM_GetShiftState done [19:40:22]opened in 1729557463 [19:40:22]opened+sec_in_day 1729643863 [19:40:22]quantity*price = 58002 [19:40:22]sum+1 = 58003 [19:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.13 НДС 12% : 61.59 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 278 22.10.2024 19:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166523 ФПД: 185863879801061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166523&fm=185863879801061&tin=02508201610067®Number=0000000000091764&sum=58000 [19:40:23]StoreToDocumentArchive [19:40:23]shift 536 fd 166523 [19:40:23]save to /storage/0536/doc_00166523 [19:40:23]save last doc name /storage/0536/doc_00166523 to /storage/kkm_last_doc_name [19:40:23]save OK [19:40:23]Clear old archive folders... [19:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:23]tlvbuf is 01294380 [19:40:23]SAM_PROTO_ClearQueue [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 09 00 00 [19:40:23]Write to MH i2c: E2 08 00 2D 0B 80 09 00 00 00 00 00 00 AA [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_ClearQueue done [19:40:23]KKMCreateOFDPacket [19:40:23]OFDProtocolAddRootSTLVToBuf [19:40:23]FM_MakeSignedData [19:40:23]FM_MakeSignedData [19:40:23]SAM_PROTO_SignData [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 01 02 [19:40:23]Write to MH i2c: E2 08 00 2E 0B 80 0D 01 02 00 00 00 00 B2 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=255 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 A7 FF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8A 02 00 35 04 06 00 A9 [19:40:23]Write to MH i2c: E2 02 01 2F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 A7 FF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8A 02 00 35 04 06 00 A9 00 00 85 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=10 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 02 02 05 0A CE 88 38 E5 [19:40:23]Write to MH i2c: E2 0D 00 30 0B 80 0D 02 02 05 00 0A CE 88 38 E5 00 00 3C [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 03 02 [19:40:23]Write to MH i2c: E2 08 00 31 0B 80 0D 03 02 00 00 00 00 B7 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0B 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0B 00 31 0B 00 50 85 18 D6 F1 49 50 13 90 00 18 [19:40:23]RAPDU: 50 85 18 D6 F1 49 50 13 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_SignData done [19:40:23]FM_MakeSignedData done [19:40:23]CreateOFDProtocolMessage [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 11 00 00 [19:40:23]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [19:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:40:23]wFMCommunicate OK [19:40:23]CreateOFDProtocolMessage done [19:40:23]OFDSenderStorePacket 166523 [19:40:23]StoreOFDPacket docnum=166523 [19:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 38 07 01 BA 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 A7 FF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8A 02 00 35 04 06 00 A9 0A CE 88 38 E5 50 85 18 D6 F1 49 50 13 [19:40:23]CheckFolder [19:40:23]dirname=/storage/ofd_packets [19:40:23]CheckFolder done [19:40:23]ProducePacketName [19:40:23]name=ofd_packets/00166523 [19:40:23]NVStorageSaveData ofd_packets/00166523 [19:40:23]File name is /storage/ofd_packets/00166523 [19:40:23]Write 301 bytes [19:40:23]NVStorageSaveData done [19:40:23]OFDSenderStorePacket done [19:40:23]KKMCreateOFDPacket done [19:40:23]NVStorageSaveData kkm_last_timestamp [19:40:23]File name is /storage/kkm_last_timestamp [19:40:23]Write 4 bytes [19:40:23]NVStorageSaveData done [19:40:23]ExternCall_PrintAddStr [19:40:23]wPrintStart [19:40:23]Write to MH i2c: 01 00 00 33 0B 3E [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 FF 0F 53 [19:40:23]RasterBufferAndPrint [19:40:23]line Счет N : (1)221104 [19:40:23]line ИНН: 02508201610067 [19:40:23]line Контрольно-Кассовый Чек [19:40:23]line ПРОДАЖА [19:40:23]line ТРК (МРК, ГНК) : 13 [19:40:23]line Товар: 2710124130 [19:40:23]line Аи-92-К-5 [19:40:23]line 8.670 * 66.90 [19:40:23]line = 580.02 [19:40:23]line НДС 12% НСП 1% [19:40:23]line > о реализуемом товаре [19:40:23]line ОКРУГЛЕНИЕ: -0.02 [19:40:23]line ИТОГО: 580.00 [19:40:23]line Внесено: 580.00 [19:40:23]line СДАЧА: 0.00 [19:40:23]line НСП 1% : 5.13 [19:40:23]line НДС 12% : 61.59 [19:40:23]line Наличными: 580.00 [19:40:23]line Безнал.: 0.00 [19:40:23]line Место: АЗС № 161 "Партнер Нефть" [19:40:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:40:23]line СНО: Общий режим [19:40:23]line Чек 278 22.10.2024 19:40 [19:40:23]line Смена: 536 ФФД: 1.0 [19:40:23]line ЗНМ: 0300000104 [19:40:23]line РНМ: 0000000000091764 [19:40:23]line Версия ККМ: 001 [19:40:23]line ФМ: 0000000000871759 [19:40:23]line ФД: 166523 [19:40:23]line ФПД: 185863879801061 [19:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194023&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166523&fm=185863879801061&tin=02508201610067®Number=0000000000091764&sum=58000 [19:40:24]OFD Sender: Processing packet 166523 [packets to send 48, broken 47] [19:40:24]ProducePacketName [19:40:24]name=ofd_packets/00166523 [19:40:24]OFD Sender: To server: pG, [19:40:24]CommunicateWithHost lk.salyk.kg:30040 [19:40:24]ConnectInit lk.salyk.kg [19:40:24]written 0, free lines is 4095 [19:40:24]Connected sock=10 [19:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 38 07 01 BA 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 A7 FF 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8A 02 00 35 04 06 00 A9 0A CE 88 38 E5 50 85 18 D6 F1 49 50 13 [19:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 3B 47 00 F2 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 8A 02 00 F4 03 04 00 11 A6 17 67 B6 04 01 00 00 8C 5C 7A E5 D1 1E DD 9B [19:40:24]CommunicateWithHost err = 0 [19:40:24]CheckOFDResponse [19:40:24]1017 (14) - 77093643461234 [19:40:24]1041 (16) - 0000000000871759 [19:40:24]1040 (4) - 166523 [19:40:24]1012 (4) - 22.10.2024 13:18 [19:40:24]1206 (1) - 0 [19:40:24]OFD Sender: Remove packet 166523 [19:40:24]ProducePacketName [19:40:24]name=ofd_packets/00166523 [19:40:24]NVStorageDeleteData [19:40:24]Write to MH i2c: 01 00 00 5E 0B 69 [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 07 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 07 00 5E 0B 00 00 00 00 00 B2 0C 2E [19:40:24]RasterBufferAndPrint [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]written 0, free lines is 3257 [19:40:24]MH_Cut [19:40:24]Write to MH i2c: D1 01 00 65 0B 01 42 [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 01 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 01 00 65 0B 00 41 [19:40:24]Write to MH i2c: 01 00 00 66 0B 71 [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:25]OFD Sender: No OFD packet to send [19:40:25]*** Cut start [19:40:25]*** Partial cut [19:40:25]*** CUTSNS_PIN = 1 [19:40:25]*** CUTSNS_PIN = 0 [19:40:25]*** Brake cut motor [19:40:26]Read from MH i2c: 01 [19:40:26]MH_I2C_Read... [19:40:26]*** Stop cut motor [19:40:26]*** Cut end [19:40:26]Read from MH i2c: 01 07 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 66 0B 00 00 00 00 00 FF 0F 86 [19:40:26]process_action close_receipt done [19:40:26]requested_data is exist [19:40:26]produce_requested_data [19:40:26]requested_item fm.sn is exist - process it [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 11 00 00 [19:40:26]Write to MH i2c: E2 08 00 67 0B 80 11 00 00 00 00 00 00 EC [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 17 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 17 00 67 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [19:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:40:26]wFMCommunicate OK [19:40:26]requested_item fd.num is exist - process it [19:40:26]SAM_PROTO_GetFieldsCounters [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 13 00 00 [19:40:26]Write to MH i2c: E2 08 00 68 0B 80 13 00 00 00 00 00 00 EF [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 62 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 62 00 68 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [19:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_GetFieldsCounters done [19:40:26]requested_item shift.num is exist - process it [19:40:26]requested_item shift.opened is exist - process it [19:40:26]req_shift_opened [19:40:26]FM_GetShiftState [19:40:26]SAM_PROTO_GetShiftState [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 13 01 00 [19:40:26]Write to MH i2c: E2 08 00 69 0B 80 13 01 00 00 00 00 00 F1 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 69 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 44 [19:40:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_GetShiftState done [19:40:26]FM_GetShiftState done [19:40:26]req_shift_opened done [19:40:26]requested_item shift.open_date is exist - process it [19:40:26]req_shift_open_date [19:40:26]req_shift_open_date done [19:40:26]produce_requested_data done [19:40:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166523,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:40:26]process_action_free close_receipt [19:40:26]json_value_free [19:40:26]json_value_free done [19:40:26]process_json_proto returns [19:40:26]Send response to host [19:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166523,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:40:26]free response buf [19:40:26]execute_script done [19:40:26]execute_script returns [19:40:26]free content buf [19:40:26]Sock 9.Close socket [19:40:26]Sock 9.Thread stoped [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:44:55]accept exits with 7 [19:44:55]New connection [19:44:55]New thread 3067489636 created [19:44:55]Thread 3067632996 joined [19:44:55]Waiting for new connection... [19:44:55] Sock 7.Parse request [19:44:55]Sock 7.Check first char [19:44:55]Sock 7.First char is OK [19:44:55]request: POST /json_proto HTTP/1.0 [19:44:55]Method: POST [19:44:55]URL: /json_proto [19:44:55]Method is POST - this is cgi request [19:44:55]url: /json_proto [19:44:55]query_string will be loaded in cgi processing [19:44:55]execute_cgi json_proto POST (null) [19:44:55]execute_cgi path=json_proto method=POST [19:44:55]POST find Content-Length [19:44:55]Host: 172.17.53.195:8080 [19:44:55]Content-Length: 797 [19:44:55]Content-Type: application/json [19:44:55] [19:44:55]POST finish read [19:44:55]Found Content-Length = 797 [19:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381961", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:55]execute_script... [19:44:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381961", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:55]POST & json_proto [19:44:55]process_json_proto [19:44:55]json parsed OK: [19:44:55]protocol is kg_v1.0 [19:44:55]action value=close_receipt [19:44:55]process_action close_receipt [19:44:55]cmd_close_receipt [19:44:55]MH_GetDate [19:44:55]Write to MH i2c: F0 00 00 6A 0B 64 [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 09 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: F0 09 00 6A 0B 00 B8 00 18 67 21 48 4A 65 BC [19:44:55]GetLastDocTimeStamp 1729626023 [19:44:55]current date 1729626296 [19:44:55]FM_GetShiftState [19:44:55]SAM_PROTO_GetShiftState [19:44:55]wFMCommunicate request_size=4 [19:44:55]MH_SAM_APDU [19:44:55]CAPDU: 80 13 01 00 [19:44:55]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:55]Read from MH i2c: E2 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: E2 0E 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [19:44:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:44:55]wFMCommunicate OK [19:44:55]SAM_PROTO_GetShiftState done [19:44:55]FM_GetShiftState done [19:44:55]opened in 1729557463 [19:44:55]opened+sec_in_day 1729643863 [19:44:55]quantity*price = 0 [19:44:55]sum+1 = 1 [19:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 279 22.10.2024 19:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4381961 ФМ: 0000000000871759 ФД: 166524 ФПД: 197392661646861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166524&fm=197392661646861&tin=02508201610067®Number=0000000000091764&sum=0 [19:44:56]StoreToDocumentArchive [19:44:56]shift 536 fd 166524 [19:44:56]save to /storage/0536/doc_00166524 [19:44:56]save last doc name /storage/0536/doc_00166524 to /storage/kkm_last_doc_name [19:44:56]save OK [19:44:56]Clear old archive folders... [19:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:44:57]tlvbuf is 011CF7D0 [19:44:57]SAM_PROTO_ClearQueue [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 09 00 00 [19:44:57]Write to MH i2c: E2 08 00 78 0B 80 09 00 00 00 00 00 00 F5 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_ClearQueue done [19:44:57]KKMCreateOFDPacket [19:44:57]OFDProtocolAddRootSTLVToBuf [19:44:57]FM_MakeSignedData [19:44:57]FM_MakeSignedData [19:44:57]SAM_PROTO_SignData [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 01 02 [19:44:57]Write to MH i2c: E2 08 00 79 0B 80 0D 01 02 00 00 00 00 FD [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=255 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8A 02 00 35 04 06 00 B3 87 0F 7A [19:44:57]Write to MH i2c: E2 02 01 7A 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8A 02 00 35 04 06 00 B3 87 0F 7A 00 00 03 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=7 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 02 02 02 8E 0D [19:44:57]Write to MH i2c: E2 0A 00 7B 0B 80 0D 02 02 02 00 8E 0D 00 00 9F [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 03 02 [19:44:57]Write to MH i2c: E2 08 00 7C 0B 80 0D 03 02 00 00 00 00 02 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 7C 0B 00 B0 A5 5A D3 B9 3A 74 FB 90 00 E7 [19:44:57]RAPDU: B0 A5 5A D3 B9 3A 74 FB 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_SignData done [19:44:57]FM_MakeSignedData done [19:44:57]CreateOFDProtocolMessage [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 11 00 00 [19:44:57]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 17 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [19:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:44:57]wFMCommunicate OK [19:44:57]CreateOFDProtocolMessage done [19:44:57]OFDSenderStorePacket 166524 [19:44:57]StoreOFDPacket docnum=166524 [19:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 43 83 04 01 4B 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8A 02 00 35 04 06 00 B3 87 0F 7A 8E 0D B0 A5 5A D3 B9 3A 74 FB [19:44:57]CheckFolder [19:44:57]dirname=/storage/ofd_packets [19:44:57]CheckFolder done [19:44:57]ProducePacketName [19:44:57]name=ofd_packets/00166524 [19:44:57]NVStorageSaveData ofd_packets/00166524 [19:44:57]File name is /storage/ofd_packets/00166524 [19:44:57]Write 298 bytes [19:44:57]NVStorageSaveData done [19:44:57]OFDSenderStorePacket done [19:44:57]KKMCreateOFDPacket done [19:44:57]NVStorageSaveData kkm_last_timestamp [19:44:57]File name is /storage/kkm_last_timestamp [19:44:57]Write 4 bytes [19:44:57]NVStorageSaveData done [19:44:57]ExternCall_PrintAddStr [19:44:57]wPrintStart [19:44:57]Write to MH i2c: 01 00 00 7E 0B 89 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 07 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 FF 0F 9E [19:44:57]RasterBufferAndPrint [19:44:57]line Счет N : (1)221105 [19:44:57]line ИНН: 02508201610067 [19:44:57]line Контрольно-Кассовый Чек [19:44:57]line ПРОДАЖА [19:44:57]line ТРК (МРК, ГНК) : 11 [19:44:57]line Товар: 2710194210 [19:44:57]line ДТ-К-5 [19:44:57]line 20.000 * 0.00 [19:44:57]line = 0.00 [19:44:57]line НДС 12% НСП 1% [19:44:57]line > о реализуемом товаре [19:44:57]line ИТОГО: 0.00 [19:44:57]line НСП 1% : 0.00 [19:44:57]line НДС 12% : 0.00 [19:44:57]line Наличными: 0.00 [19:44:57]line Безнал.: 0.00 [19:44:57]line Место: АЗС № 161 "Партнер Нефть" [19:44:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:44:57]line СНО: Общий режим [19:44:57]line Чек 279 22.10.2024 19:44 [19:44:57]line Смена: 536 ФФД: 1.0 [19:44:57]line ЗНМ: 0300000104 [19:44:57]line РНМ: 0000000000091764 [19:44:57]line Версия ККМ: 001 [19:44:57]line Талоны: Топливные Талоны [19:44:57]line 4381961 [19:44:57]line ФМ: 0000000000871759 [19:44:57]line ФД: 166524 [19:44:57]line ФПД: 197392661646861 [19:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194456&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166524&fm=197392661646861&tin=02508201610067®Number=0000000000091764&sum=0 [19:44:57]OFD Sender: Processing packet 166524 [packets to send 48, broken 47] [19:44:57]ProducePacketName [19:44:57]name=ofd_packets/00166524 [19:44:57]OFD Sender: To server: pG, [19:44:57]CommunicateWithHost lk.salyk.kg:30040 [19:44:57]ConnectInit lk.salyk.kg [19:44:57]written 0, free lines is 4095 [19:44:57]Connected sock=10 [19:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 43 83 04 01 4B 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8A 02 00 35 04 06 00 B3 87 0F 7A 8E 0D B0 A5 5A D3 B9 3A 74 FB [19:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 B6 47 00 5A FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 8A 02 00 F4 03 04 00 22 A7 17 67 B6 04 01 00 00 7C B5 0F F3 D6 18 EB 08 [19:44:58]CommunicateWithHost err = 0 [19:44:58]CheckOFDResponse [19:44:58]1017 (14) - 77093643461234 [19:44:58]1041 (16) - 0000000000871759 [19:44:58]1040 (4) - 166524 [19:44:58]1012 (4) - 22.10.2024 13:22 [19:44:58]1206 (1) - 0 [19:44:58]OFD Sender: Remove packet 166524 [19:44:58]ProducePacketName [19:44:58]name=ofd_packets/00166524 [19:44:58]NVStorageDeleteData [19:44:58]Write to MH i2c: 01 00 00 A8 0B B3 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 C6 0C 8C [19:44:58]RasterBufferAndPrint [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]written 0, free lines is 3277 [19:44:58]MH_Cut [19:44:58]Write to MH i2c: D1 01 00 AF 0B 01 8C [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 AF 0B 00 8B [19:44:58]Write to MH i2c: 01 00 00 B0 0B BB [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]OFD Sender: No OFD packet to send [19:44:59]*** Cut start [19:44:59]*** Partial cut [19:44:59]*** CUTSNS_PIN = 1 [19:44:59]*** CUTSNS_PIN = 0 [19:44:59]*** Brake cut motor [19:44:59]Read from MH i2c: 01 [19:44:59]MH_I2C_Read... [19:44:59]*** Stop cut motor [19:44:59]*** Cut end [19:44:59]Read from MH i2c: 01 07 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: 01 07 00 B0 0B 00 00 00 00 00 FF 0F D0 [19:44:59]process_action close_receipt done [19:44:59]requested_data is exist [19:44:59]produce_requested_data [19:44:59]requested_item fm.sn is exist - process it [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 11 00 00 [19:44:59]Write to MH i2c: E2 08 00 B1 0B 80 11 00 00 00 00 00 00 36 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 17 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 17 00 B1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [19:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:44:59]wFMCommunicate OK [19:44:59]requested_item fd.num is exist - process it [19:44:59]SAM_PROTO_GetFieldsCounters [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 13 00 00 [19:44:59]Write to MH i2c: E2 08 00 B2 0B 80 13 00 00 00 00 00 00 39 [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 62 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 62 00 B2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [19:44:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:59]wFMCommunicate OK [19:44:59]SAM_PROTO_GetFieldsCounters done [19:44:59]requested_item shift.num is exist - process it [19:44:59]requested_item shift.opened is exist - process it [19:44:59]req_shift_opened [19:44:59]FM_GetShiftState [19:44:59]SAM_PROTO_GetShiftState [19:44:59]wFMCommunicate request_size=4 [19:44:59]MH_SAM_APDU [19:44:59]CAPDU: 80 13 01 00 [19:44:59]Write to MH i2c: E2 08 00 B3 0B 80 13 01 00 00 00 00 00 3B [19:44:59]Write i2c OK [19:44:59]MH_I2C_Read... [19:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:59]Read from MH i2c: E2 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 [19:44:59]MH_I2C_Read... [19:44:59]Read from MH i2c: E2 0E 00 B3 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8E [19:44:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:44:59]wFMCommunicate OK [19:44:59]SAM_PROTO_GetShiftState done [19:44:59]FM_GetShiftState done [19:44:59]req_shift_opened done [19:44:59]requested_item shift.open_date is exist - process it [19:44:59]req_shift_open_date [19:44:59]req_shift_open_date done [19:44:59]produce_requested_data done [19:44:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166524,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:44:59]process_action_free close_receipt [19:44:59]json_value_free [19:44:59]json_value_free done [19:44:59]process_json_proto returns [19:44:59]Send response to host [19:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166524,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:44:59]free response buf [19:44:59]execute_script done [19:44:59]execute_script returns [19:44:59]free content buf [19:44:59]Sock 7.Close socket [19:44:59]Sock 7.Thread stoped [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]accept exits with 9 [19:45:43]New connection [19:45:43]New thread 3067632996 created [19:45:43]Thread 3067489636 joined [19:45:43]Waiting for new connection... [19:45:43] Sock 9.Parse request [19:45:43]Sock 9.Check first char [19:45:43]Sock 9.First char is OK [19:45:43]request: POST /json_proto HTTP/1.0 [19:45:43]Method: POST [19:45:43]URL: /json_proto [19:45:43]Method is POST - this is cgi request [19:45:43]url: /json_proto [19:45:43]query_string will be loaded in cgi processing [19:45:43]execute_cgi json_proto POST (null) [19:45:43]execute_cgi path=json_proto method=POST [19:45:43]POST find Content-Length [19:45:43]Host: 172.17.53.195:8080 [19:45:43]Content-Length: 675 [19:45:43]Content-Type: application/json [19:45:43] [19:45:43]POST finish read [19:45:43]Found Content-Length = 675 [19:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.810, "sum" : 976.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 976.00, "total" : 976.00, "payments": [ { "type": 0, "sum" : 976.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:43]execute_script... [19:45:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.810, "sum" : 976.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 976.00, "total" : 976.00, "payments": [ { "type": 0, "sum" : 976.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:43]POST & json_proto [19:45:43]process_json_proto [19:45:43]json parsed OK: [19:45:43]protocol is kg_v1.0 [19:45:43]action value=close_receipt [19:45:43]process_action close_receipt [19:45:43]cmd_close_receipt [19:45:43]MH_GetDate [19:45:43]Write to MH i2c: F0 00 00 B4 0B AE [19:45:43]Write i2c OK [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: F0 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: F0 09 00 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: F0 09 00 B4 0B 00 E7 00 18 67 21 48 4A 65 35 [19:45:43]GetLastDocTimeStamp 1729626296 [19:45:43]current date 1729626343 [19:45:43]FM_GetShiftState [19:45:43]SAM_PROTO_GetShiftState [19:45:43]wFMCommunicate request_size=4 [19:45:43]MH_SAM_APDU [19:45:43]CAPDU: 80 13 01 00 [19:45:43]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [19:45:43]Write i2c OK [19:45:43]MH_I2C_Read... [19:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:43]Read from MH i2c: E2 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: E2 0E 00 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 90 [19:45:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:45:43]wFMCommunicate OK [19:45:43]SAM_PROTO_GetShiftState done [19:45:43]FM_GetShiftState done [19:45:43]opened in 1729557463 [19:45:43]opened+sec_in_day 1729643863 [19:45:43]quantity*price = 97612 [19:45:43]sum+1 = 97613 [19:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 976.00 Внесено: 976.00 СДАЧА: 0.00 НСП 1% : 8.64 НДС 12% : 103.66 Наличными: 976.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 280 22.10.2024 19:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166525 ФПД: 62135869416552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166525&fm=62135869416552&tin=02508201610067®Number=0000000000091764&sum=97600 [19:45:44]StoreToDocumentArchive [19:45:44]shift 536 fd 166525 [19:45:44]save to /storage/0536/doc_00166525 [19:45:44]save last doc name /storage/0536/doc_00166525 to /storage/kkm_last_doc_name [19:45:44]save OK [19:45:44]Clear old archive folders... [19:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:45:44]tlvbuf is 011F56B0 [19:45:44]SAM_PROTO_ClearQueue [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 09 00 00 [19:45:44]Write to MH i2c: E2 08 00 C2 0B 80 09 00 00 00 00 00 00 3F [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]SAM_PROTO_ClearQueue done [19:45:44]KKMCreateOFDPacket [19:45:44]OFDProtocolAddRootSTLVToBuf [19:45:44]FM_MakeSignedData [19:45:44]FM_MakeSignedData [19:45:44]SAM_PROTO_SignData [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 01 02 [19:45:44]Write to MH i2c: E2 08 00 C3 0B 80 0D 01 02 00 00 00 00 47 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=255 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 7D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 28 00 00 00 00 07 04 06 00 40 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 E8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8A 02 00 35 04 06 00 38 83 22 6C [19:45:44]Write to MH i2c: E2 02 01 C4 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 7D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 28 00 00 00 00 07 04 06 00 40 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 E8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8A 02 00 35 04 06 00 38 83 22 6C 00 00 03 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=7 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 02 02 02 A4 68 [19:45:44]Write to MH i2c: E2 0A 00 C5 0B 80 0D 02 02 02 00 A4 68 00 00 5A [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [19:45:44]RAPDU: 90 00 [19:45:44]wFMCommunicate OK [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 0D 03 02 [19:45:44]Write to MH i2c: E2 08 00 C6 0B 80 0D 03 02 00 00 00 00 4C [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 0B 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 0B 00 C6 0B 00 AD D4 AA E0 DB 97 82 A0 90 00 EC [19:45:44]RAPDU: AD D4 AA E0 DB 97 82 A0 90 00 [19:45:44]wFMCommunicate OK [19:45:44]SAM_PROTO_SignData done [19:45:44]FM_MakeSignedData done [19:45:44]CreateOFDProtocolMessage [19:45:44]wFMCommunicate request_size=4 [19:45:44]MH_SAM_APDU [19:45:44]CAPDU: 80 11 00 00 [19:45:44]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:44]Read from MH i2c: E2 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 17 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [19:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:45:44]wFMCommunicate OK [19:45:44]CreateOFDProtocolMessage done [19:45:44]OFDSenderStorePacket 166525 [19:45:44]StoreOFDPacket docnum=166525 [19:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 1D 04 01 82 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 7D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 28 00 00 00 00 07 04 06 00 40 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 E8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8A 02 00 35 04 06 00 38 83 22 6C A4 68 AD D4 AA E0 DB 97 82 A0 [19:45:44]CheckFolder [19:45:44]dirname=/storage/ofd_packets [19:45:44]CheckFolder done [19:45:44]ProducePacketName [19:45:44]name=ofd_packets/00166525 [19:45:44]NVStorageSaveData ofd_packets/00166525 [19:45:44]File name is /storage/ofd_packets/00166525 [19:45:44]Write 298 bytes [19:45:44]NVStorageSaveData done [19:45:44]OFDSenderStorePacket done [19:45:44]KKMCreateOFDPacket done [19:45:44]NVStorageSaveData kkm_last_timestamp [19:45:44]File name is /storage/kkm_last_timestamp [19:45:44]Write 4 bytes [19:45:44]NVStorageSaveData done [19:45:44]ExternCall_PrintAddStr [19:45:44]wPrintStart [19:45:44]Write to MH i2c: 01 00 00 C8 0B D3 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [19:45:44]RasterBufferAndPrint [19:45:44]line Счет N : (1)221106 [19:45:44]line ИНН: 02508201610067 [19:45:44]line Контрольно-Кассовый Чек [19:45:44]line ПРОДАЖА [19:45:44]line ТРК (МРК, ГНК) : 11 [19:45:44]line Товар: 2710194210 [19:45:44]line ДТ-К-5 [19:45:44]line 12.810 * 76.20 [19:45:44]line = 976.12 [19:45:44]line НДС 12% НСП 1% [19:45:44]line > о реализуемом товаре [19:45:44]line ОКРУГЛЕНИЕ: -0.12 [19:45:44]line ИТОГО: 976.00 [19:45:44]line Внесено: 976.00 [19:45:44]line СДАЧА: 0.00 [19:45:44]line НСП 1% : 8.64 [19:45:44]line НДС 12% : 103.66 [19:45:44]line Наличными: 976.00 [19:45:44]line Безнал.: 0.00 [19:45:44]line Место: АЗС № 161 "Партнер Нефть" [19:45:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:45:44]line СНО: Общий режим [19:45:44]line Чек 280 22.10.2024 19:45 [19:45:44]line Смена: 536 ФФД: 1.0 [19:45:44]line ЗНМ: 0300000104 [19:45:44]line РНМ: 0000000000091764 [19:45:44]line Версия ККМ: 001 [19:45:44]line ФМ: 0000000000871759 [19:45:44]line ФД: 166525 [19:45:44]line ФПД: 62135869416552 [19:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194544&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166525&fm=62135869416552&tin=02508201610067®Number=0000000000091764&sum=97600 [19:45:45]OFD Sender: Processing packet 166525 [packets to send 48, broken 47] [19:45:45]ProducePacketName [19:45:45]name=ofd_packets/00166525 [19:45:45]OFD Sender: To server: pG, [19:45:45]CommunicateWithHost lk.salyk.kg:30040 [19:45:45]ConnectInit lk.salyk.kg [19:45:45]written 0, free lines is 4095 [19:45:45]Connected sock=10 [19:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D1 1D 04 01 82 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 7D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 28 00 00 00 00 07 04 06 00 40 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 E8 00 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 8A 02 00 35 04 06 00 38 83 22 6C A4 68 AD D4 AA E0 DB 97 82 A0 [19:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 85 A4 47 00 B5 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 31 37 35 39 10 04 04 00 7D 8A 02 00 F4 03 04 00 52 A7 17 67 B6 04 01 00 00 39 89 FE 13 51 E9 C9 D2 [19:45:45]CommunicateWithHost err = 0 [19:45:45]CheckOFDResponse [19:45:45]1017 (14) - 77093643461234 [19:45:45]1041 (16) - 0000000000871759 [19:45:45]1040 (4) - 166525 [19:45:45]1012 (4) - 22.10.2024 13:23 [19:45:45]1206 (1) - 0 [19:45:45]OFD Sender: Remove packet 166525 [19:45:45]ProducePacketName [19:45:45]name=ofd_packets/00166525 [19:45:45]NVStorageDeleteData [19:45:45]Write to MH i2c: 01 00 00 F3 0B FE [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 07 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 B7 0C C8 [19:45:45]RasterBufferAndPrint [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]line [19:45:45]written 0, free lines is 3262 [19:45:45]MH_Cut [19:45:45]Write to MH i2c: D1 01 00 FA 0B 01 D7 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 01 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: D1 01 00 FA 0B 00 D6 [19:45:45]Write to MH i2c: 01 00 00 FB 0B 06 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]OFD Sender: No OFD packet to send [19:45:46]*** Cut start [19:45:46]*** Partial cut [19:45:46]*** CUTSNS_PIN = 1 [19:45:46]*** CUTSNS_PIN = 0 [19:45:46]*** Brake cut motor [19:45:47]Read from MH i2c: 01 [19:45:47]MH_I2C_Read... [19:45:47]*** Stop cut motor [19:45:47]*** Cut end [19:45:47]Read from MH i2c: 01 07 00 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [19:45:47]process_action close_receipt done [19:45:47]requested_data is exist [19:45:47]produce_requested_data [19:45:47]requested_item fm.sn is exist - process it [19:45:47]wFMCommunicate request_size=4 [19:45:47]MH_SAM_APDU [19:45:47]CAPDU: 80 11 00 00 [19:45:47]Write to MH i2c: E2 08 00 FC 0B 80 11 00 00 00 00 00 00 81 [19:45:47]Write i2c OK [19:45:47]MH_I2C_Read... [19:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:47]Read from MH i2c: E2 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 17 00 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 17 00 FC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [19:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:45:47]wFMCommunicate OK [19:45:47]requested_item fd.num is exist - process it [19:45:47]SAM_PROTO_GetFieldsCounters [19:45:47]wFMCommunicate request_size=4 [19:45:47]MH_SAM_APDU [19:45:47]CAPDU: 80 13 00 00 [19:45:47]Write to MH i2c: E2 08 00 FD 0B 80 13 00 00 00 00 00 00 84 [19:45:47]Write i2c OK [19:45:47]MH_I2C_Read... [19:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:47]Read from MH i2c: E2 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 62 00 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 62 00 FD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:45:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:47]wFMCommunicate OK [19:45:47]SAM_PROTO_GetFieldsCounters done [19:45:47]requested_item shift.num is exist - process it [19:45:47]requested_item shift.opened is exist - process it [19:45:47]req_shift_opened [19:45:47]FM_GetShiftState [19:45:47]SAM_PROTO_GetShiftState [19:45:47]wFMCommunicate request_size=4 [19:45:47]MH_SAM_APDU [19:45:47]CAPDU: 80 13 01 00 [19:45:47]Write to MH i2c: E2 08 00 FE 0B 80 13 01 00 00 00 00 00 86 [19:45:47]Write i2c OK [19:45:47]MH_I2C_Read... [19:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:47]Read from MH i2c: E2 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 0E 00 [19:45:47]MH_I2C_Read... [19:45:47]Read from MH i2c: E2 0E 00 FE 0B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D9 [19:45:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:45:47]wFMCommunicate OK [19:45:47]SAM_PROTO_GetShiftState done [19:45:47]FM_GetShiftState done [19:45:47]req_shift_opened done [19:45:47]requested_item shift.open_date is exist - process it [19:45:47]req_shift_open_date [19:45:47]req_shift_open_date done [19:45:47]produce_requested_data done [19:45:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166525,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:45:47]process_action_free close_receipt [19:45:47]json_value_free [19:45:47]json_value_free done [19:45:47]process_json_proto returns [19:45:47]Send response to host [19:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166525,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:45:47]free response buf [19:45:47]execute_script done [19:45:47]execute_script returns [19:45:47]free content buf [19:45:47]Sock 9.Close socket [19:45:47]Sock 9.Thread stoped [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:19]accept exits with 7 [19:48:19]New connection [19:48:19]New thread 3067489636 created [19:48:19]Thread 3067632996 joined [19:48:19]Waiting for new connection... [19:48:19] Sock 7.Parse request [19:48:19]Sock 7.Check first char [19:48:19]Sock 7.First char is OK [19:48:19]request: POST /json_proto HTTP/1.0 [19:48:19]Method: POST [19:48:19]URL: /json_proto [19:48:19]Method is POST - this is cgi request [19:48:19]url: /json_proto [19:48:19]query_string will be loaded in cgi processing [19:48:19]execute_cgi json_proto POST (null) [19:48:19]execute_cgi path=json_proto method=POST [19:48:19]POST find Content-Length [19:48:19]Host: 172.17.53.195:8080 [19:48:19]Content-Length: 766 [19:48:19]Content-Type: application/json [19:48:19] [19:48:19]POST finish read [19:48:19]Found Content-Length = 766 [19:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:19]execute_script... [19:48:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:19]POST & json_proto [19:48:19]process_json_proto [19:48:19]json parsed OK: [19:48:19]protocol is kg_v1.0 [19:48:19]action value=close_receipt [19:48:19]process_action close_receipt [19:48:19]cmd_close_receipt [19:48:19]MH_GetDate [19:48:19]Write to MH i2c: F0 00 00 FF 0B F9 [19:48:19]Write i2c OK [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: F0 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: F0 09 00 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: F0 09 00 FF 0B 00 84 01 18 67 21 48 4A 65 1E [19:48:19]GetLastDocTimeStamp 1729626344 [19:48:19]current date 1729626500 [19:48:19]FM_GetShiftState [19:48:19]SAM_PROTO_GetShiftState [19:48:19]wFMCommunicate request_size=4 [19:48:19]MH_SAM_APDU [19:48:19]CAPDU: 80 13 01 00 [19:48:19]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [19:48:19]Write i2c OK [19:48:19]MH_I2C_Read... [19:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:19]Read from MH i2c: E2 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: E2 0E 00 [19:48:19]MH_I2C_Read... [19:48:19]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DC [19:48:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:48:19]wFMCommunicate OK [19:48:19]SAM_PROTO_GetShiftState done [19:48:19]FM_GetShiftState done [19:48:19]opened in 1729557463 [19:48:19]opened+sec_in_day 1729643863 [19:48:19]quantity*price = 50041 [19:48:19]sum+1 = 50042 [19:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 281 22.10.2024 19:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166526 ФПД: 80452535865814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166526&fm=80452535865814&tin=02508201610067®Number=0000000000091764&sum=50041 [19:48:20]StoreToDocumentArchive [19:48:20]shift 536 fd 166526 [19:48:20]save to /storage/0536/doc_00166526 [19:48:20]save last doc name /storage/0536/doc_00166526 to /storage/kkm_last_doc_name [19:48:20]save OK [19:48:20]Clear old archive folders... [19:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:20]tlvbuf is 0125A420 [19:48:20]SAM_PROTO_ClearQueue [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 09 00 00 [19:48:20]Write to MH i2c: E2 08 00 0D 0C 80 09 00 00 00 00 00 00 8B [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [19:48:20]RAPDU: 90 00 [19:48:20]wFMCommunicate OK [19:48:20]SAM_PROTO_ClearQueue done [19:48:20]KKMCreateOFDPacket [19:48:20]OFDProtocolAddRootSTLVToBuf [19:48:20]FM_MakeSignedData [19:48:20]FM_MakeSignedData [19:48:20]SAM_PROTO_SignData [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 0D 01 02 [19:48:20]Write to MH i2c: E2 08 00 0E 0C 80 0D 01 02 00 00 00 00 93 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [19:48:20]RAPDU: 90 00 [19:48:20]wFMCommunicate OK [19:48:20]wFMCommunicate request_size=255 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 84 01 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8A 02 00 35 04 06 00 49 [19:48:20]Write to MH i2c: E2 02 01 0F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 84 01 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8A 02 00 35 04 06 00 49 00 00 06 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [19:48:20]RAPDU: 90 00 [19:48:20]wFMCommunicate OK [19:48:20]wFMCommunicate request_size=10 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 0D 02 02 05 2B D0 D2 51 D6 [19:48:20]Write to MH i2c: E2 0D 00 10 0C 80 0D 02 02 05 00 2B D0 D2 51 D6 00 00 94 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [19:48:20]RAPDU: 90 00 [19:48:20]wFMCommunicate OK [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 0D 03 02 [19:48:20]Write to MH i2c: E2 08 00 11 0C 80 0D 03 02 00 00 00 00 98 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 0B 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 0B 00 11 0C 00 BA 70 9B 41 2A 88 02 39 90 00 8C [19:48:20]RAPDU: BA 70 9B 41 2A 88 02 39 90 00 [19:48:20]wFMCommunicate OK [19:48:20]SAM_PROTO_SignData done [19:48:20]FM_MakeSignedData done [19:48:20]CreateOFDProtocolMessage [19:48:20]wFMCommunicate request_size=4 [19:48:20]MH_SAM_APDU [19:48:20]CAPDU: 80 11 00 00 [19:48:20]Write to MH i2c: E2 08 00 12 0C 80 11 00 00 00 00 00 00 98 [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:20]Read from MH i2c: E2 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 17 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: E2 17 00 12 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [19:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:48:20]wFMCommunicate OK [19:48:20]CreateOFDProtocolMessage done [19:48:20]OFDSenderStorePacket 166526 [19:48:20]StoreOFDPacket docnum=166526 [19:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 16 07 01 80 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 84 01 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8A 02 00 35 04 06 00 49 2B D0 D2 51 D6 BA 70 9B 41 2A 88 02 39 [19:48:20]CheckFolder [19:48:20]dirname=/storage/ofd_packets [19:48:20]CheckFolder done [19:48:20]ProducePacketName [19:48:20]name=ofd_packets/00166526 [19:48:20]NVStorageSaveData ofd_packets/00166526 [19:48:20]File name is /storage/ofd_packets/00166526 [19:48:20]Write 301 bytes [19:48:20]NVStorageSaveData done [19:48:20]OFDSenderStorePacket done [19:48:20]KKMCreateOFDPacket done [19:48:20]NVStorageSaveData kkm_last_timestamp [19:48:20]File name is /storage/kkm_last_timestamp [19:48:20]Write 4 bytes [19:48:20]NVStorageSaveData done [19:48:20]ExternCall_PrintAddStr [19:48:20]wPrintStart [19:48:20]Write to MH i2c: 01 00 00 13 0C 1F [19:48:20]Write i2c OK [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: 01 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: 01 07 00 [19:48:20]MH_I2C_Read... [19:48:20]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 FF 0F 34 [19:48:20]RasterBufferAndPrint [19:48:20]line Счет N : (1)221107 [19:48:20]line ИНН: 02508201610067 [19:48:20]line Контрольно-Кассовый Чек [19:48:20]line ПРОДАЖА [19:48:20]line ТРК (МРК, ГНК) : 23 [19:48:20]line Товар: 2710124130 [19:48:20]line Аи-92-К-5 [19:48:20]line 7.480 * 66.90 [19:48:20]line = 500.41 [19:48:20]line НДС 12% НСП 1% [19:48:20]line > о реализуемом товаре [19:48:20]line ИТОГО: 500.41 [19:48:20]line НСП 1% : 4.43 [19:48:20]line НДС 12% : 53.14 [19:48:20]line Наличными: 0.00 [19:48:20]line Безнал.: 500.41 [19:48:20]line Место: АЗС № 161 "Партнер Нефть" [19:48:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:48:20]line СНО: Общий режим [19:48:20]line Чек 281 22.10.2024 19:48 [19:48:20]line Смена: 536 ФФД: 1.0 [19:48:20]line ЗНМ: 0300000104 [19:48:20]line РНМ: 0000000000091764 [19:48:20]line Версия ККМ: 001 [19:48:20]line Платежная система: Mbank [19:48:20]line ФМ: 0000000000871759 [19:48:20]line ФД: 166526 [19:48:20]line ФПД: 80452535865814 [19:48:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194820&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166526&fm=80452535865814&tin=02508201610067®Number=0000000000091764&sum=50041 [19:48:21]OFD Sender: Processing packet 166526 [packets to send 48, broken 47] [19:48:21]ProducePacketName [19:48:21]name=ofd_packets/00166526 [19:48:21]OFD Sender: To server: pG, [19:48:21]CommunicateWithHost lk.salyk.kg:30040 [19:48:21]ConnectInit lk.salyk.kg [19:48:21]written 0, free lines is 4095 [19:48:21]Connected sock=10 [19:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 16 07 01 80 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 84 01 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8A 02 00 35 04 06 00 49 2B D0 D2 51 D6 BA 70 9B 41 2A 88 02 39 [19:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 47 47 00 F0 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 8A 02 00 F4 03 04 00 EE A7 17 67 B6 04 01 00 00 E7 7B 92 19 47 88 FF 90 [19:48:21]CommunicateWithHost err = 0 [19:48:21]CheckOFDResponse [19:48:21]1017 (14) - 77093643461234 [19:48:21]1041 (16) - 0000000000871759 [19:48:21]1040 (4) - 166526 [19:48:21]1012 (4) - 22.10.2024 13:26 [19:48:21]1206 (1) - 0 [19:48:21]OFD Sender: Remove packet 166526 [19:48:21]ProducePacketName [19:48:21]name=ofd_packets/00166526 [19:48:21]NVStorageDeleteData [19:48:21]Write to MH i2c: 01 00 00 3C 0C 48 [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: 01 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: 01 07 00 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 DA 0C 35 [19:48:21]RasterBufferAndPrint [19:48:21]line [19:48:21]line [19:48:21]line [19:48:21]line [19:48:21]line [19:48:21]written 0, free lines is 3296 [19:48:21]MH_Cut [19:48:21]Write to MH i2c: D1 01 00 43 0C 01 21 [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: D1 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: D1 01 00 [19:48:21]MH_I2C_Read... [19:48:21]Read from MH i2c: D1 01 00 43 0C 00 20 [19:48:21]Write to MH i2c: 01 00 00 44 0C 50 [19:48:21]Write i2c OK [19:48:21]MH_I2C_Read... [19:48:21]OFD Sender: No OFD packet to send [19:48:22]*** Cut start [19:48:22]*** Partial cut [19:48:22]*** CUTSNS_PIN = 1 [19:48:22]*** CUTSNS_PIN = 0 [19:48:22]*** Brake cut motor [19:48:22]Read from MH i2c: 01 [19:48:22]MH_I2C_Read... [19:48:22]*** Stop cut motor [19:48:23]*** Cut end [19:48:23]Read from MH i2c: 01 07 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 FF 0F 65 [19:48:23]process_action close_receipt done [19:48:23]requested_data is exist [19:48:23]produce_requested_data [19:48:23]requested_item fm.sn is exist - process it [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 11 00 00 [19:48:23]Write to MH i2c: E2 08 00 45 0C 80 11 00 00 00 00 00 00 CB [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 17 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 17 00 45 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [19:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:48:23]wFMCommunicate OK [19:48:23]requested_item fd.num is exist - process it [19:48:23]SAM_PROTO_GetFieldsCounters [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 13 00 00 [19:48:23]Write to MH i2c: E2 08 00 46 0C 80 13 00 00 00 00 00 00 CE [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 62 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 62 00 46 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:23]wFMCommunicate OK [19:48:23]SAM_PROTO_GetFieldsCounters done [19:48:23]requested_item shift.num is exist - process it [19:48:23]requested_item shift.opened is exist - process it [19:48:23]req_shift_opened [19:48:23]FM_GetShiftState [19:48:23]SAM_PROTO_GetShiftState [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 13 01 00 [19:48:23]Write to MH i2c: E2 08 00 47 0C 80 13 01 00 00 00 00 00 D0 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0E 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0E 00 47 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 23 [19:48:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:48:23]wFMCommunicate OK [19:48:23]SAM_PROTO_GetShiftState done [19:48:23]FM_GetShiftState done [19:48:23]req_shift_opened done [19:48:23]requested_item shift.open_date is exist - process it [19:48:23]req_shift_open_date [19:48:23]req_shift_open_date done [19:48:23]produce_requested_data done [19:48:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166526,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:48:23]process_action_free close_receipt [19:48:23]json_value_free [19:48:23]json_value_free done [19:48:23]process_json_proto returns [19:48:23]Send response to host [19:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166526,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:48:23]free response buf [19:48:23]execute_script done [19:48:23]execute_script returns [19:48:23]free content buf [19:48:23]Sock 7.Close socket [19:48:23]Sock 7.Thread stoped [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:20]accept exits with 9 [19:51:20]New connection [19:51:20]New thread 3067632996 created [19:51:20]Thread 3067489636 joined [19:51:20]Waiting for new connection... [19:51:20] Sock 9.Parse request [19:51:20]Sock 9.Check first char [19:51:20]Sock 9.First char is OK [19:51:20]request: POST /json_proto HTTP/1.0 [19:51:20]Method: POST [19:51:20]URL: /json_proto [19:51:20]Method is POST - this is cgi request [19:51:20]url: /json_proto [19:51:20]query_string will be loaded in cgi processing [19:51:20]execute_cgi json_proto POST (null) [19:51:20]execute_cgi path=json_proto method=POST [19:51:20]POST find Content-Length [19:51:20]Host: 172.17.53.195:8080 [19:51:20]Content-Length: 682 [19:51:20]Content-Type: application/json [19:51:20] [19:51:20]POST finish read [19:51:20]Found Content-Length = 682 [19:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:20]execute_script... [19:51:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:20]POST & json_proto [19:51:20]process_json_proto [19:51:20]json parsed OK: [19:51:20]protocol is kg_v1.0 [19:51:20]action value=close_receipt [19:51:20]process_action close_receipt [19:51:20]cmd_close_receipt [19:51:20]MH_GetDate [19:51:20]Write to MH i2c: F0 00 00 48 0C 43 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: F0 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: F0 09 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: F0 09 00 48 0C 00 39 02 18 67 21 48 4A 65 1E [19:51:20]GetLastDocTimeStamp 1729626500 [19:51:20]current date 1729626681 [19:51:20]FM_GetShiftState [19:51:20]SAM_PROTO_GetShiftState [19:51:20]wFMCommunicate request_size=4 [19:51:20]MH_SAM_APDU [19:51:20]CAPDU: 80 13 01 00 [19:51:20]Write to MH i2c: E2 08 00 49 0C 80 13 01 00 00 00 00 00 D2 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:20]Read from MH i2c: E2 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 0E 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 0E 00 49 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 25 [19:51:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:51:20]wFMCommunicate OK [19:51:20]SAM_PROTO_GetShiftState done [19:51:20]FM_GetShiftState done [19:51:20]opened in 1729557463 [19:51:20]opened+sec_in_day 1729643863 [19:51:20]quantity*price = 100021 [19:51:20]sum+1 = 100023 [19:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 282 22.10.2024 19:51 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166527 ФПД: 251496805716360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195121&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166527&fm=251496805716360&tin=02508201610067®Number=0000000000091764&sum=100000 [19:51:21]StoreToDocumentArchive [19:51:21]shift 536 fd 166527 [19:51:21]save to /storage/0536/doc_00166527 [19:51:21]save last doc name /storage/0536/doc_00166527 to /storage/kkm_last_doc_name [19:51:21]save OK [19:51:21]Clear old archive folders... [19:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:21]tlvbuf is 012939E0 [19:51:21]SAM_PROTO_ClearQueue [19:51:21]wFMCommunicate request_size=4 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 09 00 00 [19:51:21]Write to MH i2c: E2 08 00 56 0C 80 09 00 00 00 00 00 00 D4 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [19:51:21]RAPDU: 90 00 [19:51:21]wFMCommunicate OK [19:51:21]SAM_PROTO_ClearQueue done [19:51:21]KKMCreateOFDPacket [19:51:21]OFDProtocolAddRootSTLVToBuf [19:51:21]FM_MakeSignedData [19:51:21]FM_MakeSignedData [19:51:21]SAM_PROTO_SignData [19:51:21]wFMCommunicate request_size=4 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 0D 01 02 [19:51:21]Write to MH i2c: E2 08 00 57 0C 80 0D 01 02 00 00 00 00 DC [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [19:51:21]RAPDU: 90 00 [19:51:21]wFMCommunicate OK [19:51:21]wFMCommunicate request_size=255 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 39 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8A 02 00 35 04 06 00 E4 [19:51:21]Write to MH i2c: E2 02 01 58 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 39 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8A 02 00 35 04 06 00 E4 00 00 6D [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [19:51:21]RAPDU: 90 00 [19:51:21]wFMCommunicate OK [19:51:21]wFMCommunicate request_size=10 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 0D 02 02 05 BC 29 C4 51 88 [19:51:21]Write to MH i2c: E2 0D 00 59 0C 80 0D 02 02 05 00 BC 29 C4 51 88 00 00 6B [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [19:51:21]RAPDU: 90 00 [19:51:21]wFMCommunicate OK [19:51:21]wFMCommunicate request_size=4 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 0D 03 02 [19:51:21]Write to MH i2c: E2 08 00 5A 0C 80 0D 03 02 00 00 00 00 E1 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 0B 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 0B 00 5A 0C 00 5A 86 50 5B 62 BB 0E 5C 90 00 F4 [19:51:21]RAPDU: 5A 86 50 5B 62 BB 0E 5C 90 00 [19:51:21]wFMCommunicate OK [19:51:21]SAM_PROTO_SignData done [19:51:21]FM_MakeSignedData done [19:51:21]CreateOFDProtocolMessage [19:51:21]wFMCommunicate request_size=4 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 11 00 00 [19:51:21]Write to MH i2c: E2 08 00 5B 0C 80 11 00 00 00 00 00 00 E1 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:22]Read from MH i2c: E2 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 17 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 17 00 5B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [19:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:51:22]wFMCommunicate OK [19:51:22]CreateOFDProtocolMessage done [19:51:22]OFDSenderStorePacket 166527 [19:51:22]StoreOFDPacket docnum=166527 [19:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA C5 07 01 F2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 39 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8A 02 00 35 04 06 00 E4 BC 29 C4 51 88 5A 86 50 5B 62 BB 0E 5C [19:51:22]CheckFolder [19:51:22]dirname=/storage/ofd_packets [19:51:22]CheckFolder done [19:51:22]ProducePacketName [19:51:22]name=ofd_packets/00166527 [19:51:22]NVStorageSaveData ofd_packets/00166527 [19:51:22]File name is /storage/ofd_packets/00166527 [19:51:22]Write 301 bytes [19:51:22]NVStorageSaveData done [19:51:22]OFDSenderStorePacket done [19:51:22]KKMCreateOFDPacket done [19:51:22]NVStorageSaveData kkm_last_timestamp [19:51:22]File name is /storage/kkm_last_timestamp [19:51:22]Write 4 bytes [19:51:22]NVStorageSaveData done [19:51:22]ExternCall_PrintAddStr [19:51:22]wPrintStart [19:51:22]Write to MH i2c: 01 00 00 5C 0C 68 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 07 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 07 00 5C 0C 00 00 00 00 00 FF 0F 7D [19:51:22]RasterBufferAndPrint [19:51:22]line Счет N : (1)221108 [19:51:22]line ИНН: 02508201610067 [19:51:22]line Контрольно-Кассовый Чек [19:51:22]line ПРОДАЖА [19:51:22]line ТРК (МРК, ГНК) : 24 [19:51:22]line Товар: 2710124500 [19:51:22]line Аи-95-К-5 [19:51:22]line 13.480 * 74.20 [19:51:22]line = 1000.22 [19:51:22]line НДС 12% НСП 1% [19:51:22]line > о реализуемом товаре [19:51:22]line ОКРУГЛЕНИЕ: -0.22 [19:51:22]line ИТОГО: 1000.00 [19:51:22]line Внесено: 1000.00 [19:51:22]line СДАЧА: 0.00 [19:51:22]line НСП 1% : 8.85 [19:51:22]line НДС 12% : 106.22 [19:51:22]line Наличными: 1000.00 [19:51:22]line Безнал.: 0.00 [19:51:22]line Место: АЗС № 161 "Партнер Нефть" [19:51:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:51:22]line СНО: Общий режим [19:51:22]line Чек 282 22.10.2024 19:51 [19:51:22]line Смена: 536 ФФД: 1.0 [19:51:22]line ЗНМ: 0300000104 [19:51:22]line РНМ: 0000000000091764 [19:51:22]line Версия ККМ: 001 [19:51:22]line ФМ: 0000000000871759 [19:51:22]line ФД: 166527 [19:51:22]line ФПД: 251496805716360 [19:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195121&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166527&fm=251496805716360&tin=02508201610067®Number=0000000000091764&sum=100000 [19:51:22]written 0, free lines is 4095 [19:51:22]OFD Sender: Processing packet 166527 [packets to send 48, broken 47] [19:51:22]ProducePacketName [19:51:22]name=ofd_packets/00166527 [19:51:22]OFD Sender: To server: pG, [19:51:22]CommunicateWithHost lk.salyk.kg:30040 [19:51:22]ConnectInit lk.salyk.kg [19:51:22]Connected sock=10 [19:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA C5 07 01 F2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 39 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8A 02 00 35 04 06 00 E4 BC 29 C4 51 88 5A 86 50 5B 62 BB 0E 5C [19:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 02 BA 47 00 2F 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 8A 02 00 F4 03 04 00 A3 A8 17 67 B6 04 01 00 00 E1 52 6B DB FB 5A BB 94 [19:51:22]CommunicateWithHost err = 0 [19:51:22]CheckOFDResponse [19:51:22]1017 (14) - 77093643461234 [19:51:22]1041 (16) - 0000000000871759 [19:51:22]1040 (4) - 166527 [19:51:22]1012 (4) - 22.10.2024 13:29 [19:51:22]1206 (1) - 0 [19:51:22]OFD Sender: Remove packet 166527 [19:51:22]ProducePacketName [19:51:22]name=ofd_packets/00166527 [19:51:22]NVStorageDeleteData [19:51:22]Write to MH i2c: 01 00 00 87 0C 93 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 07 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: 01 07 00 87 0C 00 00 00 00 00 B6 0C 5C [19:51:22]RasterBufferAndPrint [19:51:22]line [19:51:22]line [19:51:22]line [19:51:22]line [19:51:22]line [19:51:22]written 0, free lines is 3264 [19:51:22]MH_Cut [19:51:22]Write to MH i2c: D1 01 00 8E 0C 01 6C [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: D1 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: D1 01 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: D1 01 00 8E 0C 00 6B [19:51:22]Write to MH i2c: 01 00 00 8F 0C 9B [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]OFD Sender: No OFD packet to send [19:51:23]*** Cut start [19:51:23]*** Partial cut [19:51:23]*** CUTSNS_PIN = 1 [19:51:23]*** CUTSNS_PIN = 0 [19:51:23]*** Brake cut motor [19:51:23]Read from MH i2c: 01 [19:51:23]MH_I2C_Read... [19:51:23]*** Stop cut motor [19:51:23]*** Cut end [19:51:23]Read from MH i2c: 01 07 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 8F 0C 00 00 00 00 00 FF 0F B0 [19:51:23]process_action close_receipt done [19:51:23]requested_data is exist [19:51:23]produce_requested_data [19:51:23]requested_item fm.sn is exist - process it [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 11 00 00 [19:51:23]Write to MH i2c: E2 08 00 90 0C 80 11 00 00 00 00 00 00 16 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 90 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [19:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:51:24]wFMCommunicate OK [19:51:24]requested_item fd.num is exist - process it [19:51:24]SAM_PROTO_GetFieldsCounters [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 13 00 00 [19:51:24]Write to MH i2c: E2 08 00 91 0C 80 13 00 00 00 00 00 00 19 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 62 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 62 00 91 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_GetFieldsCounters done [19:51:24]requested_item shift.num is exist - process it [19:51:24]requested_item shift.opened is exist - process it [19:51:24]req_shift_opened [19:51:24]FM_GetShiftState [19:51:24]SAM_PROTO_GetShiftState [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 13 01 00 [19:51:24]Write to MH i2c: E2 08 00 92 0C 80 13 01 00 00 00 00 00 1B [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0E 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0E 00 92 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6E [19:51:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_GetShiftState done [19:51:24]FM_GetShiftState done [19:51:24]req_shift_opened done [19:51:24]requested_item shift.open_date is exist - process it [19:51:24]req_shift_open_date [19:51:24]req_shift_open_date done [19:51:24]produce_requested_data done [19:51:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166527,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:51:24]process_action_free close_receipt [19:51:24]json_value_free [19:51:24]json_value_free done [19:51:24]process_json_proto returns [19:51:24]Send response to host [19:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166527,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:51:24]free response buf [19:51:24]execute_script done [19:51:24]execute_script returns [19:51:24]free content buf [19:51:24]Sock 9.Close socket [19:51:24]Sock 9.Thread stoped [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:06]accept exits with 7 [19:53:06]New connection [19:53:06]New thread 3067489636 created [19:53:06]Thread 3067632996 joined [19:53:06]Waiting for new connection... [19:53:06] Sock 7.Parse request [19:53:06]Sock 7.Check first char [19:53:06]Sock 7.First char is OK [19:53:06]request: POST /json_proto HTTP/1.0 [19:53:06]Method: POST [19:53:06]URL: /json_proto [19:53:06]Method is POST - this is cgi request [19:53:06]url: /json_proto [19:53:06]query_string will be loaded in cgi processing [19:53:06]execute_cgi json_proto POST (null) [19:53:06]execute_cgi path=json_proto method=POST [19:53:06]POST find Content-Length [19:53:06]Host: 172.17.53.195:8080 [19:53:06]Content-Length: 766 [19:53:06]Content-Type: application/json [19:53:06] [19:53:06]POST finish read [19:53:06]Found Content-Length = 766 [19:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:06]execute_script... [19:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:06]POST & json_proto [19:53:06]process_json_proto [19:53:06]json parsed OK: [19:53:06]protocol is kg_v1.0 [19:53:06]action value=close_receipt [19:53:06]process_action close_receipt [19:53:06]cmd_close_receipt [19:53:06]MH_GetDate [19:53:06]Write to MH i2c: F0 00 00 93 0C 8E [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: F0 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: F0 09 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: F0 09 00 93 0C 00 A3 02 18 67 21 48 4A 65 D3 [19:53:06]GetLastDocTimeStamp 1729626681 [19:53:06]current date 1729626787 [19:53:06]FM_GetShiftState [19:53:06]SAM_PROTO_GetShiftState [19:53:06]wFMCommunicate request_size=4 [19:53:06]MH_SAM_APDU [19:53:06]CAPDU: 80 13 01 00 [19:53:06]Write to MH i2c: E2 08 00 94 0C 80 13 01 00 00 00 00 00 1D [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:06]Read from MH i2c: E2 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 0E 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 0E 00 94 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 70 [19:53:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:53:06]wFMCommunicate OK [19:53:06]SAM_PROTO_GetShiftState done [19:53:06]FM_GetShiftState done [19:53:06]opened in 1729557463 [19:53:06]opened+sec_in_day 1729643863 [19:53:06]quantity*price = 20003 [19:53:06]sum+1 = 20004 [19:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 283 22.10.2024 19:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166528 ФПД: 244742822101676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166528&fm=244742822101676&tin=02508201610067®Number=0000000000091764&sum=20003 [19:53:07]StoreToDocumentArchive [19:53:07]shift 536 fd 166528 [19:53:07]save to /storage/0536/doc_00166528 [19:53:07]save last doc name /storage/0536/doc_00166528 to /storage/kkm_last_doc_name [19:53:07]save OK [19:53:07]Clear old archive folders... [19:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:07]tlvbuf is 0120E780 [19:53:07]SAM_PROTO_ClearQueue [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 09 00 00 [19:53:07]Write to MH i2c: E2 08 00 A1 0C 80 09 00 00 00 00 00 00 1F [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]SAM_PROTO_ClearQueue done [19:53:07]KKMCreateOFDPacket [19:53:07]OFDProtocolAddRootSTLVToBuf [19:53:07]FM_MakeSignedData [19:53:07]FM_MakeSignedData [19:53:07]SAM_PROTO_SignData [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 01 02 [19:53:07]Write to MH i2c: E2 08 00 A2 0C 80 0D 01 02 00 00 00 00 27 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 A2 0C 00 90 00 22 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]wFMCommunicate request_size=255 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A3 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8A 02 00 35 04 06 00 DE [19:53:07]Write to MH i2c: E2 02 01 A3 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A3 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8A 02 00 35 04 06 00 DE 00 00 C9 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]wFMCommunicate request_size=10 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 02 02 05 97 A0 F9 02 AC [19:53:07]Write to MH i2c: E2 0D 00 A4 0C 80 0D 02 02 05 00 97 A0 F9 02 AC 00 00 12 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 03 02 [19:53:07]Write to MH i2c: E2 08 00 A5 0C 80 0D 03 02 00 00 00 00 2C [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:08]Read from MH i2c: E2 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 0B 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 0B 00 A5 0C 00 E1 20 5A FF F8 A8 AA 2D 90 00 FE [19:53:08]RAPDU: E1 20 5A FF F8 A8 AA 2D 90 00 [19:53:08]wFMCommunicate OK [19:53:08]SAM_PROTO_SignData done [19:53:08]FM_MakeSignedData done [19:53:08]CreateOFDProtocolMessage [19:53:08]wFMCommunicate request_size=4 [19:53:08]MH_SAM_APDU [19:53:08]CAPDU: 80 11 00 00 [19:53:08]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:08]Read from MH i2c: E2 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 17 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [19:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:08]wFMCommunicate OK [19:53:08]CreateOFDProtocolMessage done [19:53:08]OFDSenderStorePacket 166528 [19:53:08]StoreOFDPacket docnum=166528 [19:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E CF 07 01 85 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A3 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8A 02 00 35 04 06 00 DE 97 A0 F9 02 AC E1 20 5A FF F8 A8 AA 2D [19:53:08]CheckFolder [19:53:08]dirname=/storage/ofd_packets [19:53:08]CheckFolder done [19:53:08]ProducePacketName [19:53:08]name=ofd_packets/00166528 [19:53:08]NVStorageSaveData ofd_packets/00166528 [19:53:08]File name is /storage/ofd_packets/00166528 [19:53:08]Write 301 bytes [19:53:08]NVStorageSaveData done [19:53:08]OFDSenderStorePacket done [19:53:08]KKMCreateOFDPacket done [19:53:08]NVStorageSaveData kkm_last_timestamp [19:53:08]File name is /storage/kkm_last_timestamp [19:53:08]Write 4 bytes [19:53:08]NVStorageSaveData done [19:53:08]ExternCall_PrintAddStr [19:53:08]wPrintStart [19:53:08]Write to MH i2c: 01 00 00 A7 0C B3 [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 07 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 07 00 A7 0C 00 00 00 00 00 FF 0F C8 [19:53:08]RasterBufferAndPrint [19:53:08]line Счет N : (1)221109 [19:53:08]line ИНН: 02508201610067 [19:53:08]line Контрольно-Кассовый Чек [19:53:08]line ПРОДАЖА [19:53:08]line ТРК (МРК, ГНК) : 43 [19:53:08]line Товар: 2710124130 [19:53:08]line Аи-92-К-5 [19:53:08]line 2.990 * 66.90 [19:53:08]line = 200.03 [19:53:08]line НДС 12% НСП 1% [19:53:08]line > о реализуемом товаре [19:53:08]line ИТОГО: 200.03 [19:53:08]line НСП 1% : 1.77 [19:53:08]line НДС 12% : 21.24 [19:53:08]line Наличными: 0.00 [19:53:08]line Безнал.: 200.03 [19:53:08]line Место: АЗС № 161 "Партнер Нефть" [19:53:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:53:08]line СНО: Общий режим [19:53:08]line Чек 283 22.10.2024 19:53 [19:53:08]line Смена: 536 ФФД: 1.0 [19:53:08]line ЗНМ: 0300000104 [19:53:08]line РНМ: 0000000000091764 [19:53:08]line Версия ККМ: 001 [19:53:08]line Платежная система: Mbank [19:53:08]line ФМ: 0000000000871759 [19:53:08]line ФД: 166528 [19:53:08]line ФПД: 244742822101676 [19:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166528&fm=244742822101676&tin=02508201610067®Number=0000000000091764&sum=20003 [19:53:08]written 0, free lines is 4095 [19:53:08]OFD Sender: Processing packet 166528 [packets to send 48, broken 47] [19:53:08]ProducePacketName [19:53:08]name=ofd_packets/00166528 [19:53:08]OFD Sender: To server: pG, [19:53:08]CommunicateWithHost lk.salyk.kg:30040 [19:53:08]ConnectInit lk.salyk.kg [19:53:08]Connected sock=10 [19:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4E CF 07 01 85 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A3 02 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8A 02 00 35 04 06 00 DE 97 A0 F9 02 AC E1 20 5A FF F8 A8 AA 2D [19:53:08]Write to MH i2c: 01 00 00 D0 0C DC [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 07 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 EE 0C DD [19:53:08]RasterBufferAndPrint [19:53:08]line [19:53:08]line [19:53:08]line [19:53:08]line [19:53:08]line [19:53:08]written 0, free lines is 3317 [19:53:08]MH_Cut [19:53:08]Write to MH i2c: D1 01 00 D7 0C 01 B5 [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: D1 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: D1 01 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: D1 01 00 D7 0C 00 B4 [19:53:08]Write to MH i2c: 01 00 00 D8 0C E4 [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 DE 47 00 CA 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 8A 02 00 F4 03 04 00 0D A9 17 67 B6 04 01 00 00 75 A0 B0 CE 3A E2 13 B3 [19:53:08]CommunicateWithHost err = 0 [19:53:08]CheckOFDResponse [19:53:08]1017 (14) - 77093643461234 [19:53:08]1041 (16) - 0000000000871759 [19:53:08]1040 (4) - 166528 [19:53:08]1012 (4) - 22.10.2024 13:30 [19:53:08]1206 (1) - 0 [19:53:08]OFD Sender: Remove packet 166528 [19:53:08]ProducePacketName [19:53:08]name=ofd_packets/00166528 [19:53:08]NVStorageDeleteData [19:53:09]OFD Sender: No OFD packet to send [19:53:09]*** Cut start [19:53:09]*** Partial cut [19:53:09]*** CUTSNS_PIN = 1 [19:53:09]*** CUTSNS_PIN = 0 [19:53:09]*** Brake cut motor [19:53:09]Read from MH i2c: 01 [19:53:09]MH_I2C_Read... [19:53:09]*** Stop cut motor [19:53:09]*** Cut end [19:53:09]Read from MH i2c: 01 07 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 FF 0F F9 [19:53:09]process_action close_receipt done [19:53:09]requested_data is exist [19:53:09]produce_requested_data [19:53:09]requested_item fm.sn is exist - process it [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 11 00 00 [19:53:09]Write to MH i2c: E2 08 00 D9 0C 80 11 00 00 00 00 00 00 5F [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:10]Read from MH i2c: E2 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 17 00 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 17 00 D9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [19:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:10]wFMCommunicate OK [19:53:10]requested_item fd.num is exist - process it [19:53:10]SAM_PROTO_GetFieldsCounters [19:53:10]wFMCommunicate request_size=4 [19:53:10]MH_SAM_APDU [19:53:10]CAPDU: 80 13 00 00 [19:53:10]Write to MH i2c: E2 08 00 DA 0C 80 13 00 00 00 00 00 00 62 [19:53:10]Write i2c OK [19:53:10]MH_I2C_Read... [19:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:10]Read from MH i2c: E2 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 62 00 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 62 00 DA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [19:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:10]wFMCommunicate OK [19:53:10]SAM_PROTO_GetFieldsCounters done [19:53:10]requested_item shift.num is exist - process it [19:53:10]requested_item shift.opened is exist - process it [19:53:10]req_shift_opened [19:53:10]FM_GetShiftState [19:53:10]SAM_PROTO_GetShiftState [19:53:10]wFMCommunicate request_size=4 [19:53:10]MH_SAM_APDU [19:53:10]CAPDU: 80 13 01 00 [19:53:10]Write to MH i2c: E2 08 00 DB 0C 80 13 01 00 00 00 00 00 64 [19:53:10]Write i2c OK [19:53:10]MH_I2C_Read... [19:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:10]Read from MH i2c: E2 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 0E 00 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 0E 00 DB 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B7 [19:53:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:53:10]wFMCommunicate OK [19:53:10]SAM_PROTO_GetShiftState done [19:53:10]FM_GetShiftState done [19:53:10]req_shift_opened done [19:53:10]requested_item shift.open_date is exist - process it [19:53:10]req_shift_open_date [19:53:10]req_shift_open_date done [19:53:10]produce_requested_data done [19:53:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166528,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:53:10]process_action_free close_receipt [19:53:10]json_value_free [19:53:10]json_value_free done [19:53:10]process_json_proto returns [19:53:10]Send response to host [19:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166528,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:53:10]free response buf [19:53:10]execute_script done [19:53:10]execute_script returns [19:53:10]free content buf [19:53:10]Sock 7.Close socket [19:53:10]Sock 7.Thread stoped [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:34]accept exits with 9 [19:55:34]New connection [19:55:34]New thread 3067632996 created [19:55:34]Thread 3067489636 joined [19:55:34]Waiting for new connection... [19:55:34] Sock 9.Parse request [19:55:34]Sock 9.Check first char [19:55:34]Sock 9.First char is OK [19:55:34]request: POST /json_proto HTTP/1.0 [19:55:34]Method: POST [19:55:34]URL: /json_proto [19:55:34]Method is POST - this is cgi request [19:55:34]url: /json_proto [19:55:34]query_string will be loaded in cgi processing [19:55:34]execute_cgi json_proto POST (null) [19:55:34]execute_cgi path=json_proto method=POST [19:55:34]POST find Content-Length [19:55:34]Host: 172.17.53.195:8080 [19:55:34]Content-Length: 215 [19:55:34]Content-Type: application/json [19:55:34] [19:55:34]POST finish read [19:55:34]Found Content-Length = 215 [19:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:34]execute_script... [19:55:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:34]POST & json_proto [19:55:34]process_json_proto [19:55:34]json parsed OK: [19:55:34]protocol is kg_v1.0 [19:55:34]action value=get_value [19:55:34]process_action get_value [19:55:34]cmd_get_value [19:55:34]process_action get_value done [19:55:34]requested_data is exist [19:55:34]produce_requested_data [19:55:34]requested_item kkm.sn is exist - process it [19:55:34]requested_item kkm.ver is exist - process it [19:55:34]requested_item fm.sn is exist - process it [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 11 00 00 [19:55:34]Write to MH i2c: E2 08 00 DC 0C 80 11 00 00 00 00 00 00 62 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 DC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [19:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:55:34]wFMCommunicate OK [19:55:34]requested_item fd.num is exist - process it [19:55:34]SAM_PROTO_GetFieldsCounters [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 13 00 00 [19:55:34]Write to MH i2c: E2 08 00 DD 0C 80 13 00 00 00 00 00 00 65 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 62 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 62 00 DD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_GetFieldsCounters done [19:55:35]requested_item shift.num is exist - process it [19:55:35]requested_item shift.opened is exist - process it [19:55:35]req_shift_opened [19:55:35]FM_GetShiftState [19:55:35]SAM_PROTO_GetShiftState [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 13 01 00 [19:55:35]Write to MH i2c: E2 08 00 DE 0C 80 13 01 00 00 00 00 00 67 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 DE 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BA [19:55:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_GetShiftState done [19:55:35]FM_GetShiftState done [19:55:35]req_shift_opened done [19:55:35]requested_item shift.open_date is exist - process it [19:55:35]req_shift_open_date [19:55:35]req_shift_open_date done [19:55:35]produce_requested_data done [19:55:35]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166528,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:55:35]process_action_free get_value [19:55:35]json_value_free [19:55:35]json_value_free done [19:55:35]process_json_proto returns [19:55:35]Send response to host [19:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166528,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:55:35]free response buf [19:55:35]execute_script done [19:55:35]execute_script returns [19:55:35]free content buf [19:55:35]Sock 9.Close socket [19:55:35]Sock 9.Thread stoped [19:55:35]accept exits with 7 [19:55:35]New connection [19:55:35]New thread 3067489636 created [19:55:35]Thread 3067632996 joined [19:55:35]Waiting for new connection... [19:55:35] Sock 7.Parse request [19:55:35]Sock 7.Check first char [19:55:35]Sock 7.First char is OK [19:55:35]request: POST /json_proto HTTP/1.0 [19:55:35]Method: POST [19:55:35]URL: /json_proto [19:55:35]Method is POST - this is cgi request [19:55:35]url: /json_proto [19:55:35]query_string will be loaded in cgi processing [19:55:35]execute_cgi json_proto POST (null) [19:55:35]execute_cgi path=json_proto method=POST [19:55:35]POST find Content-Length [19:55:35]Host: 172.17.53.195:8080 [19:55:35]Content-Length: 331 [19:55:35]Content-Type: application/json [19:55:35] [19:55:35]POST finish read [19:55:35]Found Content-Length = 331 [19:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:55:35]execute_script... [19:55:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:55:35]POST & json_proto [19:55:35]process_json_proto [19:55:35]json parsed OK: [19:55:35]protocol is kg_v1.0 [19:55:35]action value=get_value [19:55:35]process_action get_value [19:55:35]cmd_get_value [19:55:35]process_action get_value done [19:55:35]requested_data is exist [19:55:35]produce_requested_data [19:55:35]requested_item fm.sale.total is exist - process it [19:55:35]SAM_PROTO_GetFMData [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 13 03 00 [19:55:35]Write to MH i2c: E2 08 00 DF 0C 80 13 03 00 00 00 00 00 6A [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 FD 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 FD 00 DF 0C 00 C5 04 85 04 C1 04 6E 04 04 00 50 86 02 00 69 04 A3 00 6F 04 04 00 51 85 02 00 B1 04 05 00 95 78 13 B4 03 70 04 05 00 6C D8 33 2A 03 72 04 04 00 29 A0 DF 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 24 B9 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6F AA 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 F2 [19:55:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 50 86 02 00 69 04 A3 00 6F 04 04 00 51 85 02 00 B1 04 05 00 95 78 13 B4 03 70 04 05 00 6C D8 33 2A 03 72 04 04 00 29 A0 DF 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 24 B9 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6F AA 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [19:55:35]wFMCommunicate OK [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 17 00 00 [19:55:35]Write to MH i2c: E2 08 00 E0 0C 80 17 00 00 00 00 00 00 6C [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 E0 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 38 [19:55:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 17 00 00 [19:55:36]Write to MH i2c: E2 08 00 E1 0C 80 17 00 00 00 00 00 00 6D [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 E1 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7F [19:55:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 17 00 00 [19:55:36]Write to MH i2c: E2 08 00 E2 0C 80 17 00 00 00 00 00 00 6E [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 FD 00 E2 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FA [19:55:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 17 00 00 [19:55:36]Write to MH i2c: E2 08 00 E3 0C 80 17 00 00 00 00 00 00 6F [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 E2 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 E2 00 E3 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [19:55:36]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:55:36]wFMCommunicate OK [19:55:36]SAM_PROTO_GetFMData done [19:55:36]requested_item fm.sale_refund.total is exist - process it [19:55:36]requested_item fm.buy.total is exist - process it [19:55:36]requested_item shift.sale.total is exist - process it [19:55:36]SAM_PROTO_GetShiftData [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 13 02 00 [19:55:36]Write to MH i2c: E2 08 00 E4 0C 80 13 02 00 00 00 00 00 6E [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 E4 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 E1 A9 9E 01 70 04 04 00 54 6A 63 01 72 04 03 00 8D 3F 3B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 0C 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA AB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D4 [19:55:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 E1 A9 9E 01 70 04 04 00 54 6A 63 01 72 04 03 00 8D 3F 3B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 0C 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AA AB 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:55:37]wFMCommunicate OK [19:55:37]wFMCommunicate request_size=4 [19:55:37]MH_SAM_APDU [19:55:37]CAPDU: 80 17 00 00 [19:55:37]Write to MH i2c: E2 08 00 E5 0C 80 17 00 00 00 00 00 00 71 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 E5 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 8A [19:55:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [19:55:37]wFMCommunicate OK [19:55:37]wFMCommunicate request_size=4 [19:55:37]MH_SAM_APDU [19:55:37]CAPDU: 80 17 00 00 [19:55:37]Write to MH i2c: E2 08 00 E6 0C 80 17 00 00 00 00 00 00 72 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:37]Read from MH i2c: E2 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: E2 FD 00 E6 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 2B [19:55:38]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 17 00 00 [19:55:38]Write to MH i2c: E2 08 00 E7 0C 80 17 00 00 00 00 00 00 73 [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 FD 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 FD 00 E7 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EB [19:55:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:55:38]wFMCommunicate OK [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 17 00 00 [19:55:38]Write to MH i2c: E2 08 00 E8 0C 80 17 00 00 00 00 00 00 74 [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 CE 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 CE 00 E8 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [19:55:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetShiftData done [19:55:38]requested_item shift.sale.total_cash is exist - process it [19:55:38]requested_item shift.sale_refund.total is exist - process it [19:55:38]requested_item shift.sale_refund.total_cash is exist - process it [19:55:38]requested_item shift.buy.total is exist - process it [19:55:38]requested_item shift.buy.total_cash is exist - process it [19:55:38]produce_requested_data done [19:55:38]produce_requested_data return {"fm.sale.total":159060768.21,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":271753.93,"shift.sale.total_cash":232925.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:55:38]process_action_free get_value [19:55:38]json_value_free [19:55:38]json_value_free done [19:55:38]process_json_proto returns [19:55:38]Send response to host [19:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159060768.21,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":271753.93,"shift.sale.total_cash":232925.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:55:38]free response buf [19:55:38]execute_script done [19:55:38]execute_script returns [19:55:38]free content buf [19:55:38]Sock 7.Close socket [19:55:38]Sock 7.Thread stoped [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:01]accept exits with 9 [19:56:01]New connection [19:56:01]New thread 3067632996 created [19:56:01]Thread 3067489636 joined [19:56:01]Waiting for new connection... [19:56:01] Sock 9.Parse request [19:56:01]Sock 9.Check first char [19:56:01]Sock 9.First char is OK [19:56:01]request: POST /json_proto HTTP/1.0 [19:56:01]Method: POST [19:56:01]URL: /json_proto [19:56:01]Method is POST - this is cgi request [19:56:01]url: /json_proto [19:56:01]query_string will be loaded in cgi processing [19:56:01]execute_cgi json_proto POST (null) [19:56:01]execute_cgi path=json_proto method=POST [19:56:01]POST find Content-Length [19:56:01]Host: 172.17.53.195:8080 [19:56:01]Content-Length: 766 [19:56:01]Content-Type: application/json [19:56:01] [19:56:01]POST finish read [19:56:01]Found Content-Length = 766 [19:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:01]execute_script... [19:56:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:01]POST & json_proto [19:56:01]process_json_proto [19:56:01]json parsed OK: [19:56:01]protocol is kg_v1.0 [19:56:01]action value=close_receipt [19:56:01]process_action close_receipt [19:56:01]cmd_close_receipt [19:56:01]MH_GetDate [19:56:01]Write to MH i2c: F0 00 00 E9 0C E4 [19:56:01]Write i2c OK [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: F0 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: F0 09 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: F0 09 00 E9 0C 00 52 03 18 67 21 48 4A 65 D9 [19:56:01]GetLastDocTimeStamp 1729626787 [19:56:01]current date 1729626962 [19:56:01]FM_GetShiftState [19:56:01]SAM_PROTO_GetShiftState [19:56:01]wFMCommunicate request_size=4 [19:56:01]MH_SAM_APDU [19:56:01]CAPDU: 80 13 01 00 [19:56:01]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [19:56:01]Write i2c OK [19:56:01]MH_I2C_Read... [19:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:01]Read from MH i2c: E2 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 0E 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C6 [19:56:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:56:01]wFMCommunicate OK [19:56:01]SAM_PROTO_GetShiftState done [19:56:01]FM_GetShiftState done [19:56:01]opened in 1729557463 [19:56:01]opened+sec_in_day 1729643863 [19:56:01]quantity*price = 100050 [19:56:01]sum+1 = 100052 [19:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 284 22.10.2024 19:56 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166529 ФПД: 210209873289579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195602&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166529&fm=210209873289579&tin=02508201610067®Number=0000000000091764&sum=100051 [19:56:02]StoreToDocumentArchive [19:56:02]shift 536 fd 166529 [19:56:02]save to /storage/0536/doc_00166529 [19:56:02]save last doc name /storage/0536/doc_00166529 to /storage/kkm_last_doc_name [19:56:02]save OK [19:56:02]Clear old archive folders... [19:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:02]tlvbuf is 01213620 [19:56:02]SAM_PROTO_ClearQueue [19:56:02]wFMCommunicate request_size=4 [19:56:02]MH_SAM_APDU [19:56:02]CAPDU: 80 09 00 00 [19:56:02]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [19:56:02]Write i2c OK [19:56:02]MH_I2C_Read... [19:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:02]Read from MH i2c: E2 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 03 00 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [19:56:02]RAPDU: 90 00 [19:56:02]wFMCommunicate OK [19:56:02]SAM_PROTO_ClearQueue done [19:56:02]KKMCreateOFDPacket [19:56:02]OFDProtocolAddRootSTLVToBuf [19:56:02]FM_MakeSignedData [19:56:02]FM_MakeSignedData [19:56:02]SAM_PROTO_SignData [19:56:02]wFMCommunicate request_size=4 [19:56:02]MH_SAM_APDU [19:56:02]CAPDU: 80 0D 01 02 [19:56:02]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [19:56:02]Write i2c OK [19:56:02]MH_I2C_Read... [19:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:02]Read from MH i2c: E2 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 03 00 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [19:56:02]RAPDU: 90 00 [19:56:02]wFMCommunicate OK [19:56:02]wFMCommunicate request_size=255 [19:56:02]MH_SAM_APDU [19:56:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 52 03 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8A 02 00 35 04 06 00 BF 2F 4C D3 [19:56:02]Write to MH i2c: E2 02 01 F9 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 52 03 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8A 02 00 35 04 06 00 BF 2F 4C D3 00 00 94 [19:56:02]Write i2c OK [19:56:02]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [19:56:03]RAPDU: 90 00 [19:56:03]wFMCommunicate OK [19:56:03]wFMCommunicate request_size=7 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 0D 02 02 02 61 6B [19:56:03]Write to MH i2c: E2 0A 00 FA 0C 80 0D 02 02 02 00 61 6B 00 00 50 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [19:56:03]RAPDU: 90 00 [19:56:03]wFMCommunicate OK [19:56:03]wFMCommunicate request_size=4 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 0D 03 02 [19:56:03]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 0B 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 0B 00 FB 0C 00 E9 B9 75 3E 01 10 36 AA 90 00 C9 [19:56:03]RAPDU: E9 B9 75 3E 01 10 36 AA 90 00 [19:56:03]wFMCommunicate OK [19:56:03]SAM_PROTO_SignData done [19:56:03]FM_MakeSignedData done [19:56:03]CreateOFDProtocolMessage [19:56:03]wFMCommunicate request_size=4 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 11 00 00 [19:56:03]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 17 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [19:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:56:03]wFMCommunicate OK [19:56:03]CreateOFDProtocolMessage done [19:56:03]OFDSenderStorePacket 166529 [19:56:03]StoreOFDPacket docnum=166529 [19:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 76 6B 04 01 D2 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 52 03 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8A 02 00 35 04 06 00 BF 2F 4C D3 61 6B E9 B9 75 3E 01 10 36 AA [19:56:03]CheckFolder [19:56:03]dirname=/storage/ofd_packets [19:56:03]CheckFolder done [19:56:03]ProducePacketName [19:56:03]name=ofd_packets/00166529 [19:56:03]NVStorageSaveData ofd_packets/00166529 [19:56:03]File name is /storage/ofd_packets/00166529 [19:56:03]Write 298 bytes [19:56:03]NVStorageSaveData done [19:56:03]OFDSenderStorePacket done [19:56:03]KKMCreateOFDPacket done [19:56:03]NVStorageSaveData kkm_last_timestamp [19:56:03]File name is /storage/kkm_last_timestamp [19:56:03]Write 4 bytes [19:56:03]NVStorageSaveData done [19:56:03]ExternCall_PrintAddStr [19:56:03]wPrintStart [19:56:03]Write to MH i2c: 01 00 00 FD 0C 09 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 07 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [19:56:03]RasterBufferAndPrint [19:56:03]line Счет N : (1)221110 [19:56:03]line ИНН: 02508201610067 [19:56:03]line Контрольно-Кассовый Чек [19:56:03]line ПРОДАЖА [19:56:03]line ТРК (МРК, ГНК) : 41 [19:56:03]line Товар: 2710194210 [19:56:03]line ДТ-К-5 [19:56:03]line 13.130 * 76.20 [19:56:03]line = 1000.51 [19:56:03]line НДС 12% НСП 1% [19:56:03]line > о реализуемом товаре [19:56:03]line ИТОГО: 1000.51 [19:56:03]line НСП 1% : 8.85 [19:56:03]line НДС 12% : 106.25 [19:56:03]line Наличными: 0.00 [19:56:03]line Безнал.: 1000.51 [19:56:03]line Место: АЗС № 161 "Партнер Нефть" [19:56:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:56:03]line СНО: Общий режим [19:56:03]line Чек 284 22.10.2024 19:56 [19:56:03]line Смена: 536 ФФД: 1.0 [19:56:03]line ЗНМ: 0300000104 [19:56:03]line РНМ: 0000000000091764 [19:56:03]line Версия ККМ: 001 [19:56:03]line Платежная система: Mbank [19:56:03]line ФМ: 0000000000871759 [19:56:03]line ФД: 166529 [19:56:03]line ФПД: 210209873289579 [19:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195602&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166529&fm=210209873289579&tin=02508201610067®Number=0000000000091764&sum=100051 [19:56:03]written 0, free lines is 4095 [19:56:03]OFD Sender: Processing packet 166529 [packets to send 48, broken 47] [19:56:03]ProducePacketName [19:56:03]name=ofd_packets/00166529 [19:56:03]OFD Sender: To server: pG, [19:56:03]CommunicateWithHost lk.salyk.kg:30040 [19:56:03]ConnectInit lk.salyk.kg [19:56:03]Connected sock=10 [19:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 76 6B 04 01 D2 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 52 03 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8A 02 00 35 04 06 00 BF 2F 4C D3 61 6B E9 B9 75 3E 01 10 36 AA [19:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA 16 47 00 F5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 8A 02 00 F4 03 04 00 BC A9 17 67 B6 04 01 00 00 19 5E 6C 2C FE 3B F5 7E [19:56:03]CommunicateWithHost err = 0 [19:56:03]CheckOFDResponse [19:56:03]1017 (14) - 77093643461234 [19:56:03]1041 (16) - 0000000000871759 [19:56:03]1040 (4) - 166529 [19:56:03]1012 (4) - 22.10.2024 13:33 [19:56:03]1206 (1) - 0 [19:56:03]OFD Sender: Remove packet 166529 [19:56:03]ProducePacketName [19:56:03]name=ofd_packets/00166529 [19:56:03]NVStorageDeleteData [19:56:03]Write to MH i2c: 01 00 00 26 0D 33 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 07 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 EB 0C 31 [19:56:03]RasterBufferAndPrint [19:56:03]line [19:56:03]line [19:56:03]line [19:56:03]line [19:56:03]line [19:56:03]written 0, free lines is 3314 [19:56:03]MH_Cut [19:56:03]Write to MH i2c: D1 01 00 2D 0D 01 0C [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: D1 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: D1 01 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: D1 01 00 2D 0D 00 0B [19:56:03]Write to MH i2c: 01 00 00 2E 0D 3B [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:04]OFD Sender: No OFD packet to send [19:56:04]*** Cut start [19:56:04]*** Partial cut [19:56:04]*** CUTSNS_PIN = 1 [19:56:04]*** CUTSNS_PIN = 0 [19:56:04]*** Brake cut motor [19:56:05]Read from MH i2c: 01 [19:56:05]MH_I2C_Read... [19:56:05]*** Stop cut motor [19:56:05]*** Cut end [19:56:05]Read from MH i2c: 01 07 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [19:56:05]process_action close_receipt done [19:56:05]requested_data is exist [19:56:05]produce_requested_data [19:56:05]requested_item fm.sn is exist - process it [19:56:05]wFMCommunicate request_size=4 [19:56:05]MH_SAM_APDU [19:56:05]CAPDU: 80 11 00 00 [19:56:05]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:05]Read from MH i2c: E2 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 17 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 17 00 2F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0E [19:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:56:05]wFMCommunicate OK [19:56:05]requested_item fd.num is exist - process it [19:56:05]SAM_PROTO_GetFieldsCounters [19:56:05]wFMCommunicate request_size=4 [19:56:05]MH_SAM_APDU [19:56:05]CAPDU: 80 13 00 00 [19:56:05]Write to MH i2c: E2 08 00 30 0D 80 13 00 00 00 00 00 00 B9 [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:05]Read from MH i2c: E2 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 62 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 62 00 30 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:05]wFMCommunicate OK [19:56:05]SAM_PROTO_GetFieldsCounters done [19:56:05]requested_item shift.num is exist - process it [19:56:05]requested_item shift.opened is exist - process it [19:56:05]req_shift_opened [19:56:05]FM_GetShiftState [19:56:05]SAM_PROTO_GetShiftState [19:56:05]wFMCommunicate request_size=4 [19:56:05]MH_SAM_APDU [19:56:05]CAPDU: 80 13 01 00 [19:56:05]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 [19:56:05]MH_I2C_Read... [19:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:05]Read from MH i2c: E2 0E 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0E [19:56:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [19:56:05]wFMCommunicate OK [19:56:05]SAM_PROTO_GetShiftState done [19:56:05]FM_GetShiftState done [19:56:05]req_shift_opened done [19:56:05]requested_item shift.open_date is exist - process it [19:56:05]req_shift_open_date [19:56:05]req_shift_open_date done [19:56:05]produce_requested_data done [19:56:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166529,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [19:56:05]process_action_free close_receipt [19:56:05]json_value_free [19:56:05]json_value_free done [19:56:05]process_json_proto returns [19:56:05]Send response to host [19:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166529,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [19:56:05]free response buf [19:56:05]execute_script done [19:56:05]execute_script returns [19:56:05]free content buf [19:56:05]Sock 9.Close socket [19:56:05]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:17]accept exits with 7 [20:05:17]New connection [20:05:17]New thread 3067489636 created [20:05:17]Thread 3067632996 joined [20:05:17]Waiting for new connection... [20:05:17] Sock 7.Parse request [20:05:17]Sock 7.Check first char [20:05:17]Sock 7.First char is OK [20:05:17]request: POST /json_proto HTTP/1.0 [20:05:17]Method: POST [20:05:17]URL: /json_proto [20:05:17]Method is POST - this is cgi request [20:05:17]url: /json_proto [20:05:17]query_string will be loaded in cgi processing [20:05:17]execute_cgi json_proto POST (null) [20:05:17]execute_cgi path=json_proto method=POST [20:05:17]POST find Content-Length [20:05:17]Host: 172.17.53.195:8080 [20:05:17]Content-Length: 674 [20:05:17]Content-Type: application/json [20:05:17] [20:05:17]POST finish read [20:05:17]Found Content-Length = 674 [20:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:17]execute_script... [20:05:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:17]POST & json_proto [20:05:17]process_json_proto [20:05:17]json parsed OK: [20:05:17]protocol is kg_v1.0 [20:05:17]action value=close_receipt [20:05:17]process_action close_receipt [20:05:17]cmd_close_receipt [20:05:17]MH_GetDate [20:05:17]Write to MH i2c: F0 00 00 32 0D 2E [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: F0 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: F0 09 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: F0 09 00 32 0D 00 7E 05 18 67 21 48 4A 65 51 [20:05:17]GetLastDocTimeStamp 1729626962 [20:05:17]current date 1729627518 [20:05:17]FM_GetShiftState [20:05:17]SAM_PROTO_GetShiftState [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 01 00 [20:05:17]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 10 [20:05:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetShiftState done [20:05:17]FM_GetShiftState done [20:05:17]opened in 1729557463 [20:05:17]opened+sec_in_day 1729643863 [20:05:17]quantity*price = 60045 [20:05:17]sum+1 = 60047 [20:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 285 22.10.2024 20:05 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166530 ФПД: 182780995422547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200518&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166530&fm=182780995422547&tin=02508201610067®Number=0000000000091764&sum=60000 [20:05:19]StoreToDocumentArchive [20:05:19]shift 536 fd 166530 [20:05:19]save to /storage/0536/doc_00166530 [20:05:19]save last doc name /storage/0536/doc_00166530 to /storage/kkm_last_doc_name [20:05:19]save OK [20:05:19]Clear old archive folders... [20:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:19]tlvbuf is 011CE840 [20:05:19]SAM_PROTO_ClearQueue [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 09 00 00 [20:05:19]Write to MH i2c: E2 08 00 40 0D 80 09 00 00 00 00 00 00 BF [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]SAM_PROTO_ClearQueue done [20:05:19]KKMCreateOFDPacket [20:05:19]OFDProtocolAddRootSTLVToBuf [20:05:19]FM_MakeSignedData [20:05:19]FM_MakeSignedData [20:05:19]SAM_PROTO_SignData [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 01 02 [20:05:19]Write to MH i2c: E2 08 00 41 0D 80 0D 01 02 00 00 00 00 C7 [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]wFMCommunicate request_size=255 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E 05 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8A 02 00 35 04 06 00 A6 3D 04 4D [20:05:19]Write to MH i2c: E2 02 01 42 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E 05 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8A 02 00 35 04 06 00 A6 3D 04 4D 00 00 90 [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]wFMCommunicate request_size=7 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 02 02 02 C9 53 [20:05:19]Write to MH i2c: E2 0A 00 43 0D 80 0D 02 02 02 00 C9 53 00 00 EA [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 03 02 [20:05:19]Write to MH i2c: E2 08 00 44 0D 80 0D 03 02 00 00 00 00 CC [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 0B 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 0B 00 44 0D 00 60 71 22 80 61 88 B5 38 90 00 16 [20:05:19]RAPDU: 60 71 22 80 61 88 B5 38 90 00 [20:05:19]wFMCommunicate OK [20:05:19]SAM_PROTO_SignData done [20:05:19]FM_MakeSignedData done [20:05:19]CreateOFDProtocolMessage [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 11 00 00 [20:05:19]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 17 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [20:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:19]wFMCommunicate OK [20:05:19]CreateOFDProtocolMessage done [20:05:19]OFDSenderStorePacket 166530 [20:05:19]StoreOFDPacket docnum=166530 [20:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 01 1C 04 01 90 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E 05 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8A 02 00 35 04 06 00 A6 3D 04 4D C9 53 60 71 22 80 61 88 B5 38 [20:05:19]CheckFolder [20:05:19]dirname=/storage/ofd_packets [20:05:19]CheckFolder done [20:05:19]ProducePacketName [20:05:19]name=ofd_packets/00166530 [20:05:19]NVStorageSaveData ofd_packets/00166530 [20:05:19]File name is /storage/ofd_packets/00166530 [20:05:19]Write 298 bytes [20:05:19]NVStorageSaveData done [20:05:19]OFDSenderStorePacket done [20:05:19]KKMCreateOFDPacket done [20:05:19]NVStorageSaveData kkm_last_timestamp [20:05:19]File name is /storage/kkm_last_timestamp [20:05:19]Write 4 bytes [20:05:19]NVStorageSaveData done [20:05:19]ExternCall_PrintAddStr [20:05:19]wPrintStart [20:05:19]Write to MH i2c: 01 00 00 46 0D 53 [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: 01 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: 01 07 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [20:05:19]RasterBufferAndPrint [20:05:19]line Счет N : (1)221111 [20:05:19]line ИНН: 02508201610067 [20:05:19]line Контрольно-Кассовый Чек [20:05:19]line ПРОДАЖА [20:05:19]line ТРК (МРК, ГНК) : 21 [20:05:19]line Товар: 2710194210 [20:05:19]line ДТ-К-5 [20:05:19]line 7.880 * 76.20 [20:05:19]line = 600.46 [20:05:19]line НДС 12% НСП 1% [20:05:19]line > о реализуемом товаре [20:05:19]line ОКРУГЛЕНИЕ: -0.46 [20:05:19]line ИТОГО: 600.00 [20:05:19]line Внесено: 600.00 [20:05:19]line СДАЧА: 0.00 [20:05:19]line НСП 1% : 5.31 [20:05:19]line НДС 12% : 63.77 [20:05:19]line Наличными: 600.00 [20:05:19]line Безнал.: 0.00 [20:05:19]line Место: АЗС № 161 "Партнер Нефть" [20:05:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:05:19]line СНО: Общий режим [20:05:19]line Чек 285 22.10.2024 20:05 [20:05:19]line Смена: 536 ФФД: 1.0 [20:05:19]line ЗНМ: 0300000104 [20:05:19]line РНМ: 0000000000091764 [20:05:19]line Версия ККМ: 001 [20:05:19]line ФМ: 0000000000871759 [20:05:19]line ФД: 166530 [20:05:19]line ФПД: 182780995422547 [20:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200518&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166530&fm=182780995422547&tin=02508201610067®Number=0000000000091764&sum=60000 [20:05:19]OFD Sender: Processing packet 166530 [packets to send 48, broken 47] [20:05:19]ProducePacketName [20:05:19]name=ofd_packets/00166530 [20:05:19]OFD Sender: To server: pG, [20:05:19]CommunicateWithHost lk.salyk.kg:30040 [20:05:19]ConnectInit lk.salyk.kg [20:05:19]written 0, free lines is 4095 [20:05:20]Connected sock=10 [20:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 01 1C 04 01 90 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7E 05 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8A 02 00 35 04 06 00 A6 3D 04 4D C9 53 60 71 22 80 61 88 B5 38 [20:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 22 44 47 00 83 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 8A 02 00 F4 03 04 00 E9 AB 17 67 B6 04 01 00 00 60 94 35 7F 2E 6F 3A 1B [20:05:20]CommunicateWithHost err = 0 [20:05:20]CheckOFDResponse [20:05:20]1017 (14) - 77093643461234 [20:05:20]1041 (16) - 0000000000871759 [20:05:20]1040 (4) - 166530 [20:05:20]1012 (4) - 22.10.2024 13:43 [20:05:20]1206 (1) - 0 [20:05:20]OFD Sender: Remove packet 166530 [20:05:20]ProducePacketName [20:05:20]name=ofd_packets/00166530 [20:05:20]NVStorageDeleteData [20:05:20]Write to MH i2c: 01 00 00 71 0D 7E [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 07 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 B5 0C 46 [20:05:20]RasterBufferAndPrint [20:05:20]line [20:05:20]line [20:05:20]line [20:05:20]line [20:05:20]line [20:05:20]written 0, free lines is 3261 [20:05:20]MH_Cut [20:05:20]Write to MH i2c: D1 01 00 78 0D 01 57 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: D1 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: D1 01 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: D1 01 00 78 0D 00 56 [20:05:20]Write to MH i2c: 01 00 00 79 0D 86 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]OFD Sender: No OFD packet to send [20:05:21]*** Cut start [20:05:21]*** Partial cut [20:05:21]*** CUTSNS_PIN = 1 [20:05:21]*** CUTSNS_PIN = 0 [20:05:21]*** Brake cut motor [20:05:21]Read from MH i2c: 01 [20:05:21]MH_I2C_Read... [20:05:21]*** Stop cut motor [20:05:21]*** Cut end [20:05:21]Read from MH i2c: 01 07 00 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [20:05:21]process_action close_receipt done [20:05:21]requested_data is exist [20:05:21]produce_requested_data [20:05:21]requested_item fm.sn is exist - process it [20:05:21]wFMCommunicate request_size=4 [20:05:21]MH_SAM_APDU [20:05:21]CAPDU: 80 11 00 00 [20:05:21]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [20:05:21]Write i2c OK [20:05:21]MH_I2C_Read... [20:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:21]Read from MH i2c: E2 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: E2 17 00 [20:05:21]MH_I2C_Read... [20:05:21]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 31 37 35 39 90 00 59 [20:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:05:21]wFMCommunicate OK [20:05:21]requested_item fd.num is exist - process it [20:05:21]SAM_PROTO_GetFieldsCounters [20:05:21]wFMCommunicate request_size=4 [20:05:21]MH_SAM_APDU [20:05:21]CAPDU: 80 13 00 00 [20:05:21]Write to MH i2c: E2 08 00 7B 0D 80 13 00 00 00 00 00 00 04 [20:05:21]Write i2c OK [20:05:21]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 62 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 62 00 7B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [20:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_GetFieldsCounters done [20:05:22]requested_item shift.num is exist - process it [20:05:22]requested_item shift.opened is exist - process it [20:05:22]req_shift_opened [20:05:22]FM_GetShiftState [20:05:22]SAM_PROTO_GetShiftState [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 13 01 00 [20:05:22]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:22]Read from MH i2c: E2 0E 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 59 [20:05:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_GetShiftState done [20:05:22]FM_GetShiftState done [20:05:22]req_shift_opened done [20:05:22]requested_item shift.open_date is exist - process it [20:05:22]req_shift_open_date [20:05:22]req_shift_open_date done [20:05:22]produce_requested_data done [20:05:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166530,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:05:22]process_action_free close_receipt [20:05:22]json_value_free [20:05:22]json_value_free done [20:05:22]process_json_proto returns [20:05:22]Send response to host [20:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166530,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:05:22]free response buf [20:05:22]execute_script done [20:05:22]execute_script returns [20:05:22]free content buf [20:05:22]Sock 7.Close socket [20:05:22]Sock 7.Thread stoped [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:55]accept exits with 9 [20:14:55]New connection [20:14:55]New thread 3067632996 created [20:14:55]Thread 3067489636 joined [20:14:55]Waiting for new connection... [20:14:55] Sock 9.Parse request [20:14:55]Sock 9.Check first char [20:14:55]Sock 9.First char is OK [20:14:55]request: POST /json_proto HTTP/1.0 [20:14:55]Method: POST [20:14:55]URL: /json_proto [20:14:55]Method is POST - this is cgi request [20:14:55]url: /json_proto [20:14:55]query_string will be loaded in cgi processing [20:14:55]execute_cgi json_proto POST (null) [20:14:55]execute_cgi path=json_proto method=POST [20:14:55]POST find Content-Length [20:14:55]Host: 172.17.53.195:8080 [20:14:55]Content-Length: 677 [20:14:55]Content-Type: application/json [20:14:55] [20:14:55]POST finish read [20:14:55]Found Content-Length = 677 [20:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:55]execute_script... [20:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:55]POST & json_proto [20:14:55]process_json_proto [20:14:55]json parsed OK: [20:14:55]protocol is kg_v1.0 [20:14:55]action value=close_receipt [20:14:55]process_action close_receipt [20:14:55]cmd_close_receipt [20:14:55]MH_GetDate [20:14:55]Write to MH i2c: F0 00 00 7D 0D 79 [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 09 00 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 09 00 7D 0D 00 C1 07 18 67 21 48 4A 65 E1 [20:14:55]GetLastDocTimeStamp 1729627518 [20:14:55]current date 1729628097 [20:14:55]FM_GetShiftState [20:14:55]SAM_PROTO_GetShiftState [20:14:55]wFMCommunicate request_size=4 [20:14:55]MH_SAM_APDU [20:14:55]CAPDU: 80 13 01 00 [20:14:55]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:56]Read from MH i2c: E2 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5B [20:14:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:14:56]wFMCommunicate OK [20:14:56]SAM_PROTO_GetShiftState done [20:14:56]FM_GetShiftState done [20:14:56]opened in 1729557463 [20:14:56]opened+sec_in_day 1729643863 [20:14:56]quantity*price = 59942 [20:14:56]sum+1 = 59943 [20:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.30 НДС 12% : 63.65 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 286 22.10.2024 20:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166531 ФПД: 126562404274300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166531&fm=126562404274300&tin=02508201610067®Number=0000000000091764&sum=59900 [20:14:57]StoreToDocumentArchive [20:14:57]shift 536 fd 166531 [20:14:57]save to /storage/0536/doc_00166531 [20:14:57]save last doc name /storage/0536/doc_00166531 to /storage/kkm_last_doc_name [20:14:57]save OK [20:14:57]Clear old archive folders... [20:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:57]tlvbuf is 01255CF0 [20:14:57]SAM_PROTO_ClearQueue [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 09 00 00 [20:14:57]Write to MH i2c: E2 08 00 8B 0D 80 09 00 00 00 00 00 00 0A [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_ClearQueue done [20:14:57]KKMCreateOFDPacket [20:14:57]OFDProtocolAddRootSTLVToBuf [20:14:57]FM_MakeSignedData [20:14:57]FM_MakeSignedData [20:14:57]SAM_PROTO_SignData [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 01 02 [20:14:57]Write to MH i2c: E2 08 00 8C 0D 80 0D 01 02 00 00 00 00 12 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=255 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 01 00 00 F4 03 04 00 C1 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8A 02 00 35 04 06 00 73 [20:14:57]Write to MH i2c: E2 02 01 8D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 01 00 00 F4 03 04 00 C1 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8A 02 00 35 04 06 00 73 00 00 67 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=10 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 05 1B 9B 26 10 7C [20:14:57]Write to MH i2c: E2 0D 00 8E 0D 80 0D 02 02 05 00 1B 9B 26 10 7C 00 00 87 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 03 02 [20:14:57]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 8F 0D 00 7A B6 7F E1 DA DA 0D CA 90 00 33 [20:14:57]RAPDU: 7A B6 7F E1 DA DA 0D CA 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_SignData done [20:14:57]FM_MakeSignedData done [20:14:57]CreateOFDProtocolMessage [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 11 00 00 [20:14:57]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [20:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:57]wFMCommunicate OK [20:14:57]CreateOFDProtocolMessage done [20:14:57]OFDSenderStorePacket 166531 [20:14:57]StoreOFDPacket docnum=166531 [20:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA 9F 07 01 09 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 01 00 00 F4 03 04 00 C1 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8A 02 00 35 04 06 00 73 1B 9B 26 10 7C 7A B6 7F E1 DA DA 0D CA [20:14:57]CheckFolder [20:14:57]dirname=/storage/ofd_packets [20:14:57]CheckFolder done [20:14:57]ProducePacketName [20:14:57]name=ofd_packets/00166531 [20:14:57]NVStorageSaveData ofd_packets/00166531 [20:14:57]File name is /storage/ofd_packets/00166531 [20:14:57]Write 301 bytes [20:14:57]NVStorageSaveData done [20:14:57]OFDSenderStorePacket done [20:14:57]KKMCreateOFDPacket done [20:14:57]NVStorageSaveData kkm_last_timestamp [20:14:57]File name is /storage/kkm_last_timestamp [20:14:57]Write 4 bytes [20:14:57]NVStorageSaveData done [20:14:57]ExternCall_PrintAddStr [20:14:57]wPrintStart [20:14:57]Write to MH i2c: 01 00 00 91 0D 9E [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [20:14:57]RasterBufferAndPrint [20:14:57]line Счет N : (1)221112 [20:14:57]line ИНН: 02508201610067 [20:14:57]line Контрольно-Кассовый Чек [20:14:57]line ПРОДАЖА [20:14:57]line ТРК (МРК, ГНК) : 13 [20:14:57]line Товар: 2710124130 [20:14:57]line Аи-92-К-5 [20:14:57]line 8.960 * 66.90 [20:14:57]line = 599.42 [20:14:57]line НДС 12% НСП 1% [20:14:57]line > о реализуемом товаре [20:14:57]line ОКРУГЛЕНИЕ: -0.42 [20:14:57]line ИТОГО: 599.00 [20:14:57]line Внесено: 600.00 [20:14:57]line СДАЧА: 1.00 [20:14:57]line НСП 1% : 5.30 [20:14:57]line НДС 12% : 63.65 [20:14:57]line Наличными: 599.00 [20:14:57]line Безнал.: 0.00 [20:14:57]line Место: АЗС № 161 "Партнер Нефть" [20:14:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:14:57]line СНО: Общий режим [20:14:57]line Чек 286 22.10.2024 20:14 [20:14:57]line Смена: 536 ФФД: 1.0 [20:14:57]line ЗНМ: 0300000104 [20:14:57]line РНМ: 0000000000091764 [20:14:57]line Версия ККМ: 001 [20:14:57]line ФМ: 0000000000871759 [20:14:57]line ФД: 166531 [20:14:57]line ФПД: 126562404274300 [20:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166531&fm=126562404274300&tin=02508201610067®Number=0000000000091764&sum=59900 [20:14:58]OFD Sender: Processing packet 166531 [packets to send 48, broken 47] [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00166531 [20:14:58]OFD Sender: To server: pG, [20:14:58]CommunicateWithHost lk.salyk.kg:30040 [20:14:58]ConnectInit lk.salyk.kg [20:14:58]written 0, free lines is 4095 [20:14:58]Connected sock=10 [20:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CA 9F 07 01 09 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 01 00 00 F4 03 04 00 C1 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8A 02 00 35 04 06 00 73 1B 9B 26 10 7C 7A B6 7F E1 DA DA 0D CA [20:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E8 A5 47 00 8A 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 8A 02 00 F4 03 04 00 2B AE 17 67 B6 04 01 00 00 19 D1 A6 11 0E 40 D2 AF [20:14:58]CommunicateWithHost err = 0 [20:14:58]CheckOFDResponse [20:14:58]1017 (14) - 77093643461234 [20:14:58]1041 (16) - 0000000000871759 [20:14:58]1040 (4) - 166531 [20:14:58]1012 (4) - 22.10.2024 13:52 [20:14:58]1206 (1) - 0 [20:14:58]OFD Sender: Remove packet 166531 [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00166531 [20:14:58]NVStorageDeleteData [20:14:58]Write to MH i2c: 01 00 00 BC 0D C9 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 B2 0C 8E [20:14:58]RasterBufferAndPrint [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]written 0, free lines is 3257 [20:14:58]MH_Cut [20:14:58]Write to MH i2c: D1 01 00 C3 0D 01 A2 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 C3 0D 00 A1 [20:14:58]Write to MH i2c: 01 00 00 C4 0D D1 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]OFD Sender: No OFD packet to send [20:14:59]*** Cut start [20:14:59]*** Partial cut [20:14:59]*** CUTSNS_PIN = 1 [20:14:59]*** CUTSNS_PIN = 0 [20:14:59]*** Brake cut motor [20:14:59]Read from MH i2c: 01 [20:14:59]MH_I2C_Read... [20:14:59]*** Stop cut motor [20:14:59]*** Cut end [20:14:59]Read from MH i2c: 01 07 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [20:14:59]process_action close_receipt done [20:14:59]requested_data is exist [20:14:59]produce_requested_data [20:14:59]requested_item fm.sn is exist - process it [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 11 00 00 [20:14:59]Write to MH i2c: E2 08 00 C5 0D 80 11 00 00 00 00 00 00 4C [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 C5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [20:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:15:00]wFMCommunicate OK [20:15:00]requested_item fd.num is exist - process it [20:15:00]SAM_PROTO_GetFieldsCounters [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 00 00 [20:15:00]Write to MH i2c: E2 08 00 C6 0D 80 13 00 00 00 00 00 00 4F [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 C6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetFieldsCounters done [20:15:00]requested_item shift.num is exist - process it [20:15:00]requested_item shift.opened is exist - process it [20:15:00]req_shift_opened [20:15:00]FM_GetShiftState [20:15:00]SAM_PROTO_GetShiftState [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 01 00 [20:15:00]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A4 [20:15:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetShiftState done [20:15:00]FM_GetShiftState done [20:15:00]req_shift_opened done [20:15:00]requested_item shift.open_date is exist - process it [20:15:00]req_shift_open_date [20:15:00]req_shift_open_date done [20:15:00]produce_requested_data done [20:15:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166531,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:15:00]process_action_free close_receipt [20:15:00]json_value_free [20:15:00]json_value_free done [20:15:00]process_json_proto returns [20:15:00]Send response to host [20:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166531,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:15:00]free response buf [20:15:00]execute_script done [20:15:00]execute_script returns [20:15:00]free content buf [20:15:00]Sock 9.Close socket [20:15:00]Sock 9.Thread stoped [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:11]accept exits with 7 [20:15:11]New connection [20:15:11]New thread 3067489636 created [20:15:11]Thread 3067632996 joined [20:15:11]Waiting for new connection... [20:15:11] Sock 7.Parse request [20:15:11]Sock 7.Check first char [20:15:11]Sock 7.First char is OK [20:15:11]request: POST /json_proto HTTP/1.0 [20:15:11]Method: POST [20:15:11]URL: /json_proto [20:15:11]Method is POST - this is cgi request [20:15:11]url: /json_proto [20:15:11]query_string will be loaded in cgi processing [20:15:11]execute_cgi json_proto POST (null) [20:15:11]execute_cgi path=json_proto method=POST [20:15:11]POST find Content-Length [20:15:11]Host: 172.17.53.195:8080 [20:15:11]Content-Length: 675 [20:15:11]Content-Type: application/json [20:15:11] [20:15:11]POST finish read [20:15:11]Found Content-Length = 675 [20:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.880, "sum" : 905.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:11]execute_script... [20:15:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.880, "sum" : 905.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:11]POST & json_proto [20:15:11]process_json_proto [20:15:11]json parsed OK: [20:15:11]protocol is kg_v1.0 [20:15:11]action value=close_receipt [20:15:11]process_action close_receipt [20:15:11]cmd_close_receipt [20:15:11]MH_GetDate [20:15:11]Write to MH i2c: F0 00 00 C8 0D C4 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 09 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: F0 09 00 C8 0D 00 D0 07 18 67 21 48 4A 65 3B [20:15:11]GetLastDocTimeStamp 1729628097 [20:15:11]current date 1729628112 [20:15:11]FM_GetShiftState [20:15:11]SAM_PROTO_GetShiftState [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 13 01 00 [20:15:11]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A6 [20:15:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:15:11]wFMCommunicate OK [20:15:11]SAM_PROTO_GetShiftState done [20:15:11]FM_GetShiftState done [20:15:11]opened in 1729557463 [20:15:11]opened+sec_in_day 1729643863 [20:15:11]quantity*price = 90525 [20:15:11]sum+1 = 90527 [20:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 905.00 Внесено: 905.00 СДАЧА: 0.00 НСП 1% : 8.01 НДС 12% : 96.13 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 287 22.10.2024 20:15 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166532 ФПД: 246990724384395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166532&fm=246990724384395&tin=02508201610067®Number=0000000000091764&sum=90500 [20:15:12]StoreToDocumentArchive [20:15:12]shift 536 fd 166532 [20:15:12]save to /storage/0536/doc_00166532 [20:15:12]save last doc name /storage/0536/doc_00166532 to /storage/kkm_last_doc_name [20:15:12]save OK [20:15:12]Clear old archive folders... [20:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:12]tlvbuf is B6FFED30 [20:15:12]SAM_PROTO_ClearQueue [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 09 00 00 [20:15:12]Write to MH i2c: E2 08 00 D6 0D 80 09 00 00 00 00 00 00 55 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_ClearQueue done [20:15:12]KKMCreateOFDPacket [20:15:12]OFDProtocolAddRootSTLVToBuf [20:15:12]FM_MakeSignedData [20:15:12]FM_MakeSignedData [20:15:12]SAM_PROTO_SignData [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 01 02 [20:15:12]Write to MH i2c: E2 08 00 D7 0D 80 0D 01 02 00 00 00 00 5D [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=255 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D0 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8A 02 00 35 04 06 00 E0 A3 02 63 [20:15:12]Write to MH i2c: E2 02 01 D8 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D0 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8A 02 00 35 04 06 00 E0 A3 02 63 00 00 62 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=7 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 02 02 02 C6 8B [20:15:12]Write to MH i2c: E2 0A 00 D9 0D 80 0D 02 02 02 00 C6 8B 00 00 B5 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 03 02 [20:15:12]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 DA 0D 00 7B 4C D9 E9 97 AD 1B 19 90 00 64 [20:15:12]RAPDU: 7B 4C D9 E9 97 AD 1B 19 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_SignData done [20:15:12]FM_MakeSignedData done [20:15:12]CreateOFDProtocolMessage [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 11 00 00 [20:15:12]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [20:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:15:12]wFMCommunicate OK [20:15:12]CreateOFDProtocolMessage done [20:15:12]OFDSenderStorePacket 166532 [20:15:12]StoreOFDPacket docnum=166532 [20:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7B 44 04 01 E6 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D0 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8A 02 00 35 04 06 00 E0 A3 02 63 C6 8B 7B 4C D9 E9 97 AD 1B 19 [20:15:12]CheckFolder [20:15:12]dirname=/storage/ofd_packets [20:15:12]CheckFolder done [20:15:12]ProducePacketName [20:15:12]name=ofd_packets/00166532 [20:15:12]NVStorageSaveData ofd_packets/00166532 [20:15:12]File name is /storage/ofd_packets/00166532 [20:15:12]Write 298 bytes [20:15:12]NVStorageSaveData done [20:15:12]OFDSenderStorePacket done [20:15:12]KKMCreateOFDPacket done [20:15:12]NVStorageSaveData kkm_last_timestamp [20:15:12]File name is /storage/kkm_last_timestamp [20:15:12]Write 4 bytes [20:15:12]NVStorageSaveData done [20:15:12]ExternCall_PrintAddStr [20:15:12]wPrintStart [20:15:12]Write to MH i2c: 01 00 00 DC 0D E9 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [20:15:12]RasterBufferAndPrint [20:15:12]line Счет N : (1)221113 [20:15:12]line ИНН: 02508201610067 [20:15:12]line Контрольно-Кассовый Чек [20:15:12]line ПРОДАЖА [20:15:12]line ТРК (МРК, ГНК) : 21 [20:15:12]line Товар: 2710194210 [20:15:12]line ДТ-К-5 [20:15:12]line 11.880 * 76.20 [20:15:12]line = 905.26 [20:15:12]line НДС 12% НСП 1% [20:15:12]line > о реализуемом товаре [20:15:12]line ОКРУГЛЕНИЕ: -0.26 [20:15:12]line ИТОГО: 905.00 [20:15:12]line Внесено: 905.00 [20:15:12]line СДАЧА: 0.00 [20:15:12]line НСП 1% : 8.01 [20:15:12]line НДС 12% : 96.13 [20:15:12]line Наличными: 905.00 [20:15:12]line Безнал.: 0.00 [20:15:12]line Место: АЗС № 161 "Партнер Нефть" [20:15:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:15:12]line СНО: Общий режим [20:15:12]line Чек 287 22.10.2024 20:15 [20:15:12]line Смена: 536 ФФД: 1.0 [20:15:12]line ЗНМ: 0300000104 [20:15:12]line РНМ: 0000000000091764 [20:15:12]line Версия ККМ: 001 [20:15:12]line ФМ: 0000000000871759 [20:15:12]line ФД: 166532 [20:15:12]line ФПД: 246990724384395 [20:15:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166532&fm=246990724384395&tin=02508201610067®Number=0000000000091764&sum=90500 [20:15:13]OFD Sender: Processing packet 166532 [packets to send 48, broken 47] [20:15:13]ProducePacketName [20:15:13]name=ofd_packets/00166532 [20:15:13]OFD Sender: To server: pG, [20:15:13]CommunicateWithHost lk.salyk.kg:30040 [20:15:13]ConnectInit lk.salyk.kg [20:15:13]written 0, free lines is 4095 [20:15:13]Connected sock=10 [20:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7B 44 04 01 E6 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D0 07 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8A 02 00 35 04 06 00 E0 A3 02 63 C6 8B 7B 4C D9 E9 97 AD 1B 19 [20:15:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 D1 47 00 B0 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 8A 02 00 F4 03 04 00 3A AE 17 67 B6 04 01 00 00 E4 00 30 E8 7B 49 F5 A2 [20:15:13]CommunicateWithHost err = 0 [20:15:13]CheckOFDResponse [20:15:13]1017 (14) - 77093643461234 [20:15:13]1041 (16) - 0000000000871759 [20:15:13]1040 (4) - 166532 [20:15:13]1012 (4) - 22.10.2024 13:52 [20:15:13]1206 (1) - 0 [20:15:13]OFD Sender: Remove packet 166532 [20:15:13]ProducePacketName [20:15:13]name=ofd_packets/00166532 [20:15:13]NVStorageDeleteData [20:15:13]Write to MH i2c: 01 00 00 07 0E 15 [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 BF 0C E7 [20:15:13]RasterBufferAndPrint [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]written 0, free lines is 3269 [20:15:13]MH_Cut [20:15:13]Write to MH i2c: D1 01 00 0E 0E 01 EE [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 0E 0E 00 ED [20:15:13]Write to MH i2c: 01 00 00 0F 0E 1D [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]OFD Sender: No OFD packet to send [20:15:14]*** Cut start [20:15:14]*** Partial cut [20:15:14]*** CUTSNS_PIN = 1 [20:15:14]*** CUTSNS_PIN = 0 [20:15:14]*** Brake cut motor [20:15:15]Read from MH i2c: 01 [20:15:15]MH_I2C_Read... [20:15:15]*** Stop cut motor [20:15:15]*** Cut end [20:15:15]Read from MH i2c: 01 07 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [20:15:15]process_action close_receipt done [20:15:15]requested_data is exist [20:15:15]produce_requested_data [20:15:15]requested_item fm.sn is exist - process it [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 11 00 00 [20:15:15]Write to MH i2c: E2 08 00 10 0E 80 11 00 00 00 00 00 00 98 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 10 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [20:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:15:15]wFMCommunicate OK [20:15:15]requested_item fd.num is exist - process it [20:15:15]SAM_PROTO_GetFieldsCounters [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 00 00 [20:15:15]Write to MH i2c: E2 08 00 11 0E 80 13 00 00 00 00 00 00 9B [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 62 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 62 00 11 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [20:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetFieldsCounters done [20:15:15]requested_item shift.num is exist - process it [20:15:15]requested_item shift.opened is exist - process it [20:15:15]req_shift_opened [20:15:15]FM_GetShiftState [20:15:15]SAM_PROTO_GetShiftState [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 01 00 [20:15:15]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F0 [20:15:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetShiftState done [20:15:15]FM_GetShiftState done [20:15:15]req_shift_opened done [20:15:15]requested_item shift.open_date is exist - process it [20:15:15]req_shift_open_date [20:15:15]req_shift_open_date done [20:15:15]produce_requested_data done [20:15:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166532,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:15:15]process_action_free close_receipt [20:15:15]json_value_free [20:15:15]json_value_free done [20:15:15]process_json_proto returns [20:15:15]Send response to host [20:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166532,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:15:15]free response buf [20:15:15]execute_script done [20:15:15]execute_script returns [20:15:15]free content buf [20:15:15]Sock 7.Close socket [20:15:15]Sock 7.Thread stoped [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]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]accept exits with 9 [20:21:59]New connection [20:21:59]New thread 3067632996 created [20:21:59]Thread 3067489636 joined [20:21:59]Waiting for new connection... [20:21:59] Sock 9.Parse request [20:21:59]Sock 9.Check first char [20:21:59]Sock 9.First char is OK [20:21:59]request: POST /json_proto HTTP/1.0 [20:21:59]Method: POST [20:21:59]URL: /json_proto [20:21:59]Method is POST - this is cgi request [20:21:59]url: /json_proto [20:21:59]query_string will be loaded in cgi processing [20:21:59]execute_cgi json_proto POST (null) [20:21:59]execute_cgi path=json_proto method=POST [20:21:59]POST find Content-Length [20:21:59]Host: 172.17.53.195:8080 [20:21:59]Content-Length: 679 [20:21:59]Content-Type: application/json [20:21:59] [20:21:59]POST finish read [20:21:59]Found Content-Length = 679 [20:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:59]execute_script... [20:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:59]POST & json_proto [20:21:59]process_json_proto [20:21:59]json parsed OK: [20:21:59]protocol is kg_v1.0 [20:21:59]action value=close_receipt [20:21:59]process_action close_receipt [20:21:59]cmd_close_receipt [20:21:59]MH_GetDate [20:21:59]Write to MH i2c: F0 00 00 13 0E 10 [20:21:59]Write i2c OK [20:21:59]MH_I2C_Read... [20:21:59]Read from MH i2c: F0 [20:21:59]MH_I2C_Read... [20:21:59]Read from MH i2c: F0 09 00 [20:21:59]MH_I2C_Read... [20:21:59]Read from MH i2c: F0 09 00 13 0E 00 68 09 18 67 21 48 4A 65 21 [20:21:59]GetLastDocTimeStamp 1729628112 [20:21:59]current date 1729628520 [20:21:59]FM_GetShiftState [20:21:59]SAM_PROTO_GetShiftState [20:21:59]wFMCommunicate request_size=4 [20:21:59]MH_SAM_APDU [20:21:59]CAPDU: 80 13 01 00 [20:21:59]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [20:21:59]Write i2c OK [20:21:59]MH_I2C_Read... [20:21:59]OFD Sender: No OFD packet to send [20:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:59]Read from MH i2c: E2 [20:21:59]MH_I2C_Read... [20:21:59]Read from MH i2c: E2 0E 00 [20:21:59]MH_I2C_Read... [20:21:59]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F2 [20:21:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:21:59]wFMCommunicate OK [20:21:59]SAM_PROTO_GetShiftState done [20:21:59]FM_GetShiftState done [20:21:59]opened in 1729557463 [20:21:59]opened+sec_in_day 1729643863 [20:21:59]quantity*price = 120015 [20:21:59]sum+1 = 120016 [20:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 288 22.10.2024 20:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166533 ФПД: 244827768938080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166533&fm=244827768938080&tin=02508201610067®Number=0000000000091764&sum=120000 [20:22:00]StoreToDocumentArchive [20:22:00]shift 536 fd 166533 [20:22:00]save to /storage/0536/doc_00166533 [20:22:00]save last doc name /storage/0536/doc_00166533 to /storage/kkm_last_doc_name [20:22:00]save OK [20:22:00]Clear old archive folders... [20:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:22:00]tlvbuf is 01213620 [20:22:00]SAM_PROTO_ClearQueue [20:22:00]wFMCommunicate request_size=4 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 09 00 00 [20:22:00]Write to MH i2c: E2 08 00 21 0E 80 09 00 00 00 00 00 00 A1 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [20:22:00]RAPDU: 90 00 [20:22:00]wFMCommunicate OK [20:22:00]SAM_PROTO_ClearQueue done [20:22:00]KKMCreateOFDPacket [20:22:00]OFDProtocolAddRootSTLVToBuf [20:22:00]FM_MakeSignedData [20:22:00]FM_MakeSignedData [20:22:00]SAM_PROTO_SignData [20:22:00]wFMCommunicate request_size=4 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 0D 01 02 [20:22:00]Write to MH i2c: E2 08 00 22 0E 80 0D 01 02 00 00 00 00 A9 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [20:22:00]RAPDU: 90 00 [20:22:00]wFMCommunicate OK [20:22:00]wFMCommunicate request_size=255 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 68 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8A 02 00 35 04 06 00 DE AB 68 32 [20:22:00]Write to MH i2c: E2 02 01 23 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 68 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8A 02 00 35 04 06 00 DE AB 68 32 00 00 02 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [20:22:00]RAPDU: 90 00 [20:22:00]wFMCommunicate OK [20:22:00]wFMCommunicate request_size=7 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 0D 02 02 02 DE 60 [20:22:00]Write to MH i2c: E2 0A 00 24 0E 80 0D 02 02 02 00 DE 60 00 00 EE [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [20:22:00]RAPDU: 90 00 [20:22:00]wFMCommunicate OK [20:22:00]wFMCommunicate request_size=4 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 0D 03 02 [20:22:00]Write to MH i2c: E2 08 00 25 0E 80 0D 03 02 00 00 00 00 AE [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 0B 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 0B 00 25 0E 00 A8 1E E3 46 A5 09 AF C2 90 00 BD [20:22:00]RAPDU: A8 1E E3 46 A5 09 AF C2 90 00 [20:22:00]wFMCommunicate OK [20:22:00]SAM_PROTO_SignData done [20:22:00]FM_MakeSignedData done [20:22:00]CreateOFDProtocolMessage [20:22:00]wFMCommunicate request_size=4 [20:22:00]MH_SAM_APDU [20:22:00]CAPDU: 80 11 00 00 [20:22:00]Write to MH i2c: E2 08 00 26 0E 80 11 00 00 00 00 00 00 AE [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:00]Read from MH i2c: E2 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 17 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: E2 17 00 26 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [20:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:22:00]wFMCommunicate OK [20:22:00]CreateOFDProtocolMessage done [20:22:00]OFDSenderStorePacket 166533 [20:22:00]StoreOFDPacket docnum=166533 [20:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D9 E9 04 01 89 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 68 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8A 02 00 35 04 06 00 DE AB 68 32 DE 60 A8 1E E3 46 A5 09 AF C2 [20:22:00]CheckFolder [20:22:00]dirname=/storage/ofd_packets [20:22:00]CheckFolder done [20:22:00]ProducePacketName [20:22:00]name=ofd_packets/00166533 [20:22:00]NVStorageSaveData ofd_packets/00166533 [20:22:00]File name is /storage/ofd_packets/00166533 [20:22:00]Write 298 bytes [20:22:00]NVStorageSaveData done [20:22:00]OFDSenderStorePacket done [20:22:00]KKMCreateOFDPacket done [20:22:00]NVStorageSaveData kkm_last_timestamp [20:22:00]File name is /storage/kkm_last_timestamp [20:22:00]Write 4 bytes [20:22:00]NVStorageSaveData done [20:22:00]ExternCall_PrintAddStr [20:22:00]wPrintStart [20:22:00]Write to MH i2c: 01 00 00 27 0E 35 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 FF 0F 4A [20:22:00]RasterBufferAndPrint [20:22:00]line Счет N : (1)221114 [20:22:00]line ИНН: 02508201610067 [20:22:00]line Контрольно-Кассовый Чек [20:22:00]line ПРОДАЖА [20:22:00]line ТРК (МРК, ГНК) : 21 [20:22:00]line Товар: 2710194210 [20:22:00]line ДТ-К-5 [20:22:00]line 15.750 * 76.20 [20:22:00]line = 1200.15 [20:22:00]line НДС 12% НСП 1% [20:22:00]line > о реализуемом товаре [20:22:00]line ОКРУГЛЕНИЕ: -0.15 [20:22:00]line ИТОГО: 1200.00 [20:22:00]line Внесено: 1200.00 [20:22:00]line СДАЧА: 0.00 [20:22:00]line НСП 1% : 10.62 [20:22:00]line НДС 12% : 127.45 [20:22:00]line Наличными: 1200.00 [20:22:00]line Безнал.: 0.00 [20:22:00]line Место: АЗС № 161 "Партнер Нефть" [20:22:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:22:00]line СНО: Общий режим [20:22:00]line Чек 288 22.10.2024 20:22 [20:22:00]line Смена: 536 ФФД: 1.0 [20:22:00]line ЗНМ: 0300000104 [20:22:00]line РНМ: 0000000000091764 [20:22:00]line Версия ККМ: 001 [20:22:00]line ФМ: 0000000000871759 [20:22:00]line ФД: 166533 [20:22:00]line ФПД: 244827768938080 [20:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166533&fm=244827768938080&tin=02508201610067®Number=0000000000091764&sum=120000 [20:22:01]OFD Sender: Processing packet 166533 [packets to send 48, broken 47] [20:22:01]ProducePacketName [20:22:01]name=ofd_packets/00166533 [20:22:01]OFD Sender: To server: pG, [20:22:01]CommunicateWithHost lk.salyk.kg:30040 [20:22:01]ConnectInit lk.salyk.kg [20:22:01]written 0, free lines is 4095 [20:22:01]Connected sock=7 [20:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D9 E9 04 01 89 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 68 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8A 02 00 35 04 06 00 DE AB 68 32 DE 60 A8 1E E3 46 A5 09 AF C2 [20:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 16 47 00 49 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 8A 02 00 F4 03 04 00 D2 AF 17 67 B6 04 01 00 00 F9 D8 40 E9 69 78 DC 8D [20:22:01]CommunicateWithHost err = 0 [20:22:01]CheckOFDResponse [20:22:01]1017 (14) - 77093643461234 [20:22:01]1041 (16) - 0000000000871759 [20:22:01]1040 (4) - 166533 [20:22:01]1012 (4) - 22.10.2024 13:59 [20:22:01]1206 (1) - 0 [20:22:01]OFD Sender: Remove packet 166533 [20:22:01]ProducePacketName [20:22:01]name=ofd_packets/00166533 [20:22:01]NVStorageDeleteData [20:22:01]Write to MH i2c: 01 00 00 52 0E 60 [20:22:01]Write i2c OK [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 07 00 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 B4 0C 27 [20:22:01]RasterBufferAndPrint [20:22:01]line [20:22:01]line [20:22:01]line [20:22:01]line [20:22:01]line [20:22:01]written 0, free lines is 3258 [20:22:01]MH_Cut [20:22:01]Write to MH i2c: D1 01 00 59 0E 01 39 [20:22:01]Write i2c OK [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: D1 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: D1 01 00 [20:22:01]MH_I2C_Read... [20:22:01]Read from MH i2c: D1 01 00 59 0E 00 38 [20:22:01]Write to MH i2c: 01 00 00 5A 0E 68 [20:22:01]Write i2c OK [20:22:01]MH_I2C_Read... [20:22:02]OFD Sender: No OFD packet to send [20:22:02]*** Cut start [20:22:02]*** Partial cut [20:22:02]*** CUTSNS_PIN = 1 [20:22:02]*** CUTSNS_PIN = 0 [20:22:02]*** Brake cut motor [20:22:03]Read from MH i2c: 01 [20:22:03]MH_I2C_Read... [20:22:03]*** Stop cut motor [20:22:03]*** Cut end [20:22:03]Read from MH i2c: 01 07 00 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 FF 0F 7D [20:22:03]process_action close_receipt done [20:22:03]requested_data is exist [20:22:03]produce_requested_data [20:22:03]requested_item fm.sn is exist - process it [20:22:03]wFMCommunicate request_size=4 [20:22:03]MH_SAM_APDU [20:22:03]CAPDU: 80 11 00 00 [20:22:03]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [20:22:03]Write i2c OK [20:22:03]MH_I2C_Read... [20:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:03]Read from MH i2c: E2 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 17 00 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 17 00 5B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [20:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:22:03]wFMCommunicate OK [20:22:03]requested_item fd.num is exist - process it [20:22:03]SAM_PROTO_GetFieldsCounters [20:22:03]wFMCommunicate request_size=4 [20:22:03]MH_SAM_APDU [20:22:03]CAPDU: 80 13 00 00 [20:22:03]Write to MH i2c: E2 08 00 5C 0E 80 13 00 00 00 00 00 00 E6 [20:22:03]Write i2c OK [20:22:03]MH_I2C_Read... [20:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:03]Read from MH i2c: E2 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 62 00 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 62 00 5C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [20:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:03]wFMCommunicate OK [20:22:03]SAM_PROTO_GetFieldsCounters done [20:22:03]requested_item shift.num is exist - process it [20:22:03]requested_item shift.opened is exist - process it [20:22:03]req_shift_opened [20:22:03]FM_GetShiftState [20:22:03]SAM_PROTO_GetShiftState [20:22:03]wFMCommunicate request_size=4 [20:22:03]MH_SAM_APDU [20:22:03]CAPDU: 80 13 01 00 [20:22:03]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [20:22:03]Write i2c OK [20:22:03]MH_I2C_Read... [20:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:03]Read from MH i2c: E2 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 0E 00 [20:22:03]MH_I2C_Read... [20:22:03]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3B [20:22:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:22:03]wFMCommunicate OK [20:22:03]SAM_PROTO_GetShiftState done [20:22:03]FM_GetShiftState done [20:22:03]req_shift_opened done [20:22:03]requested_item shift.open_date is exist - process it [20:22:03]req_shift_open_date [20:22:03]req_shift_open_date done [20:22:03]produce_requested_data done [20:22:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166533,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:22:03]process_action_free close_receipt [20:22:03]json_value_free [20:22:03]json_value_free done [20:22:03]process_json_proto returns [20:22:03]Send response to host [20:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166533,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:22:03]free response buf [20:22:03]execute_script done [20:22:03]execute_script returns [20:22:03]free content buf [20:22:03]Sock 9.Close socket [20:22:03]Sock 9.Thread stoped [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:29]accept exits with 10 [20:22:29]New connection [20:22:29]New thread 3067489636 created [20:22:29]Thread 3067632996 joined [20:22:29]Waiting for new connection... [20:22:29] Sock 10.Parse request [20:22:29]Sock 10.Check first char [20:22:29]Sock 10.First char is OK [20:22:29]request: POST /json_proto HTTP/1.0 [20:22:29]Method: POST [20:22:29]URL: /json_proto [20:22:29]Method is POST - this is cgi request [20:22:29]url: /json_proto [20:22:29]query_string will be loaded in cgi processing [20:22:29]execute_cgi json_proto POST (null) [20:22:29]execute_cgi path=json_proto method=POST [20:22:29]POST find Content-Length [20:22:29]Host: 172.17.53.195:8080 [20:22:29]Content-Length: 682 [20:22:29]Content-Type: application/json [20:22:29] [20:22:29]POST finish read [20:22:29]Found Content-Length = 682 [20:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:29]execute_script... [20:22:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:29]POST & json_proto [20:22:29]process_json_proto [20:22:29]json parsed OK: [20:22:29]protocol is kg_v1.0 [20:22:29]action value=close_receipt [20:22:29]process_action close_receipt [20:22:29]cmd_close_receipt [20:22:29]MH_GetDate [20:22:29]Write to MH i2c: F0 00 00 5E 0E 5B [20:22:29]Write i2c OK [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: F0 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: F0 09 00 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: F0 09 00 5E 0E 00 86 09 18 67 21 48 4A 65 8A [20:22:29]GetLastDocTimeStamp 1729628520 [20:22:29]current date 1729628550 [20:22:29]FM_GetShiftState [20:22:29]SAM_PROTO_GetShiftState [20:22:29]wFMCommunicate request_size=4 [20:22:29]MH_SAM_APDU [20:22:29]CAPDU: 80 13 01 00 [20:22:29]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [20:22:29]Write i2c OK [20:22:29]MH_I2C_Read... [20:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:29]Read from MH i2c: E2 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 0E 00 [20:22:29]MH_I2C_Read... [20:22:29]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [20:22:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:22:29]wFMCommunicate OK [20:22:29]SAM_PROTO_GetShiftState done [20:22:29]FM_GetShiftState done [20:22:29]opened in 1729557463 [20:22:29]opened+sec_in_day 1729643863 [20:22:29]quantity*price = 100015 [20:22:29]sum+1 = 100017 [20:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 289 22.10.2024 20:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166534 ФПД: 132603893938746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202230&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166534&fm=132603893938746&tin=02508201610067®Number=0000000000091764&sum=100000 [20:22:30]StoreToDocumentArchive [20:22:30]shift 536 fd 166534 [20:22:30]save to /storage/0536/doc_00166534 [20:22:30]save last doc name /storage/0536/doc_00166534 to /storage/kkm_last_doc_name [20:22:30]save OK [20:22:30]Clear old archive folders... [20:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:30]tlvbuf is 01293E30 [20:22:30]SAM_PROTO_ClearQueue [20:22:30]wFMCommunicate request_size=4 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 09 00 00 [20:22:30]Write to MH i2c: E2 08 00 6C 0E 80 09 00 00 00 00 00 00 EC [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [20:22:30]RAPDU: 90 00 [20:22:30]wFMCommunicate OK [20:22:30]SAM_PROTO_ClearQueue done [20:22:30]KKMCreateOFDPacket [20:22:30]OFDProtocolAddRootSTLVToBuf [20:22:30]FM_MakeSignedData [20:22:30]FM_MakeSignedData [20:22:30]SAM_PROTO_SignData [20:22:30]wFMCommunicate request_size=4 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 0D 01 02 [20:22:30]Write to MH i2c: E2 08 00 6D 0E 80 0D 01 02 00 00 00 00 F4 [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:30]Read from MH i2c: E2 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [20:22:30]RAPDU: 90 00 [20:22:30]wFMCommunicate OK [20:22:30]wFMCommunicate request_size=255 [20:22:30]MH_SAM_APDU [20:22:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 86 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8A 02 00 35 04 06 00 78 [20:22:30]Write to MH i2c: E2 02 01 6E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 86 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8A 02 00 35 04 06 00 78 00 00 58 [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:31]Read from MH i2c: E2 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 03 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [20:22:31]RAPDU: 90 00 [20:22:31]wFMCommunicate OK [20:22:31]wFMCommunicate request_size=10 [20:22:31]MH_SAM_APDU [20:22:31]CAPDU: 80 0D 02 02 05 9A 3F FE 7A 3A [20:22:31]Write to MH i2c: E2 0D 00 6F 0E 80 0D 02 02 05 00 9A 3F FE 7A 3A 00 00 8C [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:31]Read from MH i2c: E2 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 03 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [20:22:31]RAPDU: 90 00 [20:22:31]wFMCommunicate OK [20:22:31]wFMCommunicate request_size=4 [20:22:31]MH_SAM_APDU [20:22:31]CAPDU: 80 0D 03 02 [20:22:31]Write to MH i2c: E2 08 00 70 0E 80 0D 03 02 00 00 00 00 F9 [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:31]Read from MH i2c: E2 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 0B 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 0B 00 70 0E 00 C2 C6 9A 2D 4A DB D2 57 90 00 97 [20:22:31]RAPDU: C2 C6 9A 2D 4A DB D2 57 90 00 [20:22:31]wFMCommunicate OK [20:22:31]SAM_PROTO_SignData done [20:22:31]FM_MakeSignedData done [20:22:31]CreateOFDProtocolMessage [20:22:31]wFMCommunicate request_size=4 [20:22:31]MH_SAM_APDU [20:22:31]CAPDU: 80 11 00 00 [20:22:31]Write to MH i2c: E2 08 00 71 0E 80 11 00 00 00 00 00 00 F9 [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:31]Read from MH i2c: E2 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 17 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: E2 17 00 71 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [20:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:22:31]wFMCommunicate OK [20:22:31]CreateOFDProtocolMessage done [20:22:31]OFDSenderStorePacket 166534 [20:22:31]StoreOFDPacket docnum=166534 [20:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AD B6 07 01 38 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 86 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8A 02 00 35 04 06 00 78 9A 3F FE 7A 3A C2 C6 9A 2D 4A DB D2 57 [20:22:31]CheckFolder [20:22:31]dirname=/storage/ofd_packets [20:22:31]CheckFolder done [20:22:31]ProducePacketName [20:22:31]name=ofd_packets/00166534 [20:22:31]NVStorageSaveData ofd_packets/00166534 [20:22:31]File name is /storage/ofd_packets/00166534 [20:22:31]Write 301 bytes [20:22:31]NVStorageSaveData done [20:22:31]OFDSenderStorePacket done [20:22:31]KKMCreateOFDPacket done [20:22:31]NVStorageSaveData kkm_last_timestamp [20:22:31]File name is /storage/kkm_last_timestamp [20:22:31]Write 4 bytes [20:22:31]NVStorageSaveData done [20:22:31]ExternCall_PrintAddStr [20:22:31]wPrintStart [20:22:31]Write to MH i2c: 01 00 00 72 0E 80 [20:22:31]Write i2c OK [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 [20:22:31]MH_I2C_Read... [20:22:31]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [20:22:31]RasterBufferAndPrint [20:22:31]line Счет N : (1)221115 [20:22:31]line ИНН: 02508201610067 [20:22:31]line Контрольно-Кассовый Чек [20:22:31]line ПРОДАЖА [20:22:31]line ТРК (МРК, ГНК) : 43 [20:22:31]line Товар: 2710124130 [20:22:31]line Аи-92-К-5 [20:22:31]line 14.950 * 66.90 [20:22:31]line = 1000.16 [20:22:31]line НДС 12% НСП 1% [20:22:31]line > о реализуемом товаре [20:22:31]line ОКРУГЛЕНИЕ: -0.16 [20:22:31]line ИТОГО: 1000.00 [20:22:31]line Внесено: 1000.00 [20:22:31]line СДАЧА: 0.00 [20:22:31]line НСП 1% : 8.85 [20:22:31]line НДС 12% : 106.21 [20:22:31]line Наличными: 1000.00 [20:22:31]line Безнал.: 0.00 [20:22:31]line Место: АЗС № 161 "Партнер Нефть" [20:22:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:22:31]line СНО: Общий режим [20:22:31]line Чек 289 22.10.2024 20:22 [20:22:31]line Смена: 536 ФФД: 1.0 [20:22:31]line ЗНМ: 0300000104 [20:22:31]line РНМ: 0000000000091764 [20:22:31]line Версия ККМ: 001 [20:22:31]line ФМ: 0000000000871759 [20:22:31]line ФД: 166534 [20:22:31]line ФПД: 132603893938746 [20:22:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202230&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166534&fm=132603893938746&tin=02508201610067®Number=0000000000091764&sum=100000 [20:22:31]OFD Sender: Processing packet 166534 [packets to send 48, broken 47] [20:22:31]ProducePacketName [20:22:31]name=ofd_packets/00166534 [20:22:31]OFD Sender: To server: pG, [20:22:31]CommunicateWithHost lk.salyk.kg:30040 [20:22:31]ConnectInit lk.salyk.kg [20:22:31]written 0, free lines is 4095 [20:22:31]Connected sock=9 [20:22:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AD B6 07 01 38 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 86 09 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8A 02 00 35 04 06 00 78 9A 3F FE 7A 3A C2 C6 9A 2D 4A DB D2 57 [20:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD B7 47 00 06 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 8A 02 00 F4 03 04 00 F0 AF 17 67 B6 04 01 00 00 0C 1F 27 BA 1A 2B 5A EC [20:22:31]CommunicateWithHost err = 0 [20:22:31]CheckOFDResponse [20:22:31]1017 (14) - 77093643461234 [20:22:31]1041 (16) - 0000000000871759 [20:22:31]1040 (4) - 166534 [20:22:31]1012 (4) - 22.10.2024 14:00 [20:22:31]1206 (1) - 0 [20:22:31]OFD Sender: Remove packet 166534 [20:22:31]ProducePacketName [20:22:31]name=ofd_packets/00166534 [20:22:31]NVStorageDeleteData [20:22:32]Write to MH i2c: 01 00 00 9D 0E AB [20:22:32]Write i2c OK [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: 01 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: 01 07 00 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 C0 0C 7E [20:22:32]RasterBufferAndPrint [20:22:32]line [20:22:32]line [20:22:32]line [20:22:32]line [20:22:32]line [20:22:32]written 0, free lines is 3269 [20:22:32]MH_Cut [20:22:32]Write to MH i2c: D1 01 00 A4 0E 01 84 [20:22:32]Write i2c OK [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: D1 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: D1 01 00 [20:22:32]MH_I2C_Read... [20:22:32]Read from MH i2c: D1 01 00 A4 0E 00 83 [20:22:32]Write to MH i2c: 01 00 00 A5 0E B3 [20:22:32]Write i2c OK [20:22:32]MH_I2C_Read... [20:22:32]OFD Sender: No OFD packet to send [20:22:32]*** Cut start [20:22:32]*** Partial cut [20:22:32]*** CUTSNS_PIN = 1 [20:22:32]*** CUTSNS_PIN = 0 [20:22:33]*** Brake cut motor [20:22:33]Read from MH i2c: 01 [20:22:33]MH_I2C_Read... [20:22:33]*** Stop cut motor [20:22:33]*** Cut end [20:22:33]Read from MH i2c: 01 07 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: 01 07 00 A5 0E 00 00 00 00 00 FF 0F C8 [20:22:33]process_action close_receipt done [20:22:33]requested_data is exist [20:22:33]produce_requested_data [20:22:33]requested_item fm.sn is exist - process it [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 11 00 00 [20:22:33]Write to MH i2c: E2 08 00 A6 0E 80 11 00 00 00 00 00 00 2E [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 17 00 A6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [20:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:22:33]wFMCommunicate OK [20:22:33]requested_item fd.num is exist - process it [20:22:33]SAM_PROTO_GetFieldsCounters [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 13 00 00 [20:22:33]Write to MH i2c: E2 08 00 A7 0E 80 13 00 00 00 00 00 00 31 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 62 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 62 00 A7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [20:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_GetFieldsCounters done [20:22:33]requested_item shift.num is exist - process it [20:22:33]requested_item shift.opened is exist - process it [20:22:33]req_shift_opened [20:22:33]FM_GetShiftState [20:22:33]SAM_PROTO_GetShiftState [20:22:33]wFMCommunicate request_size=4 [20:22:33]MH_SAM_APDU [20:22:33]CAPDU: 80 13 01 00 [20:22:33]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [20:22:33]Write i2c OK [20:22:33]MH_I2C_Read... [20:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:33]Read from MH i2c: E2 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0E 00 [20:22:33]MH_I2C_Read... [20:22:33]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [20:22:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:22:33]wFMCommunicate OK [20:22:33]SAM_PROTO_GetShiftState done [20:22:33]FM_GetShiftState done [20:22:33]req_shift_opened done [20:22:33]requested_item shift.open_date is exist - process it [20:22:33]req_shift_open_date [20:22:33]req_shift_open_date done [20:22:33]produce_requested_data done [20:22:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166534,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:22:33]process_action_free close_receipt [20:22:33]json_value_free [20:22:33]json_value_free done [20:22:33]process_json_proto returns [20:22:33]Send response to host [20:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166534,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:22:33]free response buf [20:22:33]execute_script done [20:22:33]execute_script returns [20:22:33]free content buf [20:22:33]Sock 10.Close socket [20:22:33]Sock 10.Thread stoped [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:35]accept exits with 7 [20:26:35]New connection [20:26:35]New thread 3067632996 created [20:26:35]Thread 3067489636 joined [20:26:35]Waiting for new connection... [20:26:35] Sock 7.Parse request [20:26:35]Sock 7.Check first char [20:26:35]Sock 7.First char is OK [20:26:35]request: POST /json_proto HTTP/1.0 [20:26:35]Method: POST [20:26:35]URL: /json_proto [20:26:35]Method is POST - this is cgi request [20:26:35]url: /json_proto [20:26:35]query_string will be loaded in cgi processing [20:26:35]execute_cgi json_proto POST (null) [20:26:35]execute_cgi path=json_proto method=POST [20:26:35]POST find Content-Length [20:26:35]Host: 172.17.53.195:8080 [20:26:35]Content-Length: 677 [20:26:35]Content-Type: application/json [20:26:35] [20:26:35]POST finish read [20:26:35]Found Content-Length = 677 [20:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:35]execute_script... [20:26:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:35]POST & json_proto [20:26:35]process_json_proto [20:26:35]json parsed OK: [20:26:35]protocol is kg_v1.0 [20:26:35]action value=close_receipt [20:26:35]process_action close_receipt [20:26:35]cmd_close_receipt [20:26:35]MH_GetDate [20:26:35]Write to MH i2c: F0 00 00 A9 0E A6 [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: F0 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: F0 09 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: F0 09 00 A9 0E 00 7C 0A 18 67 21 48 4A 65 CC [20:26:35]GetLastDocTimeStamp 1729628550 [20:26:35]current date 1729628796 [20:26:35]FM_GetShiftState [20:26:35]SAM_PROTO_GetShiftState [20:26:35]wFMCommunicate request_size=4 [20:26:35]MH_SAM_APDU [20:26:35]CAPDU: 80 13 01 00 [20:26:35]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:35]Read from MH i2c: E2 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 0E 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 88 [20:26:35]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:26:35]wFMCommunicate OK [20:26:35]SAM_PROTO_GetShiftState done [20:26:35]FM_GetShiftState done [20:26:35]opened in 1729557463 [20:26:35]opened+sec_in_day 1729643863 [20:26:35]quantity*price = 50041 [20:26:35]sum+1 = 50042 [20:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 290 22.10.2024 20:26 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166535 ФПД: 223652686439890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166535&fm=223652686439890&tin=02508201610067®Number=0000000000091764&sum=50000 [20:26:36]StoreToDocumentArchive [20:26:36]shift 536 fd 166535 [20:26:36]save to /storage/0536/doc_00166535 [20:26:36]save last doc name /storage/0536/doc_00166535 to /storage/kkm_last_doc_name [20:26:36]save OK [20:26:36]Clear old archive folders... [20:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:36]tlvbuf is 011F5870 [20:26:36]SAM_PROTO_ClearQueue [20:26:36]wFMCommunicate request_size=4 [20:26:36]MH_SAM_APDU [20:26:36]CAPDU: 80 09 00 00 [20:26:36]Write to MH i2c: E2 08 00 B7 0E 80 09 00 00 00 00 00 00 37 [20:26:36]Write i2c OK [20:26:36]MH_I2C_Read... [20:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:36]Read from MH i2c: E2 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: E2 03 00 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [20:26:36]RAPDU: 90 00 [20:26:36]wFMCommunicate OK [20:26:36]SAM_PROTO_ClearQueue done [20:26:36]KKMCreateOFDPacket [20:26:36]OFDProtocolAddRootSTLVToBuf [20:26:36]FM_MakeSignedData [20:26:36]FM_MakeSignedData [20:26:36]SAM_PROTO_SignData [20:26:36]wFMCommunicate request_size=4 [20:26:36]MH_SAM_APDU [20:26:36]CAPDU: 80 0D 01 02 [20:26:36]Write to MH i2c: E2 08 00 B8 0E 80 0D 01 02 00 00 00 00 3F [20:26:36]Write i2c OK [20:26:36]MH_I2C_Read... [20:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:36]Read from MH i2c: E2 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: E2 03 00 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [20:26:36]RAPDU: 90 00 [20:26:36]wFMCommunicate OK [20:26:36]wFMCommunicate request_size=255 [20:26:36]MH_SAM_APDU [20:26:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 7C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8A 02 00 35 04 06 00 CB [20:26:36]Write to MH i2c: E2 02 01 B9 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 7C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8A 02 00 35 04 06 00 CB 00 00 F5 [20:26:36]Write i2c OK [20:26:36]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 03 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [20:26:37]RAPDU: 90 00 [20:26:37]wFMCommunicate OK [20:26:37]wFMCommunicate request_size=10 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 0D 02 02 05 69 32 ED A5 D2 [20:26:37]Write to MH i2c: E2 0D 00 BA 0E 80 0D 02 02 05 00 69 32 ED A5 D2 00 00 4B [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 03 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [20:26:37]RAPDU: 90 00 [20:26:37]wFMCommunicate OK [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 0D 03 02 [20:26:37]Write to MH i2c: E2 08 00 BB 0E 80 0D 03 02 00 00 00 00 44 [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0B 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0B 00 BB 0E 00 53 5C EE 24 F0 BC AA 4E 90 00 AA [20:26:37]RAPDU: 53 5C EE 24 F0 BC AA 4E 90 00 [20:26:37]wFMCommunicate OK [20:26:37]SAM_PROTO_SignData done [20:26:37]FM_MakeSignedData done [20:26:37]CreateOFDProtocolMessage [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 11 00 00 [20:26:37]Write to MH i2c: E2 08 00 BC 0E 80 11 00 00 00 00 00 00 44 [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 17 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 17 00 BC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [20:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:26:37]wFMCommunicate OK [20:26:37]CreateOFDProtocolMessage done [20:26:37]OFDSenderStorePacket 166535 [20:26:37]StoreOFDPacket docnum=166535 [20:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 C3 07 01 F1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 7C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8A 02 00 35 04 06 00 CB 69 32 ED A5 D2 53 5C EE 24 F0 BC AA 4E [20:26:37]CheckFolder [20:26:37]dirname=/storage/ofd_packets [20:26:37]CheckFolder done [20:26:37]ProducePacketName [20:26:37]name=ofd_packets/00166535 [20:26:37]NVStorageSaveData ofd_packets/00166535 [20:26:37]File name is /storage/ofd_packets/00166535 [20:26:37]Write 301 bytes [20:26:37]NVStorageSaveData done [20:26:37]OFDSenderStorePacket done [20:26:37]KKMCreateOFDPacket done [20:26:37]NVStorageSaveData kkm_last_timestamp [20:26:37]File name is /storage/kkm_last_timestamp [20:26:37]Write 4 bytes [20:26:37]NVStorageSaveData done [20:26:37]ExternCall_PrintAddStr [20:26:37]wPrintStart [20:26:37]Write to MH i2c: 01 00 00 BD 0E CB [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: 01 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: 01 07 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 FF 0F E0 [20:26:37]RasterBufferAndPrint [20:26:37]line Счет N : (1)221116 [20:26:37]line ИНН: 02508201610067 [20:26:37]line Контрольно-Кассовый Чек [20:26:37]line ПРОДАЖА [20:26:37]line ТРК (МРК, ГНК) : 23 [20:26:37]line Товар: 2710124130 [20:26:37]line Аи-92-К-5 [20:26:37]line 7.480 * 66.90 [20:26:37]line = 500.41 [20:26:37]line НДС 12% НСП 1% [20:26:37]line > о реализуемом товаре [20:26:37]line ОКРУГЛЕНИЕ: -0.41 [20:26:37]line ИТОГО: 500.00 [20:26:37]line Внесено: 500.00 [20:26:37]line СДАЧА: 0.00 [20:26:37]line НСП 1% : 4.43 [20:26:37]line НДС 12% : 53.14 [20:26:37]line Наличными: 500.00 [20:26:37]line Безнал.: 0.00 [20:26:37]line Место: АЗС № 161 "Партнер Нефть" [20:26:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:26:37]line СНО: Общий режим [20:26:37]line Чек 290 22.10.2024 20:26 [20:26:37]line Смена: 536 ФФД: 1.0 [20:26:37]line ЗНМ: 0300000104 [20:26:37]line РНМ: 0000000000091764 [20:26:37]line Версия ККМ: 001 [20:26:37]line ФМ: 0000000000871759 [20:26:37]line ФД: 166535 [20:26:37]line ФПД: 223652686439890 [20:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202636&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166535&fm=223652686439890&tin=02508201610067®Number=0000000000091764&sum=50000 [20:26:37]OFD Sender: Processing packet 166535 [packets to send 48, broken 47] [20:26:37]ProducePacketName [20:26:37]name=ofd_packets/00166535 [20:26:37]OFD Sender: To server: pG, [20:26:37]CommunicateWithHost lk.salyk.kg:30040 [20:26:37]ConnectInit lk.salyk.kg [20:26:37]written 0, free lines is 4095 [20:26:37]Connected sock=10 [20:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 C3 07 01 F1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 7C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8A 02 00 35 04 06 00 CB 69 32 ED A5 D2 53 5C EE 24 F0 BC AA 4E [20:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 78 BD 47 00 07 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 8A 02 00 F4 03 04 00 E6 B0 17 67 B6 04 01 00 00 AC 3A 05 C3 FD BD 9F 5A [20:26:37]CommunicateWithHost err = 0 [20:26:37]CheckOFDResponse [20:26:37]1017 (14) - 77093643461234 [20:26:37]1041 (16) - 0000000000871759 [20:26:37]1040 (4) - 166535 [20:26:37]1012 (4) - 22.10.2024 14:04 [20:26:37]1206 (1) - 0 [20:26:37]OFD Sender: Remove packet 166535 [20:26:37]ProducePacketName [20:26:37]name=ofd_packets/00166535 [20:26:37]NVStorageDeleteData [20:26:38]Write to MH i2c: 01 00 00 E8 0E F6 [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: 01 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: 01 07 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 B5 0C BE [20:26:38]RasterBufferAndPrint [20:26:38]line [20:26:38]line [20:26:38]line [20:26:38]line [20:26:38]line [20:26:38]written 0, free lines is 3259 [20:26:38]MH_Cut [20:26:38]Write to MH i2c: D1 01 00 EF 0E 01 CF [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: D1 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: D1 01 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: D1 01 00 EF 0E 00 CE [20:26:38]Write to MH i2c: 01 00 00 F0 0E FE [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]OFD Sender: No OFD packet to send [20:26:38]*** Cut start [20:26:38]*** Partial cut [20:26:38]*** CUTSNS_PIN = 1 [20:26:39]*** CUTSNS_PIN = 0 [20:26:39]*** Brake cut motor [20:26:39]Read from MH i2c: 01 [20:26:39]MH_I2C_Read... [20:26:39]*** Stop cut motor [20:26:39]*** Cut end [20:26:39]Read from MH i2c: 01 07 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 FF 0F 13 [20:26:39]process_action close_receipt done [20:26:39]requested_data is exist [20:26:39]produce_requested_data [20:26:39]requested_item fm.sn is exist - process it [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 11 00 00 [20:26:39]Write to MH i2c: E2 08 00 F1 0E 80 11 00 00 00 00 00 00 79 [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 17 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 17 00 F1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [20:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:26:39]wFMCommunicate OK [20:26:39]requested_item fd.num is exist - process it [20:26:39]SAM_PROTO_GetFieldsCounters [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 13 00 00 [20:26:39]Write to MH i2c: E2 08 00 F2 0E 80 13 00 00 00 00 00 00 7C [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 62 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 62 00 F2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [20:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:39]wFMCommunicate OK [20:26:39]SAM_PROTO_GetFieldsCounters done [20:26:39]requested_item shift.num is exist - process it [20:26:39]requested_item shift.opened is exist - process it [20:26:39]req_shift_opened [20:26:39]FM_GetShiftState [20:26:39]SAM_PROTO_GetShiftState [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 13 01 00 [20:26:39]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0E 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D1 [20:26:39]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:26:39]wFMCommunicate OK [20:26:39]SAM_PROTO_GetShiftState done [20:26:39]FM_GetShiftState done [20:26:39]req_shift_opened done [20:26:39]requested_item shift.open_date is exist - process it [20:26:39]req_shift_open_date [20:26:39]req_shift_open_date done [20:26:39]produce_requested_data done [20:26:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166535,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:26:39]process_action_free close_receipt [20:26:39]json_value_free [20:26:39]json_value_free done [20:26:39]process_json_proto returns [20:26:39]Send response to host [20:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166535,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:26:39]free response buf [20:26:39]execute_script done [20:26:39]execute_script returns [20:26:39]free content buf [20:26:39]Sock 7.Close socket [20:26:39]Sock 7.Thread stoped [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:06]accept exits with 9 [20:27:06]New connection [20:27:06]New thread 3067489636 created [20:27:06]Thread 3067632996 joined [20:27:06]Waiting for new connection... [20:27:06] Sock 9.Parse request [20:27:06]Sock 9.Check first char [20:27:06]Sock 9.First char is OK [20:27:06]request: POST /json_proto HTTP/1.0 [20:27:06]Method: POST [20:27:06]URL: /json_proto [20:27:06]Method is POST - this is cgi request [20:27:06]url: /json_proto [20:27:06]query_string will be loaded in cgi processing [20:27:06]execute_cgi json_proto POST (null) [20:27:06]execute_cgi path=json_proto method=POST [20:27:06]POST find Content-Length [20:27:06]Host: 172.17.53.195:8080 [20:27:06]Content-Length: 677 [20:27:06]Content-Type: application/json [20:27:06] [20:27:06]POST finish read [20:27:06]Found Content-Length = 677 [20:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:06]execute_script... [20:27:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:06]POST & json_proto [20:27:06]process_json_proto [20:27:06]json parsed OK: [20:27:06]protocol is kg_v1.0 [20:27:06]action value=close_receipt [20:27:06]process_action close_receipt [20:27:06]cmd_close_receipt [20:27:06]MH_GetDate [20:27:06]Write to MH i2c: F0 00 00 F4 0E F1 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: F0 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: F0 09 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: F0 09 00 F4 0E 00 9B 0A 18 67 21 48 4A 65 36 [20:27:06]GetLastDocTimeStamp 1729628796 [20:27:06]current date 1729628827 [20:27:06]FM_GetShiftState [20:27:06]SAM_PROTO_GetShiftState [20:27:06]wFMCommunicate request_size=4 [20:27:06]MH_SAM_APDU [20:27:06]CAPDU: 80 13 01 00 [20:27:06]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 0E 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D3 [20:27:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:27:06]wFMCommunicate OK [20:27:06]SAM_PROTO_GetShiftState done [20:27:06]FM_GetShiftState done [20:27:06]opened in 1729557463 [20:27:06]opened+sec_in_day 1729643863 [20:27:06]quantity*price = 49974 [20:27:06]sum+1 = 49975 [20:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 291 22.10.2024 20:27 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166536 ФПД: 170037452440332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166536&fm=170037452440332&tin=02508201610067®Number=0000000000091764&sum=49900 [20:27:08]StoreToDocumentArchive [20:27:08]shift 536 fd 166536 [20:27:08]save to /storage/0536/doc_00166536 [20:27:08]save last doc name /storage/0536/doc_00166536 to /storage/kkm_last_doc_name [20:27:08]save OK [20:27:08]Clear old archive folders... [20:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:08]tlvbuf is 01213D80 [20:27:08]SAM_PROTO_ClearQueue [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 09 00 00 [20:27:08]Write to MH i2c: E2 08 00 02 0F 80 09 00 00 00 00 00 00 83 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [20:27:08]RAPDU: 90 00 [20:27:08]wFMCommunicate OK [20:27:08]SAM_PROTO_ClearQueue done [20:27:08]KKMCreateOFDPacket [20:27:08]OFDProtocolAddRootSTLVToBuf [20:27:08]FM_MakeSignedData [20:27:08]FM_MakeSignedData [20:27:08]SAM_PROTO_SignData [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 0D 01 02 [20:27:08]Write to MH i2c: E2 08 00 03 0F 80 0D 01 02 00 00 00 00 8B [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [20:27:08]RAPDU: 90 00 [20:27:08]wFMCommunicate OK [20:27:08]wFMCommunicate request_size=255 [20:27:08]MH_SAM_APDU [20:27: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8A 02 00 35 04 06 00 9A [20:27:08]Write to MH i2c: E2 02 01 04 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8A 02 00 35 04 06 00 9A 00 00 13 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [20:27:08]RAPDU: 90 00 [20:27:08]wFMCommunicate OK [20:27:08]wFMCommunicate request_size=10 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 0D 02 02 05 A5 ED F3 83 0C [20:27:08]Write to MH i2c: E2 0D 00 05 0F 80 0D 02 02 05 00 A5 ED F3 83 0C 00 00 AC [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [20:27:08]RAPDU: 90 00 [20:27:08]wFMCommunicate OK [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 0D 03 02 [20:27:08]Write to MH i2c: E2 08 00 06 0F 80 0D 03 02 00 00 00 00 90 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]OFD Sender: No OFD packet to send [20:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 0B 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 0B 00 06 0F 00 22 91 4C F6 87 90 47 73 90 00 57 [20:27:08]RAPDU: 22 91 4C F6 87 90 47 73 90 00 [20:27:08]wFMCommunicate OK [20:27:08]SAM_PROTO_SignData done [20:27:08]FM_MakeSignedData done [20:27:08]CreateOFDProtocolMessage [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 11 00 00 [20:27:08]Write to MH i2c: E2 08 00 07 0F 80 11 00 00 00 00 00 00 90 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 17 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 17 00 07 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [20:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:27:08]wFMCommunicate OK [20:27:08]CreateOFDProtocolMessage done [20:27:08]OFDSenderStorePacket 166536 [20:27:08]StoreOFDPacket docnum=166536 [20:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 76 07 01 EE 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8A 02 00 35 04 06 00 9A A5 ED F3 83 0C 22 91 4C F6 87 90 47 73 [20:27:08]CheckFolder [20:27:08]dirname=/storage/ofd_packets [20:27:08]CheckFolder done [20:27:08]ProducePacketName [20:27:08]name=ofd_packets/00166536 [20:27:08]NVStorageSaveData ofd_packets/00166536 [20:27:08]File name is /storage/ofd_packets/00166536 [20:27:08]Write 301 bytes [20:27:08]NVStorageSaveData done [20:27:08]OFDSenderStorePacket done [20:27:08]KKMCreateOFDPacket done [20:27:08]NVStorageSaveData kkm_last_timestamp [20:27:08]File name is /storage/kkm_last_timestamp [20:27:08]Write 4 bytes [20:27:08]NVStorageSaveData done [20:27:08]ExternCall_PrintAddStr [20:27:08]wPrintStart [20:27:08]Write to MH i2c: 01 00 00 08 0F 17 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: 01 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: 01 07 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [20:27:08]RasterBufferAndPrint [20:27:08]line Счет N : (1)221117 [20:27:08]line ИНН: 02508201610067 [20:27:08]line Контрольно-Кассовый Чек [20:27:08]line ПРОДАЖА [20:27:08]line ТРК (МРК, ГНК) : 43 [20:27:08]line Товар: 2710124130 [20:27:08]line Аи-92-К-5 [20:27:08]line 7.470 * 66.90 [20:27:08]line = 499.74 [20:27:08]line НДС 12% НСП 1% [20:27:08]line > о реализуемом товаре [20:27:08]line ОКРУГЛЕНИЕ: -0.74 [20:27:08]line ИТОГО: 499.00 [20:27:08]line Внесено: 500.00 [20:27:08]line СДАЧА: 1.00 [20:27:08]line НСП 1% : 4.42 [20:27:08]line НДС 12% : 53.07 [20:27:08]line Наличными: 499.00 [20:27:08]line Безнал.: 0.00 [20:27:08]line Место: АЗС № 161 "Партнер Нефть" [20:27:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:27:08]line СНО: Общий режим [20:27:08]line Чек 291 22.10.2024 20:27 [20:27:08]line Смена: 536 ФФД: 1.0 [20:27:08]line ЗНМ: 0300000104 [20:27:08]line РНМ: 0000000000091764 [20:27:08]line Версия ККМ: 001 [20:27:08]line ФМ: 0000000000871759 [20:27:08]line ФД: 166536 [20:27:08]line ФПД: 170037452440332 [20:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166536&fm=170037452440332&tin=02508201610067®Number=0000000000091764&sum=49900 [20:27:08]OFD Sender: Processing packet 166536 [packets to send 48, broken 47] [20:27:08]ProducePacketName [20:27:08]name=ofd_packets/00166536 [20:27:08]OFD Sender: To server: pG, [20:27:08]CommunicateWithHost lk.salyk.kg:30040 [20:27:08]ConnectInit lk.salyk.kg [20:27:08]written 0, free lines is 4095 [20:27:09]Connected sock=10 [20:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E9 76 07 01 EE 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 0A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8A 02 00 35 04 06 00 9A A5 ED F3 83 0C 22 91 4C F6 87 90 47 73 [20:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 6A 47 00 97 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 8A 02 00 F4 03 04 00 06 B1 17 67 B6 04 01 00 00 2F A0 16 24 0A FB 8A 05 [20:27:09]CommunicateWithHost err = 0 [20:27:09]CheckOFDResponse [20:27:09]1017 (14) - 77093643461234 [20:27:09]1041 (16) - 0000000000871759 [20:27:09]1040 (4) - 166536 [20:27:09]1012 (4) - 22.10.2024 14:04 [20:27:09]1206 (1) - 0 [20:27:09]OFD Sender: Remove packet 166536 [20:27:09]ProducePacketName [20:27:09]name=ofd_packets/00166536 [20:27:09]NVStorageDeleteData [20:27:09]Write to MH i2c: 01 00 00 33 0F 42 [20:27:09]Write i2c OK [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 07 00 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 B6 0C 0B [20:27:09]RasterBufferAndPrint [20:27:09]line [20:27:09]line [20:27:09]line [20:27:09]line [20:27:09]line [20:27:09]written 0, free lines is 3262 [20:27:09]MH_Cut [20:27:09]Write to MH i2c: D1 01 00 3A 0F 01 1B [20:27:09]Write i2c OK [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: D1 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: D1 01 00 [20:27:09]MH_I2C_Read... [20:27:09]Read from MH i2c: D1 01 00 3A 0F 00 1A [20:27:09]Write to MH i2c: 01 00 00 3B 0F 4A [20:27:09]Write i2c OK [20:27:09]MH_I2C_Read... [20:27:09]OFD Sender: No OFD packet to send [20:27:10]*** Cut start [20:27:10]*** Partial cut [20:27:10]*** CUTSNS_PIN = 1 [20:27:10]*** CUTSNS_PIN = 0 [20:27:10]*** Brake cut motor [20:27:10]Read from MH i2c: 01 [20:27:10]MH_I2C_Read... [20:27:10]*** Stop cut motor [20:27:10]*** Cut end [20:27:10]Read from MH i2c: 01 07 00 [20:27:10]MH_I2C_Read... [20:27:10]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [20:27:10]process_action close_receipt done [20:27:10]requested_data is exist [20:27:10]produce_requested_data [20:27:10]requested_item fm.sn is exist - process it [20:27:10]wFMCommunicate request_size=4 [20:27:10]MH_SAM_APDU [20:27:10]CAPDU: 80 11 00 00 [20:27:10]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [20:27:10]Write i2c OK [20:27:10]MH_I2C_Read... [20:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:10]Read from MH i2c: E2 [20:27:10]MH_I2C_Read... [20:27:10]Read from MH i2c: E2 17 00 [20:27:10]MH_I2C_Read... [20:27:10]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [20:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:27:10]wFMCommunicate OK [20:27:10]requested_item fd.num is exist - process it [20:27:10]SAM_PROTO_GetFieldsCounters [20:27:10]wFMCommunicate request_size=4 [20:27:10]MH_SAM_APDU [20:27:10]CAPDU: 80 13 00 00 [20:27:10]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [20:27:10]Write i2c OK [20:27:10]MH_I2C_Read... [20:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:11]Read from MH i2c: E2 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: E2 62 00 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [20:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:11]wFMCommunicate OK [20:27:11]SAM_PROTO_GetFieldsCounters done [20:27:11]requested_item shift.num is exist - process it [20:27:11]requested_item shift.opened is exist - process it [20:27:11]req_shift_opened [20:27:11]FM_GetShiftState [20:27:11]SAM_PROTO_GetShiftState [20:27:11]wFMCommunicate request_size=4 [20:27:11]MH_SAM_APDU [20:27:11]CAPDU: 80 13 01 00 [20:27:11]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [20:27:11]Write i2c OK [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: E2 [20:27:11]MH_I2C_Read... [20:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:11]Read from MH i2c: E2 0E 00 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1D [20:27:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:27:11]wFMCommunicate OK [20:27:11]SAM_PROTO_GetShiftState done [20:27:11]FM_GetShiftState done [20:27:11]req_shift_opened done [20:27:11]requested_item shift.open_date is exist - process it [20:27:11]req_shift_open_date [20:27:11]req_shift_open_date done [20:27:11]produce_requested_data done [20:27:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166536,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:27:11]process_action_free close_receipt [20:27:11]json_value_free [20:27:11]json_value_free done [20:27:11]process_json_proto returns [20:27:11]Send response to host [20:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166536,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:27:11]free response buf [20:27:11]execute_script done [20:27:11]execute_script returns [20:27:11]free content buf [20:27:11]Sock 9.Close socket [20:27:11]Sock 9.Thread stoped [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:19]accept exits with 7 [20:37:19]New connection [20:37:19]New thread 3067632996 created [20:37:19]Thread 3067489636 joined [20:37:19]Waiting for new connection... [20:37:19] Sock 7.Parse request [20:37:19]Sock 7.Check first char [20:37:19]Sock 7.First char is OK [20:37:19]request: POST /json_proto HTTP/1.0 [20:37:19]Method: POST [20:37:19]URL: /json_proto [20:37:19]Method is POST - this is cgi request [20:37:19]url: /json_proto [20:37:19]query_string will be loaded in cgi processing [20:37:19]execute_cgi json_proto POST (null) [20:37:19]execute_cgi path=json_proto method=POST [20:37:19]POST find Content-Length [20:37:19]Host: 172.17.53.195:8080 [20:37:19]Content-Length: 790 [20:37:19]Content-Type: application/json [20:37:19] [20:37:19]POST finish read [20:37:19]Found Content-Length = 790 [20:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 262.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:19]execute_script... [20:37:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 262.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:19]POST & json_proto [20:37:19]process_json_proto [20:37:19]json parsed OK: [20:37:19]protocol is kg_v1.0 [20:37:19]action value=close_receipt [20:37:19]process_action close_receipt [20:37:19]cmd_close_receipt [20:37:19]MH_GetDate [20:37:19]Write to MH i2c: F0 00 00 3F 0F 3D [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 09 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: F0 09 00 3F 0F 00 00 0D 18 67 21 48 4A 65 EA [20:37:19]GetLastDocTimeStamp 1729628828 [20:37:19]current date 1729629440 [20:37:19]FM_GetShiftState [20:37:19]SAM_PROTO_GetShiftState [20:37:19]wFMCommunicate request_size=4 [20:37:19]MH_SAM_APDU [20:37:19]CAPDU: 80 13 01 00 [20:37:19]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:19]Read from MH i2c: E2 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1F [20:37:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:37:19]wFMCommunicate OK [20:37:19]SAM_PROTO_GetShiftState done [20:37:19]FM_GetShiftState done [20:37:19]opened in 1729557463 [20:37:19]opened+sec_in_day 1729643863 [20:37:19]quantity*price = 0 [20:37:19]sum+1 = 1 [20:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 292 22.10.2024 20:37 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166537 ФПД: 27443718674135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166537&fm=27443718674135&tin=02508201610067®Number=0000000000091764&sum=0 [20:37:20]StoreToDocumentArchive [20:37:20]shift 536 fd 166537 [20:37:20]save to /storage/0536/doc_00166537 [20:37:20]save last doc name /storage/0536/doc_00166537 to /storage/kkm_last_doc_name [20:37:20]save OK [20:37:20]Clear old archive folders... [20:37:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:37:20]tlvbuf is 011F6340 [20:37:20]SAM_PROTO_ClearQueue [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 09 00 00 [20:37:20]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]SAM_PROTO_ClearQueue done [20:37:20]KKMCreateOFDPacket [20:37:20]OFDProtocolAddRootSTLVToBuf [20:37:20]FM_MakeSignedData [20:37:20]FM_MakeSignedData [20:37:20]SAM_PROTO_SignData [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 0D 01 02 [20:37:20]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]wFMCommunicate request_size=255 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 00 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8A 02 00 35 04 06 00 18 F5 BD 1A [20:37:20]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 00 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8A 02 00 35 04 06 00 18 F5 BD 1A 00 00 49 [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]wFMCommunicate request_size=7 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 0D 02 02 02 56 D7 [20:37:20]Write to MH i2c: E2 0A 00 50 0F 80 0D 02 02 02 00 56 D7 00 00 0A [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [20:37:20]RAPDU: 90 00 [20:37:20]wFMCommunicate OK [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 0D 03 02 [20:37:20]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 0B 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 0B 00 51 0F 00 CF 60 FD AC CE EF EF C6 90 00 26 [20:37:20]RAPDU: CF 60 FD AC CE EF EF C6 90 00 [20:37:20]wFMCommunicate OK [20:37:20]SAM_PROTO_SignData done [20:37:20]FM_MakeSignedData done [20:37:20]CreateOFDProtocolMessage [20:37:20]wFMCommunicate request_size=4 [20:37:20]MH_SAM_APDU [20:37:20]CAPDU: 80 11 00 00 [20:37:20]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:20]Read from MH i2c: E2 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 17 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [20:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:37:20]wFMCommunicate OK [20:37:20]CreateOFDProtocolMessage done [20:37:20]OFDSenderStorePacket 166537 [20:37:20]StoreOFDPacket docnum=166537 [20:37:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 7F 04 01 A8 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 00 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8A 02 00 35 04 06 00 18 F5 BD 1A 56 D7 CF 60 FD AC CE EF EF C6 [20:37:20]CheckFolder [20:37:20]dirname=/storage/ofd_packets [20:37:20]CheckFolder done [20:37:20]ProducePacketName [20:37:20]name=ofd_packets/00166537 [20:37:20]NVStorageSaveData ofd_packets/00166537 [20:37:20]File name is /storage/ofd_packets/00166537 [20:37:20]Write 298 bytes [20:37:20]NVStorageSaveData done [20:37:20]OFDSenderStorePacket done [20:37:20]KKMCreateOFDPacket done [20:37:20]NVStorageSaveData kkm_last_timestamp [20:37:20]File name is /storage/kkm_last_timestamp [20:37:20]Write 4 bytes [20:37:20]NVStorageSaveData done [20:37:20]ExternCall_PrintAddStr [20:37:20]wPrintStart [20:37:20]Write to MH i2c: 01 00 00 53 0F 62 [20:37:20]Write i2c OK [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: 01 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: 01 07 00 [20:37:20]MH_I2C_Read... [20:37:20]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [20:37:20]RasterBufferAndPrint [20:37:20]line Счет N : (1)221118 [20:37:20]line ИНН: 02508201610067 [20:37:20]line Контрольно-Кассовый Чек [20:37:20]line ПРОДАЖА [20:37:20]line ТРК (МРК, ГНК) : 21 [20:37:20]line Товар: 2710194210 [20:37:20]line ДТ-К-5 [20:37:20]line 262.470 * 0.00 [20:37:20]line = 0.00 [20:37:20]line НДС 12% НСП 1% [20:37:20]line > о реализуемом товаре [20:37:20]line ИТОГО: 0.00 [20:37:20]line НСП 1% : 0.00 [20:37:20]line НДС 12% : 0.00 [20:37:20]line Наличными: 0.00 [20:37:20]line Безнал.: 0.00 [20:37:20]line Место: АЗС № 161 "Партнер Нефть" [20:37:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:37:20]line СНО: Общий режим [20:37:20]line Чек 292 22.10.2024 20:37 [20:37:20]line Смена: 536 ФФД: 1.0 [20:37:20]line ЗНМ: 0300000104 [20:37:20]line РНМ: 0000000000091764 [20:37:20]line Версия ККМ: 001 [20:37:20]line Талоны: Топливная Карта [20:37:20]line 38286 [20:37:20]line ФМ: 0000000000871759 [20:37:20]line ФД: 166537 [20:37:20]line ФПД: 27443718674135 [20:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166537&fm=27443718674135&tin=02508201610067®Number=0000000000091764&sum=0 [20:37:21]OFD Sender: Processing packet 166537 [packets to send 48, broken 47] [20:37:21]ProducePacketName [20:37:21]name=ofd_packets/00166537 [20:37:21]OFD Sender: To server: pG, [20:37:21]CommunicateWithHost lk.salyk.kg:30040 [20:37:21]ConnectInit lk.salyk.kg [20:37:21]written 0, free lines is 4095 [20:37:21]Connected sock=10 [20:37:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 7F 04 01 A8 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 01 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 00 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8A 02 00 35 04 06 00 18 F5 BD 1A 56 D7 CF 60 FD AC CE EF EF C6 [20:37:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C 99 47 00 7E 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 8A 02 00 F4 03 04 00 6A B3 17 67 B6 04 01 00 00 19 11 00 3F 8B C5 A1 D4 [20:37:21]CommunicateWithHost err = 0 [20:37:21]CheckOFDResponse [20:37:21]1017 (14) - 77093643461234 [20:37:21]1041 (16) - 0000000000871759 [20:37:21]1040 (4) - 166537 [20:37:21]1012 (4) - 22.10.2024 14:15 [20:37:21]1206 (1) - 0 [20:37:21]OFD Sender: Remove packet 166537 [20:37:21]ProducePacketName [20:37:21]name=ofd_packets/00166537 [20:37:21]NVStorageDeleteData [20:37:21]Write to MH i2c: 01 00 00 7D 0F 8C [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 C3 0C 62 [20:37:21]RasterBufferAndPrint [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]line [20:37:21]written 0, free lines is 3272 [20:37:21]MH_Cut [20:37:21]Write to MH i2c: D1 01 00 84 0F 01 65 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 01 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: D1 01 00 84 0F 00 64 [20:37:21]Write to MH i2c: 01 00 00 85 0F 94 [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:22]OFD Sender: No OFD packet to send [20:37:22]*** Cut start [20:37:22]*** Partial cut [20:37:22]*** CUTSNS_PIN = 1 [20:37:22]*** CUTSNS_PIN = 0 [20:37:22]*** Brake cut motor [20:37:23]Read from MH i2c: 01 [20:37:23]MH_I2C_Read... [20:37:23]*** Stop cut motor [20:37:23]*** Cut end [20:37:23]Read from MH i2c: 01 07 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: 01 07 00 85 0F 00 00 00 00 00 FF 0F A9 [20:37:23]process_action close_receipt done [20:37:23]requested_data is exist [20:37:23]produce_requested_data [20:37:23]requested_item fm.sn is exist - process it [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 11 00 00 [20:37:23]Write to MH i2c: E2 08 00 86 0F 80 11 00 00 00 00 00 00 0F [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 17 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 17 00 86 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [20:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:37:23]wFMCommunicate OK [20:37:23]requested_item fd.num is exist - process it [20:37:23]SAM_PROTO_GetFieldsCounters [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 13 00 00 [20:37:23]Write to MH i2c: E2 08 00 87 0F 80 13 00 00 00 00 00 00 12 [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 62 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 62 00 87 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:37:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:23]wFMCommunicate OK [20:37:23]SAM_PROTO_GetFieldsCounters done [20:37:23]requested_item shift.num is exist - process it [20:37:23]requested_item shift.opened is exist - process it [20:37:23]req_shift_opened [20:37:23]FM_GetShiftState [20:37:23]SAM_PROTO_GetShiftState [20:37:23]wFMCommunicate request_size=4 [20:37:23]MH_SAM_APDU [20:37:23]CAPDU: 80 13 01 00 [20:37:23]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [20:37:23]Write i2c OK [20:37:23]MH_I2C_Read... [20:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:23]Read from MH i2c: E2 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 0E 00 [20:37:23]MH_I2C_Read... [20:37:23]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 67 [20:37:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:37:23]wFMCommunicate OK [20:37:23]SAM_PROTO_GetShiftState done [20:37:23]FM_GetShiftState done [20:37:23]req_shift_opened done [20:37:23]requested_item shift.open_date is exist - process it [20:37:23]req_shift_open_date [20:37:23]req_shift_open_date done [20:37:23]produce_requested_data done [20:37:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166537,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:37:23]process_action_free close_receipt [20:37:23]json_value_free [20:37:23]json_value_free done [20:37:23]process_json_proto returns [20:37:23]Send response to host [20:37:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166537,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:37:23]free response buf [20:37:23]execute_script done [20:37:23]execute_script returns [20:37:23]free content buf [20:37:23]Sock 7.Close socket [20:37:23]Sock 7.Thread stoped [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [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:41]accept exits with 9 [20:38:41]New connection [20:38:41]New thread 3067489636 created [20:38:41]Thread 3067632996 joined [20:38:41]Waiting for new connection... [20:38:41] Sock 9.Parse request [20:38:41]Sock 9.Check first char [20:38:41]Sock 9.First char is OK [20:38:41]request: POST /json_proto HTTP/1.0 [20:38:41]Method: POST [20:38:41]URL: /json_proto [20:38:41]Method is POST - this is cgi request [20:38:41]url: /json_proto [20:38:41]query_string will be loaded in cgi processing [20:38:41]execute_cgi json_proto POST (null) [20:38:41]execute_cgi path=json_proto method=POST [20:38:41]POST find Content-Length [20:38:41]Host: 172.17.53.195:8080 [20:38:41]Content-Length: 767 [20:38:41]Content-Type: application/json [20:38:41] [20:38:41]POST finish read [20:38:41]Found Content-Length = 767 [20:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:41]execute_script... [20:38:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:41]POST & json_proto [20:38:41]process_json_proto [20:38:41]json parsed OK: [20:38:41]protocol is kg_v1.0 [20:38:41]action value=close_receipt [20:38:41]process_action close_receipt [20:38:41]cmd_close_receipt [20:38:41]MH_GetDate [20:38:41]Write to MH i2c: F0 00 00 89 0F 87 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 09 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 09 00 89 0F 00 52 0D 18 67 21 48 4A 65 86 [20:38:41]GetLastDocTimeStamp 1729629440 [20:38:41]current date 1729629522 [20:38:41]FM_GetShiftState [20:38:41]SAM_PROTO_GetShiftState [20:38:41]wFMCommunicate request_size=4 [20:38:41]MH_SAM_APDU [20:38:41]CAPDU: 80 13 01 00 [20:38:41]Write to MH i2c: E2 08 00 8A 0F 80 13 01 00 00 00 00 00 16 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:41]Read from MH i2c: E2 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 0E 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 0E 00 8A 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 69 [20:38:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:38:41]wFMCommunicate OK [20:38:41]SAM_PROTO_GetShiftState done [20:38:41]FM_GetShiftState done [20:38:41]opened in 1729557463 [20:38:41]opened+sec_in_day 1729643863 [20:38:41]quantity*price = 80061 [20:38:41]sum+1 = 80063 [20:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 293 22.10.2024 20:38 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166538 ФПД: 162020500230044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203842&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166538&fm=162020500230044&tin=02508201610067®Number=0000000000091764&sum=80062 [20:38:42]StoreToDocumentArchive [20:38:42]shift 536 fd 166538 [20:38:42]save to /storage/0536/doc_00166538 [20:38:42]save last doc name /storage/0536/doc_00166538 to /storage/kkm_last_doc_name [20:38:42]save OK [20:38:42]Clear old archive folders... [20:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:42]tlvbuf is 012940F0 [20:38:42]SAM_PROTO_ClearQueue [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 09 00 00 [20:38:42]Write to MH i2c: E2 08 00 97 0F 80 09 00 00 00 00 00 00 18 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_ClearQueue done [20:38:42]KKMCreateOFDPacket [20:38:42]OFDProtocolAddRootSTLVToBuf [20:38:42]FM_MakeSignedData [20:38:42]FM_MakeSignedData [20:38:42]SAM_PROTO_SignData [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 01 02 [20:38:42]Write to MH i2c: E2 08 00 98 0F 80 0D 01 02 00 00 00 00 20 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=255 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 52 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8A 02 00 35 04 06 00 93 [20:38:42]Write to MH i2c: E2 02 01 99 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 52 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8A 02 00 35 04 06 00 93 00 00 66 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=10 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 02 02 05 5B 56 5C CF 9C [20:38:42]Write to MH i2c: E2 0D 00 9A 0F 80 0D 02 02 05 00 5B 56 5C CF 9C 00 00 A5 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 03 02 [20:38:42]Write to MH i2c: E2 08 00 9B 0F 80 0D 03 02 00 00 00 00 25 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0B 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0B 00 9B 0F 00 A1 C3 0F 8C 63 6F 28 27 90 00 46 [20:38:42]RAPDU: A1 C3 0F 8C 63 6F 28 27 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_SignData done [20:38:42]FM_MakeSignedData done [20:38:42]CreateOFDProtocolMessage [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 11 00 00 [20:38:42]Write to MH i2c: E2 08 00 9C 0F 80 11 00 00 00 00 00 00 25 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 9C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [20:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:38:42]wFMCommunicate OK [20:38:42]CreateOFDProtocolMessage done [20:38:42]OFDSenderStorePacket 166538 [20:38:42]StoreOFDPacket docnum=166538 [20:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F 3C 07 01 81 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 52 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8A 02 00 35 04 06 00 93 5B 56 5C CF 9C A1 C3 0F 8C 63 6F 28 27 [20:38:42]CheckFolder [20:38:42]dirname=/storage/ofd_packets [20:38:42]CheckFolder done [20:38:42]ProducePacketName [20:38:42]name=ofd_packets/00166538 [20:38:42]NVStorageSaveData ofd_packets/00166538 [20:38:42]File name is /storage/ofd_packets/00166538 [20:38:42]Write 301 bytes [20:38:42]NVStorageSaveData done [20:38:42]OFDSenderStorePacket done [20:38:42]KKMCreateOFDPacket done [20:38:42]NVStorageSaveData kkm_last_timestamp [20:38:42]File name is /storage/kkm_last_timestamp [20:38:42]Write 4 bytes [20:38:42]NVStorageSaveData done [20:38:42]ExternCall_PrintAddStr [20:38:42]wPrintStart [20:38:42]Write to MH i2c: 01 00 00 9D 0F AC [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 FF 0F C1 [20:38:42]RasterBufferAndPrint [20:38:42]line Счет N : (1)221119 [20:38:42]line ИНН: 02508201610067 [20:38:42]line Контрольно-Кассовый Чек [20:38:42]line ПРОДАЖА [20:38:42]line ТРК (МРК, ГНК) : 44 [20:38:42]line Товар: 2710124500 [20:38:42]line Аи-95-К-5 [20:38:42]line 10.790 * 74.20 [20:38:42]line = 800.62 [20:38:42]line НДС 12% НСП 1% [20:38:42]line > о реализуемом товаре [20:38:42]line ИТОГО: 800.62 [20:38:42]line НСП 1% : 7.08 [20:38:42]line НДС 12% : 85.02 [20:38:42]line Наличными: 0.00 [20:38:42]line Безнал.: 800.62 [20:38:42]line Место: АЗС № 161 "Партнер Нефть" [20:38:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:38:42]line СНО: Общий режим [20:38:42]line Чек 293 22.10.2024 20:38 [20:38:42]line Смена: 536 ФФД: 1.0 [20:38:42]line ЗНМ: 0300000104 [20:38:42]line РНМ: 0000000000091764 [20:38:42]line Версия ККМ: 001 [20:38:42]line Платежная система: Mbank [20:38:42]line ФМ: 0000000000871759 [20:38:42]line ФД: 166538 [20:38:42]line ФПД: 162020500230044 [20:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203842&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166538&fm=162020500230044&tin=02508201610067®Number=0000000000091764&sum=80062 [20:38:42]written 0, free lines is 4095 [20:38:42]OFD Sender: Processing packet 166538 [packets to send 48, broken 47] [20:38:42]ProducePacketName [20:38:42]name=ofd_packets/00166538 [20:38:42]OFD Sender: To server: pG, [20:38:42]CommunicateWithHost lk.salyk.kg:30040 [20:38:42]ConnectInit lk.salyk.kg [20:38:43]Write to MH i2c: 01 00 00 C6 0F D5 [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 07 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 DD 0C C5 [20:38:43]RasterBufferAndPrint [20:38:43]line [20:38:43]line [20:38:43]line [20:38:43]line [20:38:43]line [20:38:43]written 0, free lines is 3299 [20:38:43]MH_Cut [20:38:43]Write to MH i2c: D1 01 00 CD 0F 01 AE [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: D1 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: D1 01 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: D1 01 00 CD 0F 00 AD [20:38:43]Write to MH i2c: 01 00 00 CE 0F DD [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:44]*** Cut start [20:38:44]*** Partial cut [20:38:44]*** CUTSNS_PIN = 1 [20:38:44]*** CUTSNS_PIN = 0 [20:38:44]*** Brake cut motor [20:38:44]Read from MH i2c: 01 [20:38:44]MH_I2C_Read... [20:38:44]*** Stop cut motor [20:38:44]*** Cut end [20:38:44]Read from MH i2c: 01 07 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [20:38:44]process_action close_receipt done [20:38:44]requested_data is exist [20:38:44]produce_requested_data [20:38:44]requested_item fm.sn is exist - process it [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 11 00 00 [20:38:44]Write to MH i2c: E2 08 00 CF 0F 80 11 00 00 00 00 00 00 58 [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 17 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 17 00 CF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B0 [20:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:38:44]wFMCommunicate OK [20:38:44]requested_item fd.num is exist - process it [20:38:44]SAM_PROTO_GetFieldsCounters [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 13 00 00 [20:38:44]Write to MH i2c: E2 08 00 D0 0F 80 13 00 00 00 00 00 00 5B [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 62 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 62 00 D0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [20:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:44]wFMCommunicate OK [20:38:44]SAM_PROTO_GetFieldsCounters done [20:38:44]requested_item shift.num is exist - process it [20:38:44]requested_item shift.opened is exist - process it [20:38:44]req_shift_opened [20:38:44]FM_GetShiftState [20:38:44]SAM_PROTO_GetShiftState [20:38:44]wFMCommunicate request_size=4 [20:38:44]MH_SAM_APDU [20:38:44]CAPDU: 80 13 01 00 [20:38:44]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:44]Read from MH i2c: E2 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 0E 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B0 [20:38:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:38:44]wFMCommunicate OK [20:38:44]SAM_PROTO_GetShiftState done [20:38:44]FM_GetShiftState done [20:38:44]req_shift_opened done [20:38:44]requested_item shift.open_date is exist - process it [20:38:44]req_shift_open_date [20:38:44]req_shift_open_date done [20:38:44]produce_requested_data done [20:38:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166538,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:38:44]process_action_free close_receipt [20:38:44]json_value_free [20:38:44]json_value_free done [20:38:44]process_json_proto returns [20:38:44]Send response to host [20:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166538,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:38:44]free response buf [20:38:44]execute_script done [20:38:44]execute_script returns [20:38:44]free content buf [20:38:44]Sock 9.Close socket [20:38:44]Sock 9.Thread stoped [20:39:32]accept exits with 7 [20:39:32]New connection [20:39:32]New thread 3067632996 created [20:39:32]Thread 3067489636 joined [20:39:32]Waiting for new connection... [20:39:32] Sock 7.Parse request [20:39:32]Sock 7.Check first char [20:39:32]Sock 7.First char is OK [20:39:32]request: POST /json_proto HTTP/1.0 [20:39:32]Method: POST [20:39:32]URL: /json_proto [20:39:32]Method is POST - this is cgi request [20:39:32]url: /json_proto [20:39:32]query_string will be loaded in cgi processing [20:39:32]execute_cgi json_proto POST (null) [20:39:32]execute_cgi path=json_proto method=POST [20:39:32]POST find Content-Length [20:39:32]Host: 172.17.53.195:8080 [20:39:32]Content-Length: 766 [20:39:32]Content-Type: application/json [20:39:32] [20:39:32]POST finish read [20:39:32]Found Content-Length = 766 [20:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:32]execute_script... [20:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:32]POST & json_proto [20:39:32]process_json_proto [20:39:32]json parsed OK: [20:39:32]protocol is kg_v1.0 [20:39:32]action value=close_receipt [20:39:32]process_action close_receipt [20:39:32]cmd_close_receipt [20:39:32]MH_GetDate [20:39:32]Write to MH i2c: F0 00 00 D2 0F D0 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: F0 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: F0 09 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: F0 09 00 D2 0F 00 85 0D 18 67 21 48 4A 65 02 [20:39:32]GetLastDocTimeStamp 1729629522 [20:39:32]current date 1729629573 [20:39:32]FM_GetShiftState [20:39:32]SAM_PROTO_GetShiftState [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 13 01 00 [20:39:32]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 0E 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B2 [20:39:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:39:32]wFMCommunicate OK [20:39:32]SAM_PROTO_GetShiftState done [20:39:32]FM_GetShiftState done [20:39:32]opened in 1729557463 [20:39:32]opened+sec_in_day 1729643863 [20:39:32]quantity*price = 200025 [20:39:32]sum+1 = 200026 [20:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 294 22.10.2024 20:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166539 ФПД: 23895363819105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203933&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166539&fm=23895363819105&tin=02508201610067®Number=0000000000091764&sum=200025 [20:39:33]StoreToDocumentArchive [20:39:33]shift 536 fd 166539 [20:39:33]save to /storage/0536/doc_00166539 [20:39:33]save last doc name /storage/0536/doc_00166539 to /storage/kkm_last_doc_name [20:39:33]save OK [20:39:33]Clear old archive folders... [20:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:39:33]tlvbuf is 0120E190 [20:39:33]SAM_PROTO_ClearQueue [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 09 00 00 [20:39:33]Write to MH i2c: E2 08 00 E0 0F 80 09 00 00 00 00 00 00 61 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [20:39:33]RAPDU: 90 00 [20:39:33]wFMCommunicate OK [20:39:33]SAM_PROTO_ClearQueue done [20:39:33]KKMCreateOFDPacket [20:39:33]OFDProtocolAddRootSTLVToBuf [20:39:33]FM_MakeSignedData [20:39:33]FM_MakeSignedData [20:39:33]SAM_PROTO_SignData [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 0D 01 02 [20:39:33]Write to MH i2c: E2 08 00 E1 0F 80 0D 01 02 00 00 00 00 69 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [20:39:33]RAPDU: 90 00 [20:39:33]wFMCommunicate OK [20:39:33]wFMCommunicate request_size=255 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 85 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8A 02 00 35 04 06 00 15 BB 92 AC [20:39:33]Write to MH i2c: E2 02 01 E2 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 85 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8A 02 00 35 04 06 00 15 BB 92 AC 00 00 8C [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [20:39:33]RAPDU: 90 00 [20:39:33]wFMCommunicate OK [20:39:33]wFMCommunicate request_size=7 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 0D 02 02 02 16 61 [20:39:33]Write to MH i2c: E2 0A 00 E3 0F 80 0D 02 02 02 00 16 61 00 00 E7 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [20:39:33]RAPDU: 90 00 [20:39:33]wFMCommunicate OK [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 0D 03 02 [20:39:33]Write to MH i2c: E2 08 00 E4 0F 80 0D 03 02 00 00 00 00 6E [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 0B 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 0B 00 E4 0F 00 08 95 8C FC 1D D2 56 2F 90 00 08 [20:39:33]RAPDU: 08 95 8C FC 1D D2 56 2F 90 00 [20:39:33]wFMCommunicate OK [20:39:33]SAM_PROTO_SignData done [20:39:33]FM_MakeSignedData done [20:39:33]CreateOFDProtocolMessage [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 11 00 00 [20:39:33]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 17 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [20:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:39:33]wFMCommunicate OK [20:39:33]CreateOFDProtocolMessage done [20:39:33]OFDSenderStorePacket 166539 [20:39:33]StoreOFDPacket docnum=166539 [20:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 75 1C 04 01 33 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 85 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8A 02 00 35 04 06 00 15 BB 92 AC 16 61 08 95 8C FC 1D D2 56 2F [20:39:33]CheckFolder [20:39:33]dirname=/storage/ofd_packets [20:39:33]CheckFolder done [20:39:33]ProducePacketName [20:39:33]name=ofd_packets/00166539 [20:39:33]NVStorageSaveData ofd_packets/00166539 [20:39:33]File name is /storage/ofd_packets/00166539 [20:39:33]Write 298 bytes [20:39:33]NVStorageSaveData done [20:39:33]OFDSenderStorePacket done [20:39:33]KKMCreateOFDPacket done [20:39:33]NVStorageSaveData kkm_last_timestamp [20:39:33]File name is /storage/kkm_last_timestamp [20:39:33]Write 4 bytes [20:39:33]NVStorageSaveData done [20:39:33]ExternCall_PrintAddStr [20:39:33]wPrintStart [20:39:33]Write to MH i2c: 01 00 00 E6 0F F5 [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: 01 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: 01 07 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 FF 0F 0A [20:39:33]RasterBufferAndPrint [20:39:33]line Счет N : (1)221120 [20:39:33]line ИНН: 02508201610067 [20:39:33]line Контрольно-Кассовый Чек [20:39:33]line ПРОДАЖА [20:39:33]line ТРК (МРК, ГНК) : 21 [20:39:33]line Товар: 2710194210 [20:39:33]line ДТ-К-5 [20:39:33]line 26.250 * 76.20 [20:39:33]line = 2000.25 [20:39:33]line НДС 12% НСП 1% [20:39:33]line > о реализуемом товаре [20:39:33]line ИТОГО: 2000.25 [20:39:33]line НСП 1% : 17.70 [20:39:33]line НДС 12% : 212.42 [20:39:33]line Наличными: 0.00 [20:39:33]line Безнал.: 2000.25 [20:39:33]line Место: АЗС № 161 "Партнер Нефть" [20:39:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:39:33]line СНО: Общий режим [20:39:33]line Чек 294 22.10.2024 20:39 [20:39:33]line Смена: 536 ФФД: 1.0 [20:39:33]line ЗНМ: 0300000104 [20:39:33]line РНМ: 0000000000091764 [20:39:33]line Версия ККМ: 001 [20:39:33]line Платежная система: Mbank [20:39:33]line ФМ: 0000000000871759 [20:39:33]line ФД: 166539 [20:39:33]line ФПД: 23895363819105 [20:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203933&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166539&fm=23895363819105&tin=02508201610067®Number=0000000000091764&sum=200025 [20:39:34]written 0, free lines is 4095 [20:39:34]Write to MH i2c: 01 00 00 0F 10 1F [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: 01 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: 01 07 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 D8 0C 0A [20:39:34]RasterBufferAndPrint [20:39:34]line [20:39:34]line [20:39:34]line [20:39:34]line [20:39:34]line [20:39:34]written 0, free lines is 3294 [20:39:34]MH_Cut [20:39:34]Write to MH i2c: D1 01 00 16 10 01 F8 [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: D1 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: D1 01 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: D1 01 00 16 10 00 F7 [20:39:34]Write to MH i2c: 01 00 00 17 10 27 [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:35]*** Cut start [20:39:35]*** Partial cut [20:39:35]*** CUTSNS_PIN = 1 [20:39:35]*** CUTSNS_PIN = 0 [20:39:35]*** Brake cut motor [20:39:36]Read from MH i2c: 01 [20:39:36]MH_I2C_Read... [20:39:36]*** Stop cut motor [20:39:36]*** Cut end [20:39:36]Read from MH i2c: 01 07 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 FF 0F 3C [20:39:36]process_action close_receipt done [20:39:36]requested_data is exist [20:39:36]produce_requested_data [20:39:36]requested_item fm.sn is exist - process it [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 11 00 00 [20:39:36]Write to MH i2c: E2 08 00 18 10 80 11 00 00 00 00 00 00 A2 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 17 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 17 00 18 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [20:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:39:36]wFMCommunicate OK [20:39:36]requested_item fd.num is exist - process it [20:39:36]SAM_PROTO_GetFieldsCounters [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 13 00 00 [20:39:36]Write to MH i2c: E2 08 00 19 10 80 13 00 00 00 00 00 00 A5 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 62 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 62 00 19 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [20:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:36]wFMCommunicate OK [20:39:36]SAM_PROTO_GetFieldsCounters done [20:39:36]requested_item shift.num is exist - process it [20:39:36]requested_item shift.opened is exist - process it [20:39:36]req_shift_opened [20:39:36]FM_GetShiftState [20:39:36]SAM_PROTO_GetShiftState [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 13 01 00 [20:39:36]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 0E 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FA [20:39:36]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:39:36]wFMCommunicate OK [20:39:36]SAM_PROTO_GetShiftState done [20:39:36]FM_GetShiftState done [20:39:36]req_shift_opened done [20:39:36]requested_item shift.open_date is exist - process it [20:39:36]req_shift_open_date [20:39:36]req_shift_open_date done [20:39:36]produce_requested_data done [20:39:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166539,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:39:36]process_action_free close_receipt [20:39:36]json_value_free [20:39:36]json_value_free done [20:39:36]process_json_proto returns [20:39:36]Send response to host [20:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166539,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:39:36]free response buf [20:39:36]execute_script done [20:39:36]execute_script returns [20:39:36]free content buf [20:39:36]Sock 7.Close socket [20:39:36]Sock 7.Thread stoped [20:40:53]ConnectInit Can't connect to host [20:40:53]CommunicateWithHost connect error [20:40:53]CommunicateWithHost err = -1 [20:40:53]OFD Sender: Server communicate error [20:40:53]OFD Sender: Processing packet 166538 [packets to send 49, broken 47] [20:40:53]ProducePacketName [20:40:53]name=ofd_packets/00166538 [20:40:53]OFD Sender: To server: pG, [20:40:53]CommunicateWithHost lk.salyk.kg:30040 [20:40:53]ConnectInit lk.salyk.kg [20:40:53]Connected sock=7 [20:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9F 3C 07 01 81 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 52 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8A 02 00 35 04 06 00 93 5B 56 5C CF 9C A1 C3 0F 8C 63 6F 28 27 [20:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 F1 47 00 8E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 8A 02 00 F4 03 04 00 3E B4 17 67 B6 04 01 00 00 8C 22 2C FA 10 72 B0 A0 [20:40:53]CommunicateWithHost err = 0 [20:40:53]CheckOFDResponse [20:40:53]1017 (14) - 77093643461234 [20:40:53]1041 (16) - 0000000000871759 [20:40:53]1040 (4) - 166538 [20:40:53]1012 (4) - 22.10.2024 14:18 [20:40:53]1206 (1) - 0 [20:40:53]OFD Sender: Remove packet 166538 [20:40:53]ProducePacketName [20:40:53]name=ofd_packets/00166538 [20:40:53]NVStorageDeleteData [20:40:53]OFD Sender: Processing packet 166539 [packets to send 48, broken 47] [20:40:53]ProducePacketName [20:40:53]name=ofd_packets/00166539 [20:40:53]OFD Sender: To server: pG, [20:40:53]CommunicateWithHost lk.salyk.kg:30040 [20:40:53]ConnectInit lk.salyk.kg [20:40:54]Connected sock=7 [20:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 75 1C 04 01 33 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 85 0D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8A 02 00 35 04 06 00 15 BB 92 AC 16 61 08 95 8C FC 1D D2 56 2F [20:40:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 35 47 00 17 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 8A 02 00 F4 03 04 00 3F B4 17 67 B6 04 01 00 00 C5 DB 97 F4 B4 0A 3F 42 [20:40:54]CommunicateWithHost err = 0 [20:40:54]CheckOFDResponse [20:40:54]1017 (14) - 77093643461234 [20:40:54]1041 (16) - 0000000000871759 [20:40:54]1040 (4) - 166539 [20:40:54]1012 (4) - 22.10.2024 14:18 [20:40:54]1206 (1) - 0 [20:40:54]OFD Sender: Remove packet 166539 [20:40:54]ProducePacketName [20:40:54]name=ofd_packets/00166539 [20:40:54]NVStorageDeleteData [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:33]accept exits with 9 [20:43:33]New connection [20:43:33]New thread 3067489636 created [20:43:33]Thread 3067632996 joined [20:43:33]Waiting for new connection... [20:43:33] Sock 9.Parse request [20:43:33]Sock 9.Check first char [20:43:33]Sock 9.First char is OK [20:43:33]request: POST /json_proto HTTP/1.0 [20:43:33]Method: POST [20:43:33]URL: /json_proto [20:43:33]Method is POST - this is cgi request [20:43:33]url: /json_proto [20:43:33]query_string will be loaded in cgi processing [20:43:33]execute_cgi json_proto POST (null) [20:43:33]execute_cgi path=json_proto method=POST [20:43:33]POST find Content-Length [20:43:33]Host: 172.17.53.195:8080 [20:43:33]Content-Length: 766 [20:43:33]Content-Type: application/json [20:43:33] [20:43:33]POST finish read [20:43:33]Found Content-Length = 766 [20:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:33]execute_script... [20:43:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:33]POST & json_proto [20:43:33]process_json_proto [20:43:33]json parsed OK: [20:43:33]protocol is kg_v1.0 [20:43:33]action value=close_receipt [20:43:33]process_action close_receipt [20:43:33]cmd_close_receipt [20:43:33]MH_GetDate [20:43:33]Write to MH i2c: F0 00 00 1B 10 1A [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: F0 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: F0 09 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: F0 09 00 1B 10 00 76 0E 18 67 21 48 4A 65 3E [20:43:33]GetLastDocTimeStamp 1729629573 [20:43:33]current date 1729629814 [20:43:33]FM_GetShiftState [20:43:33]SAM_PROTO_GetShiftState [20:43:33]wFMCommunicate request_size=4 [20:43:33]MH_SAM_APDU [20:43:33]CAPDU: 80 13 01 00 [20:43:33]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [20:43:33]Write i2c OK [20:43:33]MH_I2C_Read... [20:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:33]Read from MH i2c: E2 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 0E 00 [20:43:33]MH_I2C_Read... [20:43:33]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FC [20:43:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:43:33]wFMCommunicate OK [20:43:33]SAM_PROTO_GetShiftState done [20:43:33]FM_GetShiftState done [20:43:33]opened in 1729557463 [20:43:33]opened+sec_in_day 1729643863 [20:43:33]quantity*price = 50041 [20:43:33]sum+1 = 50042 [20:43:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 295 22.10.2024 20:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166540 ФПД: 133284555778027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166540&fm=133284555778027&tin=02508201610067®Number=0000000000091764&sum=50041 [20:43:34]StoreToDocumentArchive [20:43:34]shift 536 fd 166540 [20:43:34]save to /storage/0536/doc_00166540 [20:43:34]save last doc name /storage/0536/doc_00166540 to /storage/kkm_last_doc_name [20:43:34]save OK [20:43:34]Clear old archive folders... [20:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:34]tlvbuf is 012147F0 [20:43:34]SAM_PROTO_ClearQueue [20:43:34]wFMCommunicate request_size=4 [20:43:34]MH_SAM_APDU [20:43:34]CAPDU: 80 09 00 00 [20:43:34]Write to MH i2c: E2 08 00 29 10 80 09 00 00 00 00 00 00 AB [20:43:34]Write i2c OK [20:43:34]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:35]OFD Sender: No OFD packet to send [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [20:43:35]RAPDU: 90 00 [20:43:35]wFMCommunicate OK [20:43:35]SAM_PROTO_ClearQueue done [20:43:35]KKMCreateOFDPacket [20:43:35]OFDProtocolAddRootSTLVToBuf [20:43:35]FM_MakeSignedData [20:43:35]FM_MakeSignedData [20:43:35]SAM_PROTO_SignData [20:43:35]wFMCommunicate request_size=4 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 0D 01 02 [20:43:35]Write to MH i2c: E2 08 00 2A 10 80 0D 01 02 00 00 00 00 B3 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [20:43:35]RAPDU: 90 00 [20:43:35]wFMCommunicate OK [20:43:35]wFMCommunicate request_size=255 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 76 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8A 02 00 35 04 06 00 79 [20:43:35]Write to MH i2c: E2 02 01 2B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 76 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8A 02 00 35 04 06 00 79 00 00 71 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [20:43:35]RAPDU: 90 00 [20:43:35]wFMCommunicate OK [20:43:35]wFMCommunicate request_size=10 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 0D 02 02 05 38 BA 99 E7 EB [20:43:35]Write to MH i2c: E2 0D 00 2C 10 80 0D 02 02 05 00 38 BA 99 E7 EB 00 00 1D [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [20:43:35]RAPDU: 90 00 [20:43:35]wFMCommunicate OK [20:43:35]wFMCommunicate request_size=4 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 0D 03 02 [20:43:35]Write to MH i2c: E2 08 00 2D 10 80 0D 03 02 00 00 00 00 B8 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 0B 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 0B 00 2D 10 00 72 A2 E2 AF 5B 6E 95 56 90 00 12 [20:43:35]RAPDU: 72 A2 E2 AF 5B 6E 95 56 90 00 [20:43:35]wFMCommunicate OK [20:43:35]SAM_PROTO_SignData done [20:43:35]FM_MakeSignedData done [20:43:35]CreateOFDProtocolMessage [20:43:35]wFMCommunicate request_size=4 [20:43:35]MH_SAM_APDU [20:43:35]CAPDU: 80 11 00 00 [20:43:35]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:35]Read from MH i2c: E2 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 17 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [20:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:43:35]wFMCommunicate OK [20:43:35]CreateOFDProtocolMessage done [20:43:35]OFDSenderStorePacket 166540 [20:43:35]StoreOFDPacket docnum=166540 [20:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 FB 07 01 FD D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 76 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8A 02 00 35 04 06 00 79 38 BA 99 E7 EB 72 A2 E2 AF 5B 6E 95 56 [20:43:35]CheckFolder [20:43:35]dirname=/storage/ofd_packets [20:43:35]CheckFolder done [20:43:35]ProducePacketName [20:43:35]name=ofd_packets/00166540 [20:43:35]NVStorageSaveData ofd_packets/00166540 [20:43:35]File name is /storage/ofd_packets/00166540 [20:43:35]Write 301 bytes [20:43:35]NVStorageSaveData done [20:43:35]OFDSenderStorePacket done [20:43:35]KKMCreateOFDPacket done [20:43:35]NVStorageSaveData kkm_last_timestamp [20:43:35]File name is /storage/kkm_last_timestamp [20:43:35]Write 4 bytes [20:43:35]NVStorageSaveData done [20:43:35]ExternCall_PrintAddStr [20:43:35]wPrintStart [20:43:35]Write to MH i2c: 01 00 00 2F 10 3F [20:43:35]Write i2c OK [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 07 00 [20:43:35]MH_I2C_Read... [20:43:35]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [20:43:35]RasterBufferAndPrint [20:43:35]line Счет N : (1)221121 [20:43:35]line ИНН: 02508201610067 [20:43:35]line Контрольно-Кассовый Чек [20:43:35]line ПРОДАЖА [20:43:35]line ТРК (МРК, ГНК) : 33 [20:43:35]line Товар: 2710124130 [20:43:35]line Аи-92-К-5 [20:43:35]line 7.480 * 66.90 [20:43:35]line = 500.41 [20:43:35]line НДС 12% НСП 1% [20:43:35]line > о реализуемом товаре [20:43:35]line ИТОГО: 500.41 [20:43:35]line НСП 1% : 4.43 [20:43:35]line НДС 12% : 53.14 [20:43:35]line Наличными: 0.00 [20:43:35]line Безнал.: 500.41 [20:43:35]line Место: АЗС № 161 "Партнер Нефть" [20:43:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:43:35]line СНО: Общий режим [20:43:35]line Чек 295 22.10.2024 20:43 [20:43:35]line Смена: 536 ФФД: 1.0 [20:43:35]line ЗНМ: 0300000104 [20:43:35]line РНМ: 0000000000091764 [20:43:35]line Версия ККМ: 001 [20:43:35]line Платежная система: Mbank [20:43:35]line ФМ: 0000000000871759 [20:43:35]line ФД: 166540 [20:43:35]line ФПД: 133284555778027 [20:43:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204334&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166540&fm=133284555778027&tin=02508201610067®Number=0000000000091764&sum=50041 [20:43:35]OFD Sender: Processing packet 166540 [packets to send 48, broken 47] [20:43:35]ProducePacketName [20:43:35]name=ofd_packets/00166540 [20:43:35]OFD Sender: To server: pG, [20:43:35]CommunicateWithHost lk.salyk.kg:30040 [20:43:35]ConnectInit lk.salyk.kg [20:43:35]written 0, free lines is 4095 [20:43:35]Connected sock=10 [20:43:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 FB 07 01 FD D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 76 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8A 02 00 35 04 06 00 79 38 BA 99 E7 EB 72 A2 E2 AF 5B 6E 95 56 [20:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 C4 47 00 59 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 8A 02 00 F4 03 04 00 E1 B4 17 67 B6 04 01 00 00 02 93 2A 03 14 5F B2 F2 [20:43:36]CommunicateWithHost err = 0 [20:43:36]CheckOFDResponse [20:43:36]1017 (14) - 77093643461234 [20:43:36]1041 (16) - 0000000000871759 [20:43:36]1040 (4) - 166540 [20:43:36]1012 (4) - 22.10.2024 14:21 [20:43:36]1206 (1) - 0 [20:43:36]OFD Sender: Remove packet 166540 [20:43:36]ProducePacketName [20:43:36]name=ofd_packets/00166540 [20:43:36]NVStorageDeleteData [20:43:36]Write to MH i2c: 01 00 00 58 10 68 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: 01 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: 01 07 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: 01 07 00 58 10 00 00 00 00 00 D7 0C 52 [20:43:36]RasterBufferAndPrint [20:43:36]line [20:43:36]line [20:43:36]line [20:43:36]line [20:43:36]line [20:43:36]written 0, free lines is 3295 [20:43:36]MH_Cut [20:43:36]Write to MH i2c: D1 01 00 5F 10 01 41 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: D1 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: D1 01 00 [20:43:36]MH_I2C_Read... [20:43:36]Read from MH i2c: D1 01 00 5F 10 00 40 [20:43:36]Write to MH i2c: 01 00 00 60 10 70 [20:43:36]Write i2c OK [20:43:36]MH_I2C_Read... [20:43:36]OFD Sender: No OFD packet to send [20:43:37]*** Cut start [20:43:37]*** Partial cut [20:43:37]*** CUTSNS_PIN = 1 [20:43:37]*** CUTSNS_PIN = 0 [20:43:37]*** Brake cut motor [20:43:37]Read from MH i2c: 01 [20:43:37]MH_I2C_Read... [20:43:37]*** Stop cut motor [20:43:37]*** Cut end [20:43:37]Read from MH i2c: 01 07 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FF 0F 85 [20:43:37]process_action close_receipt done [20:43:37]requested_data is exist [20:43:37]produce_requested_data [20:43:37]requested_item fm.sn is exist - process it [20:43:37]wFMCommunicate request_size=4 [20:43:37]MH_SAM_APDU [20:43:37]CAPDU: 80 11 00 00 [20:43:37]Write to MH i2c: E2 08 00 61 10 80 11 00 00 00 00 00 00 EB [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:37]Read from MH i2c: E2 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 17 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 17 00 61 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [20:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:43:37]wFMCommunicate OK [20:43:37]requested_item fd.num is exist - process it [20:43:37]SAM_PROTO_GetFieldsCounters [20:43:37]wFMCommunicate request_size=4 [20:43:37]MH_SAM_APDU [20:43:37]CAPDU: 80 13 00 00 [20:43:37]Write to MH i2c: E2 08 00 62 10 80 13 00 00 00 00 00 00 EE [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:37]Read from MH i2c: E2 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 62 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 62 00 62 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [20:43:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:37]wFMCommunicate OK [20:43:37]SAM_PROTO_GetFieldsCounters done [20:43:37]requested_item shift.num is exist - process it [20:43:37]requested_item shift.opened is exist - process it [20:43:37]req_shift_opened [20:43:37]FM_GetShiftState [20:43:37]SAM_PROTO_GetShiftState [20:43:37]wFMCommunicate request_size=4 [20:43:37]MH_SAM_APDU [20:43:37]CAPDU: 80 13 01 00 [20:43:37]Write to MH i2c: E2 08 00 63 10 80 13 01 00 00 00 00 00 F0 [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:38]Read from MH i2c: E2 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 0E 00 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 0E 00 63 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 43 [20:43:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:43:38]wFMCommunicate OK [20:43:38]SAM_PROTO_GetShiftState done [20:43:38]FM_GetShiftState done [20:43:38]req_shift_opened done [20:43:38]requested_item shift.open_date is exist - process it [20:43:38]req_shift_open_date [20:43:38]req_shift_open_date done [20:43:38]produce_requested_data done [20:43:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166540,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:43:38]process_action_free close_receipt [20:43:38]json_value_free [20:43:38]json_value_free done [20:43:38]process_json_proto returns [20:43:38]Send response to host [20:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166540,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:43:38]free response buf [20:43:38]execute_script done [20:43:38]execute_script returns [20:43:38]free content buf [20:43:38]Sock 9.Close socket [20:43:38]Sock 9.Thread stoped [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:19]accept exits with 7 [20:44:19]New connection [20:44:19]New thread 3067632996 created [20:44:19]Thread 3067489636 joined [20:44:19]Waiting for new connection... [20:44:19] Sock 7.Parse request [20:44:19]Sock 7.Check first char [20:44:19]Sock 7.First char is OK [20:44:19]request: POST /json_proto HTTP/1.0 [20:44:19]Method: POST [20:44:19]URL: /json_proto [20:44:19]Method is POST - this is cgi request [20:44:19]url: /json_proto [20:44:19]query_string will be loaded in cgi processing [20:44:19]execute_cgi json_proto POST (null) [20:44:19]execute_cgi path=json_proto method=POST [20:44:19]POST find Content-Length [20:44:19]Host: 172.17.53.195:8080 [20:44:19]Content-Length: 766 [20:44:19]Content-Type: application/json [20:44:19] [20:44:19]POST finish read [20:44:19]Found Content-Length = 766 [20:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:19]execute_script... [20:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:19]POST & json_proto [20:44:19]process_json_proto [20:44:19]json parsed OK: [20:44:19]protocol is kg_v1.0 [20:44:19]action value=close_receipt [20:44:19]process_action close_receipt [20:44:19]cmd_close_receipt [20:44:19]MH_GetDate [20:44:19]Write to MH i2c: F0 00 00 64 10 63 [20:44:19]Write i2c OK [20:44:19]MH_I2C_Read... [20:44:19]Read from MH i2c: F0 [20:44:19]MH_I2C_Read... [20:44:19]Read from MH i2c: F0 09 00 [20:44:19]MH_I2C_Read... [20:44:19]Read from MH i2c: F0 09 00 64 10 00 A4 0E 18 67 21 48 4A 65 B5 [20:44:19]GetLastDocTimeStamp 1729629814 [20:44:19]current date 1729629860 [20:44:19]FM_GetShiftState [20:44:19]SAM_PROTO_GetShiftState [20:44:19]wFMCommunicate request_size=4 [20:44:19]MH_SAM_APDU [20:44:19]CAPDU: 80 13 01 00 [20:44:19]Write to MH i2c: E2 08 00 65 10 80 13 01 00 00 00 00 00 F2 [20:44:19]Write i2c OK [20:44:19]MH_I2C_Read... [20:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:19]Read from MH i2c: E2 [20:44:19]MH_I2C_Read... [20:44:19]Read from MH i2c: E2 0E 00 [20:44:19]MH_I2C_Read... [20:44:19]Read from MH i2c: E2 0E 00 65 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 45 [20:44:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:44:19]wFMCommunicate OK [20:44:19]SAM_PROTO_GetShiftState done [20:44:19]FM_GetShiftState done [20:44:19]opened in 1729557463 [20:44:19]opened+sec_in_day 1729643863 [20:44:19]quantity*price = 50041 [20:44:19]sum+1 = 50042 [20:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 296 22.10.2024 20:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166541 ФПД: 72391385388572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166541&fm=72391385388572&tin=02508201610067®Number=0000000000091764&sum=50041 [20:44:20]StoreToDocumentArchive [20:44:20]shift 536 fd 166541 [20:44:20]save to /storage/0536/doc_00166541 [20:44:20]save last doc name /storage/0536/doc_00166541 to /storage/kkm_last_doc_name [20:44:20]save OK [20:44:20]Clear old archive folders... [20:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:20]tlvbuf is B6FFE230 [20:44:20]SAM_PROTO_ClearQueue [20:44:20]wFMCommunicate request_size=4 [20:44:20]MH_SAM_APDU [20:44:20]CAPDU: 80 09 00 00 [20:44:20]Write to MH i2c: E2 08 00 72 10 80 09 00 00 00 00 00 00 F4 [20:44:20]Write i2c OK [20:44:20]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [20:44:21]RAPDU: 90 00 [20:44:21]wFMCommunicate OK [20:44:21]SAM_PROTO_ClearQueue done [20:44:21]KKMCreateOFDPacket [20:44:21]OFDProtocolAddRootSTLVToBuf [20:44:21]FM_MakeSignedData [20:44:21]FM_MakeSignedData [20:44:21]SAM_PROTO_SignData [20:44:21]wFMCommunicate request_size=4 [20:44:21]MH_SAM_APDU [20:44:21]CAPDU: 80 0D 01 02 [20:44:21]Write to MH i2c: E2 08 00 73 10 80 0D 01 02 00 00 00 00 FC [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [20:44:21]RAPDU: 90 00 [20:44:21]wFMCommunicate OK [20:44:21]wFMCommunicate request_size=255 [20:44:21]MH_SAM_APDU [20:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A4 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8A 02 00 35 04 06 00 41 [20:44:21]Write to MH i2c: E2 02 01 74 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A4 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8A 02 00 35 04 06 00 41 00 00 B2 [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [20:44:21]RAPDU: 90 00 [20:44:21]wFMCommunicate OK [20:44:21]wFMCommunicate request_size=10 [20:44:21]MH_SAM_APDU [20:44:21]CAPDU: 80 0D 02 02 05 D6 EE CF 96 1C [20:44:21]Write to MH i2c: E2 0D 00 75 10 80 0D 02 02 05 00 D6 EE CF 96 1C 00 00 4E [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [20:44:21]RAPDU: 90 00 [20:44:21]wFMCommunicate OK [20:44:21]wFMCommunicate request_size=4 [20:44:21]MH_SAM_APDU [20:44:21]CAPDU: 80 0D 03 02 [20:44:21]Write to MH i2c: E2 08 00 76 10 80 0D 03 02 00 00 00 00 01 [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 0B 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 0B 00 76 10 00 6F 28 0D 28 44 F1 31 B2 90 00 E6 [20:44:21]RAPDU: 6F 28 0D 28 44 F1 31 B2 90 00 [20:44:21]wFMCommunicate OK [20:44:21]SAM_PROTO_SignData done [20:44:21]FM_MakeSignedData done [20:44:21]CreateOFDProtocolMessage [20:44:21]wFMCommunicate request_size=4 [20:44:21]MH_SAM_APDU [20:44:21]CAPDU: 80 11 00 00 [20:44:21]Write to MH i2c: E2 08 00 77 10 80 11 00 00 00 00 00 00 01 [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:21]Read from MH i2c: E2 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 17 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: E2 17 00 77 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 59 [20:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:21]wFMCommunicate OK [20:44:21]CreateOFDProtocolMessage done [20:44:21]OFDSenderStorePacket 166541 [20:44:21]StoreOFDPacket docnum=166541 [20:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE B8 07 01 12 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A4 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8A 02 00 35 04 06 00 41 D6 EE CF 96 1C 6F 28 0D 28 44 F1 31 B2 [20:44:21]CheckFolder [20:44:21]dirname=/storage/ofd_packets [20:44:21]CheckFolder done [20:44:21]ProducePacketName [20:44:21]name=ofd_packets/00166541 [20:44:21]NVStorageSaveData ofd_packets/00166541 [20:44:21]File name is /storage/ofd_packets/00166541 [20:44:21]Write 301 bytes [20:44:21]NVStorageSaveData done [20:44:21]OFDSenderStorePacket done [20:44:21]KKMCreateOFDPacket done [20:44:21]NVStorageSaveData kkm_last_timestamp [20:44:21]File name is /storage/kkm_last_timestamp [20:44:21]Write 4 bytes [20:44:21]NVStorageSaveData done [20:44:21]ExternCall_PrintAddStr [20:44:21]wPrintStart [20:44:21]Write to MH i2c: 01 00 00 78 10 88 [20:44:21]Write i2c OK [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: 01 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: 01 07 00 [20:44:21]MH_I2C_Read... [20:44:21]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [20:44:21]RasterBufferAndPrint [20:44:21]line Счет N : (1)221122 [20:44:21]line ИНН: 02508201610067 [20:44:21]line Контрольно-Кассовый Чек [20:44:21]line ПРОДАЖА [20:44:21]line ТРК (МРК, ГНК) : 13 [20:44:21]line Товар: 2710124130 [20:44:21]line Аи-92-К-5 [20:44:21]line 7.480 * 66.90 [20:44:21]line = 500.41 [20:44:21]line НДС 12% НСП 1% [20:44:21]line > о реализуемом товаре [20:44:21]line ИТОГО: 500.41 [20:44:21]line НСП 1% : 4.43 [20:44:21]line НДС 12% : 53.14 [20:44:21]line Наличными: 0.00 [20:44:21]line Безнал.: 500.41 [20:44:21]line Место: АЗС № 161 "Партнер Нефть" [20:44:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:44:21]line СНО: Общий режим [20:44:21]line Чек 296 22.10.2024 20:44 [20:44:21]line Смена: 536 ФФД: 1.0 [20:44:21]line ЗНМ: 0300000104 [20:44:21]line РНМ: 0000000000091764 [20:44:21]line Версия ККМ: 001 [20:44:21]line Платежная система: Mbank [20:44:21]line ФМ: 0000000000871759 [20:44:21]line ФД: 166541 [20:44:21]line ФПД: 72391385388572 [20:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166541&fm=72391385388572&tin=02508201610067®Number=0000000000091764&sum=50041 [20:44:21]OFD Sender: Processing packet 166541 [packets to send 48, broken 47] [20:44:21]ProducePacketName [20:44:21]name=ofd_packets/00166541 [20:44:21]OFD Sender: To server: pG, [20:44:21]CommunicateWithHost lk.salyk.kg:30040 [20:44:21]ConnectInit lk.salyk.kg [20:44:21]written 0, free lines is 4095 [20:44:21]Connected sock=10 [20:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE B8 07 01 12 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A4 0E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8A 02 00 35 04 06 00 41 D6 EE CF 96 1C 6F 28 0D 28 44 F1 31 B2 [20:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 78 47 00 65 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 8A 02 00 F4 03 04 00 0F B5 17 67 B6 04 01 00 00 4F 6A 2E C5 60 56 3E D2 [20:44:22]CommunicateWithHost err = 0 [20:44:22]CheckOFDResponse [20:44:22]1017 (14) - 77093643461234 [20:44:22]1041 (16) - 0000000000871759 [20:44:22]1040 (4) - 166541 [20:44:22]1012 (4) - 22.10.2024 14:22 [20:44:22]1206 (1) - 0 [20:44:22]OFD Sender: Remove packet 166541 [20:44:22]ProducePacketName [20:44:22]name=ofd_packets/00166541 [20:44:22]NVStorageDeleteData [20:44:22]Write to MH i2c: 01 00 00 A1 10 B1 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 DA 0C 9E [20:44:22]RasterBufferAndPrint [20:44:22]line [20:44:22]line [20:44:22]line [20:44:22]line [20:44:22]line [20:44:22]written 0, free lines is 3296 [20:44:22]MH_Cut [20:44:22]Write to MH i2c: D1 01 00 A8 10 01 8A [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: D1 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: D1 01 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: D1 01 00 A8 10 00 89 [20:44:22]Write to MH i2c: 01 00 00 A9 10 B9 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]OFD Sender: No OFD packet to send [20:44:23]*** Cut start [20:44:23]*** Partial cut [20:44:23]*** CUTSNS_PIN = 1 [20:44:23]*** CUTSNS_PIN = 0 [20:44:23]*** Brake cut motor [20:44:23]Read from MH i2c: 01 [20:44:23]MH_I2C_Read... [20:44:23]*** Stop cut motor [20:44:23]*** Cut end [20:44:23]Read from MH i2c: 01 07 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 FF 0F CE [20:44:23]process_action close_receipt done [20:44:23]requested_data is exist [20:44:23]produce_requested_data [20:44:23]requested_item fm.sn is exist - process it [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 11 00 00 [20:44:23]Write to MH i2c: E2 08 00 AA 10 80 11 00 00 00 00 00 00 34 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 17 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 17 00 AA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [20:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:23]wFMCommunicate OK [20:44:23]requested_item fd.num is exist - process it [20:44:23]SAM_PROTO_GetFieldsCounters [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 13 00 00 [20:44:23]Write to MH i2c: E2 08 00 AB 10 80 13 00 00 00 00 00 00 37 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 62 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 62 00 AB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [20:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:23]wFMCommunicate OK [20:44:23]SAM_PROTO_GetFieldsCounters done [20:44:23]requested_item shift.num is exist - process it [20:44:23]requested_item shift.opened is exist - process it [20:44:23]req_shift_opened [20:44:23]FM_GetShiftState [20:44:23]SAM_PROTO_GetShiftState [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 13 01 00 [20:44:23]Write to MH i2c: E2 08 00 AC 10 80 13 01 00 00 00 00 00 39 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 0E 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 0E 00 AC 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8C [20:44:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:44:23]wFMCommunicate OK [20:44:23]SAM_PROTO_GetShiftState done [20:44:23]FM_GetShiftState done [20:44:23]req_shift_opened done [20:44:23]requested_item shift.open_date is exist - process it [20:44:23]req_shift_open_date [20:44:23]req_shift_open_date done [20:44:23]produce_requested_data done [20:44:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166541,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:44:23]process_action_free close_receipt [20:44:23]json_value_free [20:44:23]json_value_free done [20:44:23]process_json_proto returns [20:44:23]Send response to host [20:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166541,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:44:23]free response buf [20:44:23]execute_script done [20:44:23]execute_script returns [20:44:23]free content buf [20:44:23]Sock 7.Close socket [20:44:23]Sock 7.Thread stoped [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:51]accept exits with 9 [20:45:51]New connection [20:45:51]New thread 3067489636 created [20:45:51]Thread 3067632996 joined [20:45:51]Waiting for new connection... [20:45:51] Sock 9.Parse request [20:45:51]Sock 9.Check first char [20:45:51]Sock 9.First char is OK [20:45:51]request: POST /json_proto HTTP/1.0 [20:45:51]Method: POST [20:45:51]URL: /json_proto [20:45:51]Method is POST - this is cgi request [20:45:51]url: /json_proto [20:45:51]query_string will be loaded in cgi processing [20:45:51]execute_cgi json_proto POST (null) [20:45:51]execute_cgi path=json_proto method=POST [20:45:51]POST find Content-Length [20:45:51]Host: 172.17.53.195:8080 [20:45:51]Content-Length: 677 [20:45:51]Content-Type: application/json [20:45:51] [20:45:51]POST finish read [20:45:51]Found Content-Length = 677 [20:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.360, "sum" : 620.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:51]execute_script... [20:45:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.360, "sum" : 620.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:51]POST & json_proto [20:45:51]process_json_proto [20:45:51]json parsed OK: [20:45:51]protocol is kg_v1.0 [20:45:51]action value=close_receipt [20:45:51]process_action close_receipt [20:45:51]cmd_close_receipt [20:45:51]MH_GetDate [20:45:51]Write to MH i2c: F0 00 00 AD 10 AC [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: F0 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: F0 09 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: F0 09 00 AD 10 00 00 0F 18 67 21 48 4A 65 5B [20:45:51]GetLastDocTimeStamp 1729629860 [20:45:51]current date 1729629952 [20:45:51]FM_GetShiftState [20:45:51]SAM_PROTO_GetShiftState [20:45:51]wFMCommunicate request_size=4 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 13 01 00 [20:45:51]Write to MH i2c: E2 08 00 AE 10 80 13 01 00 00 00 00 00 3B [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 0E 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 0E 00 AE 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8E [20:45:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:45:51]wFMCommunicate OK [20:45:51]SAM_PROTO_GetShiftState done [20:45:51]FM_GetShiftState done [20:45:51]opened in 1729557463 [20:45:51]opened+sec_in_day 1729643863 [20:45:51]quantity*price = 62031 [20:45:51]sum+1 = 62032 [20:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.87 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 297 22.10.2024 20:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166542 ФПД: 168821693186123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204552&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166542&fm=168821693186123&tin=02508201610067®Number=0000000000091764&sum=62000 [20:45:52]StoreToDocumentArchive [20:45:52]shift 536 fd 166542 [20:45:52]save to /storage/0536/doc_00166542 [20:45:52]save last doc name /storage/0536/doc_00166542 to /storage/kkm_last_doc_name [20:45:52]save OK [20:45:52]Clear old archive folders... [20:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:45:52]tlvbuf is B6E4E620 [20:45:52]SAM_PROTO_ClearQueue [20:45:52]wFMCommunicate request_size=4 [20:45:52]MH_SAM_APDU [20:45:52]CAPDU: 80 09 00 00 [20:45:52]Write to MH i2c: E2 08 00 BB 10 80 09 00 00 00 00 00 00 3D [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:52]OFD Sender: No OFD packet to send [20:45:52]Read from MH i2c: E2 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: E2 03 00 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [20:45:52]RAPDU: 90 00 [20:45:52]wFMCommunicate OK [20:45:52]SAM_PROTO_ClearQueue done [20:45:52]KKMCreateOFDPacket [20:45:52]OFDProtocolAddRootSTLVToBuf [20:45:52]FM_MakeSignedData [20:45:52]FM_MakeSignedData [20:45:52]SAM_PROTO_SignData [20:45:52]wFMCommunicate request_size=4 [20:45:52]MH_SAM_APDU [20:45:52]CAPDU: 80 0D 01 02 [20:45:52]Write to MH i2c: E2 08 00 BC 10 80 0D 01 02 00 00 00 00 45 [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:52]Read from MH i2c: E2 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: E2 03 00 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [20:45:52]RAPDU: 90 00 [20:45:52]wFMCommunicate OK [20:45:52]wFMCommunicate request_size=255 [20:45:52]MH_SAM_APDU [20:45:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8A 02 00 35 04 06 00 99 [20:45:52]Write to MH i2c: E2 02 01 BD 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8A 02 00 35 04 06 00 99 00 00 3F [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 03 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [20:45:53]RAPDU: 90 00 [20:45:53]wFMCommunicate OK [20:45:53]wFMCommunicate request_size=10 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 0D 02 02 05 8A DD 0D 80 4B [20:45:53]Write to MH i2c: E2 0D 00 BE 10 80 0D 02 02 05 00 8A DD 0D 80 4B 00 00 91 [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 03 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 03 00 BE 10 00 90 00 42 [20:45:53]RAPDU: 90 00 [20:45:53]wFMCommunicate OK [20:45:53]wFMCommunicate request_size=4 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 0D 03 02 [20:45:53]Write to MH i2c: E2 08 00 BF 10 80 0D 03 02 00 00 00 00 4A [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 0B 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 0B 00 BF 10 00 31 F2 95 C5 92 52 25 40 90 00 11 [20:45:53]RAPDU: 31 F2 95 C5 92 52 25 40 90 00 [20:45:53]wFMCommunicate OK [20:45:53]SAM_PROTO_SignData done [20:45:53]FM_MakeSignedData done [20:45:53]CreateOFDProtocolMessage [20:45:53]wFMCommunicate request_size=4 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 11 00 00 [20:45:53]Write to MH i2c: E2 08 00 C0 10 80 11 00 00 00 00 00 00 4A [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 17 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 17 00 C0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [20:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:45:53]wFMCommunicate OK [20:45:53]CreateOFDProtocolMessage done [20:45:53]OFDSenderStorePacket 166542 [20:45:53]StoreOFDPacket docnum=166542 [20:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 9B 07 01 96 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8A 02 00 35 04 06 00 99 8A DD 0D 80 4B 31 F2 95 C5 92 52 25 40 [20:45:53]CheckFolder [20:45:53]dirname=/storage/ofd_packets [20:45:53]CheckFolder done [20:45:53]ProducePacketName [20:45:53]name=ofd_packets/00166542 [20:45:53]NVStorageSaveData ofd_packets/00166542 [20:45:53]File name is /storage/ofd_packets/00166542 [20:45:53]Write 301 bytes [20:45:53]NVStorageSaveData done [20:45:53]OFDSenderStorePacket done [20:45:53]KKMCreateOFDPacket done [20:45:53]NVStorageSaveData kkm_last_timestamp [20:45:53]File name is /storage/kkm_last_timestamp [20:45:53]Write 4 bytes [20:45:53]NVStorageSaveData done [20:45:53]ExternCall_PrintAddStr [20:45:53]wPrintStart [20:45:53]Write to MH i2c: 01 00 00 C1 10 D1 [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: 01 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: 01 07 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: 01 07 00 C1 10 00 00 00 00 00 FF 0F E6 [20:45:53]RasterBufferAndPrint [20:45:53]line Счет N : (1)221123 [20:45:53]line ИНН: 02508201610067 [20:45:53]line Контрольно-Кассовый Чек [20:45:53]line ПРОДАЖА [20:45:53]line ТРК (МРК, ГНК) : 34 [20:45:53]line Товар: 2710124500 [20:45:53]line Аи-95-К-5 [20:45:53]line 8.360 * 74.20 [20:45:53]line = 620.31 [20:45:53]line НДС 12% НСП 1% [20:45:53]line > о реализуемом товаре [20:45:53]line ОКРУГЛЕНИЕ: -0.31 [20:45:53]line ИТОГО: 620.00 [20:45:53]line Внесено: 620.00 [20:45:53]line СДАЧА: 0.00 [20:45:53]line НСП 1% : 5.49 [20:45:53]line НДС 12% : 65.87 [20:45:53]line Наличными: 620.00 [20:45:53]line Безнал.: 0.00 [20:45:53]line Место: АЗС № 161 "Партнер Нефть" [20:45:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:45:53]line СНО: Общий режим [20:45:53]line Чек 297 22.10.2024 20:45 [20:45:53]line Смена: 536 ФФД: 1.0 [20:45:53]line ЗНМ: 0300000104 [20:45:53]line РНМ: 0000000000091764 [20:45:53]line Версия ККМ: 001 [20:45:53]line ФМ: 0000000000871759 [20:45:53]line ФД: 166542 [20:45:53]line ФПД: 168821693186123 [20:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204552&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166542&fm=168821693186123&tin=02508201610067®Number=0000000000091764&sum=62000 [20:45:53]OFD Sender: Processing packet 166542 [packets to send 48, broken 47] [20:45:53]ProducePacketName [20:45:53]name=ofd_packets/00166542 [20:45:53]OFD Sender: To server: pG, [20:45:53]CommunicateWithHost lk.salyk.kg:30040 [20:45:53]ConnectInit lk.salyk.kg [20:45:53]written 0, free lines is 4095 [20:45:53]Connected sock=10 [20:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CB 9B 07 01 96 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8A 02 00 35 04 06 00 99 8A DD 0D 80 4B 31 F2 95 C5 92 52 25 40 [20:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 8C 47 00 BF 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 8A 02 00 F4 03 04 00 6A B5 17 67 B6 04 01 00 00 F5 43 4A 8F DC 96 CA 22 [20:45:53]CommunicateWithHost err = 0 [20:45:53]CheckOFDResponse [20:45:53]1017 (14) - 77093643461234 [20:45:53]1041 (16) - 0000000000871759 [20:45:53]1040 (4) - 166542 [20:45:53]1012 (4) - 22.10.2024 14:23 [20:45:53]1206 (1) - 0 [20:45:53]OFD Sender: Remove packet 166542 [20:45:53]ProducePacketName [20:45:53]name=ofd_packets/00166542 [20:45:53]NVStorageDeleteData [20:45:54]Write to MH i2c: 01 00 00 EC 10 FC [20:45:54]Write i2c OK [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: 01 [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: 01 07 00 [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 CA 0C D9 [20:45:54]RasterBufferAndPrint [20:45:54]line [20:45:54]line [20:45:54]line [20:45:54]line [20:45:54]line [20:45:54]written 0, free lines is 3280 [20:45:54]MH_Cut [20:45:54]Write to MH i2c: D1 01 00 F3 10 01 D5 [20:45:54]Write i2c OK [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: D1 [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: D1 01 00 [20:45:54]MH_I2C_Read... [20:45:54]Read from MH i2c: D1 01 00 F3 10 00 D4 [20:45:54]Write to MH i2c: 01 00 00 F4 10 04 [20:45:54]Write i2c OK [20:45:54]MH_I2C_Read... [20:45:54]OFD Sender: No OFD packet to send [20:45:54]*** Cut start [20:45:54]*** Partial cut [20:45:54]*** CUTSNS_PIN = 1 [20:45:54]*** CUTSNS_PIN = 0 [20:45:55]*** Brake cut motor [20:45:55]Read from MH i2c: 01 [20:45:55]MH_I2C_Read... [20:45:55]*** Stop cut motor [20:45:55]*** Cut end [20:45:55]Read from MH i2c: 01 07 00 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [20:45:55]process_action close_receipt done [20:45:55]requested_data is exist [20:45:55]produce_requested_data [20:45:55]requested_item fm.sn is exist - process it [20:45:55]wFMCommunicate request_size=4 [20:45:55]MH_SAM_APDU [20:45:55]CAPDU: 80 11 00 00 [20:45:55]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [20:45:55]Write i2c OK [20:45:55]MH_I2C_Read... [20:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:55]Read from MH i2c: E2 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 17 00 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [20:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:45:55]wFMCommunicate OK [20:45:55]requested_item fd.num is exist - process it [20:45:55]SAM_PROTO_GetFieldsCounters [20:45:55]wFMCommunicate request_size=4 [20:45:55]MH_SAM_APDU [20:45:55]CAPDU: 80 13 00 00 [20:45:55]Write to MH i2c: E2 08 00 F6 10 80 13 00 00 00 00 00 00 82 [20:45:55]Write i2c OK [20:45:55]MH_I2C_Read... [20:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:55]Read from MH i2c: E2 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 62 00 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 62 00 F6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [20:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:55]wFMCommunicate OK [20:45:55]SAM_PROTO_GetFieldsCounters done [20:45:55]requested_item shift.num is exist - process it [20:45:55]requested_item shift.opened is exist - process it [20:45:55]req_shift_opened [20:45:55]FM_GetShiftState [20:45:55]SAM_PROTO_GetShiftState [20:45:55]wFMCommunicate request_size=4 [20:45:55]MH_SAM_APDU [20:45:55]CAPDU: 80 13 01 00 [20:45:55]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [20:45:55]Write i2c OK [20:45:55]MH_I2C_Read... [20:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:55]Read from MH i2c: E2 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 0E 00 [20:45:55]MH_I2C_Read... [20:45:55]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D7 [20:45:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:45:55]wFMCommunicate OK [20:45:55]SAM_PROTO_GetShiftState done [20:45:55]FM_GetShiftState done [20:45:55]req_shift_opened done [20:45:55]requested_item shift.open_date is exist - process it [20:45:55]req_shift_open_date [20:45:55]req_shift_open_date done [20:45:55]produce_requested_data done [20:45:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166542,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:45:55]process_action_free close_receipt [20:45:55]json_value_free [20:45:55]json_value_free done [20:45:55]process_json_proto returns [20:45:55]Send response to host [20:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166542,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:45:55]free response buf [20:45:55]execute_script done [20:45:55]execute_script returns [20:45:55]free content buf [20:45:55]Sock 9.Close socket [20:45:55]Sock 9.Thread stoped [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]accept exits with 7 [20:48:34]New connection [20:48:34]New thread 3067632996 created [20:48:34]Thread 3067489636 joined [20:48:34]Waiting for new connection... [20:48:34] Sock 7.Parse request [20:48:34]Sock 7.Check first char [20:48:34]Sock 7.First char is OK [20:48:34]request: POST /json_proto HTTP/1.0 [20:48:34]Method: POST [20:48:34]URL: /json_proto [20:48:34]Method is POST - this is cgi request [20:48:34]url: /json_proto [20:48:34]query_string will be loaded in cgi processing [20:48:34]execute_cgi json_proto POST (null) [20:48:34]execute_cgi path=json_proto method=POST [20:48:34]POST find Content-Length [20:48:34]Host: 172.17.53.195:8080 [20:48:34]Content-Length: 766 [20:48:34]Content-Type: application/json [20:48:34] [20:48:34]POST finish read [20:48:34]Found Content-Length = 766 [20:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:34]execute_script... [20:48:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:34]POST & json_proto [20:48:34]process_json_proto [20:48:34]json parsed OK: [20:48:34]protocol is kg_v1.0 [20:48:34]action value=close_receipt [20:48:34]process_action close_receipt [20:48:34]cmd_close_receipt [20:48:34]MH_GetDate [20:48:34]Write to MH i2c: F0 00 00 F8 10 F7 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: F0 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: F0 09 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: F0 09 00 F8 10 00 A3 0F 18 67 21 48 4A 65 49 [20:48:34]GetLastDocTimeStamp 1729629952 [20:48:34]current date 1729630115 [20:48:34]FM_GetShiftState [20:48:34]SAM_PROTO_GetShiftState [20:48:34]wFMCommunicate request_size=4 [20:48:34]MH_SAM_APDU [20:48:34]CAPDU: 80 13 01 00 [20:48:34]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [20:48:34]Write i2c OK [20:48:34]MH_I2C_Read... [20:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:34]Read from MH i2c: E2 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0E 00 [20:48:34]MH_I2C_Read... [20:48:34]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D9 [20:48:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:48:34]wFMCommunicate OK [20:48:34]SAM_PROTO_GetShiftState done [20:48:34]FM_GetShiftState done [20:48:34]opened in 1729557463 [20:48:34]opened+sec_in_day 1729643863 [20:48:34]quantity*price = 250012 [20:48:34]sum+1 = 250013 [20:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 298 22.10.2024 20:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166543 ФПД: 242708794654673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166543&fm=242708794654673&tin=02508201610067®Number=0000000000091764&sum=250012 [20:48:35]StoreToDocumentArchive [20:48:35]shift 536 fd 166543 [20:48:35]save to /storage/0536/doc_00166543 [20:48:35]save last doc name /storage/0536/doc_00166543 to /storage/kkm_last_doc_name [20:48:35]save OK [20:48:35]Clear old archive folders... [20:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:48:35]tlvbuf is 01255E20 [20:48:35]SAM_PROTO_ClearQueue [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 09 00 00 [20:48:35]Write to MH i2c: E2 08 00 06 11 80 09 00 00 00 00 00 00 89 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]SAM_PROTO_ClearQueue done [20:48:35]KKMCreateOFDPacket [20:48:35]OFDProtocolAddRootSTLVToBuf [20:48:35]FM_MakeSignedData [20:48:35]FM_MakeSignedData [20:48:35]SAM_PROTO_SignData [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 01 02 [20:48:35]Write to MH i2c: E2 08 00 07 11 80 0D 01 02 00 00 00 00 91 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=255 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 A3 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8A 02 00 35 04 06 00 DC BE 0B 7D [20:48:35]Write to MH i2c: E2 02 01 08 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 A3 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8A 02 00 35 04 06 00 DC BE 0B 7D 00 00 49 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=7 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 02 02 02 3F D1 [20:48:35]Write to MH i2c: E2 0A 00 09 11 80 0D 02 02 02 00 3F D1 00 00 A8 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [20:48:35]RAPDU: 90 00 [20:48:35]wFMCommunicate OK [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 0D 03 02 [20:48:35]Write to MH i2c: E2 08 00 0A 11 80 0D 03 02 00 00 00 00 96 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0B 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0B 00 0A 11 00 22 B8 3F A9 CE E4 37 0A 90 00 4C [20:48:35]RAPDU: 22 B8 3F A9 CE E4 37 0A 90 00 [20:48:35]wFMCommunicate OK [20:48:35]SAM_PROTO_SignData done [20:48:35]FM_MakeSignedData done [20:48:35]CreateOFDProtocolMessage [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 11 00 00 [20:48:35]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 17 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [20:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:48:35]wFMCommunicate OK [20:48:35]CreateOFDProtocolMessage done [20:48:35]OFDSenderStorePacket 166543 [20:48:35]StoreOFDPacket docnum=166543 [20:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E7 95 04 01 21 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 A3 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8A 02 00 35 04 06 00 DC BE 0B 7D 3F D1 22 B8 3F A9 CE E4 37 0A [20:48:35]CheckFolder [20:48:35]dirname=/storage/ofd_packets [20:48:35]CheckFolder done [20:48:35]ProducePacketName [20:48:35]name=ofd_packets/00166543 [20:48:35]NVStorageSaveData ofd_packets/00166543 [20:48:35]File name is /storage/ofd_packets/00166543 [20:48:35]Write 298 bytes [20:48:35]NVStorageSaveData done [20:48:35]OFDSenderStorePacket done [20:48:35]KKMCreateOFDPacket done [20:48:35]NVStorageSaveData kkm_last_timestamp [20:48:35]File name is /storage/kkm_last_timestamp [20:48:35]Write 4 bytes [20:48:35]NVStorageSaveData done [20:48:35]ExternCall_PrintAddStr [20:48:35]wPrintStart [20:48:35]Write to MH i2c: 01 00 00 0C 11 1D [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 07 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 FF 0F 32 [20:48:35]RasterBufferAndPrint [20:48:35]line Счет N : (1)221124 [20:48:35]line ИНН: 02508201610067 [20:48:35]line Контрольно-Кассовый Чек [20:48:35]line ПРОДАЖА [20:48:35]line ТРК (МРК, ГНК) : 41 [20:48:35]line Товар: 2710194210 [20:48:35]line ДТ-К-5 [20:48:35]line 32.810 * 76.20 [20:48:35]line = 2500.12 [20:48:35]line НДС 12% НСП 1% [20:48:35]line > о реализуемом товаре [20:48:35]line ИТОГО: 2500.12 [20:48:35]line НСП 1% : 22.12 [20:48:35]line НДС 12% : 265.50 [20:48:35]line Наличными: 0.00 [20:48:35]line Безнал.: 2500.12 [20:48:35]line Место: АЗС № 161 "Партнер Нефть" [20:48:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:48:35]line СНО: Общий режим [20:48:35]line Чек 298 22.10.2024 20:48 [20:48:35]line Смена: 536 ФФД: 1.0 [20:48:35]line ЗНМ: 0300000104 [20:48:35]line РНМ: 0000000000091764 [20:48:35]line Версия ККМ: 001 [20:48:35]line Платежная система: Mbank [20:48:35]line ФМ: 0000000000871759 [20:48:35]line ФД: 166543 [20:48:35]line ФПД: 242708794654673 [20:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204835&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166543&fm=242708794654673&tin=02508201610067®Number=0000000000091764&sum=250012 [20:48:36]OFD Sender: Processing packet 166543 [packets to send 48, broken 47] [20:48:36]ProducePacketName [20:48:36]name=ofd_packets/00166543 [20:48:36]OFD Sender: To server: pG, [20:48:36]CommunicateWithHost lk.salyk.kg:30040 [20:48:36]ConnectInit lk.salyk.kg [20:48:36]written 0, free lines is 4095 [20:48:36]Connected sock=9 [20:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E7 95 04 01 21 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 A3 0F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8A 02 00 35 04 06 00 DC BE 0B 7D 3F D1 22 B8 3F A9 CE E4 37 0A [20:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 8C 47 00 59 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 8A 02 00 F4 03 04 00 0D B6 17 67 B6 04 01 00 00 CC 8A 6C C8 EC 6F 72 44 [20:48:36]CommunicateWithHost err = 0 [20:48:36]CheckOFDResponse [20:48:36]1017 (14) - 77093643461234 [20:48:36]1041 (16) - 0000000000871759 [20:48:36]1040 (4) - 166543 [20:48:36]1012 (4) - 22.10.2024 14:26 [20:48:36]1206 (1) - 0 [20:48:36]OFD Sender: Remove packet 166543 [20:48:36]ProducePacketName [20:48:36]name=ofd_packets/00166543 [20:48:36]NVStorageDeleteData [20:48:36]Write to MH i2c: 01 00 00 35 11 46 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 07 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 E1 0C 3A [20:48:36]RasterBufferAndPrint [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]line [20:48:36]written 0, free lines is 3302 [20:48:36]MH_Cut [20:48:36]Write to MH i2c: D1 01 00 3C 11 01 1F [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: D1 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: D1 01 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: D1 01 00 3C 11 00 1E [20:48:36]Write to MH i2c: 01 00 00 3D 11 4E [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:37]OFD Sender: No OFD packet to send [20:48:37]*** Cut start [20:48:37]*** Partial cut [20:48:37]*** CUTSNS_PIN = 1 [20:48:37]*** CUTSNS_PIN = 0 [20:48:37]*** Brake cut motor [20:48:38]Read from MH i2c: 01 [20:48:38]MH_I2C_Read... [20:48:38]*** Stop cut motor [20:48:38]*** Cut end [20:48:38]Read from MH i2c: 01 07 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 FF 0F 63 [20:48:38]process_action close_receipt done [20:48:38]requested_data is exist [20:48:38]produce_requested_data [20:48:38]requested_item fm.sn is exist - process it [20:48:38]wFMCommunicate request_size=4 [20:48:38]MH_SAM_APDU [20:48:38]CAPDU: 80 11 00 00 [20:48:38]Write to MH i2c: E2 08 00 3E 11 80 11 00 00 00 00 00 00 C9 [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:38]Read from MH i2c: E2 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 17 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 17 00 3E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [20:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:48:38]wFMCommunicate OK [20:48:38]requested_item fd.num is exist - process it [20:48:38]SAM_PROTO_GetFieldsCounters [20:48:38]wFMCommunicate request_size=4 [20:48:38]MH_SAM_APDU [20:48:38]CAPDU: 80 13 00 00 [20:48:38]Write to MH i2c: E2 08 00 3F 11 80 13 00 00 00 00 00 00 CC [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:38]Read from MH i2c: E2 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 62 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 62 00 3F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [20:48:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:38]wFMCommunicate OK [20:48:38]SAM_PROTO_GetFieldsCounters done [20:48:38]requested_item shift.num is exist - process it [20:48:38]requested_item shift.opened is exist - process it [20:48:38]req_shift_opened [20:48:38]FM_GetShiftState [20:48:38]SAM_PROTO_GetShiftState [20:48:38]wFMCommunicate request_size=4 [20:48:38]MH_SAM_APDU [20:48:38]CAPDU: 80 13 01 00 [20:48:38]Write to MH i2c: E2 08 00 40 11 80 13 01 00 00 00 00 00 CE [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:38]Read from MH i2c: E2 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 0E 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: E2 0E 00 40 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 21 [20:48:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:48:38]wFMCommunicate OK [20:48:38]SAM_PROTO_GetShiftState done [20:48:38]FM_GetShiftState done [20:48:38]req_shift_opened done [20:48:38]requested_item shift.open_date is exist - process it [20:48:38]req_shift_open_date [20:48:38]req_shift_open_date done [20:48:38]produce_requested_data done [20:48:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166543,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:48:38]process_action_free close_receipt [20:48:38]json_value_free [20:48:38]json_value_free done [20:48:38]process_json_proto returns [20:48:38]Send response to host [20:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166543,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:48:38]free response buf [20:48:38]execute_script done [20:48:38]execute_script returns [20:48:38]free content buf [20:48:38]Sock 7.Close socket [20:48:38]Sock 7.Thread stoped [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:17]accept exits with 10 [20:52:17]New connection [20:52:17]New thread 3067489636 created [20:52:17]Thread 3067632996 joined [20:52:17]Waiting for new connection... [20:52:17] Sock 10.Parse request [20:52:17]Sock 10.Check first char [20:52:17]Sock 10.First char is OK [20:52:17]request: POST /json_proto HTTP/1.0 [20:52:17]Method: POST [20:52:17]URL: /json_proto [20:52:17]Method is POST - this is cgi request [20:52:17]url: /json_proto [20:52:17]query_string will be loaded in cgi processing [20:52:17]execute_cgi json_proto POST (null) [20:52:17]execute_cgi path=json_proto method=POST [20:52:17]POST find Content-Length [20:52:17]Host: 172.17.53.195:8080 [20:52:17]Content-Length: 766 [20:52:17]Content-Type: application/json [20:52:17] [20:52:17]POST finish read [20:52:17]Found Content-Length = 766 [20:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:17]execute_script... [20:52:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:17]POST & json_proto [20:52:17]process_json_proto [20:52:17]json parsed OK: [20:52:17]protocol is kg_v1.0 [20:52:17]action value=close_receipt [20:52:17]process_action close_receipt [20:52:17]cmd_close_receipt [20:52:17]MH_GetDate [20:52:17]Write to MH i2c: F0 00 00 41 11 41 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 09 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: F0 09 00 41 11 00 82 10 18 67 21 48 4A 65 73 [20:52:17]GetLastDocTimeStamp 1729630115 [20:52:17]current date 1729630338 [20:52:17]FM_GetShiftState [20:52:17]SAM_PROTO_GetShiftState [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 01 00 [20:52:17]Write to MH i2c: E2 08 00 42 11 80 13 01 00 00 00 00 00 D0 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 42 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 23 [20:52:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_GetShiftState done [20:52:17]FM_GetShiftState done [20:52:17]opened in 1729557463 [20:52:17]opened+sec_in_day 1729643863 [20:52:17]quantity*price = 100050 [20:52:17]sum+1 = 100052 [20:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 299 22.10.2024 20:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166544 ФПД: 133736820291847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166544&fm=133736820291847&tin=02508201610067®Number=0000000000091764&sum=100051 [20:52:18]StoreToDocumentArchive [20:52:18]shift 536 fd 166544 [20:52:18]save to /storage/0536/doc_00166544 [20:52:18]save last doc name /storage/0536/doc_00166544 to /storage/kkm_last_doc_name [20:52:18]save OK [20:52:18]Clear old archive folders... [20:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:18]tlvbuf is 01203980 [20:52:18]SAM_PROTO_ClearQueue [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 09 00 00 [20:52:18]Write to MH i2c: E2 08 00 4F 11 80 09 00 00 00 00 00 00 D2 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [20:52:18]RAPDU: 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_ClearQueue done [20:52:18]KKMCreateOFDPacket [20:52:18]OFDProtocolAddRootSTLVToBuf [20:52:18]FM_MakeSignedData [20:52:18]FM_MakeSignedData [20:52:18]SAM_PROTO_SignData [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 0D 01 02 [20:52:18]Write to MH i2c: E2 08 00 50 11 80 0D 01 02 00 00 00 00 DA [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [20:52:18]RAPDU: 90 00 [20:52:18]wFMCommunicate OK [20:52:18]wFMCommunicate request_size=255 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 82 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8A 02 00 35 04 06 00 79 A2 07 AA [20:52:18]Write to MH i2c: E2 02 01 51 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 82 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8A 02 00 35 04 06 00 79 A2 07 AA 00 00 0B [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]wFMCommunicate request_size=7 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 02 02 02 B9 07 [20:52:19]Write to MH i2c: E2 0A 00 52 11 80 0D 02 02 02 00 B9 07 00 00 A1 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [20:52:19]RAPDU: 90 00 [20:52:19]wFMCommunicate OK [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 0D 03 02 [20:52:19]Write to MH i2c: E2 08 00 53 11 80 0D 03 02 00 00 00 00 DF [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0B 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0B 00 53 11 00 5F 99 83 70 AF A7 B2 DF 90 00 B2 [20:52:19]RAPDU: 5F 99 83 70 AF A7 B2 DF 90 00 [20:52:19]wFMCommunicate OK [20:52:19]SAM_PROTO_SignData done [20:52:19]FM_MakeSignedData done [20:52:19]CreateOFDProtocolMessage [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 11 00 00 [20:52:19]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 54 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [20:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:19]wFMCommunicate OK [20:52:19]CreateOFDProtocolMessage done [20:52:19]OFDSenderStorePacket 166544 [20:52:19]StoreOFDPacket docnum=166544 [20:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 06 04 01 F7 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 82 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8A 02 00 35 04 06 00 79 A2 07 AA B9 07 5F 99 83 70 AF A7 B2 DF [20:52:19]CheckFolder [20:52:19]dirname=/storage/ofd_packets [20:52:19]CheckFolder done [20:52:19]ProducePacketName [20:52:19]name=ofd_packets/00166544 [20:52:19]NVStorageSaveData ofd_packets/00166544 [20:52:19]File name is /storage/ofd_packets/00166544 [20:52:19]Write 298 bytes [20:52:19]NVStorageSaveData done [20:52:19]OFDSenderStorePacket done [20:52:19]KKMCreateOFDPacket done [20:52:19]NVStorageSaveData kkm_last_timestamp [20:52:19]File name is /storage/kkm_last_timestamp [20:52:19]Write 4 bytes [20:52:19]NVStorageSaveData done [20:52:19]ExternCall_PrintAddStr [20:52:19]wPrintStart [20:52:19]Write to MH i2c: 01 00 00 55 11 66 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 55 11 00 00 00 00 00 FF 0F 7B [20:52:19]RasterBufferAndPrint [20:52:19]line Счет N : (1)221126 [20:52:19]line ИНН: 02508201610067 [20:52:19]line Контрольно-Кассовый Чек [20:52:19]line ПРОДАЖА [20:52:19]line ТРК (МРК, ГНК) : 11 [20:52:19]line Товар: 2710194210 [20:52:19]line ДТ-К-5 [20:52:19]line 13.130 * 76.20 [20:52:19]line = 1000.51 [20:52:19]line НДС 12% НСП 1% [20:52:19]line > о реализуемом товаре [20:52:19]line ИТОГО: 1000.51 [20:52:19]line НСП 1% : 8.85 [20:52:19]line НДС 12% : 106.25 [20:52:19]line Наличными: 0.00 [20:52:19]line Безнал.: 1000.51 [20:52:19]line Место: АЗС № 161 "Партнер Нефть" [20:52:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:52:19]line СНО: Общий режим [20:52:19]line Чек 299 22.10.2024 20:52 [20:52:19]line Смена: 536 ФФД: 1.0 [20:52:19]line ЗНМ: 0300000104 [20:52:19]line РНМ: 0000000000091764 [20:52:19]line Версия ККМ: 001 [20:52:19]line Платежная система: Mbank [20:52:19]line ФМ: 0000000000871759 [20:52:19]line ФД: 166544 [20:52:19]line ФПД: 133736820291847 [20:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166544&fm=133736820291847&tin=02508201610067®Number=0000000000091764&sum=100051 [20:52:19]OFD Sender: Processing packet 166544 [packets to send 48, broken 47] [20:52:19]ProducePacketName [20:52:19]name=ofd_packets/00166544 [20:52:19]OFD Sender: To server: pG, [20:52:19]CommunicateWithHost lk.salyk.kg:30040 [20:52:19]ConnectInit lk.salyk.kg [20:52:19]written 0, free lines is 4095 [20:52:19]Connected sock=9 [20:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 06 04 01 F7 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 82 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8A 02 00 35 04 06 00 79 A2 07 AA B9 07 5F 99 83 70 AF A7 B2 DF [20:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 C2 47 00 69 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 8A 02 00 F4 03 04 00 EC B6 17 67 B6 04 01 00 00 C5 F0 30 E4 BA 43 4F 36 [20:52:20]CommunicateWithHost err = 0 [20:52:20]CheckOFDResponse [20:52:20]1017 (14) - 77093643461234 [20:52:20]1041 (16) - 0000000000871759 [20:52:20]1040 (4) - 166544 [20:52:20]1012 (4) - 22.10.2024 14:30 [20:52:20]1206 (1) - 0 [20:52:20]OFD Sender: Remove packet 166544 [20:52:20]ProducePacketName [20:52:20]name=ofd_packets/00166544 [20:52:20]NVStorageDeleteData [20:52:20]Write to MH i2c: 01 00 00 7E 11 8F [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: 01 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: 01 07 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 D5 0C 77 [20:52:20]RasterBufferAndPrint [20:52:20]line [20:52:20]line [20:52:20]line [20:52:20]line [20:52:20]line [20:52:20]written 0, free lines is 3294 [20:52:20]MH_Cut [20:52:20]Write to MH i2c: D1 01 00 85 11 01 68 [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: D1 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: D1 01 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: D1 01 00 85 11 00 67 [20:52:20]Write to MH i2c: 01 00 00 86 11 97 [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]OFD Sender: No OFD packet to send [20:52:20]*** Cut start [20:52:20]*** Partial cut [20:52:20]*** CUTSNS_PIN = 1 [20:52:21]*** CUTSNS_PIN = 0 [20:52:21]*** Brake cut motor [20:52:21]Read from MH i2c: 01 [20:52:21]MH_I2C_Read... [20:52:21]*** Stop cut motor [20:52:21]*** Cut end [20:52:21]Read from MH i2c: 01 07 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 FF 0F AC [20:52:21]process_action close_receipt done [20:52:21]requested_data is exist [20:52:21]produce_requested_data [20:52:21]requested_item fm.sn is exist - process it [20:52:21]wFMCommunicate request_size=4 [20:52:21]MH_SAM_APDU [20:52:21]CAPDU: 80 11 00 00 [20:52:21]Write to MH i2c: E2 08 00 87 11 80 11 00 00 00 00 00 00 12 [20:52:21]Write i2c OK [20:52:21]MH_I2C_Read... [20:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:21]Read from MH i2c: E2 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 17 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 17 00 87 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [20:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:21]wFMCommunicate OK [20:52:21]requested_item fd.num is exist - process it [20:52:21]SAM_PROTO_GetFieldsCounters [20:52:21]wFMCommunicate request_size=4 [20:52:21]MH_SAM_APDU [20:52:21]CAPDU: 80 13 00 00 [20:52:21]Write to MH i2c: E2 08 00 88 11 80 13 00 00 00 00 00 00 15 [20:52:21]Write i2c OK [20:52:21]MH_I2C_Read... [20:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:21]Read from MH i2c: E2 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 62 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 62 00 88 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [20:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:21]wFMCommunicate OK [20:52:21]SAM_PROTO_GetFieldsCounters done [20:52:21]requested_item shift.num is exist - process it [20:52:21]requested_item shift.opened is exist - process it [20:52:21]req_shift_opened [20:52:21]FM_GetShiftState [20:52:21]SAM_PROTO_GetShiftState [20:52:21]wFMCommunicate request_size=4 [20:52:21]MH_SAM_APDU [20:52:21]CAPDU: 80 13 01 00 [20:52:21]Write to MH i2c: E2 08 00 89 11 80 13 01 00 00 00 00 00 17 [20:52:21]Write i2c OK [20:52:21]MH_I2C_Read... [20:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:21]Read from MH i2c: E2 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 0E 00 [20:52:21]MH_I2C_Read... [20:52:21]Read from MH i2c: E2 0E 00 89 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6A [20:52:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:21]wFMCommunicate OK [20:52:21]SAM_PROTO_GetShiftState done [20:52:21]FM_GetShiftState done [20:52:21]req_shift_opened done [20:52:21]requested_item shift.open_date is exist - process it [20:52:21]req_shift_open_date [20:52:21]req_shift_open_date done [20:52:21]produce_requested_data done [20:52:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166544,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:52:21]process_action_free close_receipt [20:52:21]json_value_free [20:52:21]json_value_free done [20:52:21]process_json_proto returns [20:52:21]Send response to host [20:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166544,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:52:21]free response buf [20:52:21]execute_script done [20:52:21]execute_script returns [20:52:21]free content buf [20:52:21]Sock 10.Close socket [20:52:21]Sock 10.Thread stoped [20:52:22]accept exits with 7 [20:52:22]New connection [20:52:22]New thread 3067632996 created [20:52:22]Thread 3067489636 joined [20:52:22]Waiting for new connection... [20:52:22] Sock 7.Parse request [20:52:22]Sock 7.Check first char [20:52:22]Sock 7.First char is OK [20:52:22]request: POST /json_proto HTTP/1.0 [20:52:22]Method: POST [20:52:22]URL: /json_proto [20:52:22]Method is POST - this is cgi request [20:52:22]url: /json_proto [20:52:22]query_string will be loaded in cgi processing [20:52:22]execute_cgi json_proto POST (null) [20:52:22]execute_cgi path=json_proto method=POST [20:52:22]POST find Content-Length [20:52:22]Host: 172.17.53.195:8080 [20:52:22]Content-Length: 763 [20:52:22]Content-Type: application/json [20:52:22] [20:52:22]POST finish read [20:52:22]Found Content-Length = 763 [20:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:22]execute_script... [20:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:22]POST & json_proto [20:52:22]process_json_proto [20:52:22]json parsed OK: [20:52:22]protocol is kg_v1.0 [20:52:22]action value=close_receipt [20:52:22]process_action close_receipt [20:52:22]cmd_close_receipt [20:52:22]MH_GetDate [20:52:22]Write to MH i2c: F0 00 00 8A 11 8A [20:52:22]Write i2c OK [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: F0 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: F0 09 00 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: F0 09 00 8A 11 00 87 10 18 67 21 48 4A 65 C1 [20:52:22]GetLastDocTimeStamp 1729630338 [20:52:22]current date 1729630343 [20:52:22]FM_GetShiftState [20:52:22]SAM_PROTO_GetShiftState [20:52:22]wFMCommunicate request_size=4 [20:52:22]MH_SAM_APDU [20:52:22]CAPDU: 80 13 01 00 [20:52:22]Write to MH i2c: E2 08 00 8B 11 80 13 01 00 00 00 00 00 19 [20:52:22]Write i2c OK [20:52:22]MH_I2C_Read... [20:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:22]Read from MH i2c: E2 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 0E 00 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: E2 0E 00 8B 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6C [20:52:22]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:22]wFMCommunicate OK [20:52:22]SAM_PROTO_GetShiftState done [20:52:22]FM_GetShiftState done [20:52:22]opened in 1729557463 [20:52:22]opened+sec_in_day 1729643863 [20:52:22]quantity*price = 50063 [20:52:22]sum+1 = 50064 [20:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 300 22.10.2024 20:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166545 ФПД: 95175654422978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166545&fm=95175654422978&tin=02508201610067®Number=0000000000091764&sum=50063 [20:52:23]StoreToDocumentArchive [20:52:23]shift 536 fd 166545 [20:52:23]save to /storage/0536/doc_00166545 [20:52:23]save last doc name /storage/0536/doc_00166545 to /storage/kkm_last_doc_name [20:52:23]save OK [20:52:23]Clear old archive folders... [20:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:23]tlvbuf is 01230F60 [20:52:23]SAM_PROTO_ClearQueue [20:52:23]wFMCommunicate request_size=4 [20:52:23]MH_SAM_APDU [20:52:23]CAPDU: 80 09 00 00 [20:52:23]Write to MH i2c: E2 08 00 98 11 80 09 00 00 00 00 00 00 1B [20:52:23]Write i2c OK [20:52:23]MH_I2C_Read... [20:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:23]Read from MH i2c: E2 [20:52:23]MH_I2C_Read... [20:52:23]Read from MH i2c: E2 03 00 [20:52:23]MH_I2C_Read... [20:52:23]Read from MH i2c: E2 03 00 98 11 00 90 00 1D [20:52:23]RAPDU: 90 00 [20:52:23]wFMCommunicate OK [20:52:23]SAM_PROTO_ClearQueue done [20:52:23]KKMCreateOFDPacket [20:52:23]OFDProtocolAddRootSTLVToBuf [20:52:23]FM_MakeSignedData [20:52:23]FM_MakeSignedData [20:52:23]SAM_PROTO_SignData [20:52:23]wFMCommunicate request_size=4 [20:52:23]MH_SAM_APDU [20:52:23]CAPDU: 80 0D 01 02 [20:52:23]Write to MH i2c: E2 08 00 99 11 80 0D 01 02 00 00 00 00 23 [20:52:23]Write i2c OK [20:52:23]MH_I2C_Read... [20:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:23]Read from MH i2c: E2 [20:52:23]MH_I2C_Read... [20:52:23]Read from MH i2c: E2 03 00 [20:52:23]MH_I2C_Read... [20:52:23]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [20:52:23]RAPDU: 90 00 [20:52:23]wFMCommunicate OK [20:52:23]wFMCommunicate request_size=255 [20:52:23]MH_SAM_APDU [20:52:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 87 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8A 02 00 35 04 06 00 56 8F CF 12 [20:52:23]Write to MH i2c: E2 02 01 9A 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 87 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8A 02 00 35 04 06 00 56 8F CF 12 00 00 F5 [20:52:23]Write i2c OK [20:52:23]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]wFMCommunicate request_size=7 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 0D 02 02 02 B9 C2 [20:52:24]Write to MH i2c: E2 0A 00 9B 11 80 0D 02 02 02 00 B9 C2 00 00 A5 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 0D 03 02 [20:52:24]Write to MH i2c: E2 08 00 9C 11 80 0D 03 02 00 00 00 00 28 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 0B 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 0B 00 9C 11 00 62 A9 41 11 F7 CB DF EC 90 00 13 [20:52:24]RAPDU: 62 A9 41 11 F7 CB DF EC 90 00 [20:52:24]wFMCommunicate OK [20:52:24]SAM_PROTO_SignData done [20:52:24]FM_MakeSignedData done [20:52:24]CreateOFDProtocolMessage [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 11 00 00 [20:52:24]Write to MH i2c: E2 08 00 9D 11 80 11 00 00 00 00 00 00 28 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 9D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [20:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:24]wFMCommunicate OK [20:52:24]CreateOFDProtocolMessage done [20:52:24]OFDSenderStorePacket 166545 [20:52:24]StoreOFDPacket docnum=166545 [20:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 05 87 04 01 33 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 87 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8A 02 00 35 04 06 00 56 8F CF 12 B9 C2 62 A9 41 11 F7 CB DF EC [20:52:24]CheckFolder [20:52:24]dirname=/storage/ofd_packets [20:52:24]CheckFolder done [20:52:24]ProducePacketName [20:52:24]name=ofd_packets/00166545 [20:52:24]NVStorageSaveData ofd_packets/00166545 [20:52:24]File name is /storage/ofd_packets/00166545 [20:52:24]Write 298 bytes [20:52:24]NVStorageSaveData done [20:52:24]OFDSenderStorePacket done [20:52:24]KKMCreateOFDPacket done [20:52:24]NVStorageSaveData kkm_last_timestamp [20:52:24]File name is /storage/kkm_last_timestamp [20:52:24]Write 4 bytes [20:52:24]NVStorageSaveData done [20:52:24]ExternCall_PrintAddStr [20:52:24]wPrintStart [20:52:24]Write to MH i2c: 01 00 00 9E 11 AF [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 FF 0F C4 [20:52:24]RasterBufferAndPrint [20:52:24]line Счет N : (1)221125 [20:52:24]line ИНН: 02508201610067 [20:52:24]line Контрольно-Кассовый Чек [20:52:24]line ПРОДАЖА [20:52:24]line ТРК (МРК, ГНК) : 21 [20:52:24]line Товар: 2710194210 [20:52:24]line ДТ-К-5 [20:52:24]line 6.570 * 76.20 [20:52:24]line = 500.63 [20:52:24]line НДС 12% НСП 1% [20:52:24]line > о реализуемом товаре [20:52:24]line ИТОГО: 500.63 [20:52:24]line НСП 1% : 4.43 [20:52:24]line НДС 12% : 53.16 [20:52:24]line Наличными: 0.00 [20:52:24]line Безнал.: 500.63 [20:52:24]line Место: АЗС № 161 "Партнер Нефть" [20:52:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:52:24]line СНО: Общий режим [20:52:24]line Чек 300 22.10.2024 20:52 [20:52:24]line Смена: 536 ФФД: 1.0 [20:52:24]line ЗНМ: 0300000104 [20:52:24]line РНМ: 0000000000091764 [20:52:24]line Версия ККМ: 001 [20:52:24]line Платежная система: Mbank [20:52:24]line ФМ: 0000000000871759 [20:52:24]line ФД: 166545 [20:52:24]line ФПД: 95175654422978 [20:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205223&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166545&fm=95175654422978&tin=02508201610067®Number=0000000000091764&sum=50063 [20:52:24]written 0, free lines is 4095 [20:52:24]OFD Sender: Processing packet 166545 [packets to send 48, broken 47] [20:52:24]ProducePacketName [20:52:24]name=ofd_packets/00166545 [20:52:24]OFD Sender: To server: pG, [20:52:24]CommunicateWithHost lk.salyk.kg:30040 [20:52:24]ConnectInit lk.salyk.kg [20:52:24]Connected sock=10 [20:52:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 05 87 04 01 33 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 87 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8A 02 00 35 04 06 00 56 8F CF 12 B9 C2 62 A9 41 11 F7 CB DF EC [20:52:24]Write to MH i2c: 01 00 00 C7 11 D8 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 DB 0C C6 [20:52:24]RasterBufferAndPrint [20:52:24]line [20:52:24]line [20:52:24]line [20:52:24]line [20:52:24]line [20:52:24]written 0, free lines is 3303 [20:52:24]MH_Cut [20:52:24]Write to MH i2c: D1 01 00 CE 11 01 B1 [20:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 43 43 47 00 E6 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 8A 02 00 F4 03 04 00 F1 B6 17 67 B6 04 01 00 00 7D 9A 70 36 CE 18 F0 1E [20:52:24]CommunicateWithHost err = 0 [20:52:24]CheckOFDResponse [20:52:24]1017 (14) - 77093643461234 [20:52:24]1041 (16) - 0000000000871759 [20:52:24]1040 (4) - 166545 [20:52:24]1012 (4) - 22.10.2024 14:30 [20:52:24]1206 (1) - 0 [20:52:24]OFD Sender: Remove packet 166545 [20:52:24]ProducePacketName [20:52:24]name=ofd_packets/00166545 [20:52:24]NVStorageDeleteData [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: D1 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: D1 01 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: D1 01 00 CE 11 00 B0 [20:52:24]Write to MH i2c: 01 00 00 CF 11 E0 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:25]OFD Sender: No OFD packet to send [20:52:25]*** Cut start [20:52:25]*** Partial cut [20:52:25]*** CUTSNS_PIN = 1 [20:52:25]*** CUTSNS_PIN = 0 [20:52:25]*** Brake cut motor [20:52:26]Read from MH i2c: 01 [20:52:26]MH_I2C_Read... [20:52:26]*** Stop cut motor [20:52:26]*** Cut end [20:52:26]Read from MH i2c: 01 07 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 FF 0F F5 [20:52:26]process_action close_receipt done [20:52:26]requested_data is exist [20:52:26]produce_requested_data [20:52:26]requested_item fm.sn is exist - process it [20:52:26]wFMCommunicate request_size=4 [20:52:26]MH_SAM_APDU [20:52:26]CAPDU: 80 11 00 00 [20:52:26]Write to MH i2c: E2 08 00 D0 11 80 11 00 00 00 00 00 00 5B [20:52:26]Write i2c OK [20:52:26]MH_I2C_Read... [20:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 17 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 17 00 D0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [20:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:26]wFMCommunicate OK [20:52:26]requested_item fd.num is exist - process it [20:52:26]SAM_PROTO_GetFieldsCounters [20:52:26]wFMCommunicate request_size=4 [20:52:26]MH_SAM_APDU [20:52:26]CAPDU: 80 13 00 00 [20:52:26]Write to MH i2c: E2 08 00 D1 11 80 13 00 00 00 00 00 00 5E [20:52:26]Write i2c OK [20:52:26]MH_I2C_Read... [20:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 62 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 62 00 D1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [20:52:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:26]wFMCommunicate OK [20:52:26]SAM_PROTO_GetFieldsCounters done [20:52:26]requested_item shift.num is exist - process it [20:52:26]requested_item shift.opened is exist - process it [20:52:26]req_shift_opened [20:52:26]FM_GetShiftState [20:52:26]SAM_PROTO_GetShiftState [20:52:26]wFMCommunicate request_size=4 [20:52:26]MH_SAM_APDU [20:52:26]CAPDU: 80 13 01 00 [20:52:26]Write to MH i2c: E2 08 00 D2 11 80 13 01 00 00 00 00 00 60 [20:52:26]Write i2c OK [20:52:26]MH_I2C_Read... [20:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 0E 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 0E 00 D2 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B3 [20:52:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:26]wFMCommunicate OK [20:52:26]SAM_PROTO_GetShiftState done [20:52:26]FM_GetShiftState done [20:52:26]req_shift_opened done [20:52:26]requested_item shift.open_date is exist - process it [20:52:26]req_shift_open_date [20:52:26]req_shift_open_date done [20:52:26]produce_requested_data done [20:52:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166545,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:52:26]process_action_free close_receipt [20:52:26]json_value_free [20:52:26]json_value_free done [20:52:26]process_json_proto returns [20:52:26]Send response to host [20:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166545,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:52:26]free response buf [20:52:26]execute_script done [20:52:26]execute_script returns [20:52:26]free content buf [20:52:26]Sock 7.Close socket [20:52:26]Sock 7.Thread stoped [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:49]accept exits with 9 [20:52:49]New connection [20:52:49]New thread 3067489636 created [20:52:49]Thread 3067632996 joined [20:52:49]Waiting for new connection... [20:52:49] Sock 9.Parse request [20:52:49]Sock 9.Check first char [20:52:49]Sock 9.First char is OK [20:52:49]request: POST /json_proto HTTP/1.0 [20:52:49]Method: POST [20:52:49]URL: /json_proto [20:52:49]Method is POST - this is cgi request [20:52:49]url: /json_proto [20:52:49]query_string will be loaded in cgi processing [20:52:49]execute_cgi json_proto POST (null) [20:52:49]execute_cgi path=json_proto method=POST [20:52:49]POST find Content-Length [20:52:49]Host: 172.17.53.195:8080 [20:52:49]Content-Length: 763 [20:52:49]Content-Type: application/json [20:52:49] [20:52:49]POST finish read [20:52:49]Found Content-Length = 763 [20:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:49]execute_script... [20:52:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:49]POST & json_proto [20:52:49]process_json_proto [20:52:49]json parsed OK: [20:52:49]protocol is kg_v1.0 [20:52:49]action value=close_receipt [20:52:49]process_action close_receipt [20:52:49]cmd_close_receipt [20:52:49]MH_GetDate [20:52:49]Write to MH i2c: F0 00 00 D3 11 D3 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: F0 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: F0 09 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: F0 09 00 D3 11 00 A2 10 18 67 21 48 4A 65 25 [20:52:49]GetLastDocTimeStamp 1729630343 [20:52:49]current date 1729630370 [20:52:49]FM_GetShiftState [20:52:49]SAM_PROTO_GetShiftState [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 13 01 00 [20:52:49]Write to MH i2c: E2 08 00 D4 11 80 13 01 00 00 00 00 00 62 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 D4 11 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B5 [20:52:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_GetShiftState done [20:52:49]FM_GetShiftState done [20:52:49]opened in 1729557463 [20:52:49]opened+sec_in_day 1729643863 [20:52:49]quantity*price = 50063 [20:52:49]sum+1 = 50064 [20:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 301 22.10.2024 20:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166546 ФПД: 159008223271143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205250&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166546&fm=159008223271143&tin=02508201610067®Number=0000000000091764&sum=50063 [20:52:50]StoreToDocumentArchive [20:52:50]shift 536 fd 166546 [20:52:50]save to /storage/0536/doc_00166546 [20:52:50]save last doc name /storage/0536/doc_00166546 to /storage/kkm_last_doc_name [20:52:50]save OK [20:52:50]Clear old archive folders... [20:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:50]tlvbuf is 011F53F0 [20:52:50]SAM_PROTO_ClearQueue [20:52:50]wFMCommunicate request_size=4 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 09 00 00 [20:52:50]Write to MH i2c: E2 08 00 E1 11 80 09 00 00 00 00 00 00 64 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 E1 11 00 90 00 66 [20:52:50]RAPDU: 90 00 [20:52:50]wFMCommunicate OK [20:52:50]SAM_PROTO_ClearQueue done [20:52:50]KKMCreateOFDPacket [20:52:50]OFDProtocolAddRootSTLVToBuf [20:52:50]FM_MakeSignedData [20:52:50]FM_MakeSignedData [20:52:50]SAM_PROTO_SignData [20:52:50]wFMCommunicate request_size=4 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 0D 01 02 [20:52:50]Write to MH i2c: E2 08 00 E2 11 80 0D 01 02 00 00 00 00 6C [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:50]OFD Sender: No OFD packet to send [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [20:52:50]RAPDU: 90 00 [20:52:50]wFMCommunicate OK [20:52:50]wFMCommunicate request_size=255 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A2 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8A 02 00 35 04 06 00 90 9D FC AA [20:52:50]Write to MH i2c: E2 02 01 E3 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A2 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8A 02 00 35 04 06 00 90 9D FC AA 00 00 68 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [20:52:50]RAPDU: 90 00 [20:52:50]wFMCommunicate OK [20:52:50]wFMCommunicate request_size=7 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 0D 02 02 02 18 E7 [20:52:50]Write to MH i2c: E2 0A 00 E4 11 80 0D 02 02 02 00 18 E7 00 00 72 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [20:52:50]RAPDU: 90 00 [20:52:50]wFMCommunicate OK [20:52:50]wFMCommunicate request_size=4 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 0D 03 02 [20:52:50]Write to MH i2c: E2 08 00 E5 11 80 0D 03 02 00 00 00 00 71 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 0B 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 0B 00 E5 11 00 05 D4 8B 19 6F B6 7E 22 90 00 B4 [20:52:50]RAPDU: 05 D4 8B 19 6F B6 7E 22 90 00 [20:52:50]wFMCommunicate OK [20:52:50]SAM_PROTO_SignData done [20:52:50]FM_MakeSignedData done [20:52:50]CreateOFDProtocolMessage [20:52:50]wFMCommunicate request_size=4 [20:52:50]MH_SAM_APDU [20:52:50]CAPDU: 80 11 00 00 [20:52:50]Write to MH i2c: E2 08 00 E6 11 80 11 00 00 00 00 00 00 71 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:50]Read from MH i2c: E2 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 17 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: E2 17 00 E6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [20:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:50]wFMCommunicate OK [20:52:50]CreateOFDProtocolMessage done [20:52:50]OFDSenderStorePacket 166546 [20:52:50]StoreOFDPacket docnum=166546 [20:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 16 F4 04 01 3F 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A2 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8A 02 00 35 04 06 00 90 9D FC AA 18 E7 05 D4 8B 19 6F B6 7E 22 [20:52:50]CheckFolder [20:52:50]dirname=/storage/ofd_packets [20:52:50]CheckFolder done [20:52:50]ProducePacketName [20:52:50]name=ofd_packets/00166546 [20:52:50]NVStorageSaveData ofd_packets/00166546 [20:52:50]File name is /storage/ofd_packets/00166546 [20:52:50]Write 298 bytes [20:52:50]NVStorageSaveData done [20:52:50]OFDSenderStorePacket done [20:52:50]KKMCreateOFDPacket done [20:52:50]NVStorageSaveData kkm_last_timestamp [20:52:50]File name is /storage/kkm_last_timestamp [20:52:50]Write 4 bytes [20:52:50]NVStorageSaveData done [20:52:50]ExternCall_PrintAddStr [20:52:50]wPrintStart [20:52:50]Write to MH i2c: 01 00 00 E7 11 F8 [20:52:50]Write i2c OK [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: 01 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: 01 07 00 [20:52:50]MH_I2C_Read... [20:52:50]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 FF 0F 0D [20:52:50]RasterBufferAndPrint [20:52:50]line Счет N : (1)221127 [20:52:50]line ИНН: 02508201610067 [20:52:50]line Контрольно-Кассовый Чек [20:52:50]line ПРОДАЖА [20:52:50]line ТРК (МРК, ГНК) : 31 [20:52:50]line Товар: 2710194210 [20:52:50]line ДТ-К-5 [20:52:50]line 6.570 * 76.20 [20:52:50]line = 500.63 [20:52:50]line НДС 12% НСП 1% [20:52:50]line > о реализуемом товаре [20:52:50]line ИТОГО: 500.63 [20:52:50]line НСП 1% : 4.43 [20:52:50]line НДС 12% : 53.16 [20:52:50]line Наличными: 0.00 [20:52:50]line Безнал.: 500.63 [20:52:50]line Место: АЗС № 161 "Партнер Нефть" [20:52:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:52:50]line СНО: Общий режим [20:52:50]line Чек 301 22.10.2024 20:52 [20:52:50]line Смена: 536 ФФД: 1.0 [20:52:50]line ЗНМ: 0300000104 [20:52:50]line РНМ: 0000000000091764 [20:52:50]line Версия ККМ: 001 [20:52:50]line Платежная система: Mbank [20:52:50]line ФМ: 0000000000871759 [20:52:50]line ФД: 166546 [20:52:50]line ФПД: 159008223271143 [20:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205250&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166546&fm=159008223271143&tin=02508201610067®Number=0000000000091764&sum=50063 [20:52:51]OFD Sender: Processing packet 166546 [packets to send 48, broken 47] [20:52:51]ProducePacketName [20:52:51]name=ofd_packets/00166546 [20:52:51]OFD Sender: To server: pG, [20:52:51]CommunicateWithHost lk.salyk.kg:30040 [20:52:51]ConnectInit lk.salyk.kg [20:52:51]written 0, free lines is 4095 [20:52:51]Connected sock=10 [20:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 16 F4 04 01 3F 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 A2 10 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8A 02 00 35 04 06 00 90 9D FC AA 18 E7 05 D4 8B 19 6F B6 7E 22 [20:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 30 47 00 A0 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 8A 02 00 F4 03 04 00 0C B7 17 67 B6 04 01 00 00 6A CB 66 4C 81 C4 0C 08 [20:52:51]CommunicateWithHost err = 0 [20:52:51]CheckOFDResponse [20:52:51]1017 (14) - 77093643461234 [20:52:51]1041 (16) - 0000000000871759 [20:52:51]1040 (4) - 166546 [20:52:51]1012 (4) - 22.10.2024 14:30 [20:52:51]1206 (1) - 0 [20:52:51]OFD Sender: Remove packet 166546 [20:52:51]ProducePacketName [20:52:51]name=ofd_packets/00166546 [20:52:51]NVStorageDeleteData [20:52:51]Write to MH i2c: 01 00 00 10 12 22 [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: 01 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: 01 07 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 E6 0C 1B [20:52:51]RasterBufferAndPrint [20:52:51]line [20:52:51]line [20:52:51]line [20:52:51]line [20:52:51]line [20:52:51]written 0, free lines is 3311 [20:52:51]MH_Cut [20:52:51]Write to MH i2c: D1 01 00 17 12 01 FB [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: D1 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: D1 01 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: D1 01 00 17 12 00 FA [20:52:51]Write to MH i2c: 01 00 00 18 12 2A [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:52]OFD Sender: No OFD packet to send [20:52:52]*** Cut start [20:52:52]*** Partial cut [20:52:52]*** CUTSNS_PIN = 1 [20:52:52]*** CUTSNS_PIN = 0 [20:52:52]*** Brake cut motor [20:52:53]Read from MH i2c: 01 [20:52:53]MH_I2C_Read... [20:52:53]*** Stop cut motor [20:52:53]*** Cut end [20:52:53]Read from MH i2c: 01 07 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 FF 0F 3F [20:52:53]process_action close_receipt done [20:52:53]requested_data is exist [20:52:53]produce_requested_data [20:52:53]requested_item fm.sn is exist - process it [20:52:53]wFMCommunicate request_size=4 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 11 00 00 [20:52:53]Write to MH i2c: E2 08 00 19 12 80 11 00 00 00 00 00 00 A5 [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 17 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 17 00 19 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [20:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:52:53]wFMCommunicate OK [20:52:53]requested_item fd.num is exist - process it [20:52:53]SAM_PROTO_GetFieldsCounters [20:52:53]wFMCommunicate request_size=4 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 13 00 00 [20:52:53]Write to MH i2c: E2 08 00 1A 12 80 13 00 00 00 00 00 00 A8 [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 62 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 62 00 1A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:53]wFMCommunicate OK [20:52:53]SAM_PROTO_GetFieldsCounters done [20:52:53]requested_item shift.num is exist - process it [20:52:53]requested_item shift.opened is exist - process it [20:52:53]req_shift_opened [20:52:53]FM_GetShiftState [20:52:53]SAM_PROTO_GetShiftState [20:52:53]wFMCommunicate request_size=4 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 13 01 00 [20:52:53]Write to MH i2c: E2 08 00 1B 12 80 13 01 00 00 00 00 00 AA [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 0E 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 0E 00 1B 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FD [20:52:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [20:52:53]wFMCommunicate OK [20:52:53]SAM_PROTO_GetShiftState done [20:52:53]FM_GetShiftState done [20:52:53]req_shift_opened done [20:52:53]requested_item shift.open_date is exist - process it [20:52:53]req_shift_open_date [20:52:53]req_shift_open_date done [20:52:53]produce_requested_data done [20:52:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166546,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [20:52:53]process_action_free close_receipt [20:52:53]json_value_free [20:52:53]json_value_free done [20:52:53]process_json_proto returns [20:52:53]Send response to host [20:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166546,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [20:52:53]free response buf [20:52:53]execute_script done [20:52:53]execute_script returns [20:52:53]free content buf [20:52:53]Sock 9.Close socket [20:52:53]Sock 9.Thread stoped [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:12]ConnectInit Can't connect to host [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:05]accept exits with 7 [21:25:05]New connection [21:25:05]New thread 3067632996 created [21:25:05]Thread 3067489636 joined [21:25:05]Waiting for new connection... [21:25:05] Sock 7.Parse request [21:25:05]Sock 7.Check first char [21:25:05]Sock 7.First char is OK [21:25:05]request: POST /json_proto HTTP/1.0 [21:25:05]Method: POST [21:25:05]URL: /json_proto [21:25:05]Method is POST - this is cgi request [21:25:05]url: /json_proto [21:25:05]query_string will be loaded in cgi processing [21:25:05]execute_cgi json_proto POST (null) [21:25:05]execute_cgi path=json_proto method=POST [21:25:05]POST find Content-Length [21:25:05]Host: 172.17.53.195:8080 [21:25:05]Content-Length: 767 [21:25:05]Content-Type: application/json [21:25:05] [21:25:05]POST finish read [21:25:05]Found Content-Length = 767 [21:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:05]execute_script... [21:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:05]POST & json_proto [21:25:05]process_json_proto [21:25:05]json parsed OK: [21:25:05]protocol is kg_v1.0 [21:25:05]action value=close_receipt [21:25:05]process_action close_receipt [21:25:05]cmd_close_receipt [21:25:05]MH_GetDate [21:25:05]Write to MH i2c: F0 00 00 1C 12 1D [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: F0 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: F0 09 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: F0 09 00 1C 12 00 32 18 18 67 21 48 4A 65 07 [21:25:05]GetLastDocTimeStamp 1729630370 [21:25:05]current date 1729632306 [21:25:05]FM_GetShiftState [21:25:05]SAM_PROTO_GetShiftState [21:25:05]wFMCommunicate request_size=4 [21:25:05]MH_SAM_APDU [21:25:05]CAPDU: 80 13 01 00 [21:25:05]Write to MH i2c: E2 08 00 1D 12 80 13 01 00 00 00 00 00 AC [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:05]Read from MH i2c: E2 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 0E 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 0E 00 1D 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 FF [21:25:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:25:05]wFMCommunicate OK [21:25:05]SAM_PROTO_GetShiftState done [21:25:05]FM_GetShiftState done [21:25:05]opened in 1729557463 [21:25:05]opened+sec_in_day 1729643863 [21:25:05]quantity*price = 85029 [21:25:05]sum+1 = 85031 [21:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.30 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 0.00 Безнал.: 850.30 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 302 22.10.2024 21:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166547 ФПД: 255304196129257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166547&fm=255304196129257&tin=02508201610067®Number=0000000000091764&sum=85030 [21:25:06]StoreToDocumentArchive [21:25:06]shift 536 fd 166547 [21:25:06]save to /storage/0536/doc_00166547 [21:25:06]save last doc name /storage/0536/doc_00166547 to /storage/kkm_last_doc_name [21:25:06]save OK [21:25:06]Clear old archive folders... [21:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:06]tlvbuf is 01203E00 [21:25:06]SAM_PROTO_ClearQueue [21:25:06]wFMCommunicate request_size=4 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 09 00 00 [21:25:06]Write to MH i2c: E2 08 00 2A 12 80 09 00 00 00 00 00 00 AE [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:06]Read from MH i2c: E2 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [21:25:06]RAPDU: 90 00 [21:25:06]wFMCommunicate OK [21:25:06]SAM_PROTO_ClearQueue done [21:25:06]KKMCreateOFDPacket [21:25:06]OFDProtocolAddRootSTLVToBuf [21:25:06]FM_MakeSignedData [21:25:06]FM_MakeSignedData [21:25:06]SAM_PROTO_SignData [21:25:06]wFMCommunicate request_size=4 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 0D 01 02 [21:25:06]Write to MH i2c: E2 08 00 2B 12 80 0D 01 02 00 00 00 00 B6 [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:06]Read from MH i2c: E2 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [21:25:06]RAPDU: 90 00 [21:25:06]wFMCommunicate OK [21:25:06]wFMCommunicate request_size=255 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 32 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8A 02 00 35 04 06 00 E8 [21:25:06]Write to MH i2c: E2 02 01 2C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 32 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8A 02 00 35 04 06 00 E8 00 00 A7 [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:06]Read from MH i2c: E2 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [21:25:06]RAPDU: 90 00 [21:25:06]wFMCommunicate OK [21:25:06]wFMCommunicate request_size=10 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 0D 02 02 05 32 A3 EB 81 E9 [21:25:06]Write to MH i2c: E2 0D 00 2D 12 80 0D 02 02 05 00 32 A3 EB 81 E9 00 00 ED [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:07]Read from MH i2c: E2 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 03 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [21:25:07]RAPDU: 90 00 [21:25:07]wFMCommunicate OK [21:25:07]wFMCommunicate request_size=4 [21:25:07]MH_SAM_APDU [21:25:07]CAPDU: 80 0D 03 02 [21:25:07]Write to MH i2c: E2 08 00 2E 12 80 0D 03 02 00 00 00 00 BB [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:07]Read from MH i2c: E2 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 0B 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 0B 00 2E 12 00 FD 07 DA E9 8A A7 60 3E 90 00 52 [21:25:07]RAPDU: FD 07 DA E9 8A A7 60 3E 90 00 [21:25:07]wFMCommunicate OK [21:25:07]SAM_PROTO_SignData done [21:25:07]FM_MakeSignedData done [21:25:07]CreateOFDProtocolMessage [21:25:07]wFMCommunicate request_size=4 [21:25:07]MH_SAM_APDU [21:25:07]CAPDU: 80 11 00 00 [21:25:07]Write to MH i2c: E2 08 00 2F 12 80 11 00 00 00 00 00 00 BB [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:07]Read from MH i2c: E2 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 17 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 17 00 2F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [21:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:25:07]wFMCommunicate OK [21:25:07]CreateOFDProtocolMessage done [21:25:07]OFDSenderStorePacket 166547 [21:25:07]StoreOFDPacket docnum=166547 [21:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 51 07 01 3A DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 32 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8A 02 00 35 04 06 00 E8 32 A3 EB 81 E9 FD 07 DA E9 8A A7 60 3E [21:25:07]CheckFolder [21:25:07]dirname=/storage/ofd_packets [21:25:07]CheckFolder done [21:25:07]ProducePacketName [21:25:07]name=ofd_packets/00166547 [21:25:07]NVStorageSaveData ofd_packets/00166547 [21:25:07]File name is /storage/ofd_packets/00166547 [21:25:07]Write 301 bytes [21:25:07]NVStorageSaveData done [21:25:07]OFDSenderStorePacket done [21:25:07]KKMCreateOFDPacket done [21:25:07]NVStorageSaveData kkm_last_timestamp [21:25:07]File name is /storage/kkm_last_timestamp [21:25:07]Write 4 bytes [21:25:07]NVStorageSaveData done [21:25:07]ExternCall_PrintAddStr [21:25:07]wPrintStart [21:25:07]Write to MH i2c: 01 00 00 30 12 42 [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 07 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 07 00 30 12 00 00 00 00 00 FF 0F 57 [21:25:07]RasterBufferAndPrint [21:25:07]line Счет N : (1)221128 [21:25:07]line ИНН: 02508201610067 [21:25:07]line Контрольно-Кассовый Чек [21:25:07]line ПРОДАЖА [21:25:07]line ТРК (МРК, ГНК) : 23 [21:25:07]line Товар: 2710124130 [21:25:07]line Аи-92-К-5 [21:25:07]line 12.710 * 66.90 [21:25:07]line = 850.30 [21:25:07]line НДС 12% НСП 1% [21:25:07]line > о реализуемом товаре [21:25:07]line ИТОГО: 850.30 [21:25:07]line НСП 1% : 7.52 [21:25:07]line НДС 12% : 90.30 [21:25:07]line Наличными: 0.00 [21:25:07]line Безнал.: 850.30 [21:25:07]line Место: АЗС № 161 "Партнер Нефть" [21:25:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:25:07]line СНО: Общий режим [21:25:07]line Чек 302 22.10.2024 21:25 [21:25:07]line Смена: 536 ФФД: 1.0 [21:25:07]line ЗНМ: 0300000104 [21:25:07]line РНМ: 0000000000091764 [21:25:07]line Версия ККМ: 001 [21:25:07]line Платежная система: Mbank [21:25:07]line ФМ: 0000000000871759 [21:25:07]line ФД: 166547 [21:25:07]line ФПД: 255304196129257 [21:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212506&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166547&fm=255304196129257&tin=02508201610067®Number=0000000000091764&sum=85030 [21:25:07]written 0, free lines is 4095 [21:25:07]OFD Sender: Processing packet 166547 [packets to send 48, broken 47] [21:25:07]ProducePacketName [21:25:07]name=ofd_packets/00166547 [21:25:07]OFD Sender: To server: pG, [21:25:07]CommunicateWithHost lk.salyk.kg:30040 [21:25:07]ConnectInit lk.salyk.kg [21:25:07]Connected sock=10 [21:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D6 51 07 01 3A DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 32 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8A 02 00 35 04 06 00 E8 32 A3 EB 81 E9 FD 07 DA E9 8A A7 60 3E [21:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2F AD 47 00 8E 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 8A 02 00 F4 03 04 00 9C BE 17 67 B6 04 01 00 00 0D 6C 8F 8E 41 4B 53 B5 [21:25:07]CommunicateWithHost err = 0 [21:25:07]CheckOFDResponse [21:25:07]1017 (14) - 77093643461234 [21:25:07]1041 (16) - 0000000000871759 [21:25:07]1040 (4) - 166547 [21:25:07]1012 (4) - 22.10.2024 15:02 [21:25:07]1206 (1) - 0 [21:25:07]OFD Sender: Remove packet 166547 [21:25:07]ProducePacketName [21:25:07]name=ofd_packets/00166547 [21:25:07]NVStorageDeleteData [21:25:07]Write to MH i2c: 01 00 00 59 12 6B [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 07 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 D7 0C 55 [21:25:07]RasterBufferAndPrint [21:25:07]line [21:25:07]line [21:25:07]line [21:25:07]line [21:25:07]line [21:25:07]written 0, free lines is 3295 [21:25:07]MH_Cut [21:25:07]Write to MH i2c: D1 01 00 60 12 01 44 [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: D1 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: D1 01 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: D1 01 00 60 12 00 43 [21:25:07]Write to MH i2c: 01 00 00 61 12 73 [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]OFD Sender: No OFD packet to send [21:25:08]*** Cut start [21:25:08]*** Partial cut [21:25:08]*** CUTSNS_PIN = 1 [21:25:08]*** CUTSNS_PIN = 0 [21:25:08]*** Brake cut motor [21:25:09]Read from MH i2c: 01 [21:25:09]MH_I2C_Read... [21:25:09]*** Stop cut motor [21:25:09]*** Cut end [21:25:09]Read from MH i2c: 01 07 00 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: 01 07 00 61 12 00 00 00 00 00 FF 0F 88 [21:25:09]process_action close_receipt done [21:25:09]requested_data is exist [21:25:09]produce_requested_data [21:25:09]requested_item fm.sn is exist - process it [21:25:09]wFMCommunicate request_size=4 [21:25:09]MH_SAM_APDU [21:25:09]CAPDU: 80 11 00 00 [21:25:09]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [21:25:09]Write i2c OK [21:25:09]MH_I2C_Read... [21:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:09]Read from MH i2c: E2 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 17 00 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [21:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:25:09]wFMCommunicate OK [21:25:09]requested_item fd.num is exist - process it [21:25:09]SAM_PROTO_GetFieldsCounters [21:25:09]wFMCommunicate request_size=4 [21:25:09]MH_SAM_APDU [21:25:09]CAPDU: 80 13 00 00 [21:25:09]Write to MH i2c: E2 08 00 63 12 80 13 00 00 00 00 00 00 F1 [21:25:09]Write i2c OK [21:25:09]MH_I2C_Read... [21:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:09]Read from MH i2c: E2 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 62 00 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 62 00 63 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:09]wFMCommunicate OK [21:25:09]SAM_PROTO_GetFieldsCounters done [21:25:09]requested_item shift.num is exist - process it [21:25:09]requested_item shift.opened is exist - process it [21:25:09]req_shift_opened [21:25:09]FM_GetShiftState [21:25:09]SAM_PROTO_GetShiftState [21:25:09]wFMCommunicate request_size=4 [21:25:09]MH_SAM_APDU [21:25:09]CAPDU: 80 13 01 00 [21:25:09]Write to MH i2c: E2 08 00 64 12 80 13 01 00 00 00 00 00 F3 [21:25:09]Write i2c OK [21:25:09]MH_I2C_Read... [21:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:09]Read from MH i2c: E2 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 0E 00 [21:25:09]MH_I2C_Read... [21:25:09]Read from MH i2c: E2 0E 00 64 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 46 [21:25:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:25:09]wFMCommunicate OK [21:25:09]SAM_PROTO_GetShiftState done [21:25:09]FM_GetShiftState done [21:25:09]req_shift_opened done [21:25:09]requested_item shift.open_date is exist - process it [21:25:09]req_shift_open_date [21:25:09]req_shift_open_date done [21:25:09]produce_requested_data done [21:25:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166547,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:25:09]process_action_free close_receipt [21:25:09]json_value_free [21:25:09]json_value_free done [21:25:09]process_json_proto returns [21:25:09]Send response to host [21:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166547,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:25:09]free response buf [21:25:09]execute_script done [21:25:09]execute_script returns [21:25:09]free content buf [21:25:09]Sock 7.Close socket [21:25:09]Sock 7.Thread stoped [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [21:28:01]New connection [21:28:01]New thread 3067489636 created [21:28:01]Thread 3067632996 joined [21:28:01]Waiting for new connection... [21:28:01] Sock 9.Parse request [21:28:01]Sock 9.Check first char [21:28:01]Sock 9.First char is OK [21:28:01]request: POST /json_proto HTTP/1.0 [21:28:01]Method: POST [21:28:01]URL: /json_proto [21:28:01]Method is POST - this is cgi request [21:28:01]url: /json_proto [21:28:01]query_string will be loaded in cgi processing [21:28:01]execute_cgi json_proto POST (null) [21:28:01]execute_cgi path=json_proto method=POST [21:28:01]POST find Content-Length [21:28:01]Host: 172.17.53.195:8080 [21:28:01]Content-Length: 766 [21:28:01]Content-Type: application/json [21:28:01] [21:28:01]POST finish read [21:28:01]Found Content-Length = 766 [21:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:01]execute_script... [21:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:01]POST & json_proto [21:28:01]process_json_proto [21:28:01]json parsed OK: [21:28:01]protocol is kg_v1.0 [21:28:01]action value=close_receipt [21:28:01]process_action close_receipt [21:28:01]cmd_close_receipt [21:28:01]MH_GetDate [21:28:01]Write to MH i2c: F0 00 00 65 12 66 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: F0 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: F0 09 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: F0 09 00 65 12 00 E2 18 18 67 21 48 4A 65 00 [21:28:01]GetLastDocTimeStamp 1729632306 [21:28:01]current date 1729632482 [21:28:01]FM_GetShiftState [21:28:01]SAM_PROTO_GetShiftState [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 13 01 00 [21:28:01]Write to MH i2c: E2 08 00 66 12 80 13 01 00 00 00 00 00 F5 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0E 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0E 00 66 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 48 [21:28:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:28:01]wFMCommunicate OK [21:28:01]SAM_PROTO_GetShiftState done [21:28:01]FM_GetShiftState done [21:28:01]opened in 1729557463 [21:28:01]opened+sec_in_day 1729643863 [21:28:01]quantity*price = 40006 [21:28:01]sum+1 = 40007 [21:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 303 22.10.2024 21:28 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166548 ФПД: 210561631285670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212802&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166548&fm=210561631285670&tin=02508201610067®Number=0000000000091764&sum=40006 [21:28:02]StoreToDocumentArchive [21:28:02]shift 536 fd 166548 [21:28:02]save to /storage/0536/doc_00166548 [21:28:02]save last doc name /storage/0536/doc_00166548 to /storage/kkm_last_doc_name [21:28:02]save OK [21:28:02]Clear old archive folders... [21:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:02]tlvbuf is 01214200 [21:28:02]SAM_PROTO_ClearQueue [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 09 00 00 [21:28:02]Write to MH i2c: E2 08 00 73 12 80 09 00 00 00 00 00 00 F7 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [21:28:02]RAPDU: 90 00 [21:28:02]wFMCommunicate OK [21:28:02]SAM_PROTO_ClearQueue done [21:28:02]KKMCreateOFDPacket [21:28:02]OFDProtocolAddRootSTLVToBuf [21:28:02]FM_MakeSignedData [21:28:02]FM_MakeSignedData [21:28:02]SAM_PROTO_SignData [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 0D 01 02 [21:28:02]Write to MH i2c: E2 08 00 74 12 80 0D 01 02 00 00 00 00 FF [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [21:28:02]RAPDU: 90 00 [21:28:02]wFMCommunicate OK [21:28:02]wFMCommunicate request_size=255 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E2 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8A 02 00 35 04 06 00 BF [21:28:02]Write to MH i2c: E2 02 01 75 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E2 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8A 02 00 35 04 06 00 BF 00 00 12 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [21:28:02]RAPDU: 90 00 [21:28:02]wFMCommunicate OK [21:28:02]wFMCommunicate request_size=10 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 0D 02 02 05 81 33 3C 71 A6 [21:28:02]Write to MH i2c: E2 0D 00 76 12 80 0D 02 02 05 00 81 33 3C 71 A6 00 00 13 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [21:28:02]RAPDU: 90 00 [21:28:02]wFMCommunicate OK [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 0D 03 02 [21:28:02]Write to MH i2c: E2 08 00 77 12 80 0D 03 02 00 00 00 00 04 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 0B 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 0B 00 77 12 00 2B 7F 8E 83 79 C1 F6 BA 90 00 AA [21:28:02]RAPDU: 2B 7F 8E 83 79 C1 F6 BA 90 00 [21:28:02]wFMCommunicate OK [21:28:02]SAM_PROTO_SignData done [21:28:02]FM_MakeSignedData done [21:28:02]CreateOFDProtocolMessage [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 11 00 00 [21:28:02]Write to MH i2c: E2 08 00 78 12 80 11 00 00 00 00 00 00 04 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 17 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 17 00 78 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [21:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:28:02]wFMCommunicate OK [21:28:02]CreateOFDProtocolMessage done [21:28:02]OFDSenderStorePacket 166548 [21:28:02]StoreOFDPacket docnum=166548 [21:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 79 07 01 31 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E2 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8A 02 00 35 04 06 00 BF 81 33 3C 71 A6 2B 7F 8E 83 79 C1 F6 BA [21:28:02]CheckFolder [21:28:02]dirname=/storage/ofd_packets [21:28:02]CheckFolder done [21:28:02]ProducePacketName [21:28:02]name=ofd_packets/00166548 [21:28:02]NVStorageSaveData ofd_packets/00166548 [21:28:02]File name is /storage/ofd_packets/00166548 [21:28:02]Write 301 bytes [21:28:02]NVStorageSaveData done [21:28:02]OFDSenderStorePacket done [21:28:02]KKMCreateOFDPacket done [21:28:02]NVStorageSaveData kkm_last_timestamp [21:28:02]File name is /storage/kkm_last_timestamp [21:28:02]Write 4 bytes [21:28:02]NVStorageSaveData done [21:28:02]ExternCall_PrintAddStr [21:28:02]wPrintStart [21:28:02]Write to MH i2c: 01 00 00 79 12 8B [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 79 12 00 00 00 00 00 FF 0F A0 [21:28:02]RasterBufferAndPrint [21:28:02]line Счет N : (1)221129 [21:28:02]line ИНН: 02508201610067 [21:28:02]line Контрольно-Кассовый Чек [21:28:02]line ПРОДАЖА [21:28:02]line ТРК (МРК, ГНК) : 43 [21:28:02]line Товар: 2710124130 [21:28:02]line Аи-92-К-5 [21:28:02]line 5.980 * 66.90 [21:28:02]line = 400.06 [21:28:02]line НДС 12% НСП 1% [21:28:02]line > о реализуемом товаре [21:28:02]line ИТОГО: 400.06 [21:28:02]line НСП 1% : 3.54 [21:28:02]line НДС 12% : 42.48 [21:28:02]line Наличными: 0.00 [21:28:02]line Безнал.: 400.06 [21:28:02]line Место: АЗС № 161 "Партнер Нефть" [21:28:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:28:02]line СНО: Общий режим [21:28:02]line Чек 303 22.10.2024 21:28 [21:28:02]line Смена: 536 ФФД: 1.0 [21:28:02]line ЗНМ: 0300000104 [21:28:02]line РНМ: 0000000000091764 [21:28:02]line Версия ККМ: 001 [21:28:02]line Платежная система: Mbank [21:28:02]line ФМ: 0000000000871759 [21:28:02]line ФД: 166548 [21:28:02]line ФПД: 210561631285670 [21:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212802&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166548&fm=210561631285670&tin=02508201610067®Number=0000000000091764&sum=40006 [21:28:02]written 0, free lines is 4095 [21:28:02]OFD Sender: Processing packet 166548 [packets to send 48, broken 47] [21:28:02]ProducePacketName [21:28:02]name=ofd_packets/00166548 [21:28:02]OFD Sender: To server: pG, [21:28:02]CommunicateWithHost lk.salyk.kg:30040 [21:28:02]ConnectInit lk.salyk.kg [21:28:03]Connected sock=10 [21:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 79 07 01 31 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 E2 18 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8A 02 00 35 04 06 00 BF 81 33 3C 71 A6 2B 7F 8E 83 79 C1 F6 BA [21:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D3 70 47 00 C5 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 8A 02 00 F4 03 04 00 4C BF 17 67 B6 04 01 00 00 00 61 0F C9 CE 51 27 6C [21:28:03]CommunicateWithHost err = 0 [21:28:03]CheckOFDResponse [21:28:03]1017 (14) - 77093643461234 [21:28:03]1041 (16) - 0000000000871759 [21:28:03]1040 (4) - 166548 [21:28:03]1012 (4) - 22.10.2024 15:05 [21:28:03]1206 (1) - 0 [21:28:03]OFD Sender: Remove packet 166548 [21:28:03]ProducePacketName [21:28:03]name=ofd_packets/00166548 [21:28:03]NVStorageDeleteData [21:28:03]Write to MH i2c: 01 00 00 A2 12 B4 [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 07 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 07 00 A2 12 00 00 00 00 00 E3 0C AA [21:28:03]RasterBufferAndPrint [21:28:03]line [21:28:03]line [21:28:03]line [21:28:03]line [21:28:03]line [21:28:03]written 0, free lines is 3306 [21:28:03]MH_Cut [21:28:03]Write to MH i2c: D1 01 00 A9 12 01 8D [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: D1 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: D1 01 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: D1 01 00 A9 12 00 8C [21:28:03]Write to MH i2c: 01 00 00 AA 12 BC [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]OFD Sender: No OFD packet to send [21:28:04]*** Cut start [21:28:04]*** Partial cut [21:28:04]*** CUTSNS_PIN = 1 [21:28:04]*** CUTSNS_PIN = 0 [21:28:04]*** Brake cut motor [21:28:04]Read from MH i2c: 01 [21:28:04]MH_I2C_Read... [21:28:04]*** Stop cut motor [21:28:04]*** Cut end [21:28:04]Read from MH i2c: 01 07 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [21:28:04]process_action close_receipt done [21:28:04]requested_data is exist [21:28:04]produce_requested_data [21:28:04]requested_item fm.sn is exist - process it [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 11 00 00 [21:28:04]Write to MH i2c: E2 08 00 AB 12 80 11 00 00 00 00 00 00 37 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 17 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 17 00 AB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [21:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:28:04]wFMCommunicate OK [21:28:04]requested_item fd.num is exist - process it [21:28:04]SAM_PROTO_GetFieldsCounters [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 13 00 00 [21:28:04]Write to MH i2c: E2 08 00 AC 12 80 13 00 00 00 00 00 00 3A [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 62 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 62 00 AC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_GetFieldsCounters done [21:28:05]requested_item shift.num is exist - process it [21:28:05]requested_item shift.opened is exist - process it [21:28:05]req_shift_opened [21:28:05]FM_GetShiftState [21:28:05]SAM_PROTO_GetShiftState [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 13 01 00 [21:28:05]Write to MH i2c: E2 08 00 AD 12 80 13 01 00 00 00 00 00 3C [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0E 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0E 00 AD 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8F [21:28:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_GetShiftState done [21:28:05]FM_GetShiftState done [21:28:05]req_shift_opened done [21:28:05]requested_item shift.open_date is exist - process it [21:28:05]req_shift_open_date [21:28:05]req_shift_open_date done [21:28:05]produce_requested_data done [21:28:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166548,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:28:05]process_action_free close_receipt [21:28:05]json_value_free [21:28:05]json_value_free done [21:28:05]process_json_proto returns [21:28:05]Send response to host [21:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166548,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:28:05]free response buf [21:28:05]execute_script done [21:28:05]execute_script returns [21:28:05]free content buf [21:28:05]Sock 9.Close socket [21:28:05]Sock 9.Thread stoped [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:04]accept exits with 7 [21:30:04]New connection [21:30:04]New thread 3067632996 created [21:30:04]Thread 3067489636 joined [21:30:04]Waiting for new connection... [21:30:04] Sock 7.Parse request [21:30:04]Sock 7.Check first char [21:30:04]Sock 7.First char is OK [21:30:04]request: POST /json_proto HTTP/1.0 [21:30:04]Method: POST [21:30:04]URL: /json_proto [21:30:04]Method is POST - this is cgi request [21:30:04]url: /json_proto [21:30:04]query_string will be loaded in cgi processing [21:30:04]execute_cgi json_proto POST (null) [21:30:04]execute_cgi path=json_proto method=POST [21:30:04]POST find Content-Length [21:30:04]Host: 172.17.53.195:8080 [21:30:04]Content-Length: 766 [21:30:04]Content-Type: application/json [21:30:04] [21:30:04]POST finish read [21:30:04]Found Content-Length = 766 [21:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:04]execute_script... [21:30:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:04]POST & json_proto [21:30:04]process_json_proto [21:30:04]json parsed OK: [21:30:04]protocol is kg_v1.0 [21:30:04]action value=close_receipt [21:30:04]process_action close_receipt [21:30:04]cmd_close_receipt [21:30:04]MH_GetDate [21:30:04]Write to MH i2c: F0 00 00 AE 12 AF [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: F0 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: F0 09 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: F0 09 00 AE 12 00 5D 19 18 67 21 48 4A 65 C5 [21:30:04]GetLastDocTimeStamp 1729632482 [21:30:04]current date 1729632605 [21:30:04]FM_GetShiftState [21:30:04]SAM_PROTO_GetShiftState [21:30:04]wFMCommunicate request_size=4 [21:30:04]MH_SAM_APDU [21:30:04]CAPDU: 80 13 01 00 [21:30:04]Write to MH i2c: E2 08 00 AF 12 80 13 01 00 00 00 00 00 3E [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 AF 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 91 [21:30:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:30:04]wFMCommunicate OK [21:30:04]SAM_PROTO_GetShiftState done [21:30:04]FM_GetShiftState done [21:30:04]opened in 1729557463 [21:30:04]opened+sec_in_day 1729643863 [21:30:04]quantity*price = 400050 [21:30:04]sum+1 = 400051 [21:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 304 22.10.2024 21:30 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166549 ФПД: 75613499774254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213005&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166549&fm=75613499774254&tin=02508201610067®Number=0000000000091764&sum=400050 [21:30:05]StoreToDocumentArchive [21:30:05]shift 536 fd 166549 [21:30:05]save to /storage/0536/doc_00166549 [21:30:05]save last doc name /storage/0536/doc_00166549 to /storage/kkm_last_doc_name [21:30:05]save OK [21:30:05]Clear old archive folders... [21:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:30:05]tlvbuf is B6F67780 [21:30:05]SAM_PROTO_ClearQueue [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 09 00 00 [21:30:05]Write to MH i2c: E2 08 00 BC 12 80 09 00 00 00 00 00 00 40 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [21:30:05]RAPDU: 90 00 [21:30:05]wFMCommunicate OK [21:30:05]SAM_PROTO_ClearQueue done [21:30:05]KKMCreateOFDPacket [21:30:05]OFDProtocolAddRootSTLVToBuf [21:30:05]FM_MakeSignedData [21:30:05]FM_MakeSignedData [21:30:05]SAM_PROTO_SignData [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 0D 01 02 [21:30:05]Write to MH i2c: E2 08 00 BD 12 80 0D 01 02 00 00 00 00 48 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [21:30:05]RAPDU: 90 00 [21:30:05]wFMCommunicate OK [21:30:05]wFMCommunicate request_size=255 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D 19 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8A 02 00 35 04 06 00 44 C5 23 CB [21:30:05]Write to MH i2c: E2 02 01 BE 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D 19 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8A 02 00 35 04 06 00 44 C5 23 CB 00 00 B5 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [21:30:05]RAPDU: 90 00 [21:30:05]wFMCommunicate OK [21:30:05]wFMCommunicate request_size=7 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 0D 02 02 02 55 2E [21:30:05]Write to MH i2c: E2 0A 00 BF 12 80 0D 02 02 02 00 55 2E 00 00 D2 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [21:30:05]RAPDU: 90 00 [21:30:05]wFMCommunicate OK [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 0D 03 02 [21:30:05]Write to MH i2c: E2 08 00 C0 12 80 0D 03 02 00 00 00 00 4D [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:06]Read from MH i2c: E2 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: E2 0B 00 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: E2 0B 00 C0 12 00 21 B8 00 D5 64 B3 A2 B0 90 00 65 [21:30:06]RAPDU: 21 B8 00 D5 64 B3 A2 B0 90 00 [21:30:06]wFMCommunicate OK [21:30:06]SAM_PROTO_SignData done [21:30:06]FM_MakeSignedData done [21:30:06]CreateOFDProtocolMessage [21:30:06]wFMCommunicate request_size=4 [21:30:06]MH_SAM_APDU [21:30:06]CAPDU: 80 11 00 00 [21:30:06]Write to MH i2c: E2 08 00 C1 12 80 11 00 00 00 00 00 00 4D [21:30:06]Write i2c OK [21:30:06]MH_I2C_Read... [21:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:06]Read from MH i2c: E2 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: E2 17 00 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: E2 17 00 C1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [21:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:30:06]wFMCommunicate OK [21:30:06]CreateOFDProtocolMessage done [21:30:06]OFDSenderStorePacket 166549 [21:30:06]StoreOFDPacket docnum=166549 [21:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 36 12 04 01 19 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D 19 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8A 02 00 35 04 06 00 44 C5 23 CB 55 2E 21 B8 00 D5 64 B3 A2 B0 [21:30:06]CheckFolder [21:30:06]dirname=/storage/ofd_packets [21:30:06]CheckFolder done [21:30:06]ProducePacketName [21:30:06]name=ofd_packets/00166549 [21:30:06]NVStorageSaveData ofd_packets/00166549 [21:30:06]File name is /storage/ofd_packets/00166549 [21:30:06]Write 298 bytes [21:30:06]NVStorageSaveData done [21:30:06]OFDSenderStorePacket done [21:30:06]KKMCreateOFDPacket done [21:30:06]NVStorageSaveData kkm_last_timestamp [21:30:06]File name is /storage/kkm_last_timestamp [21:30:06]Write 4 bytes [21:30:06]NVStorageSaveData done [21:30:06]ExternCall_PrintAddStr [21:30:06]wPrintStart [21:30:06]Write to MH i2c: 01 00 00 C2 12 D4 [21:30:06]Write i2c OK [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 07 00 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 07 00 C2 12 00 00 00 00 00 FF 0F E9 [21:30:06]RasterBufferAndPrint [21:30:06]line Счет N : (1)221130 [21:30:06]line ИНН: 02508201610067 [21:30:06]line Контрольно-Кассовый Чек [21:30:06]line ПРОДАЖА [21:30:06]line ТРК (МРК, ГНК) : 21 [21:30:06]line Товар: 2710194210 [21:30:06]line ДТ-К-5 [21:30:06]line 52.500 * 76.20 [21:30:06]line = 4000.50 [21:30:06]line НДС 12% НСП 1% [21:30:06]line > о реализуемом товаре [21:30:06]line ИТОГО: 4000.50 [21:30:06]line НСП 1% : 35.40 [21:30:06]line НДС 12% : 424.83 [21:30:06]line Наличными: 0.00 [21:30:06]line Безнал.: 4000.50 [21:30:06]line Место: АЗС № 161 "Партнер Нефть" [21:30:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:30:06]line СНО: Общий режим [21:30:06]line Чек 304 22.10.2024 21:30 [21:30:06]line Смена: 536 ФФД: 1.0 [21:30:06]line ЗНМ: 0300000104 [21:30:06]line РНМ: 0000000000091764 [21:30:06]line Версия ККМ: 001 [21:30:06]line Платежная система: Mbank [21:30:06]line ФМ: 0000000000871759 [21:30:06]line ФД: 166549 [21:30:06]line ФПД: 75613499774254 [21:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213005&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166549&fm=75613499774254&tin=02508201610067®Number=0000000000091764&sum=400050 [21:30:06]OFD Sender: Processing packet 166549 [packets to send 48, broken 47] [21:30:06]ProducePacketName [21:30:06]name=ofd_packets/00166549 [21:30:06]OFD Sender: To server: pG, [21:30:06]CommunicateWithHost lk.salyk.kg:30040 [21:30:06]ConnectInit lk.salyk.kg [21:30:06]written 0, free lines is 4095 [21:30:06]Connected sock=10 [21:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 36 12 04 01 19 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D 19 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8A 02 00 35 04 06 00 44 C5 23 CB 55 2E 21 B8 00 D5 64 B3 A2 B0 [21:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 54 62 47 00 44 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 8A 02 00 F4 03 04 00 C7 BF 17 67 B6 04 01 00 00 D5 A3 0B C4 52 15 16 56 [21:30:06]CommunicateWithHost err = 0 [21:30:06]CheckOFDResponse [21:30:06]1017 (14) - 77093643461234 [21:30:06]1041 (16) - 0000000000871759 [21:30:06]1040 (4) - 166549 [21:30:06]1012 (4) - 22.10.2024 15:07 [21:30:06]1206 (1) - 0 [21:30:06]OFD Sender: Remove packet 166549 [21:30:06]ProducePacketName [21:30:06]name=ofd_packets/00166549 [21:30:06]NVStorageDeleteData [21:30:06]Write to MH i2c: 01 00 00 EB 12 FD [21:30:06]Write i2c OK [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 07 00 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 E3 0C F3 [21:30:06]RasterBufferAndPrint [21:30:06]line [21:30:06]line [21:30:06]line [21:30:06]line [21:30:06]line [21:30:06]written 0, free lines is 3305 [21:30:06]MH_Cut [21:30:06]Write to MH i2c: D1 01 00 F2 12 01 D6 [21:30:06]Write i2c OK [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: D1 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: D1 01 00 [21:30:06]MH_I2C_Read... [21:30:06]Read from MH i2c: D1 01 00 F2 12 00 D5 [21:30:06]Write to MH i2c: 01 00 00 F3 12 05 [21:30:06]Write i2c OK [21:30:06]MH_I2C_Read... [21:30:07]OFD Sender: No OFD packet to send [21:30:07]*** Cut start [21:30:07]*** Partial cut [21:30:07]*** CUTSNS_PIN = 1 [21:30:07]*** CUTSNS_PIN = 0 [21:30:07]*** Brake cut motor [21:30:08]Read from MH i2c: 01 [21:30:08]MH_I2C_Read... [21:30:08]*** Stop cut motor [21:30:08]*** Cut end [21:30:08]Read from MH i2c: 01 07 00 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 FF 0F 1A [21:30:08]process_action close_receipt done [21:30:08]requested_data is exist [21:30:08]produce_requested_data [21:30:08]requested_item fm.sn is exist - process it [21:30:08]wFMCommunicate request_size=4 [21:30:08]MH_SAM_APDU [21:30:08]CAPDU: 80 11 00 00 [21:30:08]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [21:30:08]Write i2c OK [21:30:08]MH_I2C_Read... [21:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:08]Read from MH i2c: E2 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 17 00 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [21:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:30:08]wFMCommunicate OK [21:30:08]requested_item fd.num is exist - process it [21:30:08]SAM_PROTO_GetFieldsCounters [21:30:08]wFMCommunicate request_size=4 [21:30:08]MH_SAM_APDU [21:30:08]CAPDU: 80 13 00 00 [21:30:08]Write to MH i2c: E2 08 00 F5 12 80 13 00 00 00 00 00 00 83 [21:30:08]Write i2c OK [21:30:08]MH_I2C_Read... [21:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:08]Read from MH i2c: E2 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 62 00 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 62 00 F5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:08]wFMCommunicate OK [21:30:08]SAM_PROTO_GetFieldsCounters done [21:30:08]requested_item shift.num is exist - process it [21:30:08]requested_item shift.opened is exist - process it [21:30:08]req_shift_opened [21:30:08]FM_GetShiftState [21:30:08]SAM_PROTO_GetShiftState [21:30:08]wFMCommunicate request_size=4 [21:30:08]MH_SAM_APDU [21:30:08]CAPDU: 80 13 01 00 [21:30:08]Write to MH i2c: E2 08 00 F6 12 80 13 01 00 00 00 00 00 85 [21:30:08]Write i2c OK [21:30:08]MH_I2C_Read... [21:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:08]Read from MH i2c: E2 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 0E 00 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: E2 0E 00 F6 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D8 [21:30:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:30:08]wFMCommunicate OK [21:30:08]SAM_PROTO_GetShiftState done [21:30:08]FM_GetShiftState done [21:30:08]req_shift_opened done [21:30:08]requested_item shift.open_date is exist - process it [21:30:08]req_shift_open_date [21:30:08]req_shift_open_date done [21:30:08]produce_requested_data done [21:30:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166549,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:30:08]process_action_free close_receipt [21:30:08]json_value_free [21:30:08]json_value_free done [21:30:08]process_json_proto returns [21:30:08]Send response to host [21:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166549,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:30:08]free response buf [21:30:08]execute_script done [21:30:08]execute_script returns [21:30:08]free content buf [21:30:08]Sock 7.Close socket [21:30:08]Sock 7.Thread stoped [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:49]accept exits with 9 [21:34:49]New connection [21:34:49]New thread 3067489636 created [21:34:49]Thread 3067632996 joined [21:34:49]Waiting for new connection... [21:34:49] Sock 9.Parse request [21:34:49]Sock 9.Check first char [21:34:49]Sock 9.First char is OK [21:34:49]request: POST /json_proto HTTP/1.0 [21:34:49]Method: POST [21:34:49]URL: /json_proto [21:34:49]Method is POST - this is cgi request [21:34:49]url: /json_proto [21:34:49]query_string will be loaded in cgi processing [21:34:49]execute_cgi json_proto POST (null) [21:34:49]execute_cgi path=json_proto method=POST [21:34:49]POST find Content-Length [21:34:49]Host: 172.17.53.195:8080 [21:34:49]Content-Length: 763 [21:34:49]Content-Type: application/json [21:34:49] [21:34:49]POST finish read [21:34:49]Found Content-Length = 763 [21:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:49]execute_script... [21:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:49]POST & json_proto [21:34:49]process_json_proto [21:34:49]json parsed OK: [21:34:49]protocol is kg_v1.0 [21:34:49]action value=close_receipt [21:34:49]process_action close_receipt [21:34:49]cmd_close_receipt [21:34:49]MH_GetDate [21:34:49]Write to MH i2c: F0 00 00 F7 12 F8 [21:34:49]Write i2c OK [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: F0 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: F0 09 00 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: F0 09 00 F7 12 00 7B 1A 18 67 21 48 4A 65 2D [21:34:49]GetLastDocTimeStamp 1729632605 [21:34:49]current date 1729632891 [21:34:49]FM_GetShiftState [21:34:49]SAM_PROTO_GetShiftState [21:34:49]wFMCommunicate request_size=4 [21:34:49]MH_SAM_APDU [21:34:49]CAPDU: 80 13 01 00 [21:34:49]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [21:34:49]Write i2c OK [21:34:49]MH_I2C_Read... [21:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:49]Read from MH i2c: E2 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: E2 0E 00 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DA [21:34:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:34:49]wFMCommunicate OK [21:34:49]SAM_PROTO_GetShiftState done [21:34:49]FM_GetShiftState done [21:34:49]opened in 1729557463 [21:34:49]opened+sec_in_day 1729643863 [21:34:49]quantity*price = 50063 [21:34:49]sum+1 = 50064 [21:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 305 22.10.2024 21:34 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166550 ФПД: 208295598014638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166550&fm=208295598014638&tin=02508201610067®Number=0000000000091764&sum=50063 [21:34:50]StoreToDocumentArchive [21:34:50]shift 536 fd 166550 [21:34:50]save to /storage/0536/doc_00166550 [21:34:50]save last doc name /storage/0536/doc_00166550 to /storage/kkm_last_doc_name [21:34:50]save OK [21:34:50]Clear old archive folders... [21:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:34:50]tlvbuf is B6FFE360 [21:34:50]SAM_PROTO_ClearQueue [21:34:50]wFMCommunicate request_size=4 [21:34:50]MH_SAM_APDU [21:34:50]CAPDU: 80 09 00 00 [21:34:50]Write to MH i2c: E2 08 00 05 13 80 09 00 00 00 00 00 00 8A [21:34:50]Write i2c OK [21:34:50]MH_I2C_Read... [21:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:50]Read from MH i2c: E2 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: E2 03 00 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [21:34:50]RAPDU: 90 00 [21:34:50]wFMCommunicate OK [21:34:50]SAM_PROTO_ClearQueue done [21:34:50]KKMCreateOFDPacket [21:34:50]OFDProtocolAddRootSTLVToBuf [21:34:50]FM_MakeSignedData [21:34:50]FM_MakeSignedData [21:34:50]SAM_PROTO_SignData [21:34:50]wFMCommunicate request_size=4 [21:34:50]MH_SAM_APDU [21:34:50]CAPDU: 80 0D 01 02 [21:34:50]Write to MH i2c: E2 08 00 06 13 80 0D 01 02 00 00 00 00 92 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [21:34:51]RAPDU: 90 00 [21:34:51]wFMCommunicate OK [21:34:51]wFMCommunicate request_size=255 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 7B 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8A 02 00 35 04 06 00 BD 71 99 20 [21:34:51]Write to MH i2c: E2 02 01 07 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 7B 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8A 02 00 35 04 06 00 BD 71 99 20 00 00 8D [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [21:34:51]RAPDU: 90 00 [21:34:51]wFMCommunicate OK [21:34:51]wFMCommunicate request_size=7 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 0D 02 02 02 C0 AE [21:34:51]Write to MH i2c: E2 0A 00 08 13 80 0D 02 02 02 00 C0 AE 00 00 07 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [21:34:51]RAPDU: 90 00 [21:34:51]wFMCommunicate OK [21:34:51]wFMCommunicate request_size=4 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 0D 03 02 [21:34:51]Write to MH i2c: E2 08 00 09 13 80 0D 03 02 00 00 00 00 97 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 0B 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 0B 00 09 13 00 C3 53 86 47 7F 8F CC 80 90 00 D5 [21:34:51]RAPDU: C3 53 86 47 7F 8F CC 80 90 00 [21:34:51]wFMCommunicate OK [21:34:51]SAM_PROTO_SignData done [21:34:51]FM_MakeSignedData done [21:34:51]CreateOFDProtocolMessage [21:34:51]wFMCommunicate request_size=4 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 11 00 00 [21:34:51]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 17 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [21:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:34:51]wFMCommunicate OK [21:34:51]CreateOFDProtocolMessage done [21:34:51]OFDSenderStorePacket 166550 [21:34:51]StoreOFDPacket docnum=166550 [21:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 46 1A 04 01 64 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 7B 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8A 02 00 35 04 06 00 BD 71 99 20 C0 AE C3 53 86 47 7F 8F CC 80 [21:34:51]CheckFolder [21:34:51]dirname=/storage/ofd_packets [21:34:51]CheckFolder done [21:34:51]ProducePacketName [21:34:51]name=ofd_packets/00166550 [21:34:51]NVStorageSaveData ofd_packets/00166550 [21:34:51]File name is /storage/ofd_packets/00166550 [21:34:51]Write 298 bytes [21:34:51]NVStorageSaveData done [21:34:51]OFDSenderStorePacket done [21:34:51]KKMCreateOFDPacket done [21:34:51]NVStorageSaveData kkm_last_timestamp [21:34:51]File name is /storage/kkm_last_timestamp [21:34:51]Write 4 bytes [21:34:51]NVStorageSaveData done [21:34:51]ExternCall_PrintAddStr [21:34:51]wPrintStart [21:34:51]Write to MH i2c: 01 00 00 0B 13 1E [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 07 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [21:34:51]RasterBufferAndPrint [21:34:51]line Счет N : (1)221132 [21:34:51]line ИНН: 02508201610067 [21:34:51]line Контрольно-Кассовый Чек [21:34:51]line ПРОДАЖА [21:34:51]line ТРК (МРК, ГНК) : 11 [21:34:51]line Товар: 2710194210 [21:34:51]line ДТ-К-5 [21:34:51]line 6.570 * 76.20 [21:34:51]line = 500.63 [21:34:51]line НДС 12% НСП 1% [21:34:51]line > о реализуемом товаре [21:34:51]line ИТОГО: 500.63 [21:34:51]line НСП 1% : 4.43 [21:34:51]line НДС 12% : 53.16 [21:34:51]line Наличными: 0.00 [21:34:51]line Безнал.: 500.63 [21:34:51]line Место: АЗС № 161 "Партнер Нефть" [21:34:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:34:51]line СНО: Общий режим [21:34:51]line Чек 305 22.10.2024 21:34 [21:34:51]line Смена: 536 ФФД: 1.0 [21:34:51]line ЗНМ: 0300000104 [21:34:51]line РНМ: 0000000000091764 [21:34:51]line Версия ККМ: 001 [21:34:51]line Платежная система: Mbank [21:34:51]line ФМ: 0000000000871759 [21:34:51]line ФД: 166550 [21:34:51]line ФПД: 208295598014638 [21:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166550&fm=208295598014638&tin=02508201610067®Number=0000000000091764&sum=50063 [21:34:51]written 0, free lines is 4095 [21:34:51]OFD Sender: Processing packet 166550 [packets to send 48, broken 47] [21:34:51]ProducePacketName [21:34:51]name=ofd_packets/00166550 [21:34:51]OFD Sender: To server: pG, [21:34:51]CommunicateWithHost lk.salyk.kg:30040 [21:34:51]ConnectInit lk.salyk.kg [21:34:51]Connected sock=10 [21:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 46 1A 04 01 64 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 7B 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8A 02 00 35 04 06 00 BD 71 99 20 C0 AE C3 53 86 47 7F 8F CC 80 [21:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F 3A 47 00 40 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 8A 02 00 F4 03 04 00 E4 C0 17 67 B6 04 01 00 00 4E D1 CB 9E DD 06 2F 5A [21:34:51]CommunicateWithHost err = 0 [21:34:51]CheckOFDResponse [21:34:51]1017 (14) - 77093643461234 [21:34:51]1041 (16) - 0000000000871759 [21:34:51]1040 (4) - 166550 [21:34:51]1012 (4) - 22.10.2024 15:12 [21:34:51]1206 (1) - 0 [21:34:51]OFD Sender: Remove packet 166550 [21:34:51]ProducePacketName [21:34:51]name=ofd_packets/00166550 [21:34:51]NVStorageDeleteData [21:34:51]Write to MH i2c: 01 00 00 34 13 47 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 07 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: 01 07 00 34 13 00 00 00 00 00 F1 0C 4B [21:34:51]RasterBufferAndPrint [21:34:51]line [21:34:51]line [21:34:51]line [21:34:51]line [21:34:51]line [21:34:51]written 0, free lines is 3318 [21:34:51]MH_Cut [21:34:51]Write to MH i2c: D1 01 00 3B 13 01 20 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: D1 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: D1 01 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: D1 01 00 3B 13 00 1F [21:34:51]Write to MH i2c: 01 00 00 3C 13 4F [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:52]OFD Sender: No OFD packet to send [21:34:52]*** Cut start [21:34:52]*** Partial cut [21:34:52]*** CUTSNS_PIN = 1 [21:34:52]*** CUTSNS_PIN = 0 [21:34:53]*** Brake cut motor [21:34:53]Read from MH i2c: 01 [21:34:53]MH_I2C_Read... [21:34:53]*** Stop cut motor [21:34:53]*** Cut end [21:34:53]Read from MH i2c: 01 07 00 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 FF 0F 64 [21:34:53]process_action close_receipt done [21:34:53]requested_data is exist [21:34:53]produce_requested_data [21:34:53]requested_item fm.sn is exist - process it [21:34:53]wFMCommunicate request_size=4 [21:34:53]MH_SAM_APDU [21:34:53]CAPDU: 80 11 00 00 [21:34:53]Write to MH i2c: E2 08 00 3D 13 80 11 00 00 00 00 00 00 CA [21:34:53]Write i2c OK [21:34:53]MH_I2C_Read... [21:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:53]Read from MH i2c: E2 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 17 00 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 17 00 3D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [21:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:34:53]wFMCommunicate OK [21:34:53]requested_item fd.num is exist - process it [21:34:53]SAM_PROTO_GetFieldsCounters [21:34:53]wFMCommunicate request_size=4 [21:34:53]MH_SAM_APDU [21:34:53]CAPDU: 80 13 00 00 [21:34:53]Write to MH i2c: E2 08 00 3E 13 80 13 00 00 00 00 00 00 CD [21:34:53]Write i2c OK [21:34:53]MH_I2C_Read... [21:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:53]Read from MH i2c: E2 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 62 00 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 62 00 3E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:53]wFMCommunicate OK [21:34:53]SAM_PROTO_GetFieldsCounters done [21:34:53]requested_item shift.num is exist - process it [21:34:53]requested_item shift.opened is exist - process it [21:34:53]req_shift_opened [21:34:53]FM_GetShiftState [21:34:53]SAM_PROTO_GetShiftState [21:34:53]wFMCommunicate request_size=4 [21:34:53]MH_SAM_APDU [21:34:53]CAPDU: 80 13 01 00 [21:34:53]Write to MH i2c: E2 08 00 3F 13 80 13 01 00 00 00 00 00 CF [21:34:53]Write i2c OK [21:34:53]MH_I2C_Read... [21:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:53]Read from MH i2c: E2 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 0E 00 [21:34:53]MH_I2C_Read... [21:34:53]Read from MH i2c: E2 0E 00 3F 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 22 [21:34:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:34:53]wFMCommunicate OK [21:34:53]SAM_PROTO_GetShiftState done [21:34:53]FM_GetShiftState done [21:34:53]req_shift_opened done [21:34:53]requested_item shift.open_date is exist - process it [21:34:53]req_shift_open_date [21:34:53]req_shift_open_date done [21:34:53]produce_requested_data done [21:34:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166550,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:34:53]process_action_free close_receipt [21:34:53]json_value_free [21:34:53]json_value_free done [21:34:53]process_json_proto returns [21:34:53]Send response to host [21:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166550,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:34:53]free response buf [21:34:53]execute_script done [21:34:53]execute_script returns [21:34:53]free content buf [21:34:53]Sock 9.Close socket [21:34:53]Sock 9.Thread stoped [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:52]accept exits with 7 [21:35:52]New connection [21:35:52]New thread 3067632996 created [21:35:52]Thread 3067489636 joined [21:35:52]Waiting for new connection... [21:35:52] Sock 7.Parse request [21:35:52]Sock 7.Check first char [21:35:52]Sock 7.First char is OK [21:35:52]request: POST /json_proto HTTP/1.0 [21:35:52]Method: POST [21:35:52]URL: /json_proto [21:35:52]Method is POST - this is cgi request [21:35:52]url: /json_proto [21:35:52]query_string will be loaded in cgi processing [21:35:52]execute_cgi json_proto POST (null) [21:35:52]execute_cgi path=json_proto method=POST [21:35:52]POST find Content-Length [21:35:52]Host: 172.17.53.195:8080 [21:35:52]Content-Length: 766 [21:35:52]Content-Type: application/json [21:35:52] [21:35:52]POST finish read [21:35:52]Found Content-Length = 766 [21:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:52]execute_script... [21:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:52]POST & json_proto [21:35:52]process_json_proto [21:35:52]json parsed OK: [21:35:52]protocol is kg_v1.0 [21:35:52]action value=close_receipt [21:35:52]process_action close_receipt [21:35:52]cmd_close_receipt [21:35:52]MH_GetDate [21:35:52]Write to MH i2c: F0 00 00 40 13 42 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 09 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 09 00 40 13 00 BA 1A 18 67 21 48 4A 65 B6 [21:35:52]GetLastDocTimeStamp 1729632891 [21:35:52]current date 1729632954 [21:35:52]FM_GetShiftState [21:35:52]SAM_PROTO_GetShiftState [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 01 00 [21:35:52]Write to MH i2c: E2 08 00 41 13 80 13 01 00 00 00 00 00 D1 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 41 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 24 [21:35:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetShiftState done [21:35:52]FM_GetShiftState done [21:35:52]opened in 1729557463 [21:35:52]opened+sec_in_day 1729643863 [21:35:52]quantity*price = 30051 [21:35:52]sum+1 = 30052 [21:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.51 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 306 22.10.2024 21:35 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166551 ФПД: 33112660606114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166551&fm=33112660606114&tin=02508201610067®Number=0000000000091764&sum=30051 [21:35:53]StoreToDocumentArchive [21:35:53]shift 536 fd 166551 [21:35:53]save to /storage/0536/doc_00166551 [21:35:53]save last doc name /storage/0536/doc_00166551 to /storage/kkm_last_doc_name [21:35:53]save OK [21:35:53]Clear old archive folders... [21:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:53]tlvbuf is B6F4E7A0 [21:35:53]SAM_PROTO_ClearQueue [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 09 00 00 [21:35:53]Write to MH i2c: E2 08 00 4E 13 80 09 00 00 00 00 00 00 D3 [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]SAM_PROTO_ClearQueue done [21:35:54]KKMCreateOFDPacket [21:35:54]OFDProtocolAddRootSTLVToBuf [21:35:54]FM_MakeSignedData [21:35:54]FM_MakeSignedData [21:35:54]SAM_PROTO_SignData [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 01 02 [21:35:54]Write to MH i2c: E2 08 00 4F 13 80 0D 01 02 00 00 00 00 DB [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=255 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BA 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8A 02 00 35 04 06 00 1E [21:35:54]Write to MH i2c: E2 02 01 50 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BA 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8A 02 00 35 04 06 00 1E 00 00 E0 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=10 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 02 02 05 1D A4 5F 7C A2 [21:35:54]Write to MH i2c: E2 0D 00 51 13 80 0D 02 02 05 00 1D A4 5F 7C A2 00 00 26 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 03 02 [21:35:54]Write to MH i2c: E2 08 00 52 13 80 0D 03 02 00 00 00 00 E0 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0B 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0B 00 52 13 00 53 2B 92 03 B0 DD 36 68 90 00 1F [21:35:54]RAPDU: 53 2B 92 03 B0 DD 36 68 90 00 [21:35:54]wFMCommunicate OK [21:35:54]SAM_PROTO_SignData done [21:35:54]FM_MakeSignedData done [21:35:54]CreateOFDProtocolMessage [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 11 00 00 [21:35:54]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [21:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:35:54]wFMCommunicate OK [21:35:54]CreateOFDProtocolMessage done [21:35:54]OFDSenderStorePacket 166551 [21:35:54]StoreOFDPacket docnum=166551 [21:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 AD 07 01 C2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BA 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8A 02 00 35 04 06 00 1E 1D A4 5F 7C A2 53 2B 92 03 B0 DD 36 68 [21:35:54]CheckFolder [21:35:54]dirname=/storage/ofd_packets [21:35:54]CheckFolder done [21:35:54]ProducePacketName [21:35:54]name=ofd_packets/00166551 [21:35:54]NVStorageSaveData ofd_packets/00166551 [21:35:54]File name is /storage/ofd_packets/00166551 [21:35:54]Write 301 bytes [21:35:54]NVStorageSaveData done [21:35:54]OFDSenderStorePacket done [21:35:54]KKMCreateOFDPacket done [21:35:54]NVStorageSaveData kkm_last_timestamp [21:35:54]File name is /storage/kkm_last_timestamp [21:35:54]Write 4 bytes [21:35:54]NVStorageSaveData done [21:35:54]ExternCall_PrintAddStr [21:35:54]wPrintStart [21:35:54]Write to MH i2c: 01 00 00 54 13 67 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FF 0F 7C [21:35:54]RasterBufferAndPrint [21:35:54]line Счет N : (1)221133 [21:35:54]line ИНН: 02508201610067 [21:35:54]line Контрольно-Кассовый Чек [21:35:54]line ПРОДАЖА [21:35:54]line ТРК (МРК, ГНК) : 44 [21:35:54]line Товар: 2710124500 [21:35:54]line Аи-95-К-5 [21:35:54]line 4.050 * 74.20 [21:35:54]line = 300.51 [21:35:54]line НДС 12% НСП 1% [21:35:54]line > о реализуемом товаре [21:35:54]line ИТОГО: 300.51 [21:35:54]line НСП 1% : 2.66 [21:35:54]line НДС 12% : 31.91 [21:35:54]line Наличными: 0.00 [21:35:54]line Безнал.: 300.51 [21:35:54]line Место: АЗС № 161 "Партнер Нефть" [21:35:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:35:54]line СНО: Общий режим [21:35:54]line Чек 306 22.10.2024 21:35 [21:35:54]line Смена: 536 ФФД: 1.0 [21:35:54]line ЗНМ: 0300000104 [21:35:54]line РНМ: 0000000000091764 [21:35:54]line Версия ККМ: 001 [21:35:54]line Платежная система: Mbank [21:35:54]line ФМ: 0000000000871759 [21:35:54]line ФД: 166551 [21:35:54]line ФПД: 33112660606114 [21:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213554&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166551&fm=33112660606114&tin=02508201610067®Number=0000000000091764&sum=30051 [21:35:54]written 0, free lines is 4095 [21:35:54]OFD Sender: Processing packet 166551 [packets to send 48, broken 47] [21:35:54]ProducePacketName [21:35:54]name=ofd_packets/00166551 [21:35:54]OFD Sender: To server: pG, [21:35:54]CommunicateWithHost lk.salyk.kg:30040 [21:35:54]ConnectInit lk.salyk.kg [21:35:54]Connected sock=10 [21:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 AD 07 01 C2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BA 1A 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8A 02 00 35 04 06 00 1E 1D A4 5F 7C A2 53 2B 92 03 B0 DD 36 68 [21:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 EE 47 00 D0 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 8A 02 00 F4 03 04 00 23 C1 17 67 B6 04 01 00 00 A0 76 F1 08 B2 64 8E 61 [21:35:54]CommunicateWithHost err = 0 [21:35:54]CheckOFDResponse [21:35:54]1017 (14) - 77093643461234 [21:35:54]1041 (16) - 0000000000871759 [21:35:54]1040 (4) - 166551 [21:35:54]1012 (4) - 22.10.2024 15:13 [21:35:54]1206 (1) - 0 [21:35:54]OFD Sender: Remove packet 166551 [21:35:54]ProducePacketName [21:35:54]name=ofd_packets/00166551 [21:35:54]NVStorageDeleteData [21:35:54]Write to MH i2c: 01 00 00 7D 13 90 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 7D 13 00 00 00 00 00 F1 0C 94 [21:35:54]RasterBufferAndPrint [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]written 0, free lines is 3318 [21:35:54]MH_Cut [21:35:54]Write to MH i2c: D1 01 00 84 13 01 69 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: D1 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: D1 01 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: D1 01 00 84 13 00 68 [21:35:54]Write to MH i2c: 01 00 00 85 13 98 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:55]OFD Sender: No OFD packet to send [21:35:55]*** Cut start [21:35:55]*** Partial cut [21:35:55]*** CUTSNS_PIN = 1 [21:35:55]*** CUTSNS_PIN = 0 [21:35:56]*** Brake cut motor [21:35:56]Read from MH i2c: 01 [21:35:56]MH_I2C_Read... [21:35:56]*** Stop cut motor [21:35:56]*** Cut end [21:35:56]Read from MH i2c: 01 07 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 FF 0F AD [21:35:56]process_action close_receipt done [21:35:56]requested_data is exist [21:35:56]produce_requested_data [21:35:56]requested_item fm.sn is exist - process it [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 11 00 00 [21:35:56]Write to MH i2c: E2 08 00 86 13 80 11 00 00 00 00 00 00 13 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 17 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 17 00 86 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [21:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:35:56]wFMCommunicate OK [21:35:56]requested_item fd.num is exist - process it [21:35:56]SAM_PROTO_GetFieldsCounters [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 13 00 00 [21:35:56]Write to MH i2c: E2 08 00 87 13 80 13 00 00 00 00 00 00 16 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 62 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 62 00 87 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [21:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:56]wFMCommunicate OK [21:35:56]SAM_PROTO_GetFieldsCounters done [21:35:56]requested_item shift.num is exist - process it [21:35:56]requested_item shift.opened is exist - process it [21:35:56]req_shift_opened [21:35:56]FM_GetShiftState [21:35:56]SAM_PROTO_GetShiftState [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 13 01 00 [21:35:56]Write to MH i2c: E2 08 00 88 13 80 13 01 00 00 00 00 00 18 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 0E 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 0E 00 88 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6B [21:35:56]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:35:56]wFMCommunicate OK [21:35:56]SAM_PROTO_GetShiftState done [21:35:56]FM_GetShiftState done [21:35:56]req_shift_opened done [21:35:56]requested_item shift.open_date is exist - process it [21:35:56]req_shift_open_date [21:35:56]req_shift_open_date done [21:35:56]produce_requested_data done [21:35:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166551,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:35:56]process_action_free close_receipt [21:35:56]json_value_free [21:35:56]json_value_free done [21:35:56]process_json_proto returns [21:35:56]Send response to host [21:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166551,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:35:56]free response buf [21:35:56]execute_script done [21:35:56]execute_script returns [21:35:56]free content buf [21:35:56]Sock 7.Close socket [21:35:56]Sock 7.Thread stoped [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:29]accept exits with 9 [21:39:29]New connection [21:39:29]New thread 3067489636 created [21:39:29]Thread 3067632996 joined [21:39:29]Waiting for new connection... [21:39:29] Sock 9.Parse request [21:39:29]Sock 9.Check first char [21:39:29]Sock 9.First char is OK [21:39:29]request: POST /json_proto HTTP/1.0 [21:39:29]Method: POST [21:39:29]URL: /json_proto [21:39:29]Method is POST - this is cgi request [21:39:29]url: /json_proto [21:39:29]query_string will be loaded in cgi processing [21:39:29]execute_cgi json_proto POST (null) [21:39:29]execute_cgi path=json_proto method=POST [21:39:29]POST find Content-Length [21:39:29]Host: 172.17.53.195:8080 [21:39:29]Content-Length: 798 [21:39:29]Content-Type: application/json [21:39:29] [21:39:29]POST finish read [21:39:29]Found Content-Length = 798 [21:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 300.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922369", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:29]execute_script... [21:39:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 300.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922369", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:29]POST & json_proto [21:39:29]process_json_proto [21:39:29]json parsed OK: [21:39:29]protocol is kg_v1.0 [21:39:29]action value=close_receipt [21:39:29]process_action close_receipt [21:39:29]cmd_close_receipt [21:39:29]MH_GetDate [21:39:29]Write to MH i2c: F0 00 00 89 13 8B [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 09 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 09 00 89 13 00 92 1B 18 67 21 48 4A 65 D8 [21:39:29]GetLastDocTimeStamp 1729632954 [21:39:29]current date 1729633170 [21:39:29]FM_GetShiftState [21:39:29]SAM_PROTO_GetShiftState [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 13 01 00 [21:39:29]Write to MH i2c: E2 08 00 8A 13 80 13 01 00 00 00 00 00 1A [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0E 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0E 00 8A 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 6D [21:39:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:39:29]wFMCommunicate OK [21:39:29]SAM_PROTO_GetShiftState done [21:39:29]FM_GetShiftState done [21:39:29]opened in 1729557463 [21:39:29]opened+sec_in_day 1729643863 [21:39:29]quantity*price = 0 [21:39:29]sum+1 = 1 [21:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 307 22.10.2024 21:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4922369 ФМ: 0000000000871759 ФД: 166552 ФПД: 263419274362794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166552&fm=263419274362794&tin=02508201610067®Number=0000000000091764&sum=0 [21:39:30]StoreToDocumentArchive [21:39:30]shift 536 fd 166552 [21:39:30]save to /storage/0536/doc_00166552 [21:39:30]save last doc name /storage/0536/doc_00166552 to /storage/kkm_last_doc_name [21:39:30]save OK [21:39:30]Clear old archive folders... [21:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:39:30]tlvbuf is 01255F30 [21:39:30]SAM_PROTO_ClearQueue [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 09 00 00 [21:39:30]Write to MH i2c: E2 08 00 97 13 80 09 00 00 00 00 00 00 1C [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_ClearQueue done [21:39:30]KKMCreateOFDPacket [21:39:30]OFDProtocolAddRootSTLVToBuf [21:39:30]FM_MakeSignedData [21:39:30]FM_MakeSignedData [21:39:30]SAM_PROTO_SignData [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 01 02 [21:39:30]Write to MH i2c: E2 08 00 98 13 80 0D 01 02 00 00 00 00 24 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]wFMCommunicate request_size=255 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 92 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8A 02 00 35 04 06 00 EF 94 14 46 [21:39:30]Write to MH i2c: E2 02 01 99 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 92 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8A 02 00 35 04 06 00 EF 94 14 46 00 00 7A [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]wFMCommunicate request_size=7 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 02 02 02 7F AA [21:39:30]Write to MH i2c: E2 0A 00 9A 13 80 0D 02 02 02 00 7F AA 00 00 54 [21:39:30]OFD Sender: No OFD packet to send [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 9A 13 00 90 00 21 [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 03 02 [21:39:30]Write to MH i2c: E2 08 00 9B 13 80 0D 03 02 00 00 00 00 29 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0B 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0B 00 9B 13 00 B6 78 C1 46 92 1D E3 F0 90 00 E1 [21:39:30]RAPDU: B6 78 C1 46 92 1D E3 F0 90 00 [21:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_SignData done [21:39:30]FM_MakeSignedData done [21:39:30]CreateOFDProtocolMessage [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 11 00 00 [21:39:30]Write to MH i2c: E2 08 00 9C 13 80 11 00 00 00 00 00 00 29 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 17 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 17 00 9C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [21:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:39:30]wFMCommunicate OK [21:39:30]CreateOFDProtocolMessage done [21:39:30]OFDSenderStorePacket 166552 [21:39:30]StoreOFDPacket docnum=166552 [21:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 00 8E 04 01 99 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 92 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8A 02 00 35 04 06 00 EF 94 14 46 7F AA B6 78 C1 46 92 1D E3 F0 [21:39:30]CheckFolder [21:39:30]dirname=/storage/ofd_packets [21:39:30]CheckFolder done [21:39:30]ProducePacketName [21:39:30]name=ofd_packets/00166552 [21:39:30]NVStorageSaveData ofd_packets/00166552 [21:39:30]File name is /storage/ofd_packets/00166552 [21:39:30]Write 298 bytes [21:39:30]NVStorageSaveData done [21:39:30]OFDSenderStorePacket done [21:39:30]KKMCreateOFDPacket done [21:39:30]NVStorageSaveData kkm_last_timestamp [21:39:30]File name is /storage/kkm_last_timestamp [21:39:30]Write 4 bytes [21:39:30]NVStorageSaveData done [21:39:30]ExternCall_PrintAddStr [21:39:30]wPrintStart [21:39:30]Write to MH i2c: 01 00 00 9D 13 B0 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 9D 13 00 00 00 00 00 FF 0F C5 [21:39:30]RasterBufferAndPrint [21:39:30]line Счет N : (1)221131 [21:39:30]line ИНН: 02508201610067 [21:39:30]line Контрольно-Кассовый Чек [21:39:30]line ПРОДАЖА [21:39:30]line ТРК (МРК, ГНК) : 21 [21:39:30]line Товар: 2710194210 [21:39:30]line ДТ-К-5 [21:39:30]line 300.000 * 0.00 [21:39:30]line = 0.00 [21:39:30]line НДС 12% НСП 1% [21:39:30]line > о реализуемом товаре [21:39:30]line ИТОГО: 0.00 [21:39:30]line НСП 1% : 0.00 [21:39:30]line НДС 12% : 0.00 [21:39:30]line Наличными: 0.00 [21:39:30]line Безнал.: 0.00 [21:39:30]line Место: АЗС № 161 "Партнер Нефть" [21:39:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:39:30]line СНО: Общий режим [21:39:30]line Чек 307 22.10.2024 21:39 [21:39:30]line Смена: 536 ФФД: 1.0 [21:39:30]line ЗНМ: 0300000104 [21:39:30]line РНМ: 0000000000091764 [21:39:30]line Версия ККМ: 001 [21:39:30]line Талоны: Топливные Талоны [21:39:30]line 4922369 [21:39:30]line ФМ: 0000000000871759 [21:39:30]line ФД: 166552 [21:39:30]line ФПД: 263419274362794 [21:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213930&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166552&fm=263419274362794&tin=02508201610067®Number=0000000000091764&sum=0 [21:39:31]written 0, free lines is 4095 [21:39:31]OFD Sender: Processing packet 166552 [packets to send 48, broken 47] [21:39:31]ProducePacketName [21:39:31]name=ofd_packets/00166552 [21:39:31]OFD Sender: To server: pG, [21:39:31]CommunicateWithHost lk.salyk.kg:30040 [21:39:31]ConnectInit lk.salyk.kg [21:39:31]Connected sock=10 [21:39:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 00 8E 04 01 99 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 92 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8A 02 00 35 04 06 00 EF 94 14 46 7F AA B6 78 C1 46 92 1D E3 F0 [21:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 09 47 00 66 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 8A 02 00 F4 03 04 00 FC C1 17 67 B6 04 01 00 00 93 DD EB 1F CE 34 5D 10 [21:39:31]CommunicateWithHost err = 0 [21:39:31]CheckOFDResponse [21:39:31]1017 (14) - 77093643461234 [21:39:31]1041 (16) - 0000000000871759 [21:39:31]1040 (4) - 166552 [21:39:31]1012 (4) - 22.10.2024 15:17 [21:39:31]1206 (1) - 0 [21:39:31]OFD Sender: Remove packet 166552 [21:39:31]ProducePacketName [21:39:31]name=ofd_packets/00166552 [21:39:31]NVStorageDeleteData [21:39:31]Write to MH i2c: 01 00 00 C7 13 DA [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 07 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 C6 0C B3 [21:39:31]RasterBufferAndPrint [21:39:31]line [21:39:31]line [21:39:31]line [21:39:31]line [21:39:31]line [21:39:31]written 0, free lines is 3276 [21:39:31]MH_Cut [21:39:31]Write to MH i2c: D1 01 00 CE 13 01 B3 [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: D1 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: D1 01 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: D1 01 00 CE 13 00 B2 [21:39:31]Write to MH i2c: 01 00 00 CF 13 E2 [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]OFD Sender: No OFD packet to send [21:39:32]*** Cut start [21:39:32]*** Partial cut [21:39:32]*** CUTSNS_PIN = 1 [21:39:32]*** CUTSNS_PIN = 0 [21:39:32]*** Brake cut motor [21:39:32]Read from MH i2c: 01 [21:39:32]MH_I2C_Read... [21:39:32]*** Stop cut motor [21:39:32]*** Cut end [21:39:32]Read from MH i2c: 01 07 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 FF 0F F7 [21:39:32]process_action close_receipt done [21:39:32]requested_data is exist [21:39:32]produce_requested_data [21:39:32]requested_item fm.sn is exist - process it [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 11 00 00 [21:39:32]Write to MH i2c: E2 08 00 D0 13 80 11 00 00 00 00 00 00 5D [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 D0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [21:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:39:32]wFMCommunicate OK [21:39:33]requested_item fd.num is exist - process it [21:39:33]SAM_PROTO_GetFieldsCounters [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 13 00 00 [21:39:33]Write to MH i2c: E2 08 00 D1 13 80 13 00 00 00 00 00 00 60 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 D1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:39:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetFieldsCounters done [21:39:33]requested_item shift.num is exist - process it [21:39:33]requested_item shift.opened is exist - process it [21:39:33]req_shift_opened [21:39:33]FM_GetShiftState [21:39:33]SAM_PROTO_GetShiftState [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 13 01 00 [21:39:33]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B5 [21:39:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetShiftState done [21:39:33]FM_GetShiftState done [21:39:33]req_shift_opened done [21:39:33]requested_item shift.open_date is exist - process it [21:39:33]req_shift_open_date [21:39:33]req_shift_open_date done [21:39:33]produce_requested_data done [21:39:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166552,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:39:33]process_action_free close_receipt [21:39:33]json_value_free [21:39:33]json_value_free done [21:39:33]process_json_proto returns [21:39:33]Send response to host [21:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166552,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:39:33]free response buf [21:39:33]execute_script done [21:39:33]execute_script returns [21:39:33]free content buf [21:39:33]Sock 9.Close socket [21:39:33]Sock 9.Thread stoped [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]accept exits with 7 [21:40:51]New connection [21:40:51]New thread 3067632996 created [21:40:51]Thread 3067489636 joined [21:40:51]Waiting for new connection... [21:40:51] Sock 7.Parse request [21:40:51]Sock 7.Check first char [21:40:51]Sock 7.First char is OK [21:40:51]request: POST /json_proto HTTP/1.0 [21:40:51]Method: POST [21:40:51]URL: /json_proto [21:40:51]Method is POST - this is cgi request [21:40:51]url: /json_proto [21:40:51]query_string will be loaded in cgi processing [21:40:51]execute_cgi json_proto POST (null) [21:40:51]execute_cgi path=json_proto method=POST [21:40:51]POST find Content-Length [21:40:51]Host: 172.17.53.195:8080 [21:40:51]Content-Length: 677 [21:40:51]Content-Type: application/json [21:40:51] [21:40:51]POST finish read [21:40:51]Found Content-Length = 677 [21:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:51]execute_script... [21:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:51]POST & json_proto [21:40:51]process_json_proto [21:40:51]json parsed OK: [21:40:51]protocol is kg_v1.0 [21:40:51]action value=close_receipt [21:40:51]process_action close_receipt [21:40:51]cmd_close_receipt [21:40:51]MH_GetDate [21:40:51]Write to MH i2c: F0 00 00 D3 13 D5 [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 09 00 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 09 00 D3 13 00 E4 1B 18 67 21 48 4A 65 74 [21:40:51]GetLastDocTimeStamp 1729633170 [21:40:51]current date 1729633252 [21:40:51]FM_GetShiftState [21:40:51]SAM_PROTO_GetShiftState [21:40:51]wFMCommunicate request_size=4 [21:40:51]MH_SAM_APDU [21:40:51]CAPDU: 80 13 01 00 [21:40:51]Write to MH i2c: E2 08 00 D4 13 80 13 01 00 00 00 00 00 64 [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:51]Read from MH i2c: E2 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 0E 00 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 0E 00 D4 13 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 B7 [21:40:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:40:51]wFMCommunicate OK [21:40:51]SAM_PROTO_GetShiftState done [21:40:51]FM_GetShiftState done [21:40:51]opened in 1729557463 [21:40:51]opened+sec_in_day 1729643863 [21:40:51]quantity*price = 30038 [21:40:51]sum+1 = 30039 [21:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 308 22.10.2024 21:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166553 ФПД: 227277925510620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166553&fm=227277925510620&tin=02508201610067®Number=0000000000091764&sum=30000 [21:40:52]StoreToDocumentArchive [21:40:52]shift 536 fd 166553 [21:40:52]save to /storage/0536/doc_00166553 [21:40:52]save last doc name /storage/0536/doc_00166553 to /storage/kkm_last_doc_name [21:40:52]save OK [21:40:52]Clear old archive folders... [21:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:52]tlvbuf is 011EE090 [21:40:52]SAM_PROTO_ClearQueue [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 09 00 00 [21:40:52]Write to MH i2c: E2 08 00 E1 13 80 09 00 00 00 00 00 00 66 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]SAM_PROTO_ClearQueue done [21:40:52]KKMCreateOFDPacket [21:40:52]OFDProtocolAddRootSTLVToBuf [21:40:52]FM_MakeSignedData [21:40:52]FM_MakeSignedData [21:40:52]SAM_PROTO_SignData [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 01 02 [21:40:52]Write to MH i2c: E2 08 00 E2 13 80 0D 01 02 00 00 00 00 6E [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]wFMCommunicate request_size=255 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E4 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8A 02 00 35 04 06 00 CE [21:40:52]Write to MH i2c: E2 02 01 E3 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E4 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8A 02 00 35 04 06 00 CE 00 00 B8 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 E3 13 00 90 00 6A [21:40:53]RAPDU: 90 00 [21:40:53]wFMCommunicate OK [21:40:53]wFMCommunicate request_size=10 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 0D 02 02 05 B5 44 03 ED DC [21:40:53]Write to MH i2c: E2 0D 00 E4 13 80 0D 02 02 05 00 B5 44 03 ED DC 00 00 40 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [21:40:53]RAPDU: 90 00 [21:40:53]wFMCommunicate OK [21:40:53]wFMCommunicate request_size=4 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 0D 03 02 [21:40:53]Write to MH i2c: E2 08 00 E5 13 80 0D 03 02 00 00 00 00 73 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 0B 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 0B 00 E5 13 00 EE 1C 9A 50 6B C0 81 50 90 00 64 [21:40:53]RAPDU: EE 1C 9A 50 6B C0 81 50 90 00 [21:40:53]wFMCommunicate OK [21:40:53]SAM_PROTO_SignData done [21:40:53]FM_MakeSignedData done [21:40:53]CreateOFDProtocolMessage [21:40:53]wFMCommunicate request_size=4 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 11 00 00 [21:40:53]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 17 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 17 00 E6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [21:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:40:53]wFMCommunicate OK [21:40:53]CreateOFDProtocolMessage done [21:40:53]OFDSenderStorePacket 166553 [21:40:53]StoreOFDPacket docnum=166553 [21:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 1A 07 01 67 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E4 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8A 02 00 35 04 06 00 CE B5 44 03 ED DC EE 1C 9A 50 6B C0 81 50 [21:40:53]CheckFolder [21:40:53]dirname=/storage/ofd_packets [21:40:53]CheckFolder done [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00166553 [21:40:53]NVStorageSaveData ofd_packets/00166553 [21:40:53]File name is /storage/ofd_packets/00166553 [21:40:53]Write 301 bytes [21:40:53]NVStorageSaveData done [21:40:53]OFDSenderStorePacket done [21:40:53]KKMCreateOFDPacket done [21:40:53]NVStorageSaveData kkm_last_timestamp [21:40:53]File name is /storage/kkm_last_timestamp [21:40:53]Write 4 bytes [21:40:53]NVStorageSaveData done [21:40:53]ExternCall_PrintAddStr [21:40:53]wPrintStart [21:40:53]Write to MH i2c: 01 00 00 E7 13 FA [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [21:40:53]RasterBufferAndPrint [21:40:53]line Счет N : (1)221134 [21:40:53]line ИНН: 02508201610067 [21:40:53]line Контрольно-Кассовый Чек [21:40:53]line ПРОДАЖА [21:40:53]line ТРК (МРК, ГНК) : 13 [21:40:53]line Товар: 2710124130 [21:40:53]line Аи-92-К-5 [21:40:53]line 4.490 * 66.90 [21:40:53]line = 300.38 [21:40:53]line НДС 12% НСП 1% [21:40:53]line > о реализуемом товаре [21:40:53]line ОКРУГЛЕНИЕ: -0.38 [21:40:53]line ИТОГО: 300.00 [21:40:53]line Внесено: 300.00 [21:40:53]line СДАЧА: 0.00 [21:40:53]line НСП 1% : 2.66 [21:40:53]line НДС 12% : 31.90 [21:40:53]line Наличными: 300.00 [21:40:53]line Безнал.: 0.00 [21:40:53]line Место: АЗС № 161 "Партнер Нефть" [21:40:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:40:53]line СНО: Общий режим [21:40:53]line Чек 308 22.10.2024 21:40 [21:40:53]line Смена: 536 ФФД: 1.0 [21:40:53]line ЗНМ: 0300000104 [21:40:53]line РНМ: 0000000000091764 [21:40:53]line Версия ККМ: 001 [21:40:53]line ФМ: 0000000000871759 [21:40:53]line ФД: 166553 [21:40:53]line ФПД: 227277925510620 [21:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166553&fm=227277925510620&tin=02508201610067®Number=0000000000091764&sum=30000 [21:40:53]OFD Sender: Processing packet 166553 [packets to send 48, broken 47] [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00166553 [21:40:53]OFD Sender: To server: pG, [21:40:53]CommunicateWithHost lk.salyk.kg:30040 [21:40:53]ConnectInit lk.salyk.kg [21:40:53]written 0, free lines is 4095 [21:40:53]Connected sock=10 [21:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 1A 07 01 67 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E4 1B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8A 02 00 35 04 06 00 CE B5 44 03 ED DC EE 1C 9A 50 6B C0 81 50 [21:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 19 47 00 93 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 8A 02 00 F4 03 04 00 4E C2 17 67 B6 04 01 00 00 39 93 78 2E 68 50 4F 0D [21:40:53]CommunicateWithHost err = 0 [21:40:53]CheckOFDResponse [21:40:53]1017 (14) - 77093643461234 [21:40:53]1041 (16) - 0000000000871759 [21:40:53]1040 (4) - 166553 [21:40:53]1012 (4) - 22.10.2024 15:18 [21:40:53]1206 (1) - 0 [21:40:53]OFD Sender: Remove packet 166553 [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00166553 [21:40:53]NVStorageDeleteData [21:40:54]Write to MH i2c: 01 00 00 12 14 26 [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 07 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 C3 0C FC [21:40:54]RasterBufferAndPrint [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]written 0, free lines is 3275 [21:40:54]MH_Cut [21:40:54]Write to MH i2c: D1 01 00 19 14 01 FF [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 01 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 01 00 19 14 00 FE [21:40:54]Write to MH i2c: 01 00 00 1A 14 2E [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]OFD Sender: No OFD packet to send [21:40:54]*** Cut start [21:40:54]*** Partial cut [21:40:54]*** CUTSNS_PIN = 1 [21:40:54]*** CUTSNS_PIN = 0 [21:40:55]*** Brake cut motor [21:40:55]Read from MH i2c: 01 [21:40:55]MH_I2C_Read... [21:40:55]*** Stop cut motor [21:40:55]*** Cut end [21:40:55]Read from MH i2c: 01 07 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [21:40:55]process_action close_receipt done [21:40:55]requested_data is exist [21:40:55]produce_requested_data [21:40:55]requested_item fm.sn is exist - process it [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 11 00 00 [21:40:55]Write to MH i2c: E2 08 00 1B 14 80 11 00 00 00 00 00 00 A9 [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 1B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [21:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:40:55]wFMCommunicate OK [21:40:55]requested_item fd.num is exist - process it [21:40:55]SAM_PROTO_GetFieldsCounters [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 13 00 00 [21:40:55]Write to MH i2c: E2 08 00 1C 14 80 13 00 00 00 00 00 00 AC [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 62 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 62 00 1C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:55]wFMCommunicate OK [21:40:55]SAM_PROTO_GetFieldsCounters done [21:40:55]requested_item shift.num is exist - process it [21:40:55]requested_item shift.opened is exist - process it [21:40:55]req_shift_opened [21:40:55]FM_GetShiftState [21:40:55]SAM_PROTO_GetShiftState [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 13 01 00 [21:40:55]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0E 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 01 [21:40:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:40:55]wFMCommunicate OK [21:40:55]SAM_PROTO_GetShiftState done [21:40:55]FM_GetShiftState done [21:40:55]req_shift_opened done [21:40:55]requested_item shift.open_date is exist - process it [21:40:55]req_shift_open_date [21:40:55]req_shift_open_date done [21:40:55]produce_requested_data done [21:40:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166553,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:40:55]process_action_free close_receipt [21:40:55]json_value_free [21:40:55]json_value_free done [21:40:55]process_json_proto returns [21:40:55]Send response to host [21:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166553,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:40:55]free response buf [21:40:55]execute_script done [21:40:55]execute_script returns [21:40:55]free content buf [21:40:55]Sock 7.Close socket [21:40:55]Sock 7.Thread stoped [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:24]accept exits with 9 [21:41:24]New connection [21:41:24]New thread 3067489636 created [21:41:24]Thread 3067632996 joined [21:41:24]Waiting for new connection... [21:41:24] Sock 9.Parse request [21:41:24]Sock 9.Check first char [21:41:24]Sock 9.First char is OK [21:41:24]request: POST /json_proto HTTP/1.0 [21:41:24]Method: POST [21:41:24]URL: /json_proto [21:41:24]Method is POST - this is cgi request [21:41:24]url: /json_proto [21:41:24]query_string will be loaded in cgi processing [21:41:24]execute_cgi json_proto POST (null) [21:41:24]execute_cgi path=json_proto method=POST [21:41:24]POST find Content-Length [21:41:24]Host: 172.17.53.195:8080 [21:41:24]Content-Length: 797 [21:41:24]Content-Type: application/json [21:41:24] [21:41:24]POST finish read [21:41:24]Found Content-Length = 797 [21:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690450", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:24]execute_script... [21:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690450", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:24]POST & json_proto [21:41:24]process_json_proto [21:41:24]json parsed OK: [21:41:24]protocol is kg_v1.0 [21:41:24]action value=close_receipt [21:41:24]process_action close_receipt [21:41:24]cmd_close_receipt [21:41:24]MH_GetDate [21:41:24]Write to MH i2c: F0 00 00 1E 14 21 [21:41:24]Write i2c OK [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 09 00 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: F0 09 00 1E 14 00 06 1C 18 67 21 48 4A 65 E3 [21:41:24]GetLastDocTimeStamp 1729633252 [21:41:24]current date 1729633286 [21:41:24]FM_GetShiftState [21:41:24]SAM_PROTO_GetShiftState [21:41:24]wFMCommunicate request_size=4 [21:41:24]MH_SAM_APDU [21:41:24]CAPDU: 80 13 01 00 [21:41:24]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [21:41:24]Write i2c OK [21:41:24]MH_I2C_Read... [21:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:24]Read from MH i2c: E2 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: E2 0E 00 [21:41:24]MH_I2C_Read... [21:41:24]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 03 [21:41:24]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:41:24]wFMCommunicate OK [21:41:24]SAM_PROTO_GetShiftState done [21:41:24]FM_GetShiftState done [21:41:24]opened in 1729557463 [21:41:24]opened+sec_in_day 1729643863 [21:41:24]quantity*price = 0 [21:41:24]sum+1 = 1 [21:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 309 22.10.2024 21:41 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4690450 ФМ: 0000000000871759 ФД: 166554 ФПД: 210729494698807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166554&fm=210729494698807&tin=02508201610067®Number=0000000000091764&sum=0 [21:41:25]StoreToDocumentArchive [21:41:25]shift 536 fd 166554 [21:41:25]save to /storage/0536/doc_00166554 [21:41:25]save last doc name /storage/0536/doc_00166554 to /storage/kkm_last_doc_name [21:41:25]save OK [21:41:25]Clear old archive folders... [21:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:41:25]tlvbuf is 012A5F00 [21:41:25]SAM_PROTO_ClearQueue [21:41:25]wFMCommunicate request_size=4 [21:41:25]MH_SAM_APDU [21:41:25]CAPDU: 80 09 00 00 [21:41:25]Write to MH i2c: E2 08 00 2C 14 80 09 00 00 00 00 00 00 B2 [21:41:25]Write i2c OK [21:41:25]MH_I2C_Read... [21:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:25]Read from MH i2c: E2 [21:41:25]MH_I2C_Read... [21:41:25]Read from MH i2c: E2 03 00 [21:41:25]MH_I2C_Read... [21:41:25]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [21:41:25]RAPDU: 90 00 [21:41:25]wFMCommunicate OK [21:41:25]SAM_PROTO_ClearQueue done [21:41:25]KKMCreateOFDPacket [21:41:25]OFDProtocolAddRootSTLVToBuf [21:41:25]FM_MakeSignedData [21:41:25]FM_MakeSignedData [21:41:25]SAM_PROTO_SignData [21:41:25]wFMCommunicate request_size=4 [21:41:25]MH_SAM_APDU [21:41:25]CAPDU: 80 0D 01 02 [21:41:25]Write to MH i2c: E2 08 00 2D 14 80 0D 01 02 00 00 00 00 BA [21:41:25]Write i2c OK [21:41:25]MH_I2C_Read... [21:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=255 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8A 02 00 35 04 06 00 BF A8 48 AC [21:41:26]Write to MH i2c: E2 02 01 2E 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8A 02 00 35 04 06 00 BF A8 48 AC 00 00 FE [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=7 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 02 02 02 DB 37 [21:41:26]Write to MH i2c: E2 0A 00 2F 14 80 0D 02 02 02 00 DB 37 00 00 D3 [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [21:41:26]RAPDU: 90 00 [21:41:26]wFMCommunicate OK [21:41:26]wFMCommunicate request_size=4 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 0D 03 02 [21:41:26]Write to MH i2c: E2 08 00 30 14 80 0D 03 02 00 00 00 00 BF [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 0B 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 0B 00 30 14 00 47 3B D8 44 44 C3 C4 3F 90 00 68 [21:41:26]RAPDU: 47 3B D8 44 44 C3 C4 3F 90 00 [21:41:26]wFMCommunicate OK [21:41:26]SAM_PROTO_SignData done [21:41:26]FM_MakeSignedData done [21:41:26]CreateOFDProtocolMessage [21:41:26]wFMCommunicate request_size=4 [21:41:26]MH_SAM_APDU [21:41:26]CAPDU: 80 11 00 00 [21:41:26]Write to MH i2c: E2 08 00 31 14 80 11 00 00 00 00 00 00 BF [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:26]Read from MH i2c: E2 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 17 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: E2 17 00 31 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [21:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:41:26]wFMCommunicate OK [21:41:26]CreateOFDProtocolMessage done [21:41:26]OFDSenderStorePacket 166554 [21:41:26]StoreOFDPacket docnum=166554 [21:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7A 79 04 01 71 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8A 02 00 35 04 06 00 BF A8 48 AC DB 37 47 3B D8 44 44 C3 C4 3F [21:41:26]CheckFolder [21:41:26]dirname=/storage/ofd_packets [21:41:26]CheckFolder done [21:41:26]ProducePacketName [21:41:26]name=ofd_packets/00166554 [21:41:26]NVStorageSaveData ofd_packets/00166554 [21:41:26]File name is /storage/ofd_packets/00166554 [21:41:26]Write 298 bytes [21:41:26]NVStorageSaveData done [21:41:26]OFDSenderStorePacket done [21:41:26]KKMCreateOFDPacket done [21:41:26]NVStorageSaveData kkm_last_timestamp [21:41:26]File name is /storage/kkm_last_timestamp [21:41:26]Write 4 bytes [21:41:26]NVStorageSaveData done [21:41:26]ExternCall_PrintAddStr [21:41:26]wPrintStart [21:41:26]Write to MH i2c: 01 00 00 32 14 46 [21:41:26]Write i2c OK [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 07 00 [21:41:26]MH_I2C_Read... [21:41:26]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [21:41:26]RasterBufferAndPrint [21:41:26]line Счет N : (1)221135 [21:41:26]line ИНН: 02508201610067 [21:41:26]line Контрольно-Кассовый Чек [21:41:26]line ПРОДАЖА [21:41:26]line ТРК (МРК, ГНК) : 21 [21:41:26]line Товар: 2710194210 [21:41:26]line ДТ-К-5 [21:41:26]line 20.000 * 0.00 [21:41:26]line = 0.00 [21:41:26]line НДС 12% НСП 1% [21:41:26]line > о реализуемом товаре [21:41:26]line ИТОГО: 0.00 [21:41:26]line НСП 1% : 0.00 [21:41:26]line НДС 12% : 0.00 [21:41:26]line Наличными: 0.00 [21:41:26]line Безнал.: 0.00 [21:41:26]line Место: АЗС № 161 "Партнер Нефть" [21:41:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:41:26]line СНО: Общий режим [21:41:26]line Чек 309 22.10.2024 21:41 [21:41:26]line Смена: 536 ФФД: 1.0 [21:41:26]line ЗНМ: 0300000104 [21:41:26]line РНМ: 0000000000091764 [21:41:26]line Версия ККМ: 001 [21:41:26]line Талоны: Топливные Талоны [21:41:26]line 4690450 [21:41:26]line ФМ: 0000000000871759 [21:41:26]line ФД: 166554 [21:41:26]line ФПД: 210729494698807 [21:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166554&fm=210729494698807&tin=02508201610067®Number=0000000000091764&sum=0 [21:41:26]OFD Sender: Processing packet 166554 [packets to send 48, broken 47] [21:41:26]ProducePacketName [21:41:26]name=ofd_packets/00166554 [21:41:26]OFD Sender: To server: pG, [21:41:26]CommunicateWithHost lk.salyk.kg:30040 [21:41:26]ConnectInit lk.salyk.kg [21:41:26]written 0, free lines is 4095 [21:41:26]Connected sock=10 [21:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 7A 79 04 01 71 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8A 02 00 35 04 06 00 BF A8 48 AC DB 37 47 3B D8 44 44 C3 C4 3F [21:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 85 A4 47 00 96 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 8A 02 00 F4 03 04 00 70 C2 17 67 B6 04 01 00 00 34 92 0F 16 9B C4 73 AA [21:41:27]CommunicateWithHost err = 0 [21:41:27]CheckOFDResponse [21:41:27]1017 (14) - 77093643461234 [21:41:27]1041 (16) - 0000000000871759 [21:41:27]1040 (4) - 166554 [21:41:27]1012 (4) - 22.10.2024 15:19 [21:41:27]1206 (1) - 0 [21:41:27]OFD Sender: Remove packet 166554 [21:41:27]ProducePacketName [21:41:27]name=ofd_packets/00166554 [21:41:27]NVStorageDeleteData [21:41:27]Write to MH i2c: 01 00 00 5C 14 70 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 07 00 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 D7 0C 5A [21:41:27]RasterBufferAndPrint [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]line [21:41:27]written 0, free lines is 3296 [21:41:27]MH_Cut [21:41:27]Write to MH i2c: D1 01 00 63 14 01 49 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 01 00 [21:41:27]MH_I2C_Read... [21:41:27]Read from MH i2c: D1 01 00 63 14 00 48 [21:41:27]Write to MH i2c: 01 00 00 64 14 78 [21:41:27]Write i2c OK [21:41:27]MH_I2C_Read... [21:41:27]OFD Sender: No OFD packet to send [21:41:28]*** Cut start [21:41:28]*** Partial cut [21:41:28]*** CUTSNS_PIN = 1 [21:41:28]*** CUTSNS_PIN = 0 [21:41:28]*** Brake cut motor [21:41:28]Read from MH i2c: 01 [21:41:28]MH_I2C_Read... [21:41:28]*** Stop cut motor [21:41:28]*** Cut end [21:41:28]Read from MH i2c: 01 07 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: 01 07 00 64 14 00 00 00 00 00 FF 0F 8D [21:41:28]process_action close_receipt done [21:41:28]requested_data is exist [21:41:28]produce_requested_data [21:41:28]requested_item fm.sn is exist - process it [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 11 00 00 [21:41:28]Write to MH i2c: E2 08 00 65 14 80 11 00 00 00 00 00 00 F3 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 17 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 17 00 65 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [21:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:41:28]wFMCommunicate OK [21:41:28]requested_item fd.num is exist - process it [21:41:28]SAM_PROTO_GetFieldsCounters [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 13 00 00 [21:41:28]Write to MH i2c: E2 08 00 66 14 80 13 00 00 00 00 00 00 F6 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 62 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 62 00 66 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:28]wFMCommunicate OK [21:41:28]SAM_PROTO_GetFieldsCounters done [21:41:28]requested_item shift.num is exist - process it [21:41:28]requested_item shift.opened is exist - process it [21:41:28]req_shift_opened [21:41:28]FM_GetShiftState [21:41:28]SAM_PROTO_GetShiftState [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 13 01 00 [21:41:28]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4B [21:41:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:41:28]wFMCommunicate OK [21:41:28]SAM_PROTO_GetShiftState done [21:41:28]FM_GetShiftState done [21:41:28]req_shift_opened done [21:41:28]requested_item shift.open_date is exist - process it [21:41:28]req_shift_open_date [21:41:28]req_shift_open_date done [21:41:28]produce_requested_data done [21:41:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166554,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:41:28]process_action_free close_receipt [21:41:28]json_value_free [21:41:28]json_value_free done [21:41:28]process_json_proto returns [21:41:28]Send response to host [21:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166554,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:41:28]free response buf [21:41:28]execute_script done [21:41:28]execute_script returns [21:41:28]free content buf [21:41:28]Sock 9.Close socket [21:41:28]Sock 9.Thread stoped [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:03]accept exits with 7 [21:43:03]New connection [21:43:03]New thread 3067632996 created [21:43:03]Thread 3067489636 joined [21:43:03]Waiting for new connection... [21:43:03] Sock 7.Parse request [21:43:03]Sock 7.Check first char [21:43:03]Sock 7.First char is OK [21:43:03]request: POST /json_proto HTTP/1.0 [21:43:03]Method: POST [21:43:03]URL: /json_proto [21:43:03]Method is POST - this is cgi request [21:43:03]url: /json_proto [21:43:03]query_string will be loaded in cgi processing [21:43:03]execute_cgi json_proto POST (null) [21:43:03]execute_cgi path=json_proto method=POST [21:43:03]POST find Content-Length [21:43:03]Host: 172.17.53.195:8080 [21:43:03]Content-Length: 797 [21:43:03]Content-Type: application/json [21:43:03] [21:43:03]POST finish read [21:43:03]Found Content-Length = 797 [21:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690449", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:03]execute_script... [21:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4690449", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:03]POST & json_proto [21:43:03]process_json_proto [21:43:03]json parsed OK: [21:43:03]protocol is kg_v1.0 [21:43:03]action value=close_receipt [21:43:03]process_action close_receipt [21:43:03]cmd_close_receipt [21:43:03]MH_GetDate [21:43:03]Write to MH i2c: F0 00 00 68 14 6B [21:43:03]Write i2c OK [21:43:03]MH_I2C_Read... [21:43:03]Read from MH i2c: F0 [21:43:03]MH_I2C_Read... [21:43:03]Read from MH i2c: F0 09 00 [21:43:03]MH_I2C_Read... [21:43:03]Read from MH i2c: F0 09 00 68 14 00 69 1C 18 67 21 48 4A 65 90 [21:43:03]GetLastDocTimeStamp 1729633286 [21:43:03]current date 1729633385 [21:43:03]FM_GetShiftState [21:43:03]SAM_PROTO_GetShiftState [21:43:03]wFMCommunicate request_size=4 [21:43:03]MH_SAM_APDU [21:43:03]CAPDU: 80 13 01 00 [21:43:03]Write to MH i2c: E2 08 00 69 14 80 13 01 00 00 00 00 00 FA [21:43:03]Write i2c OK [21:43:03]MH_I2C_Read... [21:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:03]Read from MH i2c: E2 [21:43:03]MH_I2C_Read... [21:43:03]Read from MH i2c: E2 0E 00 [21:43:03]MH_I2C_Read... [21:43:03]Read from MH i2c: E2 0E 00 69 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 4D [21:43:03]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:43:03]wFMCommunicate OK [21:43:03]SAM_PROTO_GetShiftState done [21:43:03]FM_GetShiftState done [21:43:03]opened in 1729557463 [21:43:03]opened+sec_in_day 1729643863 [21:43:03]quantity*price = 0 [21:43:03]sum+1 = 1 [21:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 310 22.10.2024 21:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4690449 ФМ: 0000000000871759 ФД: 166555 ФПД: 193985858130521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214305&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166555&fm=193985858130521&tin=02508201610067®Number=0000000000091764&sum=0 [21:43:04]StoreToDocumentArchive [21:43:04]shift 536 fd 166555 [21:43:04]save to /storage/0536/doc_00166555 [21:43:04]save last doc name /storage/0536/doc_00166555 to /storage/kkm_last_doc_name [21:43:04]save OK [21:43:04]Clear old archive folders... [21:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:43:04]tlvbuf is B6F670E0 [21:43:04]SAM_PROTO_ClearQueue [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 09 00 00 [21:43:04]Write to MH i2c: E2 08 00 76 14 80 09 00 00 00 00 00 00 FC [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [21:43:04]RAPDU: 90 00 [21:43:04]wFMCommunicate OK [21:43:04]SAM_PROTO_ClearQueue done [21:43:04]KKMCreateOFDPacket [21:43:04]OFDProtocolAddRootSTLVToBuf [21:43:04]FM_MakeSignedData [21:43:04]FM_MakeSignedData [21:43:04]SAM_PROTO_SignData [21:43:04]wFMCommunicate request_size=4 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 0D 01 02 [21:43:04]Write to MH i2c: E2 08 00 77 14 80 0D 01 02 00 00 00 00 04 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:04]Read from MH i2c: E2 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 [21:43:04]MH_I2C_Read... [21:43:04]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [21:43:04]RAPDU: 90 00 [21:43:04]wFMCommunicate OK [21:43:04]wFMCommunicate request_size=255 [21:43:04]MH_SAM_APDU [21:43:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 69 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8A 02 00 35 04 06 00 B0 6D DA 2A [21:43:04]Write to MH i2c: E2 02 01 78 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 69 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8A 02 00 35 04 06 00 B0 6D DA 2A 00 00 73 [21:43:04]Write i2c OK [21:43:04]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=7 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 0D 02 02 02 52 59 [21:43:05]Write to MH i2c: E2 0A 00 79 14 80 0D 02 02 02 00 52 59 00 00 B6 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [21:43:05]RAPDU: 90 00 [21:43:05]wFMCommunicate OK [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 0D 03 02 [21:43:05]Write to MH i2c: E2 08 00 7A 14 80 0D 03 02 00 00 00 00 09 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0B 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0B 00 7A 14 00 B1 2D 96 B3 CB 4E DA E3 90 00 07 [21:43:05]RAPDU: B1 2D 96 B3 CB 4E DA E3 90 00 [21:43:05]wFMCommunicate OK [21:43:05]SAM_PROTO_SignData done [21:43:05]FM_MakeSignedData done [21:43:05]CreateOFDProtocolMessage [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 11 00 00 [21:43:05]Write to MH i2c: E2 08 00 7B 14 80 11 00 00 00 00 00 00 09 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 17 00 7B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [21:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:43:05]wFMCommunicate OK [21:43:05]CreateOFDProtocolMessage done [21:43:05]OFDSenderStorePacket 166555 [21:43:05]StoreOFDPacket docnum=166555 [21:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 27 04 01 1A 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 69 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8A 02 00 35 04 06 00 B0 6D DA 2A 52 59 B1 2D 96 B3 CB 4E DA E3 [21:43:05]CheckFolder [21:43:05]dirname=/storage/ofd_packets [21:43:05]CheckFolder done [21:43:05]ProducePacketName [21:43:05]name=ofd_packets/00166555 [21:43:05]NVStorageSaveData ofd_packets/00166555 [21:43:05]File name is /storage/ofd_packets/00166555 [21:43:05]Write 298 bytes [21:43:05]NVStorageSaveData done [21:43:05]OFDSenderStorePacket done [21:43:05]KKMCreateOFDPacket done [21:43:05]NVStorageSaveData kkm_last_timestamp [21:43:05]File name is /storage/kkm_last_timestamp [21:43:05]Write 4 bytes [21:43:05]NVStorageSaveData done [21:43:05]ExternCall_PrintAddStr [21:43:05]wPrintStart [21:43:05]Write to MH i2c: 01 00 00 7C 14 90 [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 07 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: 01 07 00 7C 14 00 00 00 00 00 FF 0F A5 [21:43:05]RasterBufferAndPrint [21:43:05]line Счет N : (1)221136 [21:43:05]line ИНН: 02508201610067 [21:43:05]line Контрольно-Кассовый Чек [21:43:05]line ПРОДАЖА [21:43:05]line ТРК (МРК, ГНК) : 21 [21:43:05]line Товар: 2710194210 [21:43:05]line ДТ-К-5 [21:43:05]line 20.000 * 0.00 [21:43:05]line = 0.00 [21:43:05]line НДС 12% НСП 1% [21:43:05]line > о реализуемом товаре [21:43:05]line ИТОГО: 0.00 [21:43:05]line НСП 1% : 0.00 [21:43:05]line НДС 12% : 0.00 [21:43:05]line Наличными: 0.00 [21:43:05]line Безнал.: 0.00 [21:43:05]line Место: АЗС № 161 "Партнер Нефть" [21:43:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:43:05]line СНО: Общий режим [21:43:05]line Чек 310 22.10.2024 21:43 [21:43:05]line Смена: 536 ФФД: 1.0 [21:43:05]line ЗНМ: 0300000104 [21:43:05]line РНМ: 0000000000091764 [21:43:05]line Версия ККМ: 001 [21:43:05]line Талоны: Топливные Талоны [21:43:05]line 4690449 [21:43:05]line ФМ: 0000000000871759 [21:43:05]line ФД: 166555 [21:43:05]line ФПД: 193985858130521 [21:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214305&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166555&fm=193985858130521&tin=02508201610067®Number=0000000000091764&sum=0 [21:43:05]OFD Sender: Processing packet 166555 [packets to send 48, broken 47] [21:43:05]ProducePacketName [21:43:05]name=ofd_packets/00166555 [21:43:05]OFD Sender: To server: pG, [21:43:05]CommunicateWithHost lk.salyk.kg:30040 [21:43:05]ConnectInit lk.salyk.kg [21:43:05]written 0, free lines is 4095 [21:43:05]Connected sock=9 [21:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B8 27 04 01 1A 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 69 1C 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8A 02 00 35 04 06 00 B0 6D DA 2A 52 59 B1 2D 96 B3 CB 4E DA E3 [21:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 4F 47 00 30 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 8A 02 00 F4 03 04 00 D2 C2 17 67 B6 04 01 00 00 8F 76 F6 7E 3D 23 BD 32 [21:43:05]CommunicateWithHost err = 0 [21:43:05]CheckOFDResponse [21:43:05]1017 (14) - 77093643461234 [21:43:05]1041 (16) - 0000000000871759 [21:43:05]1040 (4) - 166555 [21:43:05]1012 (4) - 22.10.2024 15:20 [21:43:05]1206 (1) - 0 [21:43:05]OFD Sender: Remove packet 166555 [21:43:05]ProducePacketName [21:43:05]name=ofd_packets/00166555 [21:43:05]NVStorageDeleteData [21:43:06]Write to MH i2c: 01 00 00 A6 14 BA [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 07 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 D2 0C 9F [21:43:06]RasterBufferAndPrint [21:43:06]line [21:43:06]line [21:43:06]line [21:43:06]line [21:43:06]line [21:43:06]written 0, free lines is 3288 [21:43:06]MH_Cut [21:43:06]Write to MH i2c: D1 01 00 AD 14 01 93 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: D1 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: D1 01 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: D1 01 00 AD 14 00 92 [21:43:06]Write to MH i2c: 01 00 00 AE 14 C2 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]OFD Sender: No OFD packet to send [21:43:06]*** Cut start [21:43:06]*** Partial cut [21:43:06]*** CUTSNS_PIN = 1 [21:43:06]*** CUTSNS_PIN = 0 [21:43:07]*** Brake cut motor [21:43:07]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]*** Stop cut motor [21:43:07]*** Cut end [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 FF 0F D7 [21:43:07]process_action close_receipt done [21:43:07]requested_data is exist [21:43:07]produce_requested_data [21:43:07]requested_item fm.sn is exist - process it [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 AF 14 80 11 00 00 00 00 00 00 3D [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 AF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [21:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:43:07]wFMCommunicate OK [21:43:07]requested_item fd.num is exist - process it [21:43:07]SAM_PROTO_GetFieldsCounters [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 13 00 00 [21:43:07]Write to MH i2c: E2 08 00 B0 14 80 13 00 00 00 00 00 00 40 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 62 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 62 00 B0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [21:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_GetFieldsCounters done [21:43:07]requested_item shift.num is exist - process it [21:43:07]requested_item shift.opened is exist - process it [21:43:07]req_shift_opened [21:43:07]FM_GetShiftState [21:43:07]SAM_PROTO_GetShiftState [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 13 01 00 [21:43:07]Write to MH i2c: E2 08 00 B1 14 80 13 01 00 00 00 00 00 42 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0E 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0E 00 B1 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 95 [21:43:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_GetShiftState done [21:43:07]FM_GetShiftState done [21:43:07]req_shift_opened done [21:43:07]requested_item shift.open_date is exist - process it [21:43:07]req_shift_open_date [21:43:07]req_shift_open_date done [21:43:07]produce_requested_data done [21:43:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166555,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:43:07]process_action_free close_receipt [21:43:07]json_value_free [21:43:07]json_value_free done [21:43:07]process_json_proto returns [21:43:07]Send response to host [21:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166555,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:43:07]free response buf [21:43:07]execute_script done [21:43:07]execute_script returns [21:43:07]free content buf [21:43:07]Sock 7.Close socket [21:43:07]Sock 7.Thread stoped [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:23]accept exits with 10 [21:49:23]New connection [21:49:23]New thread 3067489636 created [21:49:23]Thread 3067632996 joined [21:49:23]Waiting for new connection... [21:49:23] Sock 10.Parse request [21:49:23]Sock 10.Check first char [21:49:23]Sock 10.First char is OK [21:49:23]request: POST /json_proto HTTP/1.0 [21:49:23]Method: POST [21:49:23]URL: /json_proto [21:49:23]Method is POST - this is cgi request [21:49:23]url: /json_proto [21:49:23]query_string will be loaded in cgi processing [21:49:23]execute_cgi json_proto POST (null) [21:49:23]execute_cgi path=json_proto method=POST [21:49:23]POST find Content-Length [21:49:23]Host: 172.17.53.195:8080 [21:49:23]Content-Length: 677 [21:49:23]Content-Type: application/json [21:49:23] [21:49:23]POST finish read [21:49:23]Found Content-Length = 677 [21:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:23]execute_script... [21:49:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:23]POST & json_proto [21:49:23]process_json_proto [21:49:23]json parsed OK: [21:49:23]protocol is kg_v1.0 [21:49:23]action value=close_receipt [21:49:23]process_action close_receipt [21:49:23]cmd_close_receipt [21:49:23]MH_GetDate [21:49:23]Write to MH i2c: F0 00 00 B2 14 B5 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: F0 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: F0 09 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: F0 09 00 B2 14 00 E5 1D 18 67 21 48 4A 65 57 [21:49:23]GetLastDocTimeStamp 1729633385 [21:49:23]current date 1729633765 [21:49:23]FM_GetShiftState [21:49:23]SAM_PROTO_GetShiftState [21:49:23]wFMCommunicate request_size=4 [21:49:23]MH_SAM_APDU [21:49:23]CAPDU: 80 13 01 00 [21:49:23]Write to MH i2c: E2 08 00 B3 14 80 13 01 00 00 00 00 00 44 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:23]Read from MH i2c: E2 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 0E 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 0E 00 B3 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 97 [21:49:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:49:23]wFMCommunicate OK [21:49:23]SAM_PROTO_GetShiftState done [21:49:23]FM_GetShiftState done [21:49:23]opened in 1729557463 [21:49:23]opened+sec_in_day 1729643863 [21:49:23]quantity*price = 30038 [21:49:23]sum+1 = 30039 [21:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 311 22.10.2024 21:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166556 ФПД: 227019746732598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166556&fm=227019746732598&tin=02508201610067®Number=0000000000091764&sum=30000 [21:49:25]StoreToDocumentArchive [21:49:25]shift 536 fd 166556 [21:49:25]save to /storage/0536/doc_00166556 [21:49:25]save last doc name /storage/0536/doc_00166556 to /storage/kkm_last_doc_name [21:49:25]save OK [21:49:25]Clear old archive folders... [21:49:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:25]tlvbuf is B6F4E970 [21:49:25]SAM_PROTO_ClearQueue [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 09 00 00 [21:49:25]Write to MH i2c: E2 08 00 C0 14 80 09 00 00 00 00 00 00 46 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [21:49:25]RAPDU: 90 00 [21:49:25]wFMCommunicate OK [21:49:25]SAM_PROTO_ClearQueue done [21:49:25]KKMCreateOFDPacket [21:49:25]OFDProtocolAddRootSTLVToBuf [21:49:25]FM_MakeSignedData [21:49:25]FM_MakeSignedData [21:49:25]SAM_PROTO_SignData [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 0D 01 02 [21:49:25]Write to MH i2c: E2 08 00 C1 14 80 0D 01 02 00 00 00 00 4E [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [21:49:25]RAPDU: 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=255 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E5 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8A 02 00 35 04 06 00 CE [21:49:25]Write to MH i2c: E2 02 01 C2 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E5 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8A 02 00 35 04 06 00 CE 00 00 A1 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [21:49:25]RAPDU: 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=10 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 0D 02 02 05 79 27 5C 6A 36 [21:49:25]Write to MH i2c: E2 0D 00 C3 14 80 0D 02 02 05 00 79 27 5C 6A 36 00 00 F7 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [21:49:25]RAPDU: 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 0D 03 02 [21:49:25]Write to MH i2c: E2 08 00 C4 14 80 0D 03 02 00 00 00 00 53 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0B 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0B 00 C4 14 00 8B 28 2F 54 B0 EB 66 EE 90 00 79 [21:49:25]RAPDU: 8B 28 2F 54 B0 EB 66 EE 90 00 [21:49:25]wFMCommunicate OK [21:49:25]SAM_PROTO_SignData done [21:49:25]FM_MakeSignedData done [21:49:25]CreateOFDProtocolMessage [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 11 00 00 [21:49:25]Write to MH i2c: E2 08 00 C5 14 80 11 00 00 00 00 00 00 53 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 17 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 17 00 C5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [21:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:25]wFMCommunicate OK [21:49:25]CreateOFDProtocolMessage done [21:49:25]OFDSenderStorePacket 166556 [21:49:25]StoreOFDPacket docnum=166556 [21:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 64 07 01 4D 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E5 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8A 02 00 35 04 06 00 CE 79 27 5C 6A 36 8B 28 2F 54 B0 EB 66 EE [21:49:25]CheckFolder [21:49:25]dirname=/storage/ofd_packets [21:49:25]CheckFolder done [21:49:25]ProducePacketName [21:49:25]name=ofd_packets/00166556 [21:49:25]NVStorageSaveData ofd_packets/00166556 [21:49:25]File name is /storage/ofd_packets/00166556 [21:49:25]Write 301 bytes [21:49:25]NVStorageSaveData done [21:49:25]OFDSenderStorePacket done [21:49:25]KKMCreateOFDPacket done [21:49:25]NVStorageSaveData kkm_last_timestamp [21:49:25]File name is /storage/kkm_last_timestamp [21:49:25]Write 4 bytes [21:49:25]NVStorageSaveData done [21:49:25]ExternCall_PrintAddStr [21:49:25]wPrintStart [21:49:25]Write to MH i2c: 01 00 00 C6 14 DA [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: 01 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: 01 07 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: 01 07 00 C6 14 00 00 00 00 00 FF 0F EF [21:49:25]RasterBufferAndPrint [21:49:25]line Счет N : (1)221137 [21:49:25]line ИНН: 02508201610067 [21:49:25]line Контрольно-Кассовый Чек [21:49:25]line ПРОДАЖА [21:49:25]line ТРК (МРК, ГНК) : 43 [21:49:25]line Товар: 2710124130 [21:49:25]line Аи-92-К-5 [21:49:25]line 4.490 * 66.90 [21:49:25]line = 300.38 [21:49:25]line НДС 12% НСП 1% [21:49:25]line > о реализуемом товаре [21:49:25]line ОКРУГЛЕНИЕ: -0.38 [21:49:25]line ИТОГО: 300.00 [21:49:25]line Внесено: 300.00 [21:49:25]line СДАЧА: 0.00 [21:49:25]line НСП 1% : 2.66 [21:49:25]line НДС 12% : 31.90 [21:49:25]line Наличными: 300.00 [21:49:25]line Безнал.: 0.00 [21:49:25]line Место: АЗС № 161 "Партнер Нефть" [21:49:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:49:25]line СНО: Общий режим [21:49:25]line Чек 311 22.10.2024 21:49 [21:49:25]line Смена: 536 ФФД: 1.0 [21:49:25]line ЗНМ: 0300000104 [21:49:25]line РНМ: 0000000000091764 [21:49:25]line Версия ККМ: 001 [21:49:25]line ФМ: 0000000000871759 [21:49:25]line ФД: 166556 [21:49:25]line ФПД: 227019746732598 [21:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166556&fm=227019746732598&tin=02508201610067®Number=0000000000091764&sum=30000 [21:49:25]OFD Sender: Processing packet 166556 [packets to send 48, broken 47] [21:49:25]ProducePacketName [21:49:25]name=ofd_packets/00166556 [21:49:25]OFD Sender: To server: pG, [21:49:25]CommunicateWithHost lk.salyk.kg:30040 [21:49:26]ConnectInit lk.salyk.kg [21:49:26]written 0, free lines is 4095 [21:49:26]Connected sock=9 [21:49:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 64 07 01 4D 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E5 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8A 02 00 35 04 06 00 CE 79 27 5C 6A 36 8B 28 2F 54 B0 EB 66 EE [21:49:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BA E0 47 00 01 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 8A 02 00 F4 03 04 00 4F C4 17 67 B6 04 01 00 00 CB 90 1E 9B 03 E8 93 A9 [21:49:26]CommunicateWithHost err = 0 [21:49:26]CheckOFDResponse [21:49:26]1017 (14) - 77093643461234 [21:49:26]1041 (16) - 0000000000871759 [21:49:26]1040 (4) - 166556 [21:49:26]1012 (4) - 22.10.2024 15:27 [21:49:26]1206 (1) - 0 [21:49:26]OFD Sender: Remove packet 166556 [21:49:26]ProducePacketName [21:49:26]name=ofd_packets/00166556 [21:49:26]NVStorageDeleteData [21:49:26]Write to MH i2c: 01 00 00 F1 14 05 [21:49:26]Write i2c OK [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: 01 [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: 01 07 00 [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: 01 07 00 F1 14 00 00 00 00 00 C8 0C E0 [21:49:26]RasterBufferAndPrint [21:49:26]line [21:49:26]line [21:49:26]line [21:49:26]line [21:49:26]line [21:49:26]written 0, free lines is 3279 [21:49:26]MH_Cut [21:49:26]Write to MH i2c: D1 01 00 F8 14 01 DE [21:49:26]Write i2c OK [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: D1 [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: D1 01 00 [21:49:26]MH_I2C_Read... [21:49:26]Read from MH i2c: D1 01 00 F8 14 00 DD [21:49:26]Write to MH i2c: 01 00 00 F9 14 0D [21:49:26]Write i2c OK [21:49:26]MH_I2C_Read... [21:49:26]OFD Sender: No OFD packet to send [21:49:27]*** Cut start [21:49:27]*** Partial cut [21:49:27]*** CUTSNS_PIN = 1 [21:49:27]*** CUTSNS_PIN = 0 [21:49:27]*** Brake cut motor [21:49:27]Read from MH i2c: 01 [21:49:27]MH_I2C_Read... [21:49:27]*** Stop cut motor [21:49:27]Read from MH i2c: 01 07 00 [21:49:27]MH_I2C_Read... [21:49:27]*** Cut end [21:49:27]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 FF 0F 22 [21:49:27]process_action close_receipt done [21:49:27]requested_data is exist [21:49:27]produce_requested_data [21:49:27]requested_item fm.sn is exist - process it [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 11 00 00 [21:49:27]Write to MH i2c: E2 08 00 FA 14 80 11 00 00 00 00 00 00 88 [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 17 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 17 00 FA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [21:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:27]wFMCommunicate OK [21:49:27]requested_item fd.num is exist - process it [21:49:27]SAM_PROTO_GetFieldsCounters [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 13 00 00 [21:49:27]Write to MH i2c: E2 08 00 FB 14 80 13 00 00 00 00 00 00 8B [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 62 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 62 00 FB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:28]wFMCommunicate OK [21:49:28]SAM_PROTO_GetFieldsCounters done [21:49:28]requested_item shift.num is exist - process it [21:49:28]requested_item shift.opened is exist - process it [21:49:28]req_shift_opened [21:49:28]FM_GetShiftState [21:49:28]SAM_PROTO_GetShiftState [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 13 01 00 [21:49:28]Write to MH i2c: E2 08 00 FC 14 80 13 01 00 00 00 00 00 8D [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0E 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0E 00 FC 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E0 [21:49:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:49:28]wFMCommunicate OK [21:49:28]SAM_PROTO_GetShiftState done [21:49:28]FM_GetShiftState done [21:49:28]req_shift_opened done [21:49:28]requested_item shift.open_date is exist - process it [21:49:28]req_shift_open_date [21:49:28]req_shift_open_date done [21:49:28]produce_requested_data done [21:49:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166556,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:49:28]process_action_free close_receipt [21:49:28]json_value_free [21:49:28]json_value_free done [21:49:28]process_json_proto returns [21:49:28]Send response to host [21:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166556,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:49:28]free response buf [21:49:28]execute_script done [21:49:28]execute_script returns [21:49:28]free content buf [21:49:28]Sock 10.Close socket [21:49:28]Sock 10.Thread stoped [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:42]accept exits with 7 [21:49:42]New connection [21:49:42]New thread 3067632996 created [21:49:42]Thread 3067489636 joined [21:49:42]Waiting for new connection... [21:49:42] Sock 7.Parse request [21:49:42]Sock 7.Check first char [21:49:42]Sock 7.First char is OK [21:49:42]request: POST /json_proto HTTP/1.0 [21:49:42]Method: POST [21:49:42]URL: /json_proto [21:49:42]Method is POST - this is cgi request [21:49:42]url: /json_proto [21:49:42]query_string will be loaded in cgi processing [21:49:42]execute_cgi json_proto POST (null) [21:49:42]execute_cgi path=json_proto method=POST [21:49:42]POST find Content-Length [21:49:42]Host: 172.17.53.195:8080 [21:49:42]Content-Length: 766 [21:49:42]Content-Type: application/json [21:49:42] [21:49:42]POST finish read [21:49:42]Found Content-Length = 766 [21:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:42]execute_script... [21:49:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:42]POST & json_proto [21:49:42]process_json_proto [21:49:42]json parsed OK: [21:49:42]protocol is kg_v1.0 [21:49:42]action value=close_receipt [21:49:42]process_action close_receipt [21:49:42]cmd_close_receipt [21:49:42]MH_GetDate [21:49:42]Write to MH i2c: F0 00 00 FD 14 00 [21:49:42]Write i2c OK [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: F0 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: F0 09 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: F0 09 00 FD 14 00 F7 1D 18 67 21 48 4A 65 B4 [21:49:42]GetLastDocTimeStamp 1729633765 [21:49:42]current date 1729633783 [21:49:42]FM_GetShiftState [21:49:42]SAM_PROTO_GetShiftState [21:49:42]wFMCommunicate request_size=4 [21:49:42]MH_SAM_APDU [21:49:42]CAPDU: 80 13 01 00 [21:49:42]Write to MH i2c: E2 08 00 FE 14 80 13 01 00 00 00 00 00 8F [21:49:42]Write i2c OK [21:49:42]MH_I2C_Read... [21:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:42]Read from MH i2c: E2 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 0E 00 [21:49:42]MH_I2C_Read... [21:49:42]Read from MH i2c: E2 0E 00 FE 14 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 E2 [21:49:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:49:42]wFMCommunicate OK [21:49:42]SAM_PROTO_GetShiftState done [21:49:42]FM_GetShiftState done [21:49:42]opened in 1729557463 [21:49:42]opened+sec_in_day 1729643863 [21:49:42]quantity*price = 150037 [21:49:42]sum+1 = 150039 [21:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 312 22.10.2024 21:49 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166557 ФПД: 79948249398006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166557&fm=79948249398006&tin=02508201610067®Number=0000000000091764&sum=150038 [21:49:43]StoreToDocumentArchive [21:49:43]shift 536 fd 166557 [21:49:43]save to /storage/0536/doc_00166557 [21:49:43]save last doc name /storage/0536/doc_00166557 to /storage/kkm_last_doc_name [21:49:43]save OK [21:49:43]Clear old archive folders... [21:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:49:43]tlvbuf is 011EE7E0 [21:49:43]SAM_PROTO_ClearQueue [21:49:43]wFMCommunicate request_size=4 [21:49:43]MH_SAM_APDU [21:49:43]CAPDU: 80 09 00 00 [21:49:43]Write to MH i2c: E2 08 00 0B 15 80 09 00 00 00 00 00 00 92 [21:49:43]Write i2c OK [21:49:43]MH_I2C_Read... [21:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:43]Read from MH i2c: E2 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [21:49:43]RAPDU: 90 00 [21:49:43]wFMCommunicate OK [21:49:43]SAM_PROTO_ClearQueue done [21:49:43]KKMCreateOFDPacket [21:49:43]OFDProtocolAddRootSTLVToBuf [21:49:43]FM_MakeSignedData [21:49:43]FM_MakeSignedData [21:49:43]SAM_PROTO_SignData [21:49:43]wFMCommunicate request_size=4 [21:49:43]MH_SAM_APDU [21:49:43]CAPDU: 80 0D 01 02 [21:49:43]Write to MH i2c: E2 08 00 0C 15 80 0D 01 02 00 00 00 00 9A [21:49:43]Write i2c OK [21:49:43]MH_I2C_Read... [21:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:43]Read from MH i2c: E2 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [21:49:43]RAPDU: 90 00 [21:49:43]wFMCommunicate OK [21:49:43]wFMCommunicate request_size=255 [21:49:43]MH_SAM_APDU [21:49:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F7 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8A 02 00 35 04 06 00 48 B6 67 01 [21:49:43]Write to MH i2c: E2 02 01 0D 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F7 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8A 02 00 35 04 06 00 48 B6 67 01 00 00 60 [21:49:43]Write i2c OK [21:49:43]MH_I2C_Read... [21:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:43]Read from MH i2c: E2 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 [21:49:43]MH_I2C_Read... [21:49:43]Read from MH i2c: E2 03 00 0D 15 00 90 00 96 [21:49:43]RAPDU: 90 00 [21:49:43]wFMCommunicate OK [21:49:43]wFMCommunicate request_size=7 [21:49:43]MH_SAM_APDU [21:49:43]CAPDU: 80 0D 02 02 02 7A F6 [21:49:43]Write to MH i2c: E2 0A 00 0E 15 80 0D 02 02 02 00 7A F6 00 00 11 [21:49:43]Write i2c OK [21:49:43]MH_I2C_Read... [21:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:44]Read from MH i2c: E2 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 03 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [21:49:44]RAPDU: 90 00 [21:49:44]wFMCommunicate OK [21:49:44]wFMCommunicate request_size=4 [21:49:44]MH_SAM_APDU [21:49:44]CAPDU: 80 0D 03 02 [21:49:44]Write to MH i2c: E2 08 00 0F 15 80 0D 03 02 00 00 00 00 9F [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:44]Read from MH i2c: E2 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 0B 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 0B 00 0F 15 00 06 05 97 33 38 62 C8 F3 90 00 CA [21:49:44]RAPDU: 06 05 97 33 38 62 C8 F3 90 00 [21:49:44]wFMCommunicate OK [21:49:44]SAM_PROTO_SignData done [21:49:44]FM_MakeSignedData done [21:49:44]CreateOFDProtocolMessage [21:49:44]wFMCommunicate request_size=4 [21:49:44]MH_SAM_APDU [21:49:44]CAPDU: 80 11 00 00 [21:49:44]Write to MH i2c: E2 08 00 10 15 80 11 00 00 00 00 00 00 9F [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:44]Read from MH i2c: E2 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 17 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: E2 17 00 10 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [21:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:44]wFMCommunicate OK [21:49:44]CreateOFDProtocolMessage done [21:49:44]OFDSenderStorePacket 166557 [21:49:44]StoreOFDPacket docnum=166557 [21:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 96 8D 04 01 4C 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F7 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8A 02 00 35 04 06 00 48 B6 67 01 7A F6 06 05 97 33 38 62 C8 F3 [21:49:44]CheckFolder [21:49:44]dirname=/storage/ofd_packets [21:49:44]CheckFolder done [21:49:44]ProducePacketName [21:49:44]name=ofd_packets/00166557 [21:49:44]NVStorageSaveData ofd_packets/00166557 [21:49:44]File name is /storage/ofd_packets/00166557 [21:49:44]Write 298 bytes [21:49:44]NVStorageSaveData done [21:49:44]OFDSenderStorePacket done [21:49:44]KKMCreateOFDPacket done [21:49:44]NVStorageSaveData kkm_last_timestamp [21:49:44]File name is /storage/kkm_last_timestamp [21:49:44]Write 4 bytes [21:49:44]NVStorageSaveData done [21:49:44]ExternCall_PrintAddStr [21:49:44]wPrintStart [21:49:44]Write to MH i2c: 01 00 00 11 15 26 [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 07 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 07 00 11 15 00 00 00 00 00 FF 0F 3B [21:49:44]RasterBufferAndPrint [21:49:44]line Счет N : (1)221138 [21:49:44]line ИНН: 02508201610067 [21:49:44]line Контрольно-Кассовый Чек [21:49:44]line ПРОДАЖА [21:49:44]line ТРК (МРК, ГНК) : 21 [21:49:44]line Товар: 2710194210 [21:49:44]line ДТ-К-5 [21:49:44]line 19.690 * 76.20 [21:49:44]line = 1500.38 [21:49:44]line НДС 12% НСП 1% [21:49:44]line > о реализуемом товаре [21:49:44]line ИТОГО: 1500.38 [21:49:44]line НСП 1% : 13.28 [21:49:44]line НДС 12% : 159.33 [21:49:44]line Наличными: 0.00 [21:49:44]line Безнал.: 1500.38 [21:49:44]line Место: АЗС № 161 "Партнер Нефть" [21:49:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:49:44]line СНО: Общий режим [21:49:44]line Чек 312 22.10.2024 21:49 [21:49:44]line Смена: 536 ФФД: 1.0 [21:49:44]line ЗНМ: 0300000104 [21:49:44]line РНМ: 0000000000091764 [21:49:44]line Версия ККМ: 001 [21:49:44]line Платежная система: Mbank [21:49:44]line ФМ: 0000000000871759 [21:49:44]line ФД: 166557 [21:49:44]line ФПД: 79948249398006 [21:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214943&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166557&fm=79948249398006&tin=02508201610067®Number=0000000000091764&sum=150038 [21:49:44]OFD Sender: Processing packet 166557 [packets to send 48, broken 47] [21:49:44]ProducePacketName [21:49:44]name=ofd_packets/00166557 [21:49:44]OFD Sender: To server: pG, [21:49:44]CommunicateWithHost lk.salyk.kg:30040 [21:49:44]ConnectInit lk.salyk.kg [21:49:44]written 0, free lines is 4095 [21:49:44]Connected sock=10 [21:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 96 8D 04 01 4C 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F7 1D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8A 02 00 35 04 06 00 48 B6 67 01 7A F6 06 05 97 33 38 62 C8 F3 [21:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 03 05 47 00 A9 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 8A 02 00 F4 03 04 00 61 C4 17 67 B6 04 01 00 00 FA D4 9D A6 93 FF 08 2F [21:49:44]CommunicateWithHost err = 0 [21:49:44]CheckOFDResponse [21:49:44]1017 (14) - 77093643461234 [21:49:44]1041 (16) - 0000000000871759 [21:49:44]1040 (4) - 166557 [21:49:44]1012 (4) - 22.10.2024 15:27 [21:49:44]1206 (1) - 0 [21:49:44]OFD Sender: Remove packet 166557 [21:49:44]ProducePacketName [21:49:44]name=ofd_packets/00166557 [21:49:44]NVStorageDeleteData [21:49:44]Write to MH i2c: 01 00 00 3A 15 4F [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 07 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 F0 0C 52 [21:49:44]RasterBufferAndPrint [21:49:44]line [21:49:44]line [21:49:44]line [21:49:44]line [21:49:44]line [21:49:44]written 0, free lines is 3319 [21:49:44]MH_Cut [21:49:44]Write to MH i2c: D1 01 00 41 15 01 28 [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: D1 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: D1 01 00 [21:49:44]MH_I2C_Read... [21:49:44]Read from MH i2c: D1 01 00 41 15 00 27 [21:49:44]Write to MH i2c: 01 00 00 42 15 57 [21:49:44]Write i2c OK [21:49:44]MH_I2C_Read... [21:49:45]OFD Sender: No OFD packet to send [21:49:45]*** Cut start [21:49:45]*** Partial cut [21:49:45]*** CUTSNS_PIN = 1 [21:49:45]*** CUTSNS_PIN = 0 [21:49:46]*** Brake cut motor [21:49:46]Read from MH i2c: 01 [21:49:46]MH_I2C_Read... [21:49:46]*** Stop cut motor [21:49:46]*** Cut end [21:49:46]Read from MH i2c: 01 07 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [21:49:46]process_action close_receipt done [21:49:46]requested_data is exist [21:49:46]produce_requested_data [21:49:46]requested_item fm.sn is exist - process it [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 11 00 00 [21:49:46]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 17 00 [21:49:46]MH_I2C_Read... [21:49:46]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 31 37 35 39 90 00 2A [21:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:49:46]wFMCommunicate OK [21:49:46]requested_item fd.num is exist - process it [21:49:46]SAM_PROTO_GetFieldsCounters [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 13 00 00 [21:49:46]Write to MH i2c: E2 08 00 44 15 80 13 00 00 00 00 00 00 D5 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 62 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 62 00 44 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:49:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_GetFieldsCounters done [21:49:46]requested_item shift.num is exist - process it [21:49:46]requested_item shift.opened is exist - process it [21:49:46]req_shift_opened [21:49:46]FM_GetShiftState [21:49:46]SAM_PROTO_GetShiftState [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 13 01 00 [21:49:46]Write to MH i2c: E2 08 00 45 15 80 13 01 00 00 00 00 00 D7 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 45 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2A [21:49:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_GetShiftState done [21:49:46]FM_GetShiftState done [21:49:46]req_shift_opened done [21:49:46]requested_item shift.open_date is exist - process it [21:49:46]req_shift_open_date [21:49:46]req_shift_open_date done [21:49:46]produce_requested_data done [21:49:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166557,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:49:46]process_action_free close_receipt [21:49:46]json_value_free [21:49:46]json_value_free done [21:49:46]process_json_proto returns [21:49:46]Send response to host [21:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166557,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:49:46]free response buf [21:49:46]execute_script done [21:49:46]execute_script returns [21:49:46]free content buf [21:49:46]Sock 7.Close socket [21:49:46]Sock 7.Thread stoped [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:06]accept exits with 9 [21:53:06]New connection [21:53:06]New thread 3067489636 created [21:53:06]Thread 3067632996 joined [21:53:06]Waiting for new connection... [21:53:06] Sock 9.Parse request [21:53:06]Sock 9.Check first char [21:53:06]Sock 9.First char is OK [21:53:06]request: POST /json_proto HTTP/1.0 [21:53:06]Method: POST [21:53:06]URL: /json_proto [21:53:06]Method is POST - this is cgi request [21:53:06]url: /json_proto [21:53:06]query_string will be loaded in cgi processing [21:53:06]execute_cgi json_proto POST (null) [21:53:06]execute_cgi path=json_proto method=POST [21:53:06]POST find Content-Length [21:53:06]Host: 172.17.53.195:8080 [21:53:06]Content-Length: 766 [21:53:06]Content-Type: application/json [21:53:06] [21:53:06]POST finish read [21:53:06]Found Content-Length = 766 [21:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:06]execute_script... [21:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:06]POST & json_proto [21:53:06]process_json_proto [21:53:06]json parsed OK: [21:53:06]protocol is kg_v1.0 [21:53:06]action value=close_receipt [21:53:06]process_action close_receipt [21:53:06]cmd_close_receipt [21:53:06]MH_GetDate [21:53:06]Write to MH i2c: F0 00 00 46 15 4A [21:53:06]Write i2c OK [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: F0 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: F0 09 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: F0 09 00 46 15 00 C3 1E 18 67 21 48 4A 65 CB [21:53:06]GetLastDocTimeStamp 1729633783 [21:53:06]current date 1729633987 [21:53:06]FM_GetShiftState [21:53:06]SAM_PROTO_GetShiftState [21:53:06]wFMCommunicate request_size=4 [21:53:06]MH_SAM_APDU [21:53:06]CAPDU: 80 13 01 00 [21:53:06]Write to MH i2c: E2 08 00 47 15 80 13 01 00 00 00 00 00 D9 [21:53:06]Write i2c OK [21:53:06]MH_I2C_Read... [21:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:06]Read from MH i2c: E2 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 0E 00 [21:53:06]MH_I2C_Read... [21:53:06]Read from MH i2c: E2 0E 00 47 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2C [21:53:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:53:06]wFMCommunicate OK [21:53:06]SAM_PROTO_GetShiftState done [21:53:06]FM_GetShiftState done [21:53:06]opened in 1729557463 [21:53:06]opened+sec_in_day 1729643863 [21:53:06]quantity*price = 200025 [21:53:06]sum+1 = 200026 [21:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 313 22.10.2024 21:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166558 ФПД: 152517867708670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166558&fm=152517867708670&tin=02508201610067®Number=0000000000091764&sum=200025 [21:53:07]StoreToDocumentArchive [21:53:07]shift 536 fd 166558 [21:53:07]save to /storage/0536/doc_00166558 [21:53:07]save last doc name /storage/0536/doc_00166558 to /storage/kkm_last_doc_name [21:53:07]save OK [21:53:07]Clear old archive folders... [21:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:53:07]tlvbuf is 012557A0 [21:53:07]SAM_PROTO_ClearQueue [21:53:07]wFMCommunicate request_size=4 [21:53:07]MH_SAM_APDU [21:53:07]CAPDU: 80 09 00 00 [21:53:07]Write to MH i2c: E2 08 00 54 15 80 09 00 00 00 00 00 00 DB [21:53:07]Write i2c OK [21:53:07]MH_I2C_Read... [21:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:07]Read from MH i2c: E2 [21:53:07]MH_I2C_Read... [21:53:07]Read from MH i2c: E2 03 00 [21:53:07]MH_I2C_Read... [21:53:07]Read from MH i2c: E2 03 00 54 15 00 90 00 DD [21:53:07]RAPDU: 90 00 [21:53:07]wFMCommunicate OK [21:53:07]SAM_PROTO_ClearQueue done [21:53:07]KKMCreateOFDPacket [21:53:07]OFDProtocolAddRootSTLVToBuf [21:53:07]FM_MakeSignedData [21:53:07]FM_MakeSignedData [21:53:07]SAM_PROTO_SignData [21:53:07]wFMCommunicate request_size=4 [21:53:07]MH_SAM_APDU [21:53:07]CAPDU: 80 0D 01 02 [21:53:07]Write to MH i2c: E2 08 00 55 15 80 0D 01 02 00 00 00 00 E3 [21:53:07]Write i2c OK [21:53:07]MH_I2C_Read... [21:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:07]Read from MH i2c: E2 [21:53:07]MH_I2C_Read... [21:53:07]Read from MH i2c: E2 03 00 [21:53:07]MH_I2C_Read... [21:53:07]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [21:53:07]RAPDU: 90 00 [21:53:07]wFMCommunicate OK [21:53:07]wFMCommunicate request_size=255 [21:53:07]MH_SAM_APDU [21:53:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 C3 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8A 02 00 35 04 06 00 8A B6 D5 53 [21:53:07]Write to MH i2c: E2 02 01 56 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 C3 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8A 02 00 35 04 06 00 8A B6 D5 53 00 00 D5 [21:53:07]Write i2c OK [21:53:07]MH_I2C_Read... [21:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:08]Read from MH i2c: E2 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 03 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [21:53:08]RAPDU: 90 00 [21:53:08]wFMCommunicate OK [21:53:08]wFMCommunicate request_size=7 [21:53:08]MH_SAM_APDU [21:53:08]CAPDU: 80 0D 02 02 02 A0 FE [21:53:08]Write to MH i2c: E2 0A 00 57 15 80 0D 02 02 02 00 A0 FE 00 00 88 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:08]Read from MH i2c: E2 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 03 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [21:53:08]RAPDU: 90 00 [21:53:08]wFMCommunicate OK [21:53:08]wFMCommunicate request_size=4 [21:53:08]MH_SAM_APDU [21:53:08]CAPDU: 80 0D 03 02 [21:53:08]Write to MH i2c: E2 08 00 58 15 80 0D 03 02 00 00 00 00 E8 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:08]Read from MH i2c: E2 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 0B 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 0B 00 58 15 00 40 11 C8 CA 04 7C B4 12 90 00 12 [21:53:08]RAPDU: 40 11 C8 CA 04 7C B4 12 90 00 [21:53:08]wFMCommunicate OK [21:53:08]SAM_PROTO_SignData done [21:53:08]FM_MakeSignedData done [21:53:08]CreateOFDProtocolMessage [21:53:08]wFMCommunicate request_size=4 [21:53:08]MH_SAM_APDU [21:53:08]CAPDU: 80 11 00 00 [21:53:08]Write to MH i2c: E2 08 00 59 15 80 11 00 00 00 00 00 00 E8 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:08]Read from MH i2c: E2 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 17 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: E2 17 00 59 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [21:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:08]wFMCommunicate OK [21:53:08]CreateOFDProtocolMessage done [21:53:08]OFDSenderStorePacket 166558 [21:53:08]StoreOFDPacket docnum=166558 [21:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 25 04 01 B3 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 C3 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8A 02 00 35 04 06 00 8A B6 D5 53 A0 FE 40 11 C8 CA 04 7C B4 12 [21:53:08]CheckFolder [21:53:08]dirname=/storage/ofd_packets [21:53:08]CheckFolder done [21:53:08]ProducePacketName [21:53:08]name=ofd_packets/00166558 [21:53:08]NVStorageSaveData ofd_packets/00166558 [21:53:08]File name is /storage/ofd_packets/00166558 [21:53:08]Write 298 bytes [21:53:08]NVStorageSaveData done [21:53:08]OFDSenderStorePacket done [21:53:08]KKMCreateOFDPacket done [21:53:08]NVStorageSaveData kkm_last_timestamp [21:53:08]File name is /storage/kkm_last_timestamp [21:53:08]Write 4 bytes [21:53:08]NVStorageSaveData done [21:53:08]ExternCall_PrintAddStr [21:53:08]wPrintStart [21:53:08]Write to MH i2c: 01 00 00 5A 15 6F [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 07 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 FF 0F 84 [21:53:08]RasterBufferAndPrint [21:53:08]line Счет N : (1)221139 [21:53:08]line ИНН: 02508201610067 [21:53:08]line Контрольно-Кассовый Чек [21:53:08]line ПРОДАЖА [21:53:08]line ТРК (МРК, ГНК) : 11 [21:53:08]line Товар: 2710194210 [21:53:08]line ДТ-К-5 [21:53:08]line 26.250 * 76.20 [21:53:08]line = 2000.25 [21:53:08]line НДС 12% НСП 1% [21:53:08]line > о реализуемом товаре [21:53:08]line ИТОГО: 2000.25 [21:53:08]line НСП 1% : 17.70 [21:53:08]line НДС 12% : 212.42 [21:53:08]line Наличными: 0.00 [21:53:08]line Безнал.: 2000.25 [21:53:08]line Место: АЗС № 161 "Партнер Нефть" [21:53:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:53:08]line СНО: Общий режим [21:53:08]line Чек 313 22.10.2024 21:53 [21:53:08]line Смена: 536 ФФД: 1.0 [21:53:08]line ЗНМ: 0300000104 [21:53:08]line РНМ: 0000000000091764 [21:53:08]line Версия ККМ: 001 [21:53:08]line Платежная система: Mbank [21:53:08]line ФМ: 0000000000871759 [21:53:08]line ФД: 166558 [21:53:08]line ФПД: 152517867708670 [21:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215307&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166558&fm=152517867708670&tin=02508201610067®Number=0000000000091764&sum=200025 [21:53:08]OFD Sender: Processing packet 166558 [packets to send 48, broken 47] [21:53:08]ProducePacketName [21:53:08]name=ofd_packets/00166558 [21:53:08]OFD Sender: To server: pG, [21:53:08]CommunicateWithHost lk.salyk.kg:30040 [21:53:08]ConnectInit lk.salyk.kg [21:53:08]written 0, free lines is 4095 [21:53:08]Connected sock=11 [21:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 25 04 01 B3 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 C3 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8A 02 00 35 04 06 00 8A B6 D5 53 A0 FE 40 11 C8 CA 04 7C B4 12 [21:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 7B 47 00 2B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 8A 02 00 F4 03 04 00 2D C5 17 67 B6 04 01 00 00 0C E3 31 46 A6 69 A3 DF [21:53:08]CommunicateWithHost err = 0 [21:53:08]CheckOFDResponse [21:53:08]1017 (14) - 77093643461234 [21:53:08]1041 (16) - 0000000000871759 [21:53:08]1040 (4) - 166558 [21:53:08]1012 (4) - 22.10.2024 15:30 [21:53:08]1206 (1) - 0 [21:53:08]OFD Sender: Remove packet 166558 [21:53:08]ProducePacketName [21:53:08]name=ofd_packets/00166558 [21:53:08]NVStorageDeleteData [21:53:08]Write to MH i2c: 01 00 00 83 15 98 [21:53:08]Write i2c OK [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 07 00 [21:53:08]MH_I2C_Read... [21:53:08]Read from MH i2c: 01 07 00 83 15 00 00 00 00 00 E6 0C 91 [21:53:08]RasterBufferAndPrint [21:53:08]line [21:53:08]line [21:53:08]line [21:53:08]line [21:53:08]line [21:53:08]written 0, free lines is 3310 [21:53:09]MH_Cut [21:53:09]Write to MH i2c: D1 01 00 8A 15 01 71 [21:53:09]Write i2c OK [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: D1 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: D1 01 00 [21:53:09]MH_I2C_Read... [21:53:09]Read from MH i2c: D1 01 00 8A 15 00 70 [21:53:09]Write to MH i2c: 01 00 00 8B 15 A0 [21:53:09]Write i2c OK [21:53:09]MH_I2C_Read... [21:53:09]OFD Sender: No OFD packet to send [21:53:09]*** Cut start [21:53:09]*** Partial cut [21:53:09]*** CUTSNS_PIN = 1 [21:53:09]*** CUTSNS_PIN = 0 [21:53:10]*** Brake cut motor [21:53:10]Read from MH i2c: 01 [21:53:10]MH_I2C_Read... [21:53:10]*** Stop cut motor [21:53:10]*** Cut end [21:53:10]Read from MH i2c: 01 07 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 FF 0F B5 [21:53:10]process_action close_receipt done [21:53:10]requested_data is exist [21:53:10]produce_requested_data [21:53:10]requested_item fm.sn is exist - process it [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 11 00 00 [21:53:10]Write to MH i2c: E2 08 00 8C 15 80 11 00 00 00 00 00 00 1B [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 17 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 17 00 8C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [21:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:10]wFMCommunicate OK [21:53:10]requested_item fd.num is exist - process it [21:53:10]SAM_PROTO_GetFieldsCounters [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 13 00 00 [21:53:10]Write to MH i2c: E2 08 00 8D 15 80 13 00 00 00 00 00 00 1E [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 62 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 62 00 8D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [21:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:10]wFMCommunicate OK [21:53:10]SAM_PROTO_GetFieldsCounters done [21:53:10]requested_item shift.num is exist - process it [21:53:10]requested_item shift.opened is exist - process it [21:53:10]req_shift_opened [21:53:10]FM_GetShiftState [21:53:10]SAM_PROTO_GetShiftState [21:53:10]wFMCommunicate request_size=4 [21:53:10]MH_SAM_APDU [21:53:10]CAPDU: 80 13 01 00 [21:53:10]Write to MH i2c: E2 08 00 8E 15 80 13 01 00 00 00 00 00 20 [21:53:10]Write i2c OK [21:53:10]MH_I2C_Read... [21:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:10]Read from MH i2c: E2 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0E 00 [21:53:10]MH_I2C_Read... [21:53:10]Read from MH i2c: E2 0E 00 8E 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 73 [21:53:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:53:10]wFMCommunicate OK [21:53:10]SAM_PROTO_GetShiftState done [21:53:10]FM_GetShiftState done [21:53:10]req_shift_opened done [21:53:10]requested_item shift.open_date is exist - process it [21:53:10]req_shift_open_date [21:53:10]req_shift_open_date done [21:53:10]produce_requested_data done [21:53:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166558,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:53:10]process_action_free close_receipt [21:53:10]json_value_free [21:53:10]json_value_free done [21:53:10]process_json_proto returns [21:53:10]Send response to host [21:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166558,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:53:10]free response buf [21:53:10]execute_script done [21:53:10]execute_script returns [21:53:10]free content buf [21:53:10]Sock 9.Close socket [21:53:10]Sock 9.Thread stoped [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]accept exits with 7 [21:53:44]New connection [21:53:44]New thread 3067632996 created [21:53:44]Thread 3067489636 joined [21:53:44]Waiting for new connection... [21:53:44] Sock 7.Parse request [21:53:44]Sock 7.Check first char [21:53:44]Sock 7.First char is OK [21:53:44]request: POST /json_proto HTTP/1.0 [21:53:44]Method: POST [21:53:44]URL: /json_proto [21:53:44]Method is POST - this is cgi request [21:53:44]url: /json_proto [21:53:44]query_string will be loaded in cgi processing [21:53:44]execute_cgi json_proto POST (null) [21:53:44]execute_cgi path=json_proto method=POST [21:53:44]POST find Content-Length [21:53:44]Host: 172.17.53.195:8080 [21:53:44]Content-Length: 677 [21:53:44]Content-Type: application/json [21:53:44] [21:53:44]POST finish read [21:53:44]Found Content-Length = 677 [21:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:44]execute_script... [21:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:44]POST & json_proto [21:53:44]process_json_proto [21:53:44]json parsed OK: [21:53:44]protocol is kg_v1.0 [21:53:44]action value=close_receipt [21:53:44]process_action close_receipt [21:53:44]cmd_close_receipt [21:53:44]MH_GetDate [21:53:44]Write to MH i2c: F0 00 00 8F 15 93 [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: F0 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: F0 09 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: F0 09 00 8F 15 00 E9 1E 18 67 21 48 4A 65 3A [21:53:44]GetLastDocTimeStamp 1729633987 [21:53:44]current date 1729634025 [21:53:44]FM_GetShiftState [21:53:44]SAM_PROTO_GetShiftState [21:53:44]wFMCommunicate request_size=4 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 13 01 00 [21:53:44]Write to MH i2c: E2 08 00 90 15 80 13 01 00 00 00 00 00 22 [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 0E 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 0E 00 90 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 75 [21:53:44]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:53:44]wFMCommunicate OK [21:53:44]SAM_PROTO_GetShiftState done [21:53:44]FM_GetShiftState done [21:53:44]opened in 1729557463 [21:53:44]opened+sec_in_day 1729643863 [21:53:44]quantity*price = 30038 [21:53:44]sum+1 = 30039 [21:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 314 22.10.2024 21:53 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166559 ФПД: 261846318190200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215345&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166559&fm=261846318190200&tin=02508201610067®Number=0000000000091764&sum=30000 [21:53:45]StoreToDocumentArchive [21:53:45]shift 536 fd 166559 [21:53:45]save to /storage/0536/doc_00166559 [21:53:45]save last doc name /storage/0536/doc_00166559 to /storage/kkm_last_doc_name [21:53:45]save OK [21:53:45]Clear old archive folders... [21:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:45]tlvbuf is B6F67BA0 [21:53:45]SAM_PROTO_ClearQueue [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 09 00 00 [21:53:45]Write to MH i2c: E2 08 00 9D 15 80 09 00 00 00 00 00 00 24 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 9D 15 00 90 00 26 [21:53:45]RAPDU: 90 00 [21:53:45]wFMCommunicate OK [21:53:45]SAM_PROTO_ClearQueue done [21:53:45]KKMCreateOFDPacket [21:53:45]OFDProtocolAddRootSTLVToBuf [21:53:45]FM_MakeSignedData [21:53:45]FM_MakeSignedData [21:53:45]SAM_PROTO_SignData [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 0D 01 02 [21:53:45]Write to MH i2c: E2 08 00 9E 15 80 0D 01 02 00 00 00 00 2C [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 9E 15 00 90 00 27 [21:53:45]RAPDU: 90 00 [21:53:45]wFMCommunicate OK [21:53:45]wFMCommunicate request_size=255 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 E9 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8A 02 00 35 04 06 00 EE [21:53:45]Write to MH i2c: E2 02 01 9F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 E9 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8A 02 00 35 04 06 00 EE 00 00 AA [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 9F 15 00 90 00 28 [21:53:45]RAPDU: 90 00 [21:53:45]wFMCommunicate OK [21:53:45]wFMCommunicate request_size=10 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 0D 02 02 05 25 D8 C8 0E 78 [21:53:45]Write to MH i2c: E2 0D 00 A0 15 80 0D 02 02 05 00 25 D8 C8 0E 78 00 00 84 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [21:53:45]RAPDU: 90 00 [21:53:45]wFMCommunicate OK [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 0D 03 02 [21:53:45]Write to MH i2c: E2 08 00 A1 15 80 0D 03 02 00 00 00 00 31 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0B 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0B 00 A1 15 00 DE 55 CF 37 4A 36 F8 C0 90 00 A3 [21:53:45]RAPDU: DE 55 CF 37 4A 36 F8 C0 90 00 [21:53:45]wFMCommunicate OK [21:53:45]SAM_PROTO_SignData done [21:53:45]FM_MakeSignedData done [21:53:45]CreateOFDProtocolMessage [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 11 00 00 [21:53:45]Write to MH i2c: E2 08 00 A2 15 80 11 00 00 00 00 00 00 31 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:46]Read from MH i2c: E2 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: E2 17 00 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: E2 17 00 A2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [21:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:46]wFMCommunicate OK [21:53:46]CreateOFDProtocolMessage done [21:53:46]OFDSenderStorePacket 166559 [21:53:46]StoreOFDPacket docnum=166559 [21:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 0B 07 01 5F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 E9 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8A 02 00 35 04 06 00 EE 25 D8 C8 0E 78 DE 55 CF 37 4A 36 F8 C0 [21:53:46]CheckFolder [21:53:46]dirname=/storage/ofd_packets [21:53:46]CheckFolder done [21:53:46]ProducePacketName [21:53:46]name=ofd_packets/00166559 [21:53:46]NVStorageSaveData ofd_packets/00166559 [21:53:46]File name is /storage/ofd_packets/00166559 [21:53:46]Write 301 bytes [21:53:46]NVStorageSaveData done [21:53:46]OFDSenderStorePacket done [21:53:46]KKMCreateOFDPacket done [21:53:46]NVStorageSaveData kkm_last_timestamp [21:53:46]File name is /storage/kkm_last_timestamp [21:53:46]Write 4 bytes [21:53:46]NVStorageSaveData done [21:53:46]ExternCall_PrintAddStr [21:53:46]wPrintStart [21:53:46]Write to MH i2c: 01 00 00 A3 15 B8 [21:53:46]Write i2c OK [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 07 00 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 FF 0F CD [21:53:46]RasterBufferAndPrint [21:53:46]line Счет N : (1)221140 [21:53:46]line ИНН: 02508201610067 [21:53:46]line Контрольно-Кассовый Чек [21:53:46]line ПРОДАЖА [21:53:46]line ТРК (МРК, ГНК) : 23 [21:53:46]line Товар: 2710124130 [21:53:46]line Аи-92-К-5 [21:53:46]line 4.490 * 66.90 [21:53:46]line = 300.38 [21:53:46]line НДС 12% НСП 1% [21:53:46]line > о реализуемом товаре [21:53:46]line ОКРУГЛЕНИЕ: -0.38 [21:53:46]line ИТОГО: 300.00 [21:53:46]line Внесено: 300.00 [21:53:46]line СДАЧА: 0.00 [21:53:46]line НСП 1% : 2.66 [21:53:46]line НДС 12% : 31.90 [21:53:46]line Наличными: 300.00 [21:53:46]line Безнал.: 0.00 [21:53:46]line Место: АЗС № 161 "Партнер Нефть" [21:53:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:53:46]line СНО: Общий режим [21:53:46]line Чек 314 22.10.2024 21:53 [21:53:46]line Смена: 536 ФФД: 1.0 [21:53:46]line ЗНМ: 0300000104 [21:53:46]line РНМ: 0000000000091764 [21:53:46]line Версия ККМ: 001 [21:53:46]line ФМ: 0000000000871759 [21:53:46]line ФД: 166559 [21:53:46]line ФПД: 261846318190200 [21:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215345&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166559&fm=261846318190200&tin=02508201610067®Number=0000000000091764&sum=30000 [21:53:46]OFD Sender: Processing packet 166559 [packets to send 48, broken 47] [21:53:46]ProducePacketName [21:53:46]name=ofd_packets/00166559 [21:53:46]OFD Sender: To server: pG, [21:53:46]CommunicateWithHost lk.salyk.kg:30040 [21:53:46]ConnectInit lk.salyk.kg [21:53:46]written 0, free lines is 4095 [21:53:46]Connected sock=10 [21:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 0B 07 01 5F 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 E9 1E 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8A 02 00 35 04 06 00 EE 25 D8 C8 0E 78 DE 55 CF 37 4A 36 F8 C0 [21:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F F9 47 00 9A 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 8A 02 00 F4 03 04 00 53 C5 17 67 B6 04 01 00 00 0A E1 F9 62 51 65 DA 62 [21:53:46]CommunicateWithHost err = 0 [21:53:46]CheckOFDResponse [21:53:46]1017 (14) - 77093643461234 [21:53:46]1041 (16) - 0000000000871759 [21:53:46]1040 (4) - 166559 [21:53:46]1012 (4) - 22.10.2024 15:31 [21:53:46]1206 (1) - 0 [21:53:46]OFD Sender: Remove packet 166559 [21:53:46]ProducePacketName [21:53:46]name=ofd_packets/00166559 [21:53:46]NVStorageDeleteData [21:53:46]Write to MH i2c: 01 00 00 CE 15 E3 [21:53:46]Write i2c OK [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 07 00 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 07 00 CE 15 00 00 00 00 00 CF 0C C5 [21:53:46]RasterBufferAndPrint [21:53:46]line [21:53:46]line [21:53:46]line [21:53:46]line [21:53:46]line [21:53:46]written 0, free lines is 3285 [21:53:46]MH_Cut [21:53:46]Write to MH i2c: D1 01 00 D5 15 01 BC [21:53:46]Write i2c OK [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: D1 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: D1 01 00 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: D1 01 00 D5 15 00 BB [21:53:46]Write to MH i2c: 01 00 00 D6 15 EB [21:53:46]Write i2c OK [21:53:46]MH_I2C_Read... [21:53:47]OFD Sender: No OFD packet to send [21:53:47]*** Cut start [21:53:47]*** Partial cut [21:53:47]*** CUTSNS_PIN = 1 [21:53:47]*** CUTSNS_PIN = 0 [21:53:47]*** Brake cut motor [21:53:48]Read from MH i2c: 01 [21:53:48]MH_I2C_Read... [21:53:48]*** Stop cut motor [21:53:48]*** Cut end [21:53:48]Read from MH i2c: 01 07 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: 01 07 00 D6 15 00 00 00 00 00 FF 0F 00 [21:53:48]process_action close_receipt done [21:53:48]requested_data is exist [21:53:48]produce_requested_data [21:53:48]requested_item fm.sn is exist - process it [21:53:48]wFMCommunicate request_size=4 [21:53:48]MH_SAM_APDU [21:53:48]CAPDU: 80 11 00 00 [21:53:48]Write to MH i2c: E2 08 00 D7 15 80 11 00 00 00 00 00 00 66 [21:53:48]Write i2c OK [21:53:48]MH_I2C_Read... [21:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:48]Read from MH i2c: E2 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 17 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 17 00 D7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [21:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:53:48]wFMCommunicate OK [21:53:48]requested_item fd.num is exist - process it [21:53:48]SAM_PROTO_GetFieldsCounters [21:53:48]wFMCommunicate request_size=4 [21:53:48]MH_SAM_APDU [21:53:48]CAPDU: 80 13 00 00 [21:53:48]Write to MH i2c: E2 08 00 D8 15 80 13 00 00 00 00 00 00 69 [21:53:48]Write i2c OK [21:53:48]MH_I2C_Read... [21:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:48]Read from MH i2c: E2 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 62 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 62 00 D8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [21:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:48]wFMCommunicate OK [21:53:48]SAM_PROTO_GetFieldsCounters done [21:53:48]requested_item shift.num is exist - process it [21:53:48]requested_item shift.opened is exist - process it [21:53:48]req_shift_opened [21:53:48]FM_GetShiftState [21:53:48]SAM_PROTO_GetShiftState [21:53:48]wFMCommunicate request_size=4 [21:53:48]MH_SAM_APDU [21:53:48]CAPDU: 80 13 01 00 [21:53:48]Write to MH i2c: E2 08 00 D9 15 80 13 01 00 00 00 00 00 6B [21:53:48]Write i2c OK [21:53:48]MH_I2C_Read... [21:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:48]Read from MH i2c: E2 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 0E 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 0E 00 D9 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BE [21:53:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:53:48]wFMCommunicate OK [21:53:48]SAM_PROTO_GetShiftState done [21:53:48]FM_GetShiftState done [21:53:48]req_shift_opened done [21:53:48]requested_item shift.open_date is exist - process it [21:53:48]req_shift_open_date [21:53:48]req_shift_open_date done [21:53:48]produce_requested_data done [21:53:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166559,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:53:48]process_action_free close_receipt [21:53:48]json_value_free [21:53:48]json_value_free done [21:53:48]process_json_proto returns [21:53:48]Send response to host [21:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166559,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:53:48]free response buf [21:53:48]execute_script done [21:53:48]execute_script returns [21:53:48]free content buf [21:53:48]Sock 7.Close socket [21:53:48]Sock 7.Thread stoped [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:55]accept exits with 9 [21:57:55]New connection [21:57:55]New thread 3067489636 created [21:57:55]Thread 3067632996 joined [21:57:55]Waiting for new connection... [21:57:55] Sock 9.Parse request [21:57:55]Sock 9.Check first char [21:57:55]Sock 9.First char is OK [21:57:55]request: POST /json_proto HTTP/1.0 [21:57:55]Method: POST [21:57:55]URL: /json_proto [21:57:55]Method is POST - this is cgi request [21:57:55]url: /json_proto [21:57:55]query_string will be loaded in cgi processing [21:57:55]execute_cgi json_proto POST (null) [21:57:55]execute_cgi path=json_proto method=POST [21:57:55]POST find Content-Length [21:57:55]Host: 172.17.53.195:8080 [21:57:55]Content-Length: 769 [21:57:55]Content-Type: application/json [21:57:55] [21:57:55]POST finish read [21:57:55]Found Content-Length = 769 [21:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:55]execute_script... [21:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:55]POST & json_proto [21:57:55]process_json_proto [21:57:55]json parsed OK: [21:57:55]protocol is kg_v1.0 [21:57:55]action value=close_receipt [21:57:55]process_action close_receipt [21:57:55]cmd_close_receipt [21:57:55]MH_GetDate [21:57:55]Write to MH i2c: F0 00 00 DA 15 DE [21:57:55]Write i2c OK [21:57:55]MH_I2C_Read... [21:57:55]Read from MH i2c: F0 [21:57:55]MH_I2C_Read... [21:57:55]Read from MH i2c: F0 09 00 [21:57:55]MH_I2C_Read... [21:57:55]Read from MH i2c: F0 09 00 DA 15 00 E4 1F 18 67 21 48 4A 65 81 [21:57:55]GetLastDocTimeStamp 1729634025 [21:57:55]current date 1729634276 [21:57:55]FM_GetShiftState [21:57:55]SAM_PROTO_GetShiftState [21:57:55]wFMCommunicate request_size=4 [21:57:55]MH_SAM_APDU [21:57:55]CAPDU: 80 13 01 00 [21:57:55]Write to MH i2c: E2 08 00 DB 15 80 13 01 00 00 00 00 00 6D [21:57:55]Write i2c OK [21:57:55]MH_I2C_Read... [21:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:55]Read from MH i2c: E2 [21:57:55]MH_I2C_Read... [21:57:55]Read from MH i2c: E2 0E 00 [21:57:55]MH_I2C_Read... [21:57:55]Read from MH i2c: E2 0E 00 DB 15 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C0 [21:57:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:57:55]wFMCommunicate OK [21:57:55]SAM_PROTO_GetShiftState done [21:57:55]FM_GetShiftState done [21:57:55]opened in 1729557463 [21:57:55]opened+sec_in_day 1729643863 [21:57:55]quantity*price = 100015 [21:57:55]sum+1 = 100017 [21:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 315 22.10.2024 21:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166560 ФПД: 270697259050701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166560&fm=270697259050701&tin=02508201610067®Number=0000000000091764&sum=100016 [21:57:56]StoreToDocumentArchive [21:57:56]shift 536 fd 166560 [21:57:56]save to /storage/0536/doc_00166560 [21:57:56]save last doc name /storage/0536/doc_00166560 to /storage/kkm_last_doc_name [21:57:56]save OK [21:57:56]Clear old archive folders... [21:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:56]tlvbuf is 011EE2E0 [21:57:56]SAM_PROTO_ClearQueue [21:57:56]wFMCommunicate request_size=4 [21:57:56]MH_SAM_APDU [21:57:56]CAPDU: 80 09 00 00 [21:57:56]Write to MH i2c: E2 08 00 E8 15 80 09 00 00 00 00 00 00 6F [21:57:56]Write i2c OK [21:57:56]MH_I2C_Read... [21:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:56]Read from MH i2c: E2 [21:57:56]MH_I2C_Read... [21:57:56]Read from MH i2c: E2 03 00 [21:57:56]MH_I2C_Read... [21:57:56]Read from MH i2c: E2 03 00 E8 15 00 90 00 71 [21:57:56]RAPDU: 90 00 [21:57:56]wFMCommunicate OK [21:57:56]SAM_PROTO_ClearQueue done [21:57:56]KKMCreateOFDPacket [21:57:56]OFDProtocolAddRootSTLVToBuf [21:57:56]FM_MakeSignedData [21:57:56]FM_MakeSignedData [21:57:56]SAM_PROTO_SignData [21:57:56]wFMCommunicate request_size=4 [21:57:56]MH_SAM_APDU [21:57:56]CAPDU: 80 0D 01 02 [21:57:56]Write to MH i2c: E2 08 00 E9 15 80 0D 01 02 00 00 00 00 77 [21:57:56]Write i2c OK [21:57:56]MH_I2C_Read... [21:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:56]Read from MH i2c: E2 [21:57:56]MH_I2C_Read... [21:57:56]Read from MH i2c: E2 03 00 [21:57:56]MH_I2C_Read... [21:57:56]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [21:57:56]RAPDU: 90 00 [21:57:56]wFMCommunicate OK [21:57:56]wFMCommunicate request_size=255 [21:57:56]MH_SAM_APDU [21:57:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 E4 1F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8A 02 00 35 04 06 00 F6 [21:57:56]Write to MH i2c: E2 02 01 EA 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 E4 1F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8A 02 00 35 04 06 00 F6 00 00 21 [21:57:56]Write i2c OK [21:57:56]MH_I2C_Read... [21:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:57]Read from MH i2c: E2 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 03 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [21:57:57]RAPDU: 90 00 [21:57:57]wFMCommunicate OK [21:57:57]wFMCommunicate request_size=10 [21:57:57]MH_SAM_APDU [21:57:57]CAPDU: 80 0D 02 02 05 32 9D F7 A6 CD [21:57:57]Write to MH i2c: E2 0D 00 EB 15 80 0D 02 02 05 00 32 9D F7 A6 CD 00 00 BD [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:57]Read from MH i2c: E2 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 03 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [21:57:57]RAPDU: 90 00 [21:57:57]wFMCommunicate OK [21:57:57]wFMCommunicate request_size=4 [21:57:57]MH_SAM_APDU [21:57:57]CAPDU: 80 0D 03 02 [21:57:57]Write to MH i2c: E2 08 00 EC 15 80 0D 03 02 00 00 00 00 7C [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:57]Read from MH i2c: E2 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 0B 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 0B 00 EC 15 00 13 D2 6D 05 95 95 32 78 90 00 A8 [21:57:57]RAPDU: 13 D2 6D 05 95 95 32 78 90 00 [21:57:57]wFMCommunicate OK [21:57:57]SAM_PROTO_SignData done [21:57:57]FM_MakeSignedData done [21:57:57]CreateOFDProtocolMessage [21:57:57]wFMCommunicate request_size=4 [21:57:57]MH_SAM_APDU [21:57:57]CAPDU: 80 11 00 00 [21:57:57]Write to MH i2c: E2 08 00 ED 15 80 11 00 00 00 00 00 00 7C [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:57]Read from MH i2c: E2 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 17 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 17 00 ED 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [21:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:57:57]wFMCommunicate OK [21:57:57]CreateOFDProtocolMessage done [21:57:57]OFDSenderStorePacket 166560 [21:57:57]StoreOFDPacket docnum=166560 [21:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 F5 07 01 85 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 E4 1F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8A 02 00 35 04 06 00 F6 32 9D F7 A6 CD 13 D2 6D 05 95 95 32 78 [21:57:57]CheckFolder [21:57:57]dirname=/storage/ofd_packets [21:57:57]CheckFolder done [21:57:57]ProducePacketName [21:57:57]name=ofd_packets/00166560 [21:57:57]NVStorageSaveData ofd_packets/00166560 [21:57:57]File name is /storage/ofd_packets/00166560 [21:57:57]Write 301 bytes [21:57:57]NVStorageSaveData done [21:57:57]OFDSenderStorePacket done [21:57:57]KKMCreateOFDPacket done [21:57:57]NVStorageSaveData kkm_last_timestamp [21:57:57]File name is /storage/kkm_last_timestamp [21:57:57]Write 4 bytes [21:57:57]NVStorageSaveData done [21:57:57]ExternCall_PrintAddStr [21:57:57]wPrintStart [21:57:57]Write to MH i2c: 01 00 00 EE 15 03 [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 07 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 07 00 EE 15 00 00 00 00 00 FF 0F 18 [21:57:57]RasterBufferAndPrint [21:57:57]line Счет N : (1)221141 [21:57:57]line ИНН: 02508201610067 [21:57:57]line Контрольно-Кассовый Чек [21:57:57]line ПРОДАЖА [21:57:57]line ТРК (МРК, ГНК) : 13 [21:57:57]line Товар: 2710124130 [21:57:57]line Аи-92-К-5 [21:57:57]line 14.950 * 66.90 [21:57:57]line = 1000.16 [21:57:57]line НДС 12% НСП 1% [21:57:57]line > о реализуемом товаре [21:57:57]line ИТОГО: 1000.16 [21:57:57]line НСП 1% : 8.85 [21:57:57]line НДС 12% : 106.21 [21:57:57]line Наличными: 0.00 [21:57:57]line Безнал.: 1000.16 [21:57:57]line Место: АЗС № 161 "Партнер Нефть" [21:57:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:57:57]line СНО: Общий режим [21:57:57]line Чек 315 22.10.2024 21:57 [21:57:57]line Смена: 536 ФФД: 1.0 [21:57:57]line ЗНМ: 0300000104 [21:57:57]line РНМ: 0000000000091764 [21:57:57]line Версия ККМ: 001 [21:57:57]line Платежная система: Mbank [21:57:57]line ФМ: 0000000000871759 [21:57:57]line ФД: 166560 [21:57:57]line ФПД: 270697259050701 [21:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215756&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166560&fm=270697259050701&tin=02508201610067®Number=0000000000091764&sum=100016 [21:57:57]written 0, free lines is 4095 [21:57:57]OFD Sender: Processing packet 166560 [packets to send 48, broken 47] [21:57:57]ProducePacketName [21:57:57]name=ofd_packets/00166560 [21:57:57]OFD Sender: To server: pG, [21:57:57]CommunicateWithHost lk.salyk.kg:30040 [21:57:57]ConnectInit lk.salyk.kg [21:57:57]Connected sock=7 [21:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 F5 07 01 85 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 E4 1F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8A 02 00 35 04 06 00 F6 32 9D F7 A6 CD 13 D2 6D 05 95 95 32 78 [21:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DE A9 47 00 87 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 8A 02 00 F4 03 04 00 4E C6 17 67 B6 04 01 00 00 5C 00 EC 35 D0 E0 F3 1B [21:57:57]CommunicateWithHost err = 0 [21:57:57]CheckOFDResponse [21:57:57]1017 (14) - 77093643461234 [21:57:57]1041 (16) - 0000000000871759 [21:57:57]1040 (4) - 166560 [21:57:57]1012 (4) - 22.10.2024 15:35 [21:57:57]1206 (1) - 0 [21:57:57]OFD Sender: Remove packet 166560 [21:57:57]ProducePacketName [21:57:57]name=ofd_packets/00166560 [21:57:57]NVStorageDeleteData [21:57:57]Write to MH i2c: 01 00 00 17 16 2D [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 07 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 DF 0C 1F [21:57:57]RasterBufferAndPrint [21:57:57]line [21:57:57]line [21:57:57]line [21:57:57]line [21:57:57]line [21:57:57]written 0, free lines is 3302 [21:57:57]MH_Cut [21:57:57]Write to MH i2c: D1 01 00 1E 16 01 06 [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: D1 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: D1 01 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: D1 01 00 1E 16 00 05 [21:57:57]Write to MH i2c: 01 00 00 1F 16 35 [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:58]OFD Sender: No OFD packet to send [21:57:58]*** Cut start [21:57:58]*** Partial cut [21:57:58]*** CUTSNS_PIN = 1 [21:57:58]*** CUTSNS_PIN = 0 [21:57:59]*** Brake cut motor [21:57:59]Read from MH i2c: 01 [21:57:59]MH_I2C_Read... [21:57:59]*** Stop cut motor [21:57:59]*** Cut end [21:57:59]Read from MH i2c: 01 07 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: 01 07 00 1F 16 00 00 00 00 00 FF 0F 4A [21:57:59]process_action close_receipt done [21:57:59]requested_data is exist [21:57:59]produce_requested_data [21:57:59]requested_item fm.sn is exist - process it [21:57:59]wFMCommunicate request_size=4 [21:57:59]MH_SAM_APDU [21:57:59]CAPDU: 80 11 00 00 [21:57:59]Write to MH i2c: E2 08 00 20 16 80 11 00 00 00 00 00 00 B0 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:59]Read from MH i2c: E2 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 17 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 17 00 20 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [21:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:57:59]wFMCommunicate OK [21:57:59]requested_item fd.num is exist - process it [21:57:59]SAM_PROTO_GetFieldsCounters [21:57:59]wFMCommunicate request_size=4 [21:57:59]MH_SAM_APDU [21:57:59]CAPDU: 80 13 00 00 [21:57:59]Write to MH i2c: E2 08 00 21 16 80 13 00 00 00 00 00 00 B3 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:59]Read from MH i2c: E2 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 62 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 62 00 21 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [21:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:59]wFMCommunicate OK [21:57:59]SAM_PROTO_GetFieldsCounters done [21:57:59]requested_item shift.num is exist - process it [21:57:59]requested_item shift.opened is exist - process it [21:57:59]req_shift_opened [21:57:59]FM_GetShiftState [21:57:59]SAM_PROTO_GetShiftState [21:57:59]wFMCommunicate request_size=4 [21:57:59]MH_SAM_APDU [21:57:59]CAPDU: 80 13 01 00 [21:57:59]Write to MH i2c: E2 08 00 22 16 80 13 01 00 00 00 00 00 B5 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:59]Read from MH i2c: E2 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 0E 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: E2 0E 00 22 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 08 [21:57:59]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [21:57:59]wFMCommunicate OK [21:57:59]SAM_PROTO_GetShiftState done [21:57:59]FM_GetShiftState done [21:57:59]req_shift_opened done [21:57:59]requested_item shift.open_date is exist - process it [21:57:59]req_shift_open_date [21:57:59]req_shift_open_date done [21:57:59]produce_requested_data done [21:57:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166560,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [21:57:59]process_action_free close_receipt [21:57:59]json_value_free [21:57:59]json_value_free done [21:57:59]process_json_proto returns [21:57:59]Send response to host [21:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166560,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [21:57:59]free response buf [21:57:59]execute_script done [21:57:59]execute_script returns [21:57:59]free content buf [21:57:59]Sock 9.Close socket [21:57:59]Sock 9.Thread stoped [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:06]accept exits with 10 [22:01:06]New connection [22:01:06]New thread 3067632996 created [22:01:06]Thread 3067489636 joined [22:01:06]Waiting for new connection... [22:01:06] Sock 10.Parse request [22:01:06]Sock 10.Check first char [22:01:06]Sock 10.First char is OK [22:01:06]request: POST /json_proto HTTP/1.0 [22:01:06]Method: POST [22:01:06]URL: /json_proto [22:01:06]Method is POST - this is cgi request [22:01:06]url: /json_proto [22:01:06]query_string will be loaded in cgi processing [22:01:06]execute_cgi json_proto POST (null) [22:01:06]execute_cgi path=json_proto method=POST [22:01:06]POST find Content-Length [22:01:06]Host: 172.17.53.195:8080 [22:01:06]Content-Length: 677 [22:01:06]Content-Type: application/json [22:01:06] [22:01:06]POST finish read [22:01:06]Found Content-Length = 677 [22:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.230, "sum" : 349.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:06]execute_script... [22:01:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.230, "sum" : 349.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:06]POST & json_proto [22:01:06]process_json_proto [22:01:06]json parsed OK: [22:01:06]protocol is kg_v1.0 [22:01:06]action value=close_receipt [22:01:06]process_action close_receipt [22:01:06]cmd_close_receipt [22:01:06]MH_GetDate [22:01:06]Write to MH i2c: F0 00 00 23 16 28 [22:01:06]Write i2c OK [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: F0 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: F0 09 00 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: F0 09 00 23 16 00 A3 20 18 67 21 48 4A 65 8B [22:01:06]GetLastDocTimeStamp 1729634276 [22:01:06]current date 1729634467 [22:01:06]FM_GetShiftState [22:01:06]SAM_PROTO_GetShiftState [22:01:06]wFMCommunicate request_size=4 [22:01:06]MH_SAM_APDU [22:01:06]CAPDU: 80 13 01 00 [22:01:06]Write to MH i2c: E2 08 00 24 16 80 13 01 00 00 00 00 00 B7 [22:01:06]Write i2c OK [22:01:06]MH_I2C_Read... [22:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:06]Read from MH i2c: E2 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 0E 00 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 0E 00 24 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0A [22:01:06]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:01:06]wFMCommunicate OK [22:01:06]SAM_PROTO_GetShiftState done [22:01:06]FM_GetShiftState done [22:01:06]opened in 1729557463 [22:01:06]opened+sec_in_day 1729643863 [22:01:06]quantity*price = 34988 [22:01:06]sum+1 = 34990 [22:01:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 349.00 Внесено: 350.00 СДАЧА: 1.00 НСП 1% : 3.10 НДС 12% : 37.16 Наличными: 349.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 316 22.10.2024 22:01 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166561 ФПД: 123672809517960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220107&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166561&fm=123672809517960&tin=02508201610067®Number=0000000000091764&sum=34900 [22:01:07]StoreToDocumentArchive [22:01:07]shift 536 fd 166561 [22:01:07]save to /storage/0536/doc_00166561 [22:01:07]save last doc name /storage/0536/doc_00166561 to /storage/kkm_last_doc_name [22:01:07]save OK [22:01:07]Clear old archive folders... [22:01:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:07]tlvbuf is 011FF6C0 [22:01:07]SAM_PROTO_ClearQueue [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 09 00 00 [22:01:07]Write to MH i2c: E2 08 00 31 16 80 09 00 00 00 00 00 00 B9 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 31 16 00 90 00 BB [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]SAM_PROTO_ClearQueue done [22:01:07]KKMCreateOFDPacket [22:01:07]OFDProtocolAddRootSTLVToBuf [22:01:07]FM_MakeSignedData [22:01:07]FM_MakeSignedData [22:01:07]SAM_PROTO_SignData [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 01 02 [22:01:07]Write to MH i2c: E2 08 00 32 16 80 0D 01 02 00 00 00 00 C1 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]wFMCommunicate request_size=255 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 A3 20 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8A 02 00 35 04 06 00 70 [22:01:07]Write to MH i2c: E2 02 01 33 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 A3 20 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8A 02 00 35 04 06 00 70 00 00 7C [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 33 16 00 90 00 BD [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]wFMCommunicate request_size=10 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 02 02 05 7A D1 E1 33 88 [22:01:07]Write to MH i2c: E2 0D 00 34 16 80 0D 02 02 05 00 7A D1 E1 33 88 00 00 B5 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 03 02 [22:01:07]Write to MH i2c: E2 08 00 35 16 80 0D 03 02 00 00 00 00 C6 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 0B 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 0B 00 35 16 00 F8 FB 81 FF 39 4A D0 BF 90 00 4C [22:01:07]RAPDU: F8 FB 81 FF 39 4A D0 BF 90 00 [22:01:07]wFMCommunicate OK [22:01:07]SAM_PROTO_SignData done [22:01:07]FM_MakeSignedData done [22:01:07]CreateOFDProtocolMessage [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 11 00 00 [22:01:07]Write to MH i2c: E2 08 00 36 16 80 11 00 00 00 00 00 00 C6 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:08]Read from MH i2c: E2 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: E2 17 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: E2 17 00 36 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [22:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:01:08]wFMCommunicate OK [22:01:08]CreateOFDProtocolMessage done [22:01:08]OFDSenderStorePacket 166561 [22:01:08]StoreOFDPacket docnum=166561 [22:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 0F 07 01 B3 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 A3 20 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8A 02 00 35 04 06 00 70 7A D1 E1 33 88 F8 FB 81 FF 39 4A D0 BF [22:01:08]CheckFolder [22:01:08]dirname=/storage/ofd_packets [22:01:08]CheckFolder done [22:01:08]ProducePacketName [22:01:08]name=ofd_packets/00166561 [22:01:08]NVStorageSaveData ofd_packets/00166561 [22:01:08]File name is /storage/ofd_packets/00166561 [22:01:08]Write 301 bytes [22:01:08]NVStorageSaveData done [22:01:08]OFDSenderStorePacket done [22:01:08]KKMCreateOFDPacket done [22:01:08]NVStorageSaveData kkm_last_timestamp [22:01:08]File name is /storage/kkm_last_timestamp [22:01:08]Write 4 bytes [22:01:08]NVStorageSaveData done [22:01:08]ExternCall_PrintAddStr [22:01:08]wPrintStart [22:01:08]Write to MH i2c: 01 00 00 37 16 4D [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 07 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 FF 0F 62 [22:01:08]RasterBufferAndPrint [22:01:08]line Счет N : (1)221142 [22:01:08]line ИНН: 02508201610067 [22:01:08]line Контрольно-Кассовый Чек [22:01:08]line ПРОДАЖА [22:01:08]line ТРК (МРК, ГНК) : 43 [22:01:08]line Товар: 2710124130 [22:01:08]line Аи-92-К-5 [22:01:08]line 5.230 * 66.90 [22:01:08]line = 349.89 [22:01:08]line НДС 12% НСП 1% [22:01:08]line > о реализуемом товаре [22:01:08]line ОКРУГЛЕНИЕ: -0.89 [22:01:08]line ИТОГО: 349.00 [22:01:08]line Внесено: 350.00 [22:01:08]line СДАЧА: 1.00 [22:01:08]line НСП 1% : 3.10 [22:01:08]line НДС 12% : 37.16 [22:01:08]line Наличными: 349.00 [22:01:08]line Безнал.: 0.00 [22:01:08]line Место: АЗС № 161 "Партнер Нефть" [22:01:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:01:08]line СНО: Общий режим [22:01:08]line Чек 316 22.10.2024 22:01 [22:01:08]line Смена: 536 ФФД: 1.0 [22:01:08]line ЗНМ: 0300000104 [22:01:08]line РНМ: 0000000000091764 [22:01:08]line Версия ККМ: 001 [22:01:08]line ФМ: 0000000000871759 [22:01:08]line ФД: 166561 [22:01:08]line ФПД: 123672809517960 [22:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220107&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166561&fm=123672809517960&tin=02508201610067®Number=0000000000091764&sum=34900 [22:01:08]OFD Sender: Processing packet 166561 [packets to send 48, broken 47] [22:01:08]ProducePacketName [22:01:08]name=ofd_packets/00166561 [22:01:08]OFD Sender: To server: pG, [22:01:08]CommunicateWithHost lk.salyk.kg:30040 [22:01:08]ConnectInit lk.salyk.kg [22:01:08]written 0, free lines is 4095 [22:01:08]Connected sock=9 [22:01:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 0F 07 01 B3 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 A3 20 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8A 02 00 35 04 06 00 70 7A D1 E1 33 88 F8 FB 81 FF 39 4A D0 BF [22:01:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 06 47 00 E3 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 8A 02 00 F4 03 04 00 0D C7 17 67 B6 04 01 00 00 16 79 9E CD F0 22 6F D8 [22:01:08]CommunicateWithHost err = 0 [22:01:08]CheckOFDResponse [22:01:08]1017 (14) - 77093643461234 [22:01:08]1041 (16) - 0000000000871759 [22:01:08]1040 (4) - 166561 [22:01:08]1012 (4) - 22.10.2024 15:38 [22:01:08]1206 (1) - 0 [22:01:08]OFD Sender: Remove packet 166561 [22:01:08]ProducePacketName [22:01:08]name=ofd_packets/00166561 [22:01:08]NVStorageDeleteData [22:01:08]Write to MH i2c: 01 00 00 62 16 78 [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 07 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 D2 0C 5D [22:01:08]RasterBufferAndPrint [22:01:08]line [22:01:08]line [22:01:08]line [22:01:08]line [22:01:08]line [22:01:08]written 0, free lines is 3289 [22:01:08]MH_Cut [22:01:08]Write to MH i2c: D1 01 00 69 16 01 51 [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: D1 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: D1 01 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: D1 01 00 69 16 00 50 [22:01:08]Write to MH i2c: 01 00 00 6A 16 80 [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:09]OFD Sender: No OFD packet to send [22:01:09]*** Cut start [22:01:09]*** Partial cut [22:01:09]*** CUTSNS_PIN = 1 [22:01:09]*** CUTSNS_PIN = 0 [22:01:09]*** Brake cut motor [22:01:10]Read from MH i2c: 01 [22:01:10]MH_I2C_Read... [22:01:10]*** Stop cut motor [22:01:10]*** Cut end [22:01:10]Read from MH i2c: 01 07 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: 01 07 00 6A 16 00 00 00 00 00 FF 0F 95 [22:01:10]process_action close_receipt done [22:01:10]requested_data is exist [22:01:10]produce_requested_data [22:01:10]requested_item fm.sn is exist - process it [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 11 00 00 [22:01:10]Write to MH i2c: E2 08 00 6B 16 80 11 00 00 00 00 00 00 FB [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 17 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 17 00 6B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [22:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:01:10]wFMCommunicate OK [22:01:10]requested_item fd.num is exist - process it [22:01:10]SAM_PROTO_GetFieldsCounters [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 13 00 00 [22:01:10]Write to MH i2c: E2 08 00 6C 16 80 13 00 00 00 00 00 00 FE [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 62 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 62 00 6C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:01:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:10]wFMCommunicate OK [22:01:10]SAM_PROTO_GetFieldsCounters done [22:01:10]requested_item shift.num is exist - process it [22:01:10]requested_item shift.opened is exist - process it [22:01:10]req_shift_opened [22:01:10]FM_GetShiftState [22:01:10]SAM_PROTO_GetShiftState [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 13 01 00 [22:01:10]Write to MH i2c: E2 08 00 6D 16 80 13 01 00 00 00 00 00 00 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0E 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0E 00 6D 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 53 [22:01:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:01:10]wFMCommunicate OK [22:01:10]SAM_PROTO_GetShiftState done [22:01:10]FM_GetShiftState done [22:01:10]req_shift_opened done [22:01:10]requested_item shift.open_date is exist - process it [22:01:10]req_shift_open_date [22:01:10]req_shift_open_date done [22:01:10]produce_requested_data done [22:01:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166561,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:01:10]process_action_free close_receipt [22:01:10]json_value_free [22:01:10]json_value_free done [22:01:10]process_json_proto returns [22:01:10]Send response to host [22:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166561,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:01:10]free response buf [22:01:10]execute_script done [22:01:10]execute_script returns [22:01:10]free content buf [22:01:10]Sock 10.Close socket [22:01:10]Sock 10.Thread stoped [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:59]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [22:14:45]New connection [22:14:45]New thread 3067489636 created [22:14:45]Thread 3067632996 joined [22:14:45]Waiting for new connection... [22:14:45] Sock 7.Parse request [22:14:45]Sock 7.Check first char [22:14:45]Sock 7.First char is OK [22:14:45]request: POST /json_proto HTTP/1.0 [22:14:45]Method: POST [22:14:45]URL: /json_proto [22:14:45]Method is POST - this is cgi request [22:14:45]url: /json_proto [22:14:45]query_string will be loaded in cgi processing [22:14:45]execute_cgi json_proto POST (null) [22:14:45]execute_cgi path=json_proto method=POST [22:14:45]POST find Content-Length [22:14:45]Host: 172.17.53.195:8080 [22:14:45]Content-Length: 682 [22:14:45]Content-Type: application/json [22:14:45] [22:14:45]POST finish read [22:14:45]Found Content-Length = 682 [22:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:45]execute_script... [22:14:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:45]POST & json_proto [22:14:45]process_json_proto [22:14:45]json parsed OK: [22:14:45]protocol is kg_v1.0 [22:14:45]action value=close_receipt [22:14:45]process_action close_receipt [22:14:45]cmd_close_receipt [22:14:45]MH_GetDate [22:14:45]Write to MH i2c: F0 00 00 6E 16 73 [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: F0 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: F0 09 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: F0 09 00 6E 16 00 D7 23 18 67 21 48 4A 65 0D [22:14:45]GetLastDocTimeStamp 1729634467 [22:14:45]current date 1729635287 [22:14:45]FM_GetShiftState [22:14:45]SAM_PROTO_GetShiftState [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 13 01 00 [22:14:45]Write to MH i2c: E2 08 00 6F 16 80 13 01 00 00 00 00 00 02 [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 0E 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 0E 00 6F 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 55 [22:14:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:14:45]wFMCommunicate OK [22:14:45]SAM_PROTO_GetShiftState done [22:14:45]FM_GetShiftState done [22:14:45]opened in 1729557463 [22:14:45]opened+sec_in_day 1729643863 [22:14:45]quantity*price = 150032 [22:14:45]sum+1 = 150033 [22:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 317 22.10.2024 22:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166562 ФПД: 221784711625375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221447&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166562&fm=221784711625375&tin=02508201610067®Number=0000000000091764&sum=150000 [22:14:47]StoreToDocumentArchive [22:14:47]shift 536 fd 166562 [22:14:47]save to /storage/0536/doc_00166562 [22:14:47]save last doc name /storage/0536/doc_00166562 to /storage/kkm_last_doc_name [22:14:47]save OK [22:14:47]Clear old archive folders... [22:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:47]tlvbuf is 01262430 [22:14:47]SAM_PROTO_ClearQueue [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 09 00 00 [22:14:47]Write to MH i2c: E2 08 00 7C 16 80 09 00 00 00 00 00 00 04 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 7C 16 00 90 00 06 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]SAM_PROTO_ClearQueue done [22:14:47]KKMCreateOFDPacket [22:14:47]OFDProtocolAddRootSTLVToBuf [22:14:47]FM_MakeSignedData [22:14:47]FM_MakeSignedData [22:14:47]SAM_PROTO_SignData [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 01 02 [22:14:47]Write to MH i2c: E2 08 00 7D 16 80 0D 01 02 00 00 00 00 0C [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 7D 16 00 90 00 07 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=255 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 D7 23 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8A 02 00 35 04 06 00 C9 [22:14:47]Write to MH i2c: E2 02 01 7E 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 D7 23 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8A 02 00 35 04 06 00 C9 00 00 CD [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=10 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 02 02 05 B6 46 F3 FA 9F [22:14:47]Write to MH i2c: E2 0D 00 7F 16 80 0D 02 02 05 00 B6 46 F3 FA 9F 00 00 A1 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 03 02 [22:14:47]Write to MH i2c: E2 08 00 80 16 80 0D 03 02 00 00 00 00 11 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 80 16 00 9D E6 10 CA BB 36 E9 67 90 00 B0 [22:14:47]RAPDU: 9D E6 10 CA BB 36 E9 67 90 00 [22:14:47]wFMCommunicate OK [22:14:47]SAM_PROTO_SignData done [22:14:47]FM_MakeSignedData done [22:14:47]CreateOFDProtocolMessage [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 11 00 00 [22:14:47]Write to MH i2c: E2 08 00 81 16 80 11 00 00 00 00 00 00 11 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 17 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 17 00 81 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [22:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:14:47]wFMCommunicate OK [22:14:47]CreateOFDProtocolMessage done [22:14:47]OFDSenderStorePacket 166562 [22:14:47]StoreOFDPacket docnum=166562 [22:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF 1C 07 01 31 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 D7 23 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8A 02 00 35 04 06 00 C9 B6 46 F3 FA 9F 9D E6 10 CA BB 36 E9 67 [22:14:47]CheckFolder [22:14:47]dirname=/storage/ofd_packets [22:14:47]CheckFolder done [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00166562 [22:14:47]NVStorageSaveData ofd_packets/00166562 [22:14:47]File name is /storage/ofd_packets/00166562 [22:14:47]Write 301 bytes [22:14:47]NVStorageSaveData done [22:14:47]OFDSenderStorePacket done [22:14:47]KKMCreateOFDPacket done [22:14:47]NVStorageSaveData kkm_last_timestamp [22:14:47]File name is /storage/kkm_last_timestamp [22:14:47]Write 4 bytes [22:14:47]NVStorageSaveData done [22:14:47]ExternCall_PrintAddStr [22:14:47]wPrintStart [22:14:47]Write to MH i2c: 01 00 00 82 16 98 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 07 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 07 00 82 16 00 00 00 00 00 FF 0F AD [22:14:47]RasterBufferAndPrint [22:14:47]line Счет N : (1)221143 [22:14:47]line ИНН: 02508201610067 [22:14:47]line Контрольно-Кассовый Чек [22:14:47]line ПРОДАЖА [22:14:47]line ТРК (МРК, ГНК) : 24 [22:14:47]line Товар: 2710124500 [22:14:47]line Аи-95-К-5 [22:14:47]line 20.220 * 74.20 [22:14:47]line = 1500.32 [22:14:47]line НДС 12% НСП 1% [22:14:47]line > о реализуемом товаре [22:14:47]line ОКРУГЛЕНИЕ: -0.32 [22:14:47]line ИТОГО: 1500.00 [22:14:47]line Внесено: 1500.00 [22:14:47]line СДАЧА: 0.00 [22:14:47]line НСП 1% : 13.28 [22:14:47]line НДС 12% : 159.33 [22:14:47]line Наличными: 1500.00 [22:14:47]line Безнал.: 0.00 [22:14:47]line Место: АЗС № 161 "Партнер Нефть" [22:14:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:14:47]line СНО: Общий режим [22:14:47]line Чек 317 22.10.2024 22:14 [22:14:47]line Смена: 536 ФФД: 1.0 [22:14:47]line ЗНМ: 0300000104 [22:14:47]line РНМ: 0000000000091764 [22:14:47]line Версия ККМ: 001 [22:14:47]line ФМ: 0000000000871759 [22:14:47]line ФД: 166562 [22:14:47]line ФПД: 221784711625375 [22:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221447&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166562&fm=221784711625375&tin=02508201610067®Number=0000000000091764&sum=150000 [22:14:47]OFD Sender: Processing packet 166562 [packets to send 48, broken 47] [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00166562 [22:14:47]OFD Sender: To server: pG, [22:14:47]CommunicateWithHost lk.salyk.kg:30040 [22:14:47]ConnectInit lk.salyk.kg [22:14:47]written 0, free lines is 4095 [22:14:48]Connected sock=10 [22:14:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF 1C 07 01 31 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 D7 23 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8A 02 00 35 04 06 00 C9 B6 46 F3 FA 9F 9D E6 10 CA BB 36 E9 67 [22:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF FF 47 00 74 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 8A 02 00 F4 03 04 00 41 CA 17 67 B6 04 01 00 00 E6 3E A5 96 16 F8 21 B9 [22:14:48]CommunicateWithHost err = 0 [22:14:48]CheckOFDResponse [22:14:48]1017 (14) - 77093643461234 [22:14:48]1041 (16) - 0000000000871759 [22:14:48]1040 (4) - 166562 [22:14:48]1012 (4) - 22.10.2024 15:52 [22:14:48]1206 (1) - 0 [22:14:48]OFD Sender: Remove packet 166562 [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00166562 [22:14:48]NVStorageDeleteData [22:14:48]Write to MH i2c: 01 00 00 AD 16 C3 [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 AF 0C 85 [22:14:48]RasterBufferAndPrint [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]written 0, free lines is 3253 [22:14:48]MH_Cut [22:14:48]Write to MH i2c: D1 01 00 B4 16 01 9C [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 01 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 01 00 B4 16 00 9B [22:14:48]Write to MH i2c: 01 00 00 B5 16 CB [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]OFD Sender: No OFD packet to send [22:14:49]*** Cut start [22:14:49]*** Partial cut [22:14:49]*** CUTSNS_PIN = 1 [22:14:49]*** CUTSNS_PIN = 0 [22:14:49]*** Brake cut motor [22:14:49]Read from MH i2c: 01 [22:14:49]MH_I2C_Read... [22:14:49]*** Stop cut motor [22:14:49]*** Cut end [22:14:49]Read from MH i2c: 01 07 00 [22:14:49]MH_I2C_Read... [22:14:49]Read from MH i2c: 01 07 00 B5 16 00 00 00 00 00 FF 0F E0 [22:14:49]process_action close_receipt done [22:14:49]requested_data is exist [22:14:49]produce_requested_data [22:14:49]requested_item fm.sn is exist - process it [22:14:49]wFMCommunicate request_size=4 [22:14:49]MH_SAM_APDU [22:14:49]CAPDU: 80 11 00 00 [22:14:49]Write to MH i2c: E2 08 00 B6 16 80 11 00 00 00 00 00 00 46 [22:14:49]Write i2c OK [22:14:49]MH_I2C_Read... [22:14:49]Read from MH i2c: E2 [22:14:49]MH_I2C_Read... [22:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:49]Read from MH i2c: E2 17 00 [22:14:49]MH_I2C_Read... [22:14:49]Read from MH i2c: E2 17 00 B6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [22:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:14:49]wFMCommunicate OK [22:14:49]requested_item fd.num is exist - process it [22:14:49]SAM_PROTO_GetFieldsCounters [22:14:49]wFMCommunicate request_size=4 [22:14:49]MH_SAM_APDU [22:14:49]CAPDU: 80 13 00 00 [22:14:49]Write to MH i2c: E2 08 00 B7 16 80 13 00 00 00 00 00 00 49 [22:14:49]Write i2c OK [22:14:49]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 62 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 62 00 B7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [22:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_GetFieldsCounters done [22:14:50]requested_item shift.num is exist - process it [22:14:50]requested_item shift.opened is exist - process it [22:14:50]req_shift_opened [22:14:50]FM_GetShiftState [22:14:50]SAM_PROTO_GetShiftState [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 13 01 00 [22:14:50]Write to MH i2c: E2 08 00 B8 16 80 13 01 00 00 00 00 00 4B [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0E 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0E 00 B8 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9E [22:14:50]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_GetShiftState done [22:14:50]FM_GetShiftState done [22:14:50]req_shift_opened done [22:14:50]requested_item shift.open_date is exist - process it [22:14:50]req_shift_open_date [22:14:50]req_shift_open_date done [22:14:50]produce_requested_data done [22:14:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166562,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:14:50]process_action_free close_receipt [22:14:50]json_value_free [22:14:50]json_value_free done [22:14:50]process_json_proto returns [22:14:50]Send response to host [22:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166562,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:14:50]free response buf [22:14:50]execute_script done [22:14:50]execute_script returns [22:14:50]free content buf [22:14:50]Sock 7.Close socket [22:14:50]Sock 7.Thread stoped [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:01]accept exits with 9 [22:24:01]New connection [22:24:01]New thread 3067632996 created [22:24:01]Thread 3067489636 joined [22:24:01]Waiting for new connection... [22:24:01] Sock 9.Parse request [22:24:01]Sock 9.Check first char [22:24:01]Sock 9.First char is OK [22:24:01]request: POST /json_proto HTTP/1.0 [22:24:01]Method: POST [22:24:01]URL: /json_proto [22:24:01]Method is POST - this is cgi request [22:24:01]url: /json_proto [22:24:01]query_string will be loaded in cgi processing [22:24:01]execute_cgi json_proto POST (null) [22:24:01]execute_cgi path=json_proto method=POST [22:24:01]POST find Content-Length [22:24:01]Host: 172.17.53.195:8080 [22:24:01]Content-Length: 679 [22:24:01]Content-Type: application/json [22:24:01] [22:24:01]POST finish read [22:24:01]Found Content-Length = 679 [22:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:01]execute_script... [22:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:01]POST & json_proto [22:24:01]process_json_proto [22:24:01]json parsed OK: [22:24:01]protocol is kg_v1.0 [22:24:01]action value=close_receipt [22:24:01]process_action close_receipt [22:24:01]cmd_close_receipt [22:24:01]MH_GetDate [22:24:01]Write to MH i2c: F0 00 00 B9 16 BE [22:24:01]Write i2c OK [22:24:01]MH_I2C_Read... [22:24:01]Read from MH i2c: F0 [22:24:01]MH_I2C_Read... [22:24:01]Read from MH i2c: F0 09 00 [22:24:01]MH_I2C_Read... [22:24:01]Read from MH i2c: F0 09 00 B9 16 00 02 26 18 67 21 48 4A 65 86 [22:24:01]GetLastDocTimeStamp 1729635287 [22:24:01]current date 1729635842 [22:24:01]FM_GetShiftState [22:24:01]SAM_PROTO_GetShiftState [22:24:01]wFMCommunicate request_size=4 [22:24:01]MH_SAM_APDU [22:24:01]CAPDU: 80 13 01 00 [22:24:01]Write to MH i2c: E2 08 00 BA 16 80 13 01 00 00 00 00 00 4D [22:24:01]Write i2c OK [22:24:01]MH_I2C_Read... [22:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:01]Read from MH i2c: E2 [22:24:01]MH_I2C_Read... [22:24:01]Read from MH i2c: E2 0E 00 [22:24:01]MH_I2C_Read... [22:24:01]Read from MH i2c: E2 0E 00 BA 16 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A0 [22:24:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:24:01]wFMCommunicate OK [22:24:01]SAM_PROTO_GetShiftState done [22:24:01]FM_GetShiftState done [22:24:01]opened in 1729557463 [22:24:01]opened+sec_in_day 1729643863 [22:24:01]quantity*price = 150037 [22:24:01]sum+1 = 150039 [22:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 318 22.10.2024 22:24 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166563 ФПД: 10651041910499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222402&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166563&fm=10651041910499&tin=02508201610067®Number=0000000000091764&sum=150000 [22:24:02]StoreToDocumentArchive [22:24:02]shift 536 fd 166563 [22:24:02]save to /storage/0536/doc_00166563 [22:24:02]save last doc name /storage/0536/doc_00166563 to /storage/kkm_last_doc_name [22:24:02]save OK [22:24:02]Clear old archive folders... [22:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:24:02]tlvbuf is 01262350 [22:24:02]SAM_PROTO_ClearQueue [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 09 00 00 [22:24:02]Write to MH i2c: E2 08 00 C7 16 80 09 00 00 00 00 00 00 4F [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 C7 16 00 90 00 51 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_ClearQueue done [22:24:02]KKMCreateOFDPacket [22:24:02]OFDProtocolAddRootSTLVToBuf [22:24:02]FM_MakeSignedData [22:24:02]FM_MakeSignedData [22:24:02]SAM_PROTO_SignData [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 01 02 [22:24:02]Write to MH i2c: E2 08 00 C8 16 80 0D 01 02 00 00 00 00 57 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 C8 16 00 90 00 52 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=255 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 02 26 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8A 02 00 35 04 06 00 09 AF E3 91 [22:24:02]Write to MH i2c: E2 02 01 C9 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 02 26 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8A 02 00 35 04 06 00 09 AF E3 91 00 00 B5 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=7 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 02 02 02 CE E3 [22:24:02]Write to MH i2c: E2 0A 00 CA 16 80 0D 02 02 02 00 CE E3 00 00 0F [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 03 02 [22:24:02]Write to MH i2c: E2 08 00 CB 16 80 0D 03 02 00 00 00 00 5C [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0B 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0B 00 CB 16 00 83 5A FC 41 71 D4 FB B8 90 00 6F [22:24:02]RAPDU: 83 5A FC 41 71 D4 FB B8 90 00 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_SignData done [22:24:02]FM_MakeSignedData done [22:24:02]CreateOFDProtocolMessage [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 11 00 00 [22:24:02]Write to MH i2c: E2 08 00 CC 16 80 11 00 00 00 00 00 00 5C [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 CC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B4 [22:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:24:02]wFMCommunicate OK [22:24:02]CreateOFDProtocolMessage done [22:24:02]OFDSenderStorePacket 166563 [22:24:02]StoreOFDPacket docnum=166563 [22:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0C 66 04 01 AA 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 02 26 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8A 02 00 35 04 06 00 09 AF E3 91 CE E3 83 5A FC 41 71 D4 FB B8 [22:24:02]CheckFolder [22:24:02]dirname=/storage/ofd_packets [22:24:02]CheckFolder done [22:24:02]ProducePacketName [22:24:02]name=ofd_packets/00166563 [22:24:02]NVStorageSaveData ofd_packets/00166563 [22:24:02]File name is /storage/ofd_packets/00166563 [22:24:02]Write 298 bytes [22:24:02]NVStorageSaveData done [22:24:02]OFDSenderStorePacket done [22:24:02]KKMCreateOFDPacket done [22:24:02]NVStorageSaveData kkm_last_timestamp [22:24:02]File name is /storage/kkm_last_timestamp [22:24:02]Write 4 bytes [22:24:02]NVStorageSaveData done [22:24:02]ExternCall_PrintAddStr [22:24:02]wPrintStart [22:24:02]Write to MH i2c: 01 00 00 CD 16 E3 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 07 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 07 00 CD 16 00 00 00 00 00 FF 0F F8 [22:24:02]RasterBufferAndPrint [22:24:02]line Счет N : (1)221144 [22:24:02]line ИНН: 02508201610067 [22:24:02]line Контрольно-Кассовый Чек [22:24:02]line ПРОДАЖА [22:24:02]line ТРК (МРК, ГНК) : 31 [22:24:02]line Товар: 2710194210 [22:24:02]line ДТ-К-5 [22:24:02]line 19.690 * 76.20 [22:24:02]line = 1500.38 [22:24:02]line НДС 12% НСП 1% [22:24:02]line > о реализуемом товаре [22:24:02]line ОКРУГЛЕНИЕ: -0.38 [22:24:02]line ИТОГО: 1500.00 [22:24:02]line Внесено: 1500.00 [22:24:02]line СДАЧА: 0.00 [22:24:02]line НСП 1% : 13.28 [22:24:02]line НДС 12% : 159.33 [22:24:02]line Наличными: 1500.00 [22:24:02]line Безнал.: 0.00 [22:24:02]line Место: АЗС № 161 "Партнер Нефть" [22:24:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:24:02]line СНО: Общий режим [22:24:02]line Чек 318 22.10.2024 22:24 [22:24:02]line Смена: 536 ФФД: 1.0 [22:24:02]line ЗНМ: 0300000104 [22:24:02]line РНМ: 0000000000091764 [22:24:02]line Версия ККМ: 001 [22:24:02]line ФМ: 0000000000871759 [22:24:02]line ФД: 166563 [22:24:02]line ФПД: 10651041910499 [22:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222402&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166563&fm=10651041910499&tin=02508201610067®Number=0000000000091764&sum=150000 [22:24:03]OFD Sender: Processing packet 166563 [packets to send 48, broken 47] [22:24:03]ProducePacketName [22:24:03]name=ofd_packets/00166563 [22:24:03]OFD Sender: To server: pG, [22:24:03]CommunicateWithHost lk.salyk.kg:30040 [22:24:03]ConnectInit lk.salyk.kg [22:24:03]written 0, free lines is 4095 [22:24:03]Connected sock=10 [22:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0C 66 04 01 AA 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 02 26 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8A 02 00 35 04 06 00 09 AF E3 91 CE E3 83 5A FC 41 71 D4 FB B8 [22:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 50 47 00 D5 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 8A 02 00 F4 03 04 00 6C CC 17 67 B6 04 01 00 00 44 F0 7C 1D 88 F7 7F A1 [22:24:03]CommunicateWithHost err = 0 [22:24:03]CheckOFDResponse [22:24:03]1017 (14) - 77093643461234 [22:24:03]1041 (16) - 0000000000871759 [22:24:03]1040 (4) - 166563 [22:24:03]1012 (4) - 22.10.2024 16:01 [22:24:03]1206 (1) - 0 [22:24:03]OFD Sender: Remove packet 166563 [22:24:03]ProducePacketName [22:24:03]name=ofd_packets/00166563 [22:24:03]NVStorageDeleteData [22:24:03]Write to MH i2c: 01 00 00 F8 16 0E [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 07 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 B4 0C D5 [22:24:03]RasterBufferAndPrint [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]written 0, free lines is 3257 [22:24:03]MH_Cut [22:24:03]Write to MH i2c: D1 01 00 FF 16 01 E7 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 01 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 01 00 FF 16 00 E6 [22:24:03]Write to MH i2c: 01 00 00 00 17 17 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:04]OFD Sender: No OFD packet to send [22:24:04]*** Cut start [22:24:04]*** Partial cut [22:24:04]*** CUTSNS_PIN = 1 [22:24:04]*** CUTSNS_PIN = 0 [22:24:04]*** Brake cut motor [22:24:05]Read from MH i2c: 01 [22:24:05]MH_I2C_Read... [22:24:05]*** Stop cut motor [22:24:05]*** Cut end [22:24:05]Read from MH i2c: 01 07 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [22:24:05]process_action close_receipt done [22:24:05]requested_data is exist [22:24:05]produce_requested_data [22:24:05]requested_item fm.sn is exist - process it [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 11 00 00 [22:24:05]Write to MH i2c: E2 08 00 01 17 80 11 00 00 00 00 00 00 92 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 17 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 17 00 01 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [22:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:24:05]wFMCommunicate OK [22:24:05]requested_item fd.num is exist - process it [22:24:05]SAM_PROTO_GetFieldsCounters [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 13 00 00 [22:24:05]Write to MH i2c: E2 08 00 02 17 80 13 00 00 00 00 00 00 95 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 62 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 62 00 02 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [22:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_GetFieldsCounters done [22:24:05]requested_item shift.num is exist - process it [22:24:05]requested_item shift.opened is exist - process it [22:24:05]req_shift_opened [22:24:05]FM_GetShiftState [22:24:05]SAM_PROTO_GetShiftState [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 13 01 00 [22:24:05]Write to MH i2c: E2 08 00 03 17 80 13 01 00 00 00 00 00 97 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0E 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0E 00 03 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EA [22:24:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_GetShiftState done [22:24:05]FM_GetShiftState done [22:24:05]req_shift_opened done [22:24:05]requested_item shift.open_date is exist - process it [22:24:05]req_shift_open_date [22:24:05]req_shift_open_date done [22:24:05]produce_requested_data done [22:24:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166563,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:24:05]process_action_free close_receipt [22:24:05]json_value_free [22:24:05]json_value_free done [22:24:05]process_json_proto returns [22:24:05]Send response to host [22:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166563,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:24:05]free response buf [22:24:05]execute_script done [22:24:05]execute_script returns [22:24:05]free content buf [22:24:05]Sock 9.Close socket [22:24:05]Sock 9.Thread stoped [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:57]accept exits with 7 [22:39:57]New connection [22:39:57]New thread 3067489636 created [22:39:57]Thread 3067632996 joined [22:39:57]Waiting for new connection... [22:39:57] Sock 7.Parse request [22:39:57]Sock 7.Check first char [22:39:57]Sock 7.First char is OK [22:39:57]request: POST /json_proto HTTP/1.0 [22:39:57]Method: POST [22:39:57]URL: /json_proto [22:39:57]Method is POST - this is cgi request [22:39:57]url: /json_proto [22:39:57]query_string will be loaded in cgi processing [22:39:57]execute_cgi json_proto POST (null) [22:39:57]execute_cgi path=json_proto method=POST [22:39:57]POST find Content-Length [22:39:57]Host: 172.17.53.195:8080 [22:39:57]Content-Length: 767 [22:39:57]Content-Type: application/json [22:39:57] [22:39:57]POST finish read [22:39:57]Found Content-Length = 767 [22:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:57]execute_script... [22: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 : (1)221145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:57]POST & json_proto [22:39:57]process_json_proto [22:39:57]json parsed OK: [22:39:57]protocol is kg_v1.0 [22:39:57]action value=close_receipt [22:39:57]process_action close_receipt [22:39:57]cmd_close_receipt [22:39:57]MH_GetDate [22:39:57]Write to MH i2c: F0 00 00 04 17 0A [22:39:57]Write i2c OK [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 09 00 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 09 00 04 17 00 BF 29 18 67 21 48 4A 65 92 [22:39:57]GetLastDocTimeStamp 1729635842 [22:39:57]current date 1729636799 [22:39:57]FM_GetShiftState [22:39:57]SAM_PROTO_GetShiftState [22:39:57]wFMCommunicate request_size=4 [22:39:57]MH_SAM_APDU [22:39:57]CAPDU: 80 13 01 00 [22:39:57]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [22:39:57]Write i2c OK [22:39:57]MH_I2C_Read... [22:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:57]Read from MH i2c: E2 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: E2 0E 00 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EC [22:39:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:39:57]wFMCommunicate OK [22:39:57]SAM_PROTO_GetShiftState done [22:39:57]FM_GetShiftState done [22:39:57]opened in 1729557463 [22:39:57]opened+sec_in_day 1729643863 [22:39:57]quantity*price = 70044 [22:39:57]sum+1 = 70045 [22:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 319 22.10.2024 22:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166564 ФПД: 264247085598382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166564&fm=264247085598382&tin=02508201610067®Number=0000000000091764&sum=70044 [22:39:59]StoreToDocumentArchive [22:39:59]shift 536 fd 166564 [22:39:59]save to /storage/0536/doc_00166564 [22:39:59]save last doc name /storage/0536/doc_00166564 to /storage/kkm_last_doc_name [22:39:59]save OK [22:39:59]Clear old archive folders... [22:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:59]tlvbuf is 01262350 [22:39:59]SAM_PROTO_ClearQueue [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 09 00 00 [22:39:59]Write to MH i2c: E2 08 00 12 17 80 09 00 00 00 00 00 00 9B [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]SAM_PROTO_ClearQueue done [22:39:59]KKMCreateOFDPacket [22:39:59]OFDProtocolAddRootSTLVToBuf [22:39:59]FM_MakeSignedData [22:39:59]FM_MakeSignedData [22:39:59]SAM_PROTO_SignData [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 01 02 [22:39:59]Write to MH i2c: E2 08 00 13 17 80 0D 01 02 00 00 00 00 A3 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]wFMCommunicate request_size=255 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 BF 29 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8A 02 00 35 04 06 00 F0 [22:39:59]Write to MH i2c: E2 02 01 14 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 BF 29 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8A 02 00 35 04 06 00 F0 00 00 82 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]wFMCommunicate request_size=10 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 02 02 05 54 D1 AB 86 AE [22:39:59]Write to MH i2c: E2 0D 00 15 17 80 0D 02 02 05 00 54 D1 AB 86 AE 00 00 B4 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 03 02 [22:39:59]Write to MH i2c: E2 08 00 16 17 80 0D 03 02 00 00 00 00 A8 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 0B 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 0B 00 16 17 00 42 8F F2 AF 06 83 5B 5F 90 00 5E [22:39:59]RAPDU: 42 8F F2 AF 06 83 5B 5F 90 00 [22:39:59]wFMCommunicate OK [22:39:59]SAM_PROTO_SignData done [22:39:59]FM_MakeSignedData done [22:39:59]CreateOFDProtocolMessage [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 11 00 00 [22:39:59]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 17 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [22:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:39:59]wFMCommunicate OK [22:39:59]CreateOFDProtocolMessage done [22:39:59]OFDSenderStorePacket 166564 [22:39:59]StoreOFDPacket docnum=166564 [22:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 74 07 01 43 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 BF 29 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8A 02 00 35 04 06 00 F0 54 D1 AB 86 AE 42 8F F2 AF 06 83 5B 5F [22:39:59]CheckFolder [22:39:59]dirname=/storage/ofd_packets [22:39:59]CheckFolder done [22:39:59]ProducePacketName [22:39:59]name=ofd_packets/00166564 [22:39:59]NVStorageSaveData ofd_packets/00166564 [22:39:59]File name is /storage/ofd_packets/00166564 [22:39:59]Write 301 bytes [22:39:59]NVStorageSaveData done [22:39:59]OFDSenderStorePacket done [22:39:59]KKMCreateOFDPacket done [22:39:59]NVStorageSaveData kkm_last_timestamp [22:39:59]File name is /storage/kkm_last_timestamp [22:39:59]Write 4 bytes [22:39:59]NVStorageSaveData done [22:39:59]ExternCall_PrintAddStr [22:39:59]wPrintStart [22:39:59]Write to MH i2c: 01 00 00 18 17 2F [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 07 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 07 00 18 17 00 00 00 00 00 FF 0F 44 [22:39:59]RasterBufferAndPrint [22:39:59]line Счет N : (1)221145 [22:39:59]line ИНН: 02508201610067 [22:39:59]line Контрольно-Кассовый Чек [22:39:59]line ПРОДАЖА [22:39:59]line ТРК (МРК, ГНК) : 13 [22:39:59]line Товар: 2710124130 [22:39:59]line Аи-92-К-5 [22:39:59]line 10.470 * 66.90 [22:39:59]line = 700.44 [22:39:59]line НДС 12% НСП 1% [22:39:59]line > о реализуемом товаре [22:39:59]line ИТОГО: 700.44 [22:39:59]line НСП 1% : 6.20 [22:39:59]line НДС 12% : 74.38 [22:39:59]line Наличными: 0.00 [22:39:59]line Безнал.: 700.44 [22:39:59]line Место: АЗС № 161 "Партнер Нефть" [22:39:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:39:59]line СНО: Общий режим [22:39:59]line Чек 319 22.10.2024 22:39 [22:39:59]line Смена: 536 ФФД: 1.0 [22:39:59]line ЗНМ: 0300000104 [22:39:59]line РНМ: 0000000000091764 [22:39:59]line Версия ККМ: 001 [22:39:59]line Платежная система: Mbank [22:39:59]line ФМ: 0000000000871759 [22:39:59]line ФД: 166564 [22:39:59]line ФПД: 264247085598382 [22:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166564&fm=264247085598382&tin=02508201610067®Number=0000000000091764&sum=70044 [22:39:59]written 0, free lines is 4095 [22:39:59]OFD Sender: Processing packet 166564 [packets to send 48, broken 47] [22:39:59]ProducePacketName [22:39:59]name=ofd_packets/00166564 [22:39:59]OFD Sender: To server: pG, [22:39:59]CommunicateWithHost lk.salyk.kg:30040 [22:39:59]ConnectInit lk.salyk.kg [22:40:00]Write to MH i2c: 01 00 00 41 17 58 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 07 00 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 07 00 41 17 00 00 00 00 00 D4 0C 3F [22:40:00]RasterBufferAndPrint [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]written 0, free lines is 3289 [22:40:00]MH_Cut [22:40:00]Write to MH i2c: D1 01 00 48 17 01 31 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 01 00 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 01 00 48 17 00 30 [22:40:00]Write to MH i2c: 01 00 00 49 17 60 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]Connected sock=10 [22: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 31 37 35 39 0F 01 00 00 50 74 07 01 43 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 BF 29 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8A 02 00 35 04 06 00 F0 54 D1 AB 86 AE 42 8F F2 AF 06 83 5B 5F [22:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B1 1B 47 00 81 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 8A 02 00 F4 03 04 00 29 D0 17 67 B6 04 01 00 00 36 E3 93 F3 D1 B0 C5 B1 [22:40:00]CommunicateWithHost err = 0 [22:40:00]CheckOFDResponse [22:40:00]1017 (14) - 77093643461234 [22:40:00]1041 (16) - 0000000000871759 [22:40:00]1040 (4) - 166564 [22:40:00]1012 (4) - 22.10.2024 16:17 [22:40:00]1206 (1) - 0 [22:40:00]OFD Sender: Remove packet 166564 [22:40:00]ProducePacketName [22:40:00]name=ofd_packets/00166564 [22:40:00]NVStorageDeleteData [22:40:00]OFD Sender: No OFD packet to send [22:40:00]*** Cut start [22:40:00]*** Partial cut [22:40:00]*** CUTSNS_PIN = 1 [22:40:00]*** CUTSNS_PIN = 0 [22:40:01]*** Brake cut motor [22:40:01]Read from MH i2c: 01 [22:40:01]MH_I2C_Read... [22:40:01]*** Stop cut motor [22:40:01]*** Cut end [22:40:01]Read from MH i2c: 01 07 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 FF 0F 75 [22:40:01]process_action close_receipt done [22:40:01]requested_data is exist [22:40:01]produce_requested_data [22:40:01]requested_item fm.sn is exist - process it [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 11 00 00 [22:40:01]Write to MH i2c: E2 08 00 4A 17 80 11 00 00 00 00 00 00 DB [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 17 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 17 00 4A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [22:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:40:01]wFMCommunicate OK [22:40:01]requested_item fd.num is exist - process it [22:40:01]SAM_PROTO_GetFieldsCounters [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 13 00 00 [22:40:01]Write to MH i2c: E2 08 00 4B 17 80 13 00 00 00 00 00 00 DE [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 62 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 62 00 4B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:01]wFMCommunicate OK [22:40:01]SAM_PROTO_GetFieldsCounters done [22:40:01]requested_item shift.num is exist - process it [22:40:01]requested_item shift.opened is exist - process it [22:40:01]req_shift_opened [22:40:01]FM_GetShiftState [22:40:01]SAM_PROTO_GetShiftState [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 13 01 00 [22:40:01]Write to MH i2c: E2 08 00 4C 17 80 13 01 00 00 00 00 00 E0 [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 0E 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 0E 00 4C 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 33 [22:40:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:40:01]wFMCommunicate OK [22:40:01]SAM_PROTO_GetShiftState done [22:40:01]FM_GetShiftState done [22:40:01]req_shift_opened done [22:40:01]requested_item shift.open_date is exist - process it [22:40:01]req_shift_open_date [22:40:01]req_shift_open_date done [22:40:01]produce_requested_data done [22:40:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166564,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:40:01]process_action_free close_receipt [22:40:01]json_value_free [22:40:01]json_value_free done [22:40:01]process_json_proto returns [22:40:01]Send response to host [22:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166564,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:40:01]free response buf [22:40:01]execute_script done [22:40:01]execute_script returns [22:40:01]free content buf [22:40:01]Sock 7.Close socket [22:40:01]Sock 7.Thread stoped [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:01]accept exits with 9 [22:44:01]New connection [22:44:01]New thread 3067632996 created [22:44:01]Thread 3067489636 joined [22:44:01]Waiting for new connection... [22:44:01] Sock 9.Parse request [22:44:01]Sock 9.Check first char [22:44:01]Sock 9.First char is OK [22:44:01]request: POST /json_proto HTTP/1.0 [22:44:01]Method: POST [22:44:01]URL: /json_proto [22:44:01]Method is POST - this is cgi request [22:44:01]url: /json_proto [22:44:01]query_string will be loaded in cgi processing [22:44:01]execute_cgi json_proto POST (null) [22:44:01]execute_cgi path=json_proto method=POST [22:44:01]POST find Content-Length [22:44:01]Host: 172.17.53.195:8080 [22:44:01]Content-Length: 215 [22:44:01]Content-Type: application/json [22:44:01] [22:44:01]POST finish read [22:44:01]Found Content-Length = 215 [22:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:01]execute_script... [22:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:01]POST & json_proto [22:44:01]process_json_proto [22:44:01]json parsed OK: [22:44:01]protocol is kg_v1.0 [22:44:01]action value=get_value [22:44:01]process_action get_value [22:44:01]cmd_get_value [22:44:01]process_action get_value done [22:44:01]requested_data is exist [22:44:01]produce_requested_data [22:44:01]requested_item kkm.sn is exist - process it [22:44:01]requested_item kkm.ver is exist - process it [22:44:01]requested_item fm.sn is exist - process it [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 11 00 00 [22:44:01]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:01]Read from MH i2c: E2 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 17 00 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [22:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:44:01]wFMCommunicate OK [22:44:01]requested_item fd.num is exist - process it [22:44:01]SAM_PROTO_GetFieldsCounters [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 13 00 00 [22:44:01]Write to MH i2c: E2 08 00 4E 17 80 13 00 00 00 00 00 00 E1 [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:01]Read from MH i2c: E2 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 62 00 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 62 00 4E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [22:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:01]wFMCommunicate OK [22:44:01]SAM_PROTO_GetFieldsCounters done [22:44:01]requested_item shift.num is exist - process it [22:44:01]requested_item shift.opened is exist - process it [22:44:01]req_shift_opened [22:44:01]FM_GetShiftState [22:44:01]SAM_PROTO_GetShiftState [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 13 01 00 [22:44:01]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:01]Read from MH i2c: E2 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 0E 00 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [22:44:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:44:01]wFMCommunicate OK [22:44:01]SAM_PROTO_GetShiftState done [22:44:01]FM_GetShiftState done [22:44:01]req_shift_opened done [22:44:01]requested_item shift.open_date is exist - process it [22:44:01]req_shift_open_date [22:44:01]req_shift_open_date done [22:44:01]produce_requested_data done [22:44:01]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166564,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:44:01]process_action_free get_value [22:44:01]json_value_free [22:44:01]json_value_free done [22:44:01]process_json_proto returns [22:44:01]Send response to host [22:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166564,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:44:01]free response buf [22:44:01]execute_script done [22:44:01]execute_script returns [22:44:01]free content buf [22:44:01]Sock 9.Close socket [22:44:01]Sock 9.Thread stoped [22:44:01]accept exits with 7 [22:44:01]New connection [22:44:01]New thread 3067489636 created [22:44:01]Thread 3067632996 joined [22:44:01]Waiting for new connection... [22:44:01] Sock 7.Parse request [22:44:01]Sock 7.Check first char [22:44:01]Sock 7.First char is OK [22:44:01]request: POST /json_proto HTTP/1.0 [22:44:01]Method: POST [22:44:01]URL: /json_proto [22:44:01]Method is POST - this is cgi request [22:44:01]url: /json_proto [22:44:01]query_string will be loaded in cgi processing [22:44:01]execute_cgi json_proto POST (null) [22:44:01]execute_cgi path=json_proto method=POST [22:44:01]POST find Content-Length [22:44:01]Host: 172.17.53.195:8080 [22:44:01]Content-Length: 331 [22:44:01]Content-Type: application/json [22:44:01] [22:44:01]POST finish read [22:44:01]Found Content-Length = 331 [22:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:44:01]execute_script... [22:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [22:44:01]POST & json_proto [22:44:01]process_json_proto [22:44:01]json parsed OK: [22:44:01]protocol is kg_v1.0 [22:44:01]action value=get_value [22:44:01]process_action get_value [22:44:01]cmd_get_value [22:44:01]process_action get_value done [22:44:01]requested_data is exist [22:44:01]produce_requested_data [22:44:01]requested_item fm.sale.total is exist - process it [22:44:01]SAM_PROTO_GetFMData [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 13 03 00 [22:44:01]Write to MH i2c: E2 08 00 50 17 80 13 03 00 00 00 00 00 E6 [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 50 17 00 C5 04 85 04 C1 04 6E 04 04 00 74 86 02 00 69 04 A3 00 6F 04 04 00 75 85 02 00 B1 04 05 00 39 5C 42 B4 03 70 04 05 00 DC 5D 43 2A 03 72 04 04 00 5D FE FE 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 1F BE 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 AC 14 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 BE [22:44:02]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 74 86 02 00 69 04 A3 00 6F 04 04 00 75 85 02 00 B1 04 05 00 39 5C 42 B4 03 70 04 05 00 DC 5D 43 2A 03 72 04 04 00 5D FE FE 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 1F BE 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 AC 14 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 17 00 00 [22:44:02]Write to MH i2c: E2 08 00 51 17 80 17 00 00 00 00 00 00 E8 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 51 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B4 [22:44:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 17 00 00 [22:44:02]Write to MH i2c: E2 08 00 52 17 80 17 00 00 00 00 00 00 E9 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 52 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FB [22:44:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 17 00 00 [22:44:02]Write to MH i2c: E2 08 00 53 17 80 17 00 00 00 00 00 00 EA [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 FD 00 53 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 76 [22:44:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 17 00 00 [22:44:02]Write to MH i2c: E2 08 00 54 17 80 17 00 00 00 00 00 00 EB [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [22:44:03]Read from MH i2c: E2 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 E2 00 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 E2 00 54 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [22:44:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:44:03]wFMCommunicate OK [22:44:03]SAM_PROTO_GetFMData done [22:44:03]requested_item fm.sale_refund.total is exist - process it [22:44:03]requested_item fm.buy.total is exist - process it [22:44:03]requested_item shift.sale.total is exist - process it [22:44:03]SAM_PROTO_GetShiftData [22:44:03]wFMCommunicate request_size=4 [22:44:03]MH_SAM_APDU [22:44:03]CAPDU: 80 13 02 00 [22:44:03]Write to MH i2c: E2 08 00 55 17 80 13 02 00 00 00 00 00 EA [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:44:03]Read from MH i2c: E2 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 FD 00 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 FD 00 55 17 00 B1 04 AA 04 AD 04 6E 04 04 00 3F 01 00 00 69 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 85 8D CD 01 70 04 04 00 C4 EF 72 01 72 04 03 00 C1 9D 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 07 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 15 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 9F [22:44:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 3F 01 00 00 69 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 85 8D CD 01 70 04 04 00 C4 EF 72 01 72 04 03 00 C1 9D 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 07 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 15 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [22:44:03]wFMCommunicate OK [22:44:03]wFMCommunicate request_size=4 [22:44:03]MH_SAM_APDU [22:44:03]CAPDU: 80 17 00 00 [22:44:03]Write to MH i2c: E2 08 00 56 17 80 17 00 00 00 00 00 00 ED [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:03]Read from MH i2c: E2 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 FD 00 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: E2 FD 00 56 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 06 [22:44:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [22:44:03]wFMCommunicate OK [22:44:03]wFMCommunicate request_size=4 [22:44:03]MH_SAM_APDU [22:44:03]CAPDU: 80 17 00 00 [22:44:03]Write to MH i2c: E2 08 00 57 17 80 17 00 00 00 00 00 00 EE [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 FD 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 FD 00 57 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A7 [22:44:04]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [22:44:04]wFMCommunicate OK [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 17 00 00 [22:44:04]Write to MH i2c: E2 08 00 58 17 80 17 00 00 00 00 00 00 EF [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 FD 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 FD 00 58 17 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 67 [22:44:04]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [22:44:04]wFMCommunicate OK [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 17 00 00 [22:44:04]Write to MH i2c: E2 08 00 59 17 80 17 00 00 00 00 00 00 F0 [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [22:44:04]Read from MH i2c: E2 CE 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 CE 00 59 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [22:44:04]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:44:04]wFMCommunicate OK [22:44:04]SAM_PROTO_GetShiftData done [22:44:04]requested_item shift.sale.total_cash is exist - process it [22:44:04]requested_item shift.sale_refund.total is exist - process it [22:44:04]requested_item shift.sale_refund.total_cash is exist - process it [22:44:04]requested_item shift.buy.total is exist - process it [22:44:04]requested_item shift.buy.total_cash is exist - process it [22:44:04]produce_requested_data done [22:44:04]produce_requested_data return {"fm.sale.total":159091497.53,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":302483.25,"shift.sale.total_cash":243097.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [22:44:04]process_action_free get_value [22:44:04]json_value_free [22:44:04]json_value_free done [22:44:04]process_json_proto returns [22:44:04]Send response to host [22:44:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159091497.53,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":302483.25,"shift.sale.total_cash":243097.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [22:44:04]free response buf [22:44:04]execute_script done [22:44:04]execute_script returns [22:44:04]free content buf [22:44:04]Sock 7.Close socket [22:44:04]Sock 7.Thread stoped [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:46:57]accept exits with 9 [22:46:57]New connection [22:46:57]New thread 3067632996 created [22:46:57]Thread 3067489636 joined [22:46:57]Waiting for new connection... [22:46:57] Sock 9.Parse request [22:46:57]Sock 9.Check first char [22:46:57]Sock 9.First char is OK [22:46:57]request: POST /json_proto HTTP/1.0 [22:46:57]Method: POST [22:46:57]URL: /json_proto [22:46:57]Method is POST - this is cgi request [22:46:57]url: /json_proto [22:46:57]query_string will be loaded in cgi processing [22:46:57]execute_cgi json_proto POST (null) [22:46:57]execute_cgi path=json_proto method=POST [22:46:57]POST find Content-Length [22:46:57]Host: 172.17.53.195:8080 [22:46:57]Content-Length: 682 [22:46:57]Content-Type: application/json [22:46:57] [22:46:57]POST finish read [22:46:57]Found Content-Length = 682 [22:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:57]execute_script... [22:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:57]POST & json_proto [22:46:57]process_json_proto [22:46:57]json parsed OK: [22:46:57]protocol is kg_v1.0 [22:46:57]action value=close_receipt [22:46:57]process_action close_receipt [22:46:57]cmd_close_receipt [22:46:57]MH_GetDate [22:46:57]Write to MH i2c: F0 00 00 5A 17 60 [22:46:57]Write i2c OK [22:46:57]MH_I2C_Read... [22:46:57]Read from MH i2c: F0 [22:46:57]MH_I2C_Read... [22:46:57]Read from MH i2c: F0 09 00 [22:46:57]MH_I2C_Read... [22:46:57]Read from MH i2c: F0 09 00 5A 17 00 63 2B 18 67 21 48 4A 65 8E [22:46:57]GetLastDocTimeStamp 1729636799 [22:46:57]current date 1729637219 [22:46:57]FM_GetShiftState [22:46:57]SAM_PROTO_GetShiftState [22:46:57]wFMCommunicate request_size=4 [22:46:57]MH_SAM_APDU [22:46:57]CAPDU: 80 13 01 00 [22:46:57]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [22:46:57]Write i2c OK [22:46:57]MH_I2C_Read... [22:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:57]Read from MH i2c: E2 [22:46:57]MH_I2C_Read... [22:46:57]Read from MH i2c: E2 0E 00 [22:46:57]MH_I2C_Read... [22:46:57]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 42 [22:46:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:46:57]wFMCommunicate OK [22:46:57]SAM_PROTO_GetShiftState done [22:46:57]FM_GetShiftState done [22:46:57]opened in 1729557463 [22:46:57]opened+sec_in_day 1729643863 [22:46:57]quantity*price = 199969 [22:46:57]sum+1 = 199970 [22:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 320 22.10.2024 22:46 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166565 ФПД: 195132486481591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166565&fm=195132486481591&tin=02508201610067®Number=0000000000091764&sum=199900 [22:46:59]StoreToDocumentArchive [22:46:59]shift 536 fd 166565 [22:46:59]save to /storage/0536/doc_00166565 [22:46:59]save last doc name /storage/0536/doc_00166565 to /storage/kkm_last_doc_name [22:46:59]save OK [22:46:59]Clear old archive folders... [22:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:59]tlvbuf is B6F4E6E0 [22:46:59]SAM_PROTO_ClearQueue [22:46:59]wFMCommunicate request_size=4 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 09 00 00 [22:46:59]Write to MH i2c: E2 08 00 68 17 80 09 00 00 00 00 00 00 F1 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [22:46:59]RAPDU: 90 00 [22:46:59]wFMCommunicate OK [22:46:59]SAM_PROTO_ClearQueue done [22:46:59]KKMCreateOFDPacket [22:46:59]OFDProtocolAddRootSTLVToBuf [22:46:59]FM_MakeSignedData [22:46:59]FM_MakeSignedData [22:46:59]SAM_PROTO_SignData [22:46:59]wFMCommunicate request_size=4 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 0D 01 02 [22:46:59]Write to MH i2c: E2 08 00 69 17 80 0D 01 02 00 00 00 00 F9 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [22:46:59]RAPDU: 90 00 [22:46:59]wFMCommunicate OK [22:46:59]wFMCommunicate request_size=255 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 63 2B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8A 02 00 35 04 06 00 B1 [22:46:59]Write to MH i2c: E2 02 01 6A 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 63 2B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8A 02 00 35 04 06 00 B1 00 00 5C [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [22:46:59]RAPDU: 90 00 [22:46:59]wFMCommunicate OK [22:46:59]wFMCommunicate request_size=10 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 0D 02 02 05 78 D2 8A 76 B7 [22:46:59]Write to MH i2c: E2 0D 00 6B 17 80 0D 02 02 05 00 78 D2 8A 76 B7 00 00 07 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [22:46:59]RAPDU: 90 00 [22:46:59]wFMCommunicate OK [22:46:59]wFMCommunicate request_size=4 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 0D 03 02 [22:46:59]Write to MH i2c: E2 08 00 6C 17 80 0D 03 02 00 00 00 00 FE [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 0B 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 0B 00 6C 17 00 CE 61 54 5E 2D 44 69 18 90 00 D2 [22:46:59]RAPDU: CE 61 54 5E 2D 44 69 18 90 00 [22:46:59]wFMCommunicate OK [22:46:59]SAM_PROTO_SignData done [22:46:59]FM_MakeSignedData done [22:46:59]CreateOFDProtocolMessage [22:46:59]wFMCommunicate request_size=4 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 11 00 00 [22:46:59]Write to MH i2c: E2 08 00 6D 17 80 11 00 00 00 00 00 00 FE [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 17 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 17 00 6D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [22:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:46:59]wFMCommunicate OK [22:46:59]CreateOFDProtocolMessage done [22:46:59]OFDSenderStorePacket 166565 [22:46:59]StoreOFDPacket docnum=166565 [22:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 2C 07 01 A0 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 63 2B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8A 02 00 35 04 06 00 B1 78 D2 8A 76 B7 CE 61 54 5E 2D 44 69 18 [22:46:59]CheckFolder [22:46:59]dirname=/storage/ofd_packets [22:46:59]CheckFolder done [22:46:59]ProducePacketName [22:46:59]name=ofd_packets/00166565 [22:46:59]NVStorageSaveData ofd_packets/00166565 [22:46:59]File name is /storage/ofd_packets/00166565 [22:46:59]Write 301 bytes [22:46:59]NVStorageSaveData done [22:46:59]OFDSenderStorePacket done [22:46:59]KKMCreateOFDPacket done [22:46:59]NVStorageSaveData kkm_last_timestamp [22:46:59]File name is /storage/kkm_last_timestamp [22:46:59]Write 4 bytes [22:46:59]NVStorageSaveData done [22:46:59]ExternCall_PrintAddStr [22:46:59]wPrintStart [22:46:59]Write to MH i2c: 01 00 00 6E 17 85 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: 01 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: 01 07 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [22:46:59]RasterBufferAndPrint [22:46:59]line Счет N : (1)221146 [22:46:59]line ИНН: 02508201610067 [22:46:59]line Контрольно-Кассовый Чек [22:46:59]line ПРОДАЖА [22:46:59]line ТРК (МРК, ГНК) : 14 [22:46:59]line Товар: 2710124500 [22:46:59]line Аи-95-К-5 [22:46:59]line 26.950 * 74.20 [22:46:59]line = 1999.69 [22:46:59]line НДС 12% НСП 1% [22:46:59]line > о реализуемом товаре [22:46:59]line ОКРУГЛЕНИЕ: -0.69 [22:46:59]line ИТОГО: 1999.00 [22:46:59]line Внесено: 2000.00 [22:46:59]line СДАЧА: 1.00 [22:46:59]line НСП 1% : 17.70 [22:46:59]line НДС 12% : 212.36 [22:46:59]line Наличными: 1999.00 [22:46:59]line Безнал.: 0.00 [22:46:59]line Место: АЗС № 161 "Партнер Нефть" [22:46:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:46:59]line СНО: Общий режим [22:46:59]line Чек 320 22.10.2024 22:46 [22:46:59]line Смена: 536 ФФД: 1.0 [22:46:59]line ЗНМ: 0300000104 [22:46:59]line РНМ: 0000000000091764 [22:46:59]line Версия ККМ: 001 [22:46:59]line ФМ: 0000000000871759 [22:46:59]line ФД: 166565 [22:46:59]line ФПД: 195132486481591 [22:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224659&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166565&fm=195132486481591&tin=02508201610067®Number=0000000000091764&sum=199900 [22:46:59]OFD Sender: Processing packet 166565 [packets to send 48, broken 47] [22:46:59]ProducePacketName [22:46:59]name=ofd_packets/00166565 [22:46:59]OFD Sender: To server: pG, [22:46:59]CommunicateWithHost lk.salyk.kg:30040 [22:46:59]ConnectInit lk.salyk.kg [22:46:59]written 0, free lines is 4095 [22:47:00]Connected sock=10 [22:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 2C 07 01 A0 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 63 2B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8A 02 00 35 04 06 00 B1 78 D2 8A 76 B7 CE 61 54 5E 2D 44 69 18 [22:47:00]Write to MH i2c: 01 00 00 99 17 B0 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: 01 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: 01 07 00 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 BF 0C 82 [22:47:00]RasterBufferAndPrint [22:47:00]line [22:47:00]line [22:47:00]line [22:47:00]line [22:47:00]line [22:47:00]written 0, free lines is 3268 [22:47:00]MH_Cut [22:47:00]Write to MH i2c: D1 01 00 A0 17 01 89 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: D1 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: D1 01 00 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: D1 01 00 A0 17 00 88 [22:47:00]Write to MH i2c: 01 00 00 A1 17 B8 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D8 71 47 00 0F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 8A 02 00 F4 03 04 00 CD D1 17 67 B6 04 01 00 00 06 80 92 86 91 DA BD BA [22:47:00]CommunicateWithHost err = 0 [22:47:00]CheckOFDResponse [22:47:00]1017 (14) - 77093643461234 [22:47:00]1041 (16) - 0000000000871759 [22:47:00]1040 (4) - 166565 [22:47:00]1012 (4) - 22.10.2024 16:24 [22:47:00]1206 (1) - 0 [22:47:00]OFD Sender: Remove packet 166565 [22:47:00]ProducePacketName [22:47:00]name=ofd_packets/00166565 [22:47:00]NVStorageDeleteData [22:47:01]OFD Sender: No OFD packet to send [22:47:01]*** Cut start [22:47:01]*** Partial cut [22:47:01]*** CUTSNS_PIN = 1 [22:47:01]*** CUTSNS_PIN = 0 [22:47:01]*** Brake cut motor [22:47:01]Read from MH i2c: 01 [22:47:01]MH_I2C_Read... [22:47:01]*** Stop cut motor [22:47:01]*** Cut end [22:47:01]Read from MH i2c: 01 07 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 FF 0F CD [22:47:01]process_action close_receipt done [22:47:01]requested_data is exist [22:47:01]produce_requested_data [22:47:01]requested_item fm.sn is exist - process it [22:47:01]wFMCommunicate request_size=4 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 11 00 00 [22:47:01]Write to MH i2c: E2 08 00 A2 17 80 11 00 00 00 00 00 00 33 [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 17 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 17 00 A2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [22:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:47:01]wFMCommunicate OK [22:47:01]requested_item fd.num is exist - process it [22:47:01]SAM_PROTO_GetFieldsCounters [22:47:01]wFMCommunicate request_size=4 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 13 00 00 [22:47:01]Write to MH i2c: E2 08 00 A3 17 80 13 00 00 00 00 00 00 36 [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 62 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 62 00 A3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [22:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:02]wFMCommunicate OK [22:47:02]SAM_PROTO_GetFieldsCounters done [22:47:02]requested_item shift.num is exist - process it [22:47:02]requested_item shift.opened is exist - process it [22:47:02]req_shift_opened [22:47:02]FM_GetShiftState [22:47:02]SAM_PROTO_GetShiftState [22:47:02]wFMCommunicate request_size=4 [22:47:02]MH_SAM_APDU [22:47:02]CAPDU: 80 13 01 00 [22:47:02]Write to MH i2c: E2 08 00 A4 17 80 13 01 00 00 00 00 00 38 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:02]Read from MH i2c: E2 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 0E 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: E2 0E 00 A4 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8B [22:47:02]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [22:47:02]wFMCommunicate OK [22:47:02]SAM_PROTO_GetShiftState done [22:47:02]FM_GetShiftState done [22:47:02]req_shift_opened done [22:47:02]requested_item shift.open_date is exist - process it [22:47:02]req_shift_open_date [22:47:02]req_shift_open_date done [22:47:02]produce_requested_data done [22:47:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166565,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [22:47:02]process_action_free close_receipt [22:47:02]json_value_free [22:47:02]json_value_free done [22:47:02]process_json_proto returns [22:47:02]Send response to host [22:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166565,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [22:47:02]free response buf [22:47:02]execute_script done [22:47:02]execute_script returns [22:47:02]free content buf [22:47:02]Sock 9.Close socket [22:47:02]Sock 9.Thread stoped [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:05:58]accept exits with 7 [23:05:58]New connection [23:05:58]New thread 3067489636 created [23:05:58]Thread 3067632996 joined [23:05:58]Waiting for new connection... [23:05:58] Sock 7.Parse request [23:05:58]Sock 7.Check first char [23:05:58]Sock 7.First char is OK [23:05:58]request: POST /json_proto HTTP/1.0 [23:05:58]Method: POST [23:05:58]URL: /json_proto [23:05:58]Method is POST - this is cgi request [23:05:58]url: /json_proto [23:05:58]query_string will be loaded in cgi processing [23:05:58]execute_cgi json_proto POST (null) [23:05:58]execute_cgi path=json_proto method=POST [23:05:58]POST find Content-Length [23:05:58]Host: 172.17.53.195:8080 [23:05:58]Content-Length: 798 [23:05:58]Content-Type: application/json [23:05:58] [23:05:58]POST finish read [23:05:58]Found Content-Length = 798 [23:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922375", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:58]execute_script... [23:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922375", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:58]POST & json_proto [23:05:58]process_json_proto [23:05:58]json parsed OK: [23:05:58]protocol is kg_v1.0 [23:05:58]action value=close_receipt [23:05:58]process_action close_receipt [23:05:58]cmd_close_receipt [23:05:58]MH_GetDate [23:05:58]Write to MH i2c: F0 00 00 A5 17 AB [23:05:58]Write i2c OK [23:05:58]MH_I2C_Read... [23:05:58]Read from MH i2c: F0 [23:05:58]MH_I2C_Read... [23:05:58]Read from MH i2c: F0 09 00 [23:05:58]MH_I2C_Read... [23:05:58]Read from MH i2c: F0 09 00 A5 17 00 D8 2F 18 67 21 48 4A 65 52 [23:05:58]GetLastDocTimeStamp 1729637219 [23:05:58]current date 1729638360 [23:05:58]FM_GetShiftState [23:05:58]SAM_PROTO_GetShiftState [23:05:58]wFMCommunicate request_size=4 [23:05:58]MH_SAM_APDU [23:05:58]CAPDU: 80 13 01 00 [23:05:58]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [23:05:58]Write i2c OK [23:05:58]MH_I2C_Read... [23:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:58]Read from MH i2c: E2 [23:05:58]MH_I2C_Read... [23:05:58]Read from MH i2c: E2 0E 00 [23:05:58]MH_I2C_Read... [23:05:58]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8D [23:05:58]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:05:58]wFMCommunicate OK [23:05:58]SAM_PROTO_GetShiftState done [23:05:58]FM_GetShiftState done [23:05:58]opened in 1729557463 [23:05:58]opened+sec_in_day 1729643863 [23:05:58]quantity*price = 0 [23:05:58]sum+1 = 1 [23:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 321 22.10.2024 23:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4922375 ФМ: 0000000000871759 ФД: 166566 ФПД: 176751805125983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166566&fm=176751805125983&tin=02508201610067®Number=0000000000091764&sum=0 [23:05:59]StoreToDocumentArchive [23:05:59]shift 536 fd 166566 [23:05:59]save to /storage/0536/doc_00166566 [23:05:59]save last doc name /storage/0536/doc_00166566 to /storage/kkm_last_doc_name [23:05:59]save OK [23:05:59]Clear old archive folders... [23:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:05:59]tlvbuf is 011F0E40 [23:05:59]SAM_PROTO_ClearQueue [23:05:59]wFMCommunicate request_size=4 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 09 00 00 [23:05:59]Write to MH i2c: E2 08 00 B3 17 80 09 00 00 00 00 00 00 3C [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [23:05:59]RAPDU: 90 00 [23:05:59]wFMCommunicate OK [23:05:59]SAM_PROTO_ClearQueue done [23:05:59]KKMCreateOFDPacket [23:05:59]OFDProtocolAddRootSTLVToBuf [23:05:59]FM_MakeSignedData [23:05:59]FM_MakeSignedData [23:05:59]SAM_PROTO_SignData [23:05:59]wFMCommunicate request_size=4 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 0D 01 02 [23:05:59]Write to MH i2c: E2 08 00 B4 17 80 0D 01 02 00 00 00 00 44 [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [23:05:59]RAPDU: 90 00 [23:05:59]wFMCommunicate OK [23:05:59]wFMCommunicate request_size=255 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D8 2F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8A 02 00 35 04 06 00 A0 C1 3C 8E [23:05:59]Write to MH i2c: E2 02 01 B5 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D8 2F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8A 02 00 35 04 06 00 A0 C1 3C 8E 00 00 0E [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [23:05:59]RAPDU: 90 00 [23:05:59]wFMCommunicate OK [23:05:59]wFMCommunicate request_size=7 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 0D 02 02 02 D5 5F [23:05:59]Write to MH i2c: E2 0A 00 B6 17 80 0D 02 02 02 00 D5 5F 00 00 7F [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [23:05:59]RAPDU: 90 00 [23:05:59]wFMCommunicate OK [23:05:59]wFMCommunicate request_size=4 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 0D 03 02 [23:05:59]Write to MH i2c: E2 08 00 B7 17 80 0D 03 02 00 00 00 00 49 [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 0B 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 0B 00 B7 17 00 40 A8 7D D7 95 E6 39 1A 90 00 54 [23:05:59]RAPDU: 40 A8 7D D7 95 E6 39 1A 90 00 [23:05:59]wFMCommunicate OK [23:05:59]SAM_PROTO_SignData done [23:05:59]FM_MakeSignedData done [23:05:59]CreateOFDProtocolMessage [23:05:59]wFMCommunicate request_size=4 [23:05:59]MH_SAM_APDU [23:05:59]CAPDU: 80 11 00 00 [23:05:59]Write to MH i2c: E2 08 00 B8 17 80 11 00 00 00 00 00 00 49 [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:59]Read from MH i2c: E2 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 17 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: E2 17 00 B8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [23:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:05:59]wFMCommunicate OK [23:05:59]CreateOFDProtocolMessage done [23:05:59]OFDSenderStorePacket 166566 [23:05:59]StoreOFDPacket docnum=166566 [23:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 25 04 01 6C EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D8 2F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8A 02 00 35 04 06 00 A0 C1 3C 8E D5 5F 40 A8 7D D7 95 E6 39 1A [23:05:59]CheckFolder [23:05:59]dirname=/storage/ofd_packets [23:05:59]CheckFolder done [23:05:59]ProducePacketName [23:05:59]name=ofd_packets/00166566 [23:05:59]NVStorageSaveData ofd_packets/00166566 [23:05:59]File name is /storage/ofd_packets/00166566 [23:05:59]Write 298 bytes [23:05:59]NVStorageSaveData done [23:05:59]OFDSenderStorePacket done [23:05:59]KKMCreateOFDPacket done [23:05:59]NVStorageSaveData kkm_last_timestamp [23:05:59]File name is /storage/kkm_last_timestamp [23:05:59]Write 4 bytes [23:05:59]NVStorageSaveData done [23:05:59]ExternCall_PrintAddStr [23:05:59]wPrintStart [23:05:59]Write to MH i2c: 01 00 00 B9 17 D0 [23:05:59]Write i2c OK [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: 01 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: 01 07 00 [23:05:59]MH_I2C_Read... [23:05:59]Read from MH i2c: 01 07 00 B9 17 00 00 00 00 00 FF 0F E5 [23:05:59]RasterBufferAndPrint [23:05:59]line Счет N : (1)221148 [23:05:59]line ИНН: 02508201610067 [23:05:59]line Контрольно-Кассовый Чек [23:05:59]line ПРОДАЖА [23:05:59]line ТРК (МРК, ГНК) : 11 [23:05:59]line Товар: 2710194210 [23:05:59]line ДТ-К-5 [23:05:59]line 100.000 * 0.00 [23:05:59]line = 0.00 [23:05:59]line НДС 12% НСП 1% [23:05:59]line > о реализуемом товаре [23:05:59]line ИТОГО: 0.00 [23:05:59]line НСП 1% : 0.00 [23:05:59]line НДС 12% : 0.00 [23:05:59]line Наличными: 0.00 [23:05:59]line Безнал.: 0.00 [23:05:59]line Место: АЗС № 161 "Партнер Нефть" [23:05:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:05:59]line СНО: Общий режим [23:05:59]line Чек 321 22.10.2024 23:06 [23:05:59]line Смена: 536 ФФД: 1.0 [23:05:59]line ЗНМ: 0300000104 [23:05:59]line РНМ: 0000000000091764 [23:05:59]line Версия ККМ: 001 [23:05:59]line Талоны: Топливные Талоны [23:05:59]line 4922375 [23:05:59]line ФМ: 0000000000871759 [23:05:59]line ФД: 166566 [23:05:59]line ФПД: 176751805125983 [23:05:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166566&fm=176751805125983&tin=02508201610067®Number=0000000000091764&sum=0 [23:06:00]OFD Sender: Processing packet 166566 [packets to send 48, broken 47] [23:06:00]ProducePacketName [23:06:00]name=ofd_packets/00166566 [23:06:00]OFD Sender: To server: pG, [23:06:00]CommunicateWithHost lk.salyk.kg:30040 [23:06:00]ConnectInit lk.salyk.kg [23:06:00]written 0, free lines is 4095 [23:06:00]Connected sock=10 [23:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 25 04 01 6C EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D8 2F 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8A 02 00 35 04 06 00 A0 C1 3C 8E D5 5F 40 A8 7D D7 95 E6 39 1A [23:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3D FD 47 00 29 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 8A 02 00 F4 03 04 00 41 D6 17 67 B6 04 01 00 00 7F 0F B8 A4 ED 5A D6 AB [23:06:00]CommunicateWithHost err = 0 [23:06:00]CheckOFDResponse [23:06:00]1017 (14) - 77093643461234 [23:06:00]1041 (16) - 0000000000871759 [23:06:00]1040 (4) - 166566 [23:06:00]1012 (4) - 22.10.2024 16:43 [23:06:00]1206 (1) - 0 [23:06:00]OFD Sender: Remove packet 166566 [23:06:00]ProducePacketName [23:06:00]name=ofd_packets/00166566 [23:06:00]NVStorageDeleteData [23:06:00]Write to MH i2c: 01 00 00 E3 17 FA [23:06:00]Write i2c OK [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: 01 [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: 01 07 00 [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 B6 0C C3 [23:06:00]RasterBufferAndPrint [23:06:00]line [23:06:00]line [23:06:00]line [23:06:00]line [23:06:00]line [23:06:00]written 0, free lines is 3258 [23:06:00]MH_Cut [23:06:00]Write to MH i2c: D1 01 00 EA 17 01 D3 [23:06:00]Write i2c OK [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: D1 [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: D1 01 00 [23:06:00]MH_I2C_Read... [23:06:00]Read from MH i2c: D1 01 00 EA 17 00 D2 [23:06:00]Write to MH i2c: 01 00 00 EB 17 02 [23:06:00]Write i2c OK [23:06:00]MH_I2C_Read... [23:06:01]OFD Sender: No OFD packet to send [23:06:01]*** Cut start [23:06:01]*** Partial cut [23:06:01]*** CUTSNS_PIN = 1 [23:06:01]*** CUTSNS_PIN = 0 [23:06:01]*** Brake cut motor [23:06:02]Read from MH i2c: 01 [23:06:02]MH_I2C_Read... [23:06:02]*** Stop cut motor [23:06:02]*** Cut end [23:06:02]Read from MH i2c: 01 07 00 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 FF 0F 17 [23:06:02]process_action close_receipt done [23:06:02]requested_data is exist [23:06:02]produce_requested_data [23:06:02]requested_item fm.sn is exist - process it [23:06:02]wFMCommunicate request_size=4 [23:06:02]MH_SAM_APDU [23:06:02]CAPDU: 80 11 00 00 [23:06:02]Write to MH i2c: E2 08 00 EC 17 80 11 00 00 00 00 00 00 7D [23:06:02]Write i2c OK [23:06:02]MH_I2C_Read... [23:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:02]Read from MH i2c: E2 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 17 00 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 17 00 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [23:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:06:02]wFMCommunicate OK [23:06:02]requested_item fd.num is exist - process it [23:06:02]SAM_PROTO_GetFieldsCounters [23:06:02]wFMCommunicate request_size=4 [23:06:02]MH_SAM_APDU [23:06:02]CAPDU: 80 13 00 00 [23:06:02]Write to MH i2c: E2 08 00 ED 17 80 13 00 00 00 00 00 00 80 [23:06:02]Write i2c OK [23:06:02]MH_I2C_Read... [23:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:02]Read from MH i2c: E2 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 62 00 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 62 00 ED 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [23:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:02]wFMCommunicate OK [23:06:02]SAM_PROTO_GetFieldsCounters done [23:06:02]requested_item shift.num is exist - process it [23:06:02]requested_item shift.opened is exist - process it [23:06:02]req_shift_opened [23:06:02]FM_GetShiftState [23:06:02]SAM_PROTO_GetShiftState [23:06:02]wFMCommunicate request_size=4 [23:06:02]MH_SAM_APDU [23:06:02]CAPDU: 80 13 01 00 [23:06:02]Write to MH i2c: E2 08 00 EE 17 80 13 01 00 00 00 00 00 82 [23:06:02]Write i2c OK [23:06:02]MH_I2C_Read... [23:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:02]Read from MH i2c: E2 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 0E 00 [23:06:02]MH_I2C_Read... [23:06:02]Read from MH i2c: E2 0E 00 EE 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D5 [23:06:02]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:06:02]wFMCommunicate OK [23:06:02]SAM_PROTO_GetShiftState done [23:06:02]FM_GetShiftState done [23:06:02]req_shift_opened done [23:06:02]requested_item shift.open_date is exist - process it [23:06:02]req_shift_open_date [23:06:02]req_shift_open_date done [23:06:02]produce_requested_data done [23:06:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166566,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:06:02]process_action_free close_receipt [23:06:02]json_value_free [23:06:02]json_value_free done [23:06:02]process_json_proto returns [23:06:02]Send response to host [23:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166566,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:06:02]free response buf [23:06:02]execute_script done [23:06:02]execute_script returns [23:06:02]free content buf [23:06:02]Sock 7.Close socket [23:06:02]Sock 7.Thread stoped [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:53]accept exits with 9 [23:06:53]New connection [23:06:53]New thread 3067632996 created [23:06:53]Thread 3067489636 joined [23:06:53]Waiting for new connection... [23:06:53] Sock 9.Parse request [23:06:53]Sock 9.Check first char [23:06:53]Sock 9.First char is OK [23:06:53]request: POST /json_proto HTTP/1.0 [23:06:53]Method: POST [23:06:53]URL: /json_proto [23:06:53]Method is POST - this is cgi request [23:06:53]url: /json_proto [23:06:53]query_string will be loaded in cgi processing [23:06:53]execute_cgi json_proto POST (null) [23:06:53]execute_cgi path=json_proto method=POST [23:06:53]POST find Content-Length [23:06:53]Host: 172.17.53.195:8080 [23:06:53]Content-Length: 798 [23:06:53]Content-Type: application/json [23:06:53] [23:06:53]POST finish read [23:06:53]Found Content-Length = 798 [23:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 400.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922376", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:53]execute_script... [23:06:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 400.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4922376", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:53]POST & json_proto [23:06:53]process_json_proto [23:06:53]json parsed OK: [23:06:53]protocol is kg_v1.0 [23:06:53]action value=close_receipt [23:06:53]process_action close_receipt [23:06:53]cmd_close_receipt [23:06:53]MH_GetDate [23:06:53]Write to MH i2c: F0 00 00 EF 17 F5 [23:06:53]Write i2c OK [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: F0 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: F0 09 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: F0 09 00 EF 17 00 0E 30 18 67 21 48 4A 65 D3 [23:06:53]GetLastDocTimeStamp 1729638360 [23:06:53]current date 1729638414 [23:06:53]FM_GetShiftState [23:06:53]SAM_PROTO_GetShiftState [23:06:53]wFMCommunicate request_size=4 [23:06:53]MH_SAM_APDU [23:06:53]CAPDU: 80 13 01 00 [23:06:53]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [23:06:53]Write i2c OK [23:06:53]MH_I2C_Read... [23:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:53]Read from MH i2c: E2 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 0E 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D7 [23:06:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:06:53]wFMCommunicate OK [23:06:53]SAM_PROTO_GetShiftState done [23:06:53]FM_GetShiftState done [23:06:53]opened in 1729557463 [23:06:53]opened+sec_in_day 1729643863 [23:06:53]quantity*price = 0 [23:06:53]sum+1 = 1 [23:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 322 22.10.2024 23:06 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4922376 ФМ: 0000000000871759 ФД: 166567 ФПД: 126276630481072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166567&fm=126276630481072&tin=02508201610067®Number=0000000000091764&sum=0 [23:06:54]StoreToDocumentArchive [23:06:54]shift 536 fd 166567 [23:06:54]save to /storage/0536/doc_00166567 [23:06:54]save last doc name /storage/0536/doc_00166567 to /storage/kkm_last_doc_name [23:06:54]save OK [23:06:54]Clear old archive folders... [23:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:06:54]tlvbuf is 0129AEB0 [23:06:54]SAM_PROTO_ClearQueue [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 09 00 00 [23:06:54]Write to MH i2c: E2 08 00 FD 17 80 09 00 00 00 00 00 00 86 [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [23:06:54]RAPDU: 90 00 [23:06:54]wFMCommunicate OK [23:06:54]SAM_PROTO_ClearQueue done [23:06:54]KKMCreateOFDPacket [23:06:54]OFDProtocolAddRootSTLVToBuf [23:06:54]FM_MakeSignedData [23:06:54]FM_MakeSignedData [23:06:54]SAM_PROTO_SignData [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 0D 01 02 [23:06:54]Write to MH i2c: E2 08 00 FE 17 80 0D 01 02 00 00 00 00 8E [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [23:06:54]RAPDU: 90 00 [23:06:54]wFMCommunicate OK [23:06:54]wFMCommunicate request_size=255 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 0E 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8A 02 00 35 04 06 00 72 D9 11 B4 [23:06:54]Write to MH i2c: E2 02 01 FF 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 0E 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8A 02 00 35 04 06 00 72 D9 11 B4 00 00 EF [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [23:06:54]RAPDU: 90 00 [23:06:54]wFMCommunicate OK [23:06:54]wFMCommunicate request_size=7 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 0D 02 02 02 08 B0 [23:06:54]Write to MH i2c: E2 0A 00 00 18 80 0D 02 02 02 00 08 B0 00 00 4E [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [23:06:54]RAPDU: 90 00 [23:06:54]wFMCommunicate OK [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 0D 03 02 [23:06:54]Write to MH i2c: E2 08 00 01 18 80 0D 03 02 00 00 00 00 94 [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 0B 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 0B 00 01 18 00 5B 7C E5 85 B1 4A B0 62 90 00 E3 [23:06:54]RAPDU: 5B 7C E5 85 B1 4A B0 62 90 00 [23:06:54]wFMCommunicate OK [23:06:54]SAM_PROTO_SignData done [23:06:54]FM_MakeSignedData done [23:06:54]CreateOFDProtocolMessage [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 11 00 00 [23:06:54]Write to MH i2c: E2 08 00 02 18 80 11 00 00 00 00 00 00 94 [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 17 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 17 00 02 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [23:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:06:54]wFMCommunicate OK [23:06:54]CreateOFDProtocolMessage done [23:06:54]OFDSenderStorePacket 166567 [23:06:54]StoreOFDPacket docnum=166567 [23:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A2 31 04 01 6A B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 0E 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8A 02 00 35 04 06 00 72 D9 11 B4 08 B0 5B 7C E5 85 B1 4A B0 62 [23:06:54]CheckFolder [23:06:54]dirname=/storage/ofd_packets [23:06:54]CheckFolder done [23:06:54]ProducePacketName [23:06:54]name=ofd_packets/00166567 [23:06:54]NVStorageSaveData ofd_packets/00166567 [23:06:54]File name is /storage/ofd_packets/00166567 [23:06:54]Write 298 bytes [23:06:54]NVStorageSaveData done [23:06:54]OFDSenderStorePacket done [23:06:54]KKMCreateOFDPacket done [23:06:54]NVStorageSaveData kkm_last_timestamp [23:06:54]File name is /storage/kkm_last_timestamp [23:06:54]Write 4 bytes [23:06:54]NVStorageSaveData done [23:06:54]ExternCall_PrintAddStr [23:06:54]wPrintStart [23:06:54]Write to MH i2c: 01 00 00 03 18 1B [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 07 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [23:06:54]RasterBufferAndPrint [23:06:54]line Счет N : (1)221147 [23:06:54]line ИНН: 02508201610067 [23:06:54]line Контрольно-Кассовый Чек [23:06:54]line ПРОДАЖА [23:06:54]line ТРК (МРК, ГНК) : 21 [23:06:54]line Товар: 2710194210 [23:06:54]line ДТ-К-5 [23:06:54]line 400.000 * 0.00 [23:06:54]line = 0.00 [23:06:54]line НДС 12% НСП 1% [23:06:54]line > о реализуемом товаре [23:06:54]line ИТОГО: 0.00 [23:06:54]line НСП 1% : 0.00 [23:06:54]line НДС 12% : 0.00 [23:06:54]line Наличными: 0.00 [23:06:54]line Безнал.: 0.00 [23:06:54]line Место: АЗС № 161 "Партнер Нефть" [23:06:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:06:54]line СНО: Общий режим [23:06:54]line Чек 322 22.10.2024 23:06 [23:06:54]line Смена: 536 ФФД: 1.0 [23:06:54]line ЗНМ: 0300000104 [23:06:54]line РНМ: 0000000000091764 [23:06:54]line Версия ККМ: 001 [23:06:54]line Талоны: Топливные Талоны [23:06:54]line 4922376 [23:06:54]line ФМ: 0000000000871759 [23:06:54]line ФД: 166567 [23:06:54]line ФПД: 126276630481072 [23:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T230654&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166567&fm=126276630481072&tin=02508201610067®Number=0000000000091764&sum=0 [23:06:55]OFD Sender: Processing packet 166567 [packets to send 48, broken 47] [23:06:55]ProducePacketName [23:06:55]name=ofd_packets/00166567 [23:06:55]OFD Sender: To server: pG, [23:06:55]CommunicateWithHost lk.salyk.kg:30040 [23:06:55]ConnectInit lk.salyk.kg [23:06:55]written 0, free lines is 4095 [23:06:55]Connected sock=10 [23:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A2 31 04 01 6A B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 1A 06 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 0E 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8A 02 00 35 04 06 00 72 D9 11 B4 08 B0 5B 7C E5 85 B1 4A B0 62 [23:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 2E 47 00 F1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 8A 02 00 F4 03 04 00 78 D6 17 67 B6 04 01 00 00 5C DA 4C 25 1F B7 4F 20 [23:06:55]CommunicateWithHost err = 0 [23:06:55]CheckOFDResponse [23:06:55]1017 (14) - 77093643461234 [23:06:55]1041 (16) - 0000000000871759 [23:06:55]1040 (4) - 166567 [23:06:55]1012 (4) - 22.10.2024 16:44 [23:06:55]1206 (1) - 0 [23:06:55]OFD Sender: Remove packet 166567 [23:06:55]ProducePacketName [23:06:55]name=ofd_packets/00166567 [23:06:55]NVStorageDeleteData [23:06:55]Write to MH i2c: 01 00 00 2D 18 45 [23:06:55]Write i2c OK [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: 01 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: 01 07 00 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 B8 0C 10 [23:06:55]RasterBufferAndPrint [23:06:55]line [23:06:55]line [23:06:55]line [23:06:55]line [23:06:55]line [23:06:55]written 0, free lines is 3261 [23:06:55]MH_Cut [23:06:55]Write to MH i2c: D1 01 00 34 18 01 1E [23:06:55]Write i2c OK [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: D1 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: D1 01 00 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: D1 01 00 34 18 00 1D [23:06:55]Write to MH i2c: 01 00 00 35 18 4D [23:06:55]Write i2c OK [23:06:55]MH_I2C_Read... [23:06:55]OFD Sender: No OFD packet to send [23:06:56]*** Cut start [23:06:56]*** Partial cut [23:06:56]*** CUTSNS_PIN = 1 [23:06:56]*** CUTSNS_PIN = 0 [23:06:56]*** Brake cut motor [23:06:57]Read from MH i2c: 01 [23:06:57]MH_I2C_Read... [23:06:57]*** Stop cut motor [23:06:57]*** Cut end [23:06:57]Read from MH i2c: 01 07 00 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: 01 07 00 35 18 00 00 00 00 00 FF 0F 62 [23:06:57]process_action close_receipt done [23:06:57]requested_data is exist [23:06:57]produce_requested_data [23:06:57]requested_item fm.sn is exist - process it [23:06:57]wFMCommunicate request_size=4 [23:06:57]MH_SAM_APDU [23:06:57]CAPDU: 80 11 00 00 [23:06:57]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [23:06:57]Write i2c OK [23:06:57]MH_I2C_Read... [23:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:57]Read from MH i2c: E2 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 17 00 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [23:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:06:57]wFMCommunicate OK [23:06:57]requested_item fd.num is exist - process it [23:06:57]SAM_PROTO_GetFieldsCounters [23:06:57]wFMCommunicate request_size=4 [23:06:57]MH_SAM_APDU [23:06:57]CAPDU: 80 13 00 00 [23:06:57]Write to MH i2c: E2 08 00 37 18 80 13 00 00 00 00 00 00 CB [23:06:57]Write i2c OK [23:06:57]MH_I2C_Read... [23:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:57]Read from MH i2c: E2 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 62 00 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 62 00 37 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [23:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:57]wFMCommunicate OK [23:06:57]SAM_PROTO_GetFieldsCounters done [23:06:57]requested_item shift.num is exist - process it [23:06:57]requested_item shift.opened is exist - process it [23:06:57]req_shift_opened [23:06:57]FM_GetShiftState [23:06:57]SAM_PROTO_GetShiftState [23:06:57]wFMCommunicate request_size=4 [23:06:57]MH_SAM_APDU [23:06:57]CAPDU: 80 13 01 00 [23:06:57]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [23:06:57]Write i2c OK [23:06:57]MH_I2C_Read... [23:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:57]Read from MH i2c: E2 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 0E 00 [23:06:57]MH_I2C_Read... [23:06:57]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 20 [23:06:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:06:57]wFMCommunicate OK [23:06:57]SAM_PROTO_GetShiftState done [23:06:57]FM_GetShiftState done [23:06:57]req_shift_opened done [23:06:57]requested_item shift.open_date is exist - process it [23:06:57]req_shift_open_date [23:06:57]req_shift_open_date done [23:06:57]produce_requested_data done [23:06:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166567,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:06:57]process_action_free close_receipt [23:06:57]json_value_free [23:06:57]json_value_free done [23:06:57]process_json_proto returns [23:06:57]Send response to host [23:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166567,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:06:57]free response buf [23:06:57]execute_script done [23:06:57]execute_script returns [23:06:57]free content buf [23:06:57]Sock 9.Close socket [23:06:57]Sock 9.Thread stoped [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:09]accept exits with 7 [23:08:09]New connection [23:08:09]New thread 3067489636 created [23:08:09]Thread 3067632996 joined [23:08:09]Waiting for new connection... [23:08:09] Sock 7.Parse request [23:08:09]Sock 7.Check first char [23:08:09]Sock 7.First char is OK [23:08:09]request: POST /json_proto HTTP/1.0 [23:08:09]Method: POST [23:08:09]URL: /json_proto [23:08:09]Method is POST - this is cgi request [23:08:09]url: /json_proto [23:08:09]query_string will be loaded in cgi processing [23:08:09]execute_cgi json_proto POST (null) [23:08:09]execute_cgi path=json_proto method=POST [23:08:09]POST find Content-Length [23:08:09]Host: 172.17.53.195:8080 [23:08:09]Content-Length: 215 [23:08:09]Content-Type: application/json [23:08:09] [23:08:09]POST finish read [23:08:09]Found Content-Length = 215 [23:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:09]execute_script... [23:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:09]POST & json_proto [23:08:09]process_json_proto [23:08:09]json parsed OK: [23:08:09]protocol is kg_v1.0 [23:08:09]action value=get_value [23:08:09]process_action get_value [23:08:09]cmd_get_value [23:08:09]process_action get_value done [23:08:09]requested_data is exist [23:08:09]produce_requested_data [23:08:09]requested_item kkm.sn is exist - process it [23:08:09]requested_item kkm.ver is exist - process it [23:08:09]requested_item fm.sn is exist - process it [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 11 00 00 [23:08:09]Write to MH i2c: E2 08 00 39 18 80 11 00 00 00 00 00 00 CB [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 17 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 17 00 39 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [23:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:08:09]wFMCommunicate OK [23:08:09]requested_item fd.num is exist - process it [23:08:09]SAM_PROTO_GetFieldsCounters [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 13 00 00 [23:08:09]Write to MH i2c: E2 08 00 3A 18 80 13 00 00 00 00 00 00 CE [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 62 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 62 00 3A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_GetFieldsCounters done [23:08:09]requested_item shift.num is exist - process it [23:08:09]requested_item shift.opened is exist - process it [23:08:09]req_shift_opened [23:08:09]FM_GetShiftState [23:08:09]SAM_PROTO_GetShiftState [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 13 01 00 [23:08:09]Write to MH i2c: E2 08 00 3B 18 80 13 01 00 00 00 00 00 D0 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0E 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0E 00 3B 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 23 [23:08:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_GetShiftState done [23:08:09]FM_GetShiftState done [23:08:09]req_shift_opened done [23:08:09]requested_item shift.open_date is exist - process it [23:08:09]req_shift_open_date [23:08:09]req_shift_open_date done [23:08:09]produce_requested_data done [23:08:09]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166567,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:08:09]process_action_free get_value [23:08:09]json_value_free [23:08:09]json_value_free done [23:08:09]process_json_proto returns [23:08:09]Send response to host [23:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166567,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:08:09]free response buf [23:08:09]execute_script done [23:08:09]execute_script returns [23:08:09]free content buf [23:08:09]Sock 7.Close socket [23:08:09]Sock 7.Thread stoped [23:08:09]accept exits with 9 [23:08:09]New connection [23:08:09]New thread 3067632996 created [23:08:09]Thread 3067489636 joined [23:08:09]Waiting for new connection... [23:08:09] Sock 9.Parse request [23:08:09]Sock 9.Check first char [23:08:09]Sock 9.First char is OK [23:08:09]request: POST /json_proto HTTP/1.0 [23:08:09]Method: POST [23:08:09]URL: /json_proto [23:08:09]Method is POST - this is cgi request [23:08:09]url: /json_proto [23:08:09]query_string will be loaded in cgi processing [23:08:09]execute_cgi json_proto POST (null) [23:08:09]execute_cgi path=json_proto method=POST [23:08:09]POST find Content-Length [23:08:09]Host: 172.17.53.195:8080 [23:08:09]Content-Length: 331 [23:08:09]Content-Type: application/json [23:08:09] [23:08:09]POST finish read [23:08:09]Found Content-Length = 331 [23:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:08:09]execute_script... [23:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:08:09]POST & json_proto [23:08:09]process_json_proto [23:08:09]json parsed OK: [23:08:09]protocol is kg_v1.0 [23:08:09]action value=get_value [23:08:09]process_action get_value [23:08:09]cmd_get_value [23:08:09]process_action get_value done [23:08:09]requested_data is exist [23:08:09]produce_requested_data [23:08:09]requested_item fm.sale.total is exist - process it [23:08:09]SAM_PROTO_GetFMData [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 13 03 00 [23:08:09]Write to MH i2c: E2 08 00 3C 18 80 13 03 00 00 00 00 00 D3 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:08:10]Read from MH i2c: E2 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 3C 18 00 C5 04 85 04 C1 04 6E 04 04 00 77 86 02 00 69 04 A3 00 6F 04 04 00 78 85 02 00 B1 04 05 00 15 69 45 B4 03 70 04 05 00 B8 6A 46 2A 03 72 04 04 00 5D FE FE 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AF 72 BE 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 96 1B 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 C1 [23:08:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 77 86 02 00 69 04 A3 00 6F 04 04 00 78 85 02 00 B1 04 05 00 15 69 45 B4 03 70 04 05 00 B8 6A 46 2A 03 72 04 04 00 5D FE FE 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AF 72 BE 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 96 1B 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [23:08:10]wFMCommunicate OK [23:08:10]wFMCommunicate request_size=4 [23:08:10]MH_SAM_APDU [23:08:10]CAPDU: 80 17 00 00 [23:08:10]Write to MH i2c: E2 08 00 3D 18 80 17 00 00 00 00 00 00 D5 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:10]Read from MH i2c: E2 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 3D 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A1 [23:08:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:08:10]wFMCommunicate OK [23:08:10]wFMCommunicate request_size=4 [23:08:10]MH_SAM_APDU [23:08:10]CAPDU: 80 17 00 00 [23:08:10]Write to MH i2c: E2 08 00 3E 18 80 17 00 00 00 00 00 00 D6 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:10]Read from MH i2c: E2 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 [23:08:10]MH_I2C_Read... [23:08:10]Read from MH i2c: E2 FD 00 3E 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E8 [23:08:10]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:08:10]wFMCommunicate OK [23:08:10]wFMCommunicate request_size=4 [23:08:10]MH_SAM_APDU [23:08:10]CAPDU: 80 17 00 00 [23:08:10]Write to MH i2c: E2 08 00 3F 18 80 17 00 00 00 00 00 00 D7 [23:08:10]Write i2c OK [23:08:10]MH_I2C_Read... [23:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:11]Read from MH i2c: E2 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 FD 00 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 FD 00 3F 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 63 [23:08:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:08:11]wFMCommunicate OK [23:08:11]wFMCommunicate request_size=4 [23:08:11]MH_SAM_APDU [23:08:11]CAPDU: 80 17 00 00 [23:08:11]Write to MH i2c: E2 08 00 40 18 80 17 00 00 00 00 00 00 D8 [23:08:11]OFD Sender: No OFD packet to send [23:08:11]Write i2c OK [23:08:11]MH_I2C_Read... [23:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:08:11]Read from MH i2c: E2 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 E2 00 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 E2 00 40 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B6 [23:08:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:08:11]wFMCommunicate OK [23:08:11]SAM_PROTO_GetFMData done [23:08:11]requested_item fm.sale_refund.total is exist - process it [23:08:11]requested_item fm.buy.total is exist - process it [23:08:11]requested_item shift.sale.total is exist - process it [23:08:11]SAM_PROTO_GetShiftData [23:08:11]wFMCommunicate request_size=4 [23:08:11]MH_SAM_APDU [23:08:11]CAPDU: 80 13 02 00 [23:08:11]Write to MH i2c: E2 08 00 41 18 80 13 02 00 00 00 00 00 D7 [23:08:11]Write i2c OK [23:08:11]MH_I2C_Read... [23:08:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:08:11]Read from MH i2c: E2 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 FD 00 [23:08:11]MH_I2C_Read... [23:08:11]Read from MH i2c: E2 FD 00 41 18 00 B1 04 AA 04 AD 04 6E 04 04 00 42 01 00 00 69 04 9E 00 6F 04 04 00 42 01 00 00 B1 04 04 00 61 9A D0 01 70 04 04 00 A0 FC 75 01 72 04 03 00 C1 9D 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5C 5A 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D1 1C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A2 [23:08:11]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 42 01 00 00 69 04 9E 00 6F 04 04 00 42 01 00 00 B1 04 04 00 61 9A D0 01 70 04 04 00 A0 FC 75 01 72 04 03 00 C1 9D 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5C 5A 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D1 1C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:08:11]wFMCommunicate OK [23:08:11]wFMCommunicate request_size=4 [23:08:11]MH_SAM_APDU [23:08:11]CAPDU: 80 17 00 00 [23:08:11]Write to MH i2c: E2 08 00 42 18 80 17 00 00 00 00 00 00 DA [23:08:11]Write i2c OK [23:08:11]MH_I2C_Read... [23:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:12]Read from MH i2c: E2 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 42 18 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 F3 [23:08:12]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [23:08:12]wFMCommunicate OK [23:08:12]wFMCommunicate request_size=4 [23:08:12]MH_SAM_APDU [23:08:12]CAPDU: 80 17 00 00 [23:08:12]Write to MH i2c: E2 08 00 43 18 80 17 00 00 00 00 00 00 DB [23:08:12]Write i2c OK [23:08:12]MH_I2C_Read... [23:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:12]Read from MH i2c: E2 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 43 18 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 94 [23:08:12]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:08:12]wFMCommunicate OK [23:08:12]wFMCommunicate request_size=4 [23:08:12]MH_SAM_APDU [23:08:12]CAPDU: 80 17 00 00 [23:08:12]Write to MH i2c: E2 08 00 44 18 80 17 00 00 00 00 00 00 DC [23:08:12]Write i2c OK [23:08:12]MH_I2C_Read... [23:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:08:12]Read from MH i2c: E2 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 FD 00 44 18 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 54 [23:08:12]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:08:12]wFMCommunicate OK [23:08:12]wFMCommunicate request_size=4 [23:08:12]MH_SAM_APDU [23:08:12]CAPDU: 80 17 00 00 [23:08:12]Write to MH i2c: E2 08 00 45 18 80 17 00 00 00 00 00 00 DD [23:08:12]Write i2c OK [23:08:12]MH_I2C_Read... [23:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:08:12]Read from MH i2c: E2 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 CE 00 [23:08:12]MH_I2C_Read... [23:08:12]Read from MH i2c: E2 CE 00 45 18 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C2 [23:08:12]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:08:13]wFMCommunicate OK [23:08:13]SAM_PROTO_GetShiftData done [23:08:13]requested_item shift.sale.total_cash is exist - process it [23:08:13]requested_item shift.sale_refund.total is exist - process it [23:08:13]requested_item shift.sale_refund.total_cash is exist - process it [23:08:13]requested_item shift.buy.total is exist - process it [23:08:13]requested_item shift.buy.total_cash is exist - process it [23:08:13]produce_requested_data done [23:08:13]produce_requested_data return {"fm.sale.total":159093496.53,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":304482.25,"shift.sale.total_cash":245096.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:08:13]process_action_free get_value [23:08:13]json_value_free [23:08:13]json_value_free done [23:08:13]process_json_proto returns [23:08:13]Send response to host [23:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159093496.53,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":304482.25,"shift.sale.total_cash":245096.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:08:13]free response buf [23:08:13]execute_script done [23:08:13]execute_script returns [23:08:13]free content buf [23:08:13]Sock 9.Close socket [23:08:13]Sock 9.Thread stoped [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:28]accept exits with 7 [23:10:28]New connection [23:10:28]New thread 3067489636 created [23:10:28]Thread 3067632996 joined [23:10:28]Waiting for new connection... [23:10:28] Sock 7.Parse request [23:10:28]Sock 7.Check first char [23:10:28]Sock 7.First char is OK [23:10:28]request: POST /json_proto HTTP/1.0 [23:10:28]Method: POST [23:10:28]URL: /json_proto [23:10:28]Method is POST - this is cgi request [23:10:28]url: /json_proto [23:10:28]query_string will be loaded in cgi processing [23:10:28]execute_cgi json_proto POST (null) [23:10:28]execute_cgi path=json_proto method=POST [23:10:28]POST find Content-Length [23:10:28]Host: 172.17.53.195:8080 [23:10:28]Content-Length: 682 [23:10:28]Content-Type: application/json [23:10:28] [23:10:28]POST finish read [23:10:28]Found Content-Length = 682 [23:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:28]execute_script... [23:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:28]POST & json_proto [23:10:28]process_json_proto [23:10:28]json parsed OK: [23:10:28]protocol is kg_v1.0 [23:10:28]action value=close_receipt [23:10:28]process_action close_receipt [23:10:28]cmd_close_receipt [23:10:28]MH_GetDate [23:10:28]Write to MH i2c: F0 00 00 46 18 4D [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: F0 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: F0 09 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: F0 09 00 46 18 00 E6 30 18 67 21 48 4A 65 03 [23:10:28]GetLastDocTimeStamp 1729638414 [23:10:28]current date 1729638630 [23:10:28]FM_GetShiftState [23:10:28]SAM_PROTO_GetShiftState [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 13 01 00 [23:10:28]Write to MH i2c: E2 08 00 47 18 80 13 01 00 00 00 00 00 DC [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0E 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0E 00 47 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2F [23:10:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:10:28]wFMCommunicate OK [23:10:28]SAM_PROTO_GetShiftState done [23:10:28]FM_GetShiftState done [23:10:28]opened in 1729557463 [23:10:28]opened+sec_in_day 1729643863 [23:10:28]quantity*price = 100015 [23:10:28]sum+1 = 100017 [23:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 323 22.10.2024 23:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166568 ФПД: 176314813623532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166568&fm=176314813623532&tin=02508201610067®Number=0000000000091764&sum=100000 [23:10:30]StoreToDocumentArchive [23:10:30]shift 536 fd 166568 [23:10:30]save to /storage/0536/doc_00166568 [23:10:30]save last doc name /storage/0536/doc_00166568 to /storage/kkm_last_doc_name [23:10:30]save OK [23:10:30]Clear old archive folders... [23:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:30]tlvbuf is 011FEF70 [23:10:30]SAM_PROTO_ClearQueue [23:10:30]wFMCommunicate request_size=4 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 09 00 00 [23:10:30]Write to MH i2c: E2 08 00 54 18 80 09 00 00 00 00 00 00 DE [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 54 18 00 90 00 E0 [23:10:30]RAPDU: 90 00 [23:10:30]wFMCommunicate OK [23:10:30]SAM_PROTO_ClearQueue done [23:10:30]KKMCreateOFDPacket [23:10:30]OFDProtocolAddRootSTLVToBuf [23:10:30]FM_MakeSignedData [23:10:30]FM_MakeSignedData [23:10:30]SAM_PROTO_SignData [23:10:30]wFMCommunicate request_size=4 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 0D 01 02 [23:10:30]Write to MH i2c: E2 08 00 55 18 80 0D 01 02 00 00 00 00 E6 [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [23:10:30]RAPDU: 90 00 [23:10:30]wFMCommunicate OK [23:10:30]wFMCommunicate request_size=255 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 E6 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8A 02 00 35 04 06 00 A0 [23:10:30]Write to MH i2c: E2 02 01 56 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 E6 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8A 02 00 35 04 06 00 A0 00 00 3D [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 56 18 00 90 00 E2 [23:10:30]RAPDU: 90 00 [23:10:30]wFMCommunicate OK [23:10:30]wFMCommunicate request_size=10 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 0D 02 02 05 5B 7D D5 AC EC [23:10:30]Write to MH i2c: E2 0D 00 57 18 80 0D 02 02 05 00 5B 7D D5 AC EC 00 00 38 [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 03 00 57 18 00 90 00 E3 [23:10:30]RAPDU: 90 00 [23:10:30]wFMCommunicate OK [23:10:30]wFMCommunicate request_size=4 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 0D 03 02 [23:10:30]Write to MH i2c: E2 08 00 58 18 80 0D 03 02 00 00 00 00 EB [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 0B 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 0B 00 58 18 00 7B DF 75 26 12 57 8F A3 90 00 7C [23:10:30]RAPDU: 7B DF 75 26 12 57 8F A3 90 00 [23:10:30]wFMCommunicate OK [23:10:30]SAM_PROTO_SignData done [23:10:30]FM_MakeSignedData done [23:10:30]CreateOFDProtocolMessage [23:10:30]wFMCommunicate request_size=4 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 11 00 00 [23:10:30]Write to MH i2c: E2 08 00 59 18 80 11 00 00 00 00 00 00 EB [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:30]Read from MH i2c: E2 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 17 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: E2 17 00 59 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [23:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:10:30]wFMCommunicate OK [23:10:30]CreateOFDProtocolMessage done [23:10:30]OFDSenderStorePacket 166568 [23:10:30]StoreOFDPacket docnum=166568 [23:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 C0 07 01 55 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 E6 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8A 02 00 35 04 06 00 A0 5B 7D D5 AC EC 7B DF 75 26 12 57 8F A3 [23:10:30]CheckFolder [23:10:30]dirname=/storage/ofd_packets [23:10:30]CheckFolder done [23:10:30]ProducePacketName [23:10:30]name=ofd_packets/00166568 [23:10:30]NVStorageSaveData ofd_packets/00166568 [23:10:30]File name is /storage/ofd_packets/00166568 [23:10:30]Write 301 bytes [23:10:30]NVStorageSaveData done [23:10:30]OFDSenderStorePacket done [23:10:30]KKMCreateOFDPacket done [23:10:30]NVStorageSaveData kkm_last_timestamp [23:10:30]File name is /storage/kkm_last_timestamp [23:10:30]Write 4 bytes [23:10:30]NVStorageSaveData done [23:10:30]ExternCall_PrintAddStr [23:10:30]wPrintStart [23:10:30]Write to MH i2c: 01 00 00 5A 18 72 [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: 01 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: 01 07 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: 01 07 00 5A 18 00 00 00 00 00 FF 0F 87 [23:10:30]RasterBufferAndPrint [23:10:30]line Счет N : (1)221150 [23:10:30]line ИНН: 02508201610067 [23:10:30]line Контрольно-Кассовый Чек [23:10:30]line ПРОДАЖА [23:10:30]line ТРК (МРК, ГНК) : 43 [23:10:30]line Товар: 2710124130 [23:10:30]line Аи-92-К-5 [23:10:30]line 14.950 * 66.90 [23:10:30]line = 1000.16 [23:10:30]line НДС 12% НСП 1% [23:10:30]line > о реализуемом товаре [23:10:30]line ОКРУГЛЕНИЕ: -0.16 [23:10:30]line ИТОГО: 1000.00 [23:10:30]line Внесено: 1000.00 [23:10:30]line СДАЧА: 0.00 [23:10:30]line НСП 1% : 8.85 [23:10:30]line НДС 12% : 106.21 [23:10:30]line Наличными: 1000.00 [23:10:30]line Безнал.: 0.00 [23:10:30]line Место: АЗС № 161 "Партнер Нефть" [23:10:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:10:30]line СНО: Общий режим [23:10:30]line Чек 323 22.10.2024 23:10 [23:10:30]line Смена: 536 ФФД: 1.0 [23:10:30]line ЗНМ: 0300000104 [23:10:30]line РНМ: 0000000000091764 [23:10:30]line Версия ККМ: 001 [23:10:30]line ФМ: 0000000000871759 [23:10:30]line ФД: 166568 [23:10:30]line ФПД: 176314813623532 [23:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166568&fm=176314813623532&tin=02508201610067®Number=0000000000091764&sum=100000 [23:10:30]OFD Sender: Processing packet 166568 [packets to send 48, broken 47] [23:10:30]ProducePacketName [23:10:30]name=ofd_packets/00166568 [23:10:30]OFD Sender: To server: pG, [23:10:30]CommunicateWithHost lk.salyk.kg:30040 [23:10:30]ConnectInit lk.salyk.kg [23:10:30]written 0, free lines is 4095 [23:10:31]Connected sock=11 [23:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 C0 07 01 55 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 E6 30 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8A 02 00 35 04 06 00 A0 5B 7D D5 AC EC 7B DF 75 26 12 57 8F A3 [23:10:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 5C 47 00 BB 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 8A 02 00 F4 03 04 00 50 D7 17 67 B6 04 01 00 00 2F 09 1F 1B 08 EF 3D A2 [23:10:31]CommunicateWithHost err = 0 [23:10:31]CheckOFDResponse [23:10:31]1017 (14) - 77093643461234 [23:10:31]1041 (16) - 0000000000871759 [23:10:31]1040 (4) - 166568 [23:10:31]1012 (4) - 22.10.2024 16:48 [23:10:31]1206 (1) - 0 [23:10:31]OFD Sender: Remove packet 166568 [23:10:31]ProducePacketName [23:10:31]name=ofd_packets/00166568 [23:10:31]NVStorageDeleteData [23:10:31]Write to MH i2c: 01 00 00 85 18 9D [23:10:31]Write i2c OK [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: 01 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: 01 07 00 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: 01 07 00 85 18 00 00 00 00 00 AF 0C 5F [23:10:31]RasterBufferAndPrint [23:10:31]line [23:10:31]line [23:10:31]line [23:10:31]line [23:10:31]line [23:10:31]written 0, free lines is 3253 [23:10:31]MH_Cut [23:10:31]Write to MH i2c: D1 01 00 8C 18 01 76 [23:10:31]Write i2c OK [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: D1 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: D1 01 00 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: D1 01 00 8C 18 00 75 [23:10:31]Write to MH i2c: 01 00 00 8D 18 A5 [23:10:31]Write i2c OK [23:10:31]MH_I2C_Read... [23:10:31]OFD Sender: No OFD packet to send [23:10:32]*** Cut start [23:10:32]*** Partial cut [23:10:32]*** CUTSNS_PIN = 1 [23:10:32]*** CUTSNS_PIN = 0 [23:10:32]*** Brake cut motor [23:10:32]Read from MH i2c: 01 [23:10:32]MH_I2C_Read... [23:10:32]*** Stop cut motor [23:10:32]*** Cut end [23:10:32]Read from MH i2c: 01 07 00 [23:10:32]MH_I2C_Read... [23:10:32]Read from MH i2c: 01 07 00 8D 18 00 00 00 00 00 FF 0F BA [23:10:32]process_action close_receipt done [23:10:32]requested_data is exist [23:10:32]produce_requested_data [23:10:32]requested_item fm.sn is exist - process it [23:10:32]wFMCommunicate request_size=4 [23:10:32]MH_SAM_APDU [23:10:32]CAPDU: 80 11 00 00 [23:10:32]Write to MH i2c: E2 08 00 8E 18 80 11 00 00 00 00 00 00 20 [23:10:32]Write i2c OK [23:10:32]MH_I2C_Read... [23:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:32]Read from MH i2c: E2 [23:10:32]MH_I2C_Read... [23:10:32]Read from MH i2c: E2 17 00 [23:10:32]MH_I2C_Read... [23:10:32]Read from MH i2c: E2 17 00 8E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [23:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:10:32]wFMCommunicate OK [23:10:32]requested_item fd.num is exist - process it [23:10:32]SAM_PROTO_GetFieldsCounters [23:10:32]wFMCommunicate request_size=4 [23:10:32]MH_SAM_APDU [23:10:32]CAPDU: 80 13 00 00 [23:10:32]Write to MH i2c: E2 08 00 8F 18 80 13 00 00 00 00 00 00 23 [23:10:32]Write i2c OK [23:10:32]MH_I2C_Read... [23:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:33]Read from MH i2c: E2 [23:10:33]MH_I2C_Read... [23:10:33]Read from MH i2c: E2 62 00 [23:10:33]MH_I2C_Read... [23:10:33]Read from MH i2c: E2 62 00 8F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [23:10:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:33]wFMCommunicate OK [23:10:33]SAM_PROTO_GetFieldsCounters done [23:10:33]requested_item shift.num is exist - process it [23:10:33]requested_item shift.opened is exist - process it [23:10:33]req_shift_opened [23:10:33]FM_GetShiftState [23:10:33]SAM_PROTO_GetShiftState [23:10:33]wFMCommunicate request_size=4 [23:10:33]MH_SAM_APDU [23:10:33]CAPDU: 80 13 01 00 [23:10:33]Write to MH i2c: E2 08 00 90 18 80 13 01 00 00 00 00 00 25 [23:10:33]Write i2c OK [23:10:33]MH_I2C_Read... [23:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:33]Read from MH i2c: E2 [23:10:33]MH_I2C_Read... [23:10:33]Read from MH i2c: E2 0E 00 [23:10:33]MH_I2C_Read... [23:10:33]Read from MH i2c: E2 0E 00 90 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 78 [23:10:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:10:33]wFMCommunicate OK [23:10:33]SAM_PROTO_GetShiftState done [23:10:33]FM_GetShiftState done [23:10:33]req_shift_opened done [23:10:33]requested_item shift.open_date is exist - process it [23:10:33]req_shift_open_date [23:10:33]req_shift_open_date done [23:10:33]produce_requested_data done [23:10:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166568,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:10:33]process_action_free close_receipt [23:10:33]json_value_free [23:10:33]json_value_free done [23:10:33]process_json_proto returns [23:10:33]Send response to host [23:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166568,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:10:33]free response buf [23:10:33]execute_script done [23:10:33]execute_script returns [23:10:33]free content buf [23:10:33]Sock 7.Close socket [23:10:33]Sock 7.Thread stoped [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:10:57]accept exits with 9 [23:10:57]New connection [23:10:57]New thread 3067632996 created [23:10:57]Thread 3067489636 joined [23:10:57]Waiting for new connection... [23:10:57] Sock 9.Parse request [23:10:57]Sock 9.Check first char [23:10:57]Sock 9.First char is OK [23:10:57]request: POST /json_proto HTTP/1.0 [23:10:57]Method: POST [23:10:57]URL: /json_proto [23:10:57]Method is POST - this is cgi request [23:10:57]url: /json_proto [23:10:57]query_string will be loaded in cgi processing [23:10:57]execute_cgi json_proto POST (null) [23:10:57]execute_cgi path=json_proto method=POST [23:10:57]POST find Content-Length [23:10:57]Host: 172.17.53.195:8080 [23:10:57]Content-Length: 677 [23:10:57]Content-Type: application/json [23:10:57] [23:10:57]POST finish read [23:10:57]Found Content-Length = 677 [23:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:57]execute_script... [23:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:57]POST & json_proto [23:10:57]process_json_proto [23:10:57]json parsed OK: [23:10:57]protocol is kg_v1.0 [23:10:57]action value=close_receipt [23:10:57]process_action close_receipt [23:10:57]cmd_close_receipt [23:10:57]MH_GetDate [23:10:57]Write to MH i2c: F0 00 00 91 18 98 [23:10:57]Write i2c OK [23:10:57]MH_I2C_Read... [23:10:57]Read from MH i2c: F0 [23:10:57]MH_I2C_Read... [23:10:57]Read from MH i2c: F0 09 00 [23:10:57]MH_I2C_Read... [23:10:57]Read from MH i2c: F0 09 00 91 18 00 02 31 18 67 21 48 4A 65 6B [23:10:57]GetLastDocTimeStamp 1729638630 [23:10:57]current date 1729638658 [23:10:57]FM_GetShiftState [23:10:57]SAM_PROTO_GetShiftState [23:10:57]wFMCommunicate request_size=4 [23:10:57]MH_SAM_APDU [23:10:57]CAPDU: 80 13 01 00 [23:10:57]Write to MH i2c: E2 08 00 92 18 80 13 01 00 00 00 00 00 27 [23:10:57]Write i2c OK [23:10:57]MH_I2C_Read... [23:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:57]Read from MH i2c: E2 [23:10:57]MH_I2C_Read... [23:10:57]Read from MH i2c: E2 0E 00 [23:10:57]MH_I2C_Read... [23:10:57]Read from MH i2c: E2 0E 00 92 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7A [23:10:57]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:10:57]wFMCommunicate OK [23:10:57]SAM_PROTO_GetShiftState done [23:10:57]FM_GetShiftState done [23:10:57]opened in 1729557463 [23:10:57]opened+sec_in_day 1729643863 [23:10:57]quantity*price = 30038 [23:10:57]sum+1 = 30039 [23:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 324 22.10.2024 23:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166569 ФПД: 159915835385363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166569&fm=159915835385363&tin=02508201610067®Number=0000000000091764&sum=30000 [23:10:58]StoreToDocumentArchive [23:10:58]shift 536 fd 166569 [23:10:58]save to /storage/0536/doc_00166569 [23:10:58]save last doc name /storage/0536/doc_00166569 to /storage/kkm_last_doc_name [23:10:58]save OK [23:10:58]Clear old archive folders... [23:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:58]tlvbuf is 01261D60 [23:10:58]SAM_PROTO_ClearQueue [23:10:58]wFMCommunicate request_size=4 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 09 00 00 [23:10:58]Write to MH i2c: E2 08 00 9F 18 80 09 00 00 00 00 00 00 29 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 9F 18 00 90 00 2B [23:10:58]RAPDU: 90 00 [23:10:58]wFMCommunicate OK [23:10:58]SAM_PROTO_ClearQueue done [23:10:58]KKMCreateOFDPacket [23:10:58]OFDProtocolAddRootSTLVToBuf [23:10:58]FM_MakeSignedData [23:10:58]FM_MakeSignedData [23:10:58]SAM_PROTO_SignData [23:10:58]wFMCommunicate request_size=4 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 0D 01 02 [23:10:58]Write to MH i2c: E2 08 00 A0 18 80 0D 01 02 00 00 00 00 31 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [23:10:58]RAPDU: 90 00 [23:10:58]wFMCommunicate OK [23:10:58]wFMCommunicate request_size=255 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 02 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8A 02 00 35 04 06 00 91 [23:10:58]Write to MH i2c: E2 02 01 A1 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 02 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8A 02 00 35 04 06 00 91 00 00 92 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [23:10:58]RAPDU: 90 00 [23:10:58]wFMCommunicate OK [23:10:58]wFMCommunicate request_size=10 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 0D 02 02 05 71 4E 8F E6 13 [23:10:58]Write to MH i2c: E2 0D 00 A2 18 80 0D 02 02 05 00 71 4E 8F E6 13 00 00 85 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [23:10:58]RAPDU: 90 00 [23:10:58]wFMCommunicate OK [23:10:58]wFMCommunicate request_size=4 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 0D 03 02 [23:10:58]Write to MH i2c: E2 08 00 A3 18 80 0D 03 02 00 00 00 00 36 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 0B 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 0B 00 A3 18 00 2C DD 9F 02 51 A3 2D 39 90 00 3B [23:10:58]RAPDU: 2C DD 9F 02 51 A3 2D 39 90 00 [23:10:58]wFMCommunicate OK [23:10:58]SAM_PROTO_SignData done [23:10:58]FM_MakeSignedData done [23:10:58]CreateOFDProtocolMessage [23:10:58]wFMCommunicate request_size=4 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 11 00 00 [23:10:58]Write to MH i2c: E2 08 00 A4 18 80 11 00 00 00 00 00 00 36 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 17 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 17 00 A4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [23:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:10:58]wFMCommunicate OK [23:10:58]CreateOFDProtocolMessage done [23:10:58]OFDSenderStorePacket 166569 [23:10:58]StoreOFDPacket docnum=166569 [23:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 3E 07 01 46 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 02 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8A 02 00 35 04 06 00 91 71 4E 8F E6 13 2C DD 9F 02 51 A3 2D 39 [23:10:58]CheckFolder [23:10:58]dirname=/storage/ofd_packets [23:10:58]CheckFolder done [23:10:58]ProducePacketName [23:10:58]name=ofd_packets/00166569 [23:10:58]NVStorageSaveData ofd_packets/00166569 [23:10:58]File name is /storage/ofd_packets/00166569 [23:10:58]Write 301 bytes [23:10:58]NVStorageSaveData done [23:10:58]OFDSenderStorePacket done [23:10:58]KKMCreateOFDPacket done [23:10:58]NVStorageSaveData kkm_last_timestamp [23:10:58]File name is /storage/kkm_last_timestamp [23:10:58]Write 4 bytes [23:10:58]NVStorageSaveData done [23:10:58]OFD Sender: Processing packet 166569 [packets to send 48, broken 47] [23:10:58]ProducePacketName [23:10:58]name=ofd_packets/00166569 [23:10:58]OFD Sender: To server: pG, [23:10:58]CommunicateWithHost lk.salyk.kg:30040 [23:10:58]ConnectInit lk.salyk.kg [23:10:58]ExternCall_PrintAddStr [23:10:58]wPrintStart [23:10:58]Write to MH i2c: 01 00 00 A5 18 BD [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: 01 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: 01 07 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: 01 07 00 A5 18 00 00 00 00 00 FF 0F D2 [23:10:58]RasterBufferAndPrint [23:10:58]line Счет N : (1)221149 [23:10:58]line ИНН: 02508201610067 [23:10:58]line Контрольно-Кассовый Чек [23:10:58]line ПРОДАЖА [23:10:58]line ТРК (МРК, ГНК) : 33 [23:10:58]line Товар: 2710124130 [23:10:58]line Аи-92-К-5 [23:10:58]line 4.490 * 66.90 [23:10:58]line = 300.38 [23:10:58]line НДС 12% НСП 1% [23:10:58]line > о реализуемом товаре [23:10:58]line ОКРУГЛЕНИЕ: -0.38 [23:10:58]line ИТОГО: 300.00 [23:10:58]line Внесено: 300.00 [23:10:58]line СДАЧА: 0.00 [23:10:58]line НСП 1% : 2.66 [23:10:58]line НДС 12% : 31.90 [23:10:58]line Наличными: 300.00 [23:10:58]line Безнал.: 0.00 [23:10:58]line Место: АЗС № 161 "Партнер Нефть" [23:10:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:10:58]line СНО: Общий режим [23:10:58]line Чек 324 22.10.2024 23:10 [23:10:58]line Смена: 536 ФФД: 1.0 [23:10:58]line ЗНМ: 0300000104 [23:10:58]line РНМ: 0000000000091764 [23:10:58]line Версия ККМ: 001 [23:10:58]line ФМ: 0000000000871759 [23:10:58]line ФД: 166569 [23:10:58]line ФПД: 159915835385363 [23:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231058&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166569&fm=159915835385363&tin=02508201610067®Number=0000000000091764&sum=30000 [23:10:59]Connected sock=11 [23:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 3E 07 01 46 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 02 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8A 02 00 35 04 06 00 91 71 4E 8F E6 13 2C DD 9F 02 51 A3 2D 39 [23:10:59]written 0, free lines is 4095 [23:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD 17 47 00 95 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 8A 02 00 F4 03 04 00 6C D7 17 67 B6 04 01 00 00 EE 87 32 47 CE C7 4A 1D [23:10:59]CommunicateWithHost err = 0 [23:10:59]CheckOFDResponse [23:10:59]1017 (14) - 77093643461234 [23:10:59]1041 (16) - 0000000000871759 [23:10:59]1040 (4) - 166569 [23:10:59]1012 (4) - 22.10.2024 16:48 [23:10:59]1206 (1) - 0 [23:10:59]OFD Sender: Remove packet 166569 [23:10:59]ProducePacketName [23:10:59]name=ofd_packets/00166569 [23:10:59]NVStorageDeleteData [23:10:59]Write to MH i2c: 01 00 00 D0 18 E8 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: 01 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: 01 07 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: 01 07 00 D0 18 00 00 00 00 00 AF 0C AA [23:10:59]RasterBufferAndPrint [23:10:59]line [23:10:59]line [23:10:59]line [23:10:59]line [23:10:59]line [23:10:59]written 0, free lines is 3253 [23:10:59]MH_Cut [23:10:59]Write to MH i2c: D1 01 00 D7 18 01 C1 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: D1 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: D1 01 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: D1 01 00 D7 18 00 C0 [23:10:59]Write to MH i2c: 01 00 00 D8 18 F0 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]OFD Sender: No OFD packet to send [23:11:00]*** Cut start [23:11:00]*** Partial cut [23:11:00]*** CUTSNS_PIN = 1 [23:11:00]*** CUTSNS_PIN = 0 [23:11:00]*** Brake cut motor [23:11:01]Read from MH i2c: 01 [23:11:01]MH_I2C_Read... [23:11:01]*** Stop cut motor [23:11:01]*** Cut end [23:11:01]Read from MH i2c: 01 07 00 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [23:11:01]process_action close_receipt done [23:11:01]requested_data is exist [23:11:01]produce_requested_data [23:11:01]requested_item fm.sn is exist - process it [23:11:01]wFMCommunicate request_size=4 [23:11:01]MH_SAM_APDU [23:11:01]CAPDU: 80 11 00 00 [23:11:01]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [23:11:01]Write i2c OK [23:11:01]MH_I2C_Read... [23:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:01]Read from MH i2c: E2 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 17 00 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [23:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:01]wFMCommunicate OK [23:11:01]requested_item fd.num is exist - process it [23:11:01]SAM_PROTO_GetFieldsCounters [23:11:01]wFMCommunicate request_size=4 [23:11:01]MH_SAM_APDU [23:11:01]CAPDU: 80 13 00 00 [23:11:01]Write to MH i2c: E2 08 00 DA 18 80 13 00 00 00 00 00 00 6E [23:11:01]Write i2c OK [23:11:01]MH_I2C_Read... [23:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:01]Read from MH i2c: E2 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 62 00 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 62 00 DA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [23:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:01]wFMCommunicate OK [23:11:01]SAM_PROTO_GetFieldsCounters done [23:11:01]requested_item shift.num is exist - process it [23:11:01]requested_item shift.opened is exist - process it [23:11:01]req_shift_opened [23:11:01]FM_GetShiftState [23:11:01]SAM_PROTO_GetShiftState [23:11:01]wFMCommunicate request_size=4 [23:11:01]MH_SAM_APDU [23:11:01]CAPDU: 80 13 01 00 [23:11:01]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [23:11:01]Write i2c OK [23:11:01]MH_I2C_Read... [23:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:01]Read from MH i2c: E2 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 0E 00 [23:11:01]MH_I2C_Read... [23:11:01]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C3 [23:11:01]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:11:01]wFMCommunicate OK [23:11:01]SAM_PROTO_GetShiftState done [23:11:01]FM_GetShiftState done [23:11:01]req_shift_opened done [23:11:01]requested_item shift.open_date is exist - process it [23:11:01]req_shift_open_date [23:11:01]req_shift_open_date done [23:11:01]produce_requested_data done [23:11:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166569,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:11:01]process_action_free close_receipt [23:11:01]json_value_free [23:11:01]json_value_free done [23:11:01]process_json_proto returns [23:11:01]Send response to host [23:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166569,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:11:01]free response buf [23:11:01]execute_script done [23:11:01]execute_script returns [23:11:01]free content buf [23:11:01]Sock 9.Close socket [23:11:01]Sock 9.Thread stoped [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:33]accept exits with 7 [23:14:33]New connection [23:14:33]New thread 3067489636 created [23:14:33]Thread 3067632996 joined [23:14:33]Waiting for new connection... [23:14:33] Sock 7.Parse request [23:14:33]Sock 7.Check first char [23:14:33]Sock 7.First char is OK [23:14:33]request: POST /json_proto HTTP/1.0 [23:14:33]Method: POST [23:14:33]URL: /json_proto [23:14:33]Method is POST - this is cgi request [23:14:33]url: /json_proto [23:14:33]query_string will be loaded in cgi processing [23:14:33]execute_cgi json_proto POST (null) [23:14:33]execute_cgi path=json_proto method=POST [23:14:33]POST find Content-Length [23:14:33]Host: 172.17.53.195:8080 [23:14:33]Content-Length: 679 [23:14:33]Content-Type: application/json [23:14:33] [23:14:33]POST finish read [23:14:33]Found Content-Length = 679 [23:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.490, "sum" : 3999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:33]execute_script... [23:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.490, "sum" : 3999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:33]POST & json_proto [23:14:33]process_json_proto [23:14:33]json parsed OK: [23:14:33]protocol is kg_v1.0 [23:14:33]action value=close_receipt [23:14:33]process_action close_receipt [23:14:33]cmd_close_receipt [23:14:33]MH_GetDate [23:14:33]Write to MH i2c: F0 00 00 DC 18 E3 [23:14:33]Write i2c OK [23:14:33]MH_I2C_Read... [23:14:33]Read from MH i2c: F0 [23:14:33]MH_I2C_Read... [23:14:33]Read from MH i2c: F0 09 00 [23:14:33]MH_I2C_Read... [23:14:33]Read from MH i2c: F0 09 00 DC 18 00 DB 31 18 67 21 48 4A 65 8F [23:14:33]GetLastDocTimeStamp 1729638658 [23:14:33]current date 1729638875 [23:14:33]FM_GetShiftState [23:14:33]SAM_PROTO_GetShiftState [23:14:33]wFMCommunicate request_size=4 [23:14:33]MH_SAM_APDU [23:14:33]CAPDU: 80 13 01 00 [23:14:33]Write to MH i2c: E2 08 00 DD 18 80 13 01 00 00 00 00 00 72 [23:14:33]Write i2c OK [23:14:33]MH_I2C_Read... [23:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:33]Read from MH i2c: E2 [23:14:33]MH_I2C_Read... [23:14:33]Read from MH i2c: E2 0E 00 [23:14:33]MH_I2C_Read... [23:14:33]Read from MH i2c: E2 0E 00 DD 18 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C5 [23:14:33]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:14:33]wFMCommunicate OK [23:14:33]SAM_PROTO_GetShiftState done [23:14:33]FM_GetShiftState done [23:14:33]opened in 1729557463 [23:14:33]opened+sec_in_day 1729643863 [23:14:33]quantity*price = 399973 [23:14:33]sum+1 = 399975 [23:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 3999.00 Внесено: 4000.00 СДАЧА: 1.00 НСП 1% : 35.40 НДС 12% : 424.75 Наличными: 3999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 325 22.10.2024 23:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166570 ФПД: 212439108922762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166570&fm=212439108922762&tin=02508201610067®Number=0000000000091764&sum=399900 [23:14:35]StoreToDocumentArchive [23:14:35]shift 536 fd 166570 [23:14:35]save to /storage/0536/doc_00166570 [23:14:35]save last doc name /storage/0536/doc_00166570 to /storage/kkm_last_doc_name [23:14:35]save OK [23:14:35]Clear old archive folders... [23:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:35]tlvbuf is 01298E10 [23:14:35]SAM_PROTO_ClearQueue [23:14:35]wFMCommunicate request_size=4 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 09 00 00 [23:14:35]Write to MH i2c: E2 08 00 EA 18 80 09 00 00 00 00 00 00 74 [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [23:14:35]RAPDU: 90 00 [23:14:35]wFMCommunicate OK [23:14:35]SAM_PROTO_ClearQueue done [23:14:35]KKMCreateOFDPacket [23:14:35]OFDProtocolAddRootSTLVToBuf [23:14:35]FM_MakeSignedData [23:14:35]FM_MakeSignedData [23:14:35]SAM_PROTO_SignData [23:14:35]wFMCommunicate request_size=4 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 0D 01 02 [23:14:35]Write to MH i2c: E2 08 00 EB 18 80 0D 01 02 00 00 00 00 7C [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [23:14:35]RAPDU: 90 00 [23:14:35]wFMCommunicate OK [23:14:35]wFMCommunicate request_size=255 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DB 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8A 02 00 35 04 06 00 C1 36 55 9F [23:14:35]Write to MH i2c: E2 02 01 EC 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DB 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8A 02 00 35 04 06 00 C1 36 55 9F 00 00 13 [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [23:14:35]RAPDU: 90 00 [23:14:35]wFMCommunicate OK [23:14:35]wFMCommunicate request_size=7 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 0D 02 02 02 AD 8A [23:14:35]Write to MH i2c: E2 0A 00 ED 18 80 0D 02 02 02 00 AD 8A 00 00 BA [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [23:14:35]RAPDU: 90 00 [23:14:35]wFMCommunicate OK [23:14:35]wFMCommunicate request_size=4 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 0D 03 02 [23:14:35]Write to MH i2c: E2 08 00 EE 18 80 0D 03 02 00 00 00 00 81 [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 0B 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 0B 00 EE 18 00 1E 33 D2 CF 34 B3 18 92 90 00 05 [23:14:35]RAPDU: 1E 33 D2 CF 34 B3 18 92 90 00 [23:14:35]wFMCommunicate OK [23:14:35]SAM_PROTO_SignData done [23:14:35]FM_MakeSignedData done [23:14:35]CreateOFDProtocolMessage [23:14:35]wFMCommunicate request_size=4 [23:14:35]MH_SAM_APDU [23:14:35]CAPDU: 80 11 00 00 [23:14:35]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:35]Read from MH i2c: E2 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 17 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [23:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:14:35]wFMCommunicate OK [23:14:35]CreateOFDProtocolMessage done [23:14:35]OFDSenderStorePacket 166570 [23:14:35]StoreOFDPacket docnum=166570 [23:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A9 8E 04 01 20 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DB 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8A 02 00 35 04 06 00 C1 36 55 9F AD 8A 1E 33 D2 CF 34 B3 18 92 [23:14:35]CheckFolder [23:14:35]dirname=/storage/ofd_packets [23:14:35]CheckFolder done [23:14:35]ProducePacketName [23:14:35]name=ofd_packets/00166570 [23:14:35]NVStorageSaveData ofd_packets/00166570 [23:14:35]File name is /storage/ofd_packets/00166570 [23:14:35]Write 298 bytes [23:14:35]NVStorageSaveData done [23:14:35]OFDSenderStorePacket done [23:14:35]KKMCreateOFDPacket done [23:14:35]NVStorageSaveData kkm_last_timestamp [23:14:35]File name is /storage/kkm_last_timestamp [23:14:35]Write 4 bytes [23:14:35]NVStorageSaveData done [23:14:35]ExternCall_PrintAddStr [23:14:35]wPrintStart [23:14:35]Write to MH i2c: 01 00 00 F0 18 08 [23:14:35]Write i2c OK [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: 01 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: 01 07 00 [23:14:35]MH_I2C_Read... [23:14:35]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [23:14:35]RasterBufferAndPrint [23:14:35]line Счет N : (1)221151 [23:14:35]line ИНН: 02508201610067 [23:14:35]line Контрольно-Кассовый Чек [23:14:35]line ПРОДАЖА [23:14:35]line ТРК (МРК, ГНК) : 41 [23:14:35]line Товар: 2710194210 [23:14:35]line ДТ-К-5 [23:14:35]line 52.490 * 76.20 [23:14:35]line = 3999.74 [23:14:35]line НДС 12% НСП 1% [23:14:35]line > о реализуемом товаре [23:14:35]line ОКРУГЛЕНИЕ: -0.74 [23:14:35]line ИТОГО: 3999.00 [23:14:35]line Внесено: 4000.00 [23:14:35]line СДАЧА: 1.00 [23:14:35]line НСП 1% : 35.40 [23:14:35]line НДС 12% : 424.75 [23:14:35]line Наличными: 3999.00 [23:14:35]line Безнал.: 0.00 [23:14:35]line Место: АЗС № 161 "Партнер Нефть" [23:14:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:14:35]line СНО: Общий режим [23:14:35]line Чек 325 22.10.2024 23:14 [23:14:35]line Смена: 536 ФФД: 1.0 [23:14:35]line ЗНМ: 0300000104 [23:14:35]line РНМ: 0000000000091764 [23:14:35]line Версия ККМ: 001 [23:14:35]line ФМ: 0000000000871759 [23:14:35]line ФД: 166570 [23:14:35]line ФПД: 212439108922762 [23:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166570&fm=212439108922762&tin=02508201610067®Number=0000000000091764&sum=399900 [23:14:35]OFD Sender: Processing packet 166570 [packets to send 48, broken 47] [23:14:35]ProducePacketName [23:14:35]name=ofd_packets/00166570 [23:14:35]OFD Sender: To server: pG, [23:14:35]CommunicateWithHost lk.salyk.kg:30040 [23:14:35]ConnectInit lk.salyk.kg [23:14:35]written 0, free lines is 4095 [23:14:35]Connected sock=10 [23:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A9 8E 04 01 20 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 66 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DB 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8A 02 00 35 04 06 00 C1 36 55 9F AD 8A 1E 33 D2 CF 34 B3 18 92 [23:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CE 26 47 00 F9 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 8A 02 00 F4 03 04 00 45 D8 17 67 B6 04 01 00 00 AC 2D 83 72 DA D0 81 A5 [23:14:36]CommunicateWithHost err = 0 [23:14:36]CheckOFDResponse [23:14:36]1017 (14) - 77093643461234 [23:14:36]1041 (16) - 0000000000871759 [23:14:36]1040 (4) - 166570 [23:14:36]1012 (4) - 22.10.2024 16:52 [23:14:36]1206 (1) - 0 [23:14:36]OFD Sender: Remove packet 166570 [23:14:36]ProducePacketName [23:14:36]name=ofd_packets/00166570 [23:14:36]NVStorageDeleteData [23:14:36]Write to MH i2c: 01 00 00 1B 19 34 [23:14:36]Write i2c OK [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: 01 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: 01 07 00 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: 01 07 00 1B 19 00 00 00 00 00 BF 0C 06 [23:14:36]RasterBufferAndPrint [23:14:36]line [23:14:36]line [23:14:36]line [23:14:36]line [23:14:36]line [23:14:36]written 0, free lines is 3268 [23:14:36]MH_Cut [23:14:36]Write to MH i2c: D1 01 00 22 19 01 0D [23:14:36]Write i2c OK [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: D1 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: D1 01 00 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: D1 01 00 22 19 00 0C [23:14:36]Write to MH i2c: 01 00 00 23 19 3C [23:14:36]Write i2c OK [23:14:36]MH_I2C_Read... [23:14:36]OFD Sender: No OFD packet to send [23:14:37]*** Cut start [23:14:37]*** Partial cut [23:14:37]*** CUTSNS_PIN = 1 [23:14:37]*** CUTSNS_PIN = 0 [23:14:37]*** Brake cut motor [23:14:37]Read from MH i2c: 01 [23:14:37]MH_I2C_Read... [23:14:37]*** Stop cut motor [23:14:37]*** Cut end [23:14:37]Read from MH i2c: 01 07 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: 01 07 00 23 19 00 00 00 00 00 FF 0F 51 [23:14:37]process_action close_receipt done [23:14:37]requested_data is exist [23:14:37]produce_requested_data [23:14:37]requested_item fm.sn is exist - process it [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 11 00 00 [23:14:37]Write to MH i2c: E2 08 00 24 19 80 11 00 00 00 00 00 00 B7 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 17 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 17 00 24 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [23:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:14:37]wFMCommunicate OK [23:14:37]requested_item fd.num is exist - process it [23:14:37]SAM_PROTO_GetFieldsCounters [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 13 00 00 [23:14:37]Write to MH i2c: E2 08 00 25 19 80 13 00 00 00 00 00 00 BA [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 62 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 62 00 25 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [23:14:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_GetFieldsCounters done [23:14:38]requested_item shift.num is exist - process it [23:14:38]requested_item shift.opened is exist - process it [23:14:38]req_shift_opened [23:14:38]FM_GetShiftState [23:14:38]SAM_PROTO_GetShiftState [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 13 01 00 [23:14:38]Write to MH i2c: E2 08 00 26 19 80 13 01 00 00 00 00 00 BC [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0E 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0E 00 26 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0F [23:14:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_GetShiftState done [23:14:38]FM_GetShiftState done [23:14:38]req_shift_opened done [23:14:38]requested_item shift.open_date is exist - process it [23:14:38]req_shift_open_date [23:14:38]req_shift_open_date done [23:14:38]produce_requested_data done [23:14:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166570,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:14:38]process_action_free close_receipt [23:14:38]json_value_free [23:14:38]json_value_free done [23:14:38]process_json_proto returns [23:14:38]Send response to host [23:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166570,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:14:38]free response buf [23:14:38]execute_script done [23:14:38]execute_script returns [23:14:38]free content buf [23:14:38]Sock 7.Close socket [23:14:38]Sock 7.Thread stoped [23:14:38]accept exits with 9 [23:14:38]New connection [23:14:38]New thread 3067632996 created [23:14:38]Thread 3067489636 joined [23:14:38]Waiting for new connection... [23:14:38] Sock 9.Parse request [23:14:38]Sock 9.Check first char [23:14:38]Sock 9.First char is OK [23:14:38]request: POST /json_proto HTTP/1.0 [23:14:38]Method: POST [23:14:38]URL: /json_proto [23:14:38]Method is POST - this is cgi request [23:14:38]url: /json_proto [23:14:38]query_string will be loaded in cgi processing [23:14:38]execute_cgi json_proto POST (null) [23:14:38]execute_cgi path=json_proto method=POST [23:14:38]POST find Content-Length [23:14:38]Host: 172.17.53.195:8080 [23:14:38]Content-Length: 766 [23:14:38]Content-Type: application/json [23:14:38] [23:14:38]POST finish read [23:14:38]Found Content-Length = 766 [23:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:38]execute_script... [23:14:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:38]POST & json_proto [23:14:38]process_json_proto [23:14:38]json parsed OK: [23:14:38]protocol is kg_v1.0 [23:14:38]action value=close_receipt [23:14:38]process_action close_receipt [23:14:38]cmd_close_receipt [23:14:38]MH_GetDate [23:14:38]Write to MH i2c: F0 00 00 27 19 2F [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: F0 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: F0 09 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: F0 09 00 27 19 00 E0 31 18 67 21 48 4A 65 E0 [23:14:38]GetLastDocTimeStamp 1729638875 [23:14:38]current date 1729638880 [23:14:38]FM_GetShiftState [23:14:38]SAM_PROTO_GetShiftState [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 13 01 00 [23:14:38]Write to MH i2c: E2 08 00 28 19 80 13 01 00 00 00 00 00 BE [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0E 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0E 00 28 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 11 [23:14:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_GetShiftState done [23:14:38]FM_GetShiftState done [23:14:38]opened in 1729557463 [23:14:38]opened+sec_in_day 1729643863 [23:14:38]quantity*price = 50041 [23:14:38]sum+1 = 50042 [23:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 326 22.10.2024 23:14 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166571 ФПД: 194914687857692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166571&fm=194914687857692&tin=02508201610067®Number=0000000000091764&sum=50041 [23:14:39]StoreToDocumentArchive [23:14:39]shift 536 fd 166571 [23:14:39]save to /storage/0536/doc_00166571 [23:14:39]save last doc name /storage/0536/doc_00166571 to /storage/kkm_last_doc_name [23:14:39]save OK [23:14:39]Clear old archive folders... [23:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:39]tlvbuf is 0129AD60 [23:14:39]SAM_PROTO_ClearQueue [23:14:39]wFMCommunicate request_size=4 [23:14:39]MH_SAM_APDU [23:14:39]CAPDU: 80 09 00 00 [23:14:39]Write to MH i2c: E2 08 00 35 19 80 09 00 00 00 00 00 00 C0 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [23:14:40]RAPDU: 90 00 [23:14:40]wFMCommunicate OK [23:14:40]SAM_PROTO_ClearQueue done [23:14:40]KKMCreateOFDPacket [23:14:40]OFDProtocolAddRootSTLVToBuf [23:14:40]FM_MakeSignedData [23:14:40]FM_MakeSignedData [23:14:40]SAM_PROTO_SignData [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 0D 01 02 [23:14:40]Write to MH i2c: E2 08 00 36 19 80 0D 01 02 00 00 00 00 C8 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [23:14:40]RAPDU: 90 00 [23:14:40]wFMCommunicate OK [23:14:40]wFMCommunicate request_size=255 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E0 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8A 02 00 35 04 06 00 B1 [23:14:40]Write to MH i2c: E2 02 01 37 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E0 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8A 02 00 35 04 06 00 B1 00 00 89 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [23:14:40]RAPDU: 90 00 [23:14:40]wFMCommunicate OK [23:14:40]wFMCommunicate request_size=10 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 0D 02 02 05 46 1C BB 34 1C [23:14:40]Write to MH i2c: E2 0D 00 38 19 80 0D 02 02 05 00 46 1C BB 34 1C 00 00 42 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [23:14:40]RAPDU: 90 00 [23:14:40]wFMCommunicate OK [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 0D 03 02 [23:14:40]Write to MH i2c: E2 08 00 39 19 80 0D 03 02 00 00 00 00 CD [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0B 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0B 00 39 19 00 CE D7 81 2F 5C 6A 98 E7 90 00 68 [23:14:40]RAPDU: CE D7 81 2F 5C 6A 98 E7 90 00 [23:14:40]wFMCommunicate OK [23:14:40]SAM_PROTO_SignData done [23:14:40]FM_MakeSignedData done [23:14:40]CreateOFDProtocolMessage [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 11 00 00 [23:14:40]Write to MH i2c: E2 08 00 3A 19 80 11 00 00 00 00 00 00 CD [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 17 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 17 00 3A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [23:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:14:40]wFMCommunicate OK [23:14:40]CreateOFDProtocolMessage done [23:14:40]OFDSenderStorePacket 166571 [23:14:40]StoreOFDPacket docnum=166571 [23:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B E2 07 01 AB C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E0 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8A 02 00 35 04 06 00 B1 46 1C BB 34 1C CE D7 81 2F 5C 6A 98 E7 [23:14:40]CheckFolder [23:14:40]dirname=/storage/ofd_packets [23:14:40]CheckFolder done [23:14:40]ProducePacketName [23:14:40]name=ofd_packets/00166571 [23:14:40]NVStorageSaveData ofd_packets/00166571 [23:14:40]File name is /storage/ofd_packets/00166571 [23:14:40]Write 301 bytes [23:14:40]NVStorageSaveData done [23:14:40]OFDSenderStorePacket done [23:14:40]KKMCreateOFDPacket done [23:14:40]NVStorageSaveData kkm_last_timestamp [23:14:40]File name is /storage/kkm_last_timestamp [23:14:40]Write 4 bytes [23:14:40]NVStorageSaveData done [23:14:40]ExternCall_PrintAddStr [23:14:40]wPrintStart [23:14:40]Write to MH i2c: 01 00 00 3B 19 54 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 FF 0F 69 [23:14:40]RasterBufferAndPrint [23:14:40]line Счет N : (1)221152 [23:14:40]line ИНН: 02508201610067 [23:14:40]line Контрольно-Кассовый Чек [23:14:40]line ПРОДАЖА [23:14:40]line ТРК (МРК, ГНК) : 13 [23:14:40]line Товар: 2710124130 [23:14:40]line Аи-92-К-5 [23:14:40]line 7.480 * 66.90 [23:14:40]line = 500.41 [23:14:40]line НДС 12% НСП 1% [23:14:40]line > о реализуемом товаре [23:14:40]line ИТОГО: 500.41 [23:14:40]line НСП 1% : 4.43 [23:14:40]line НДС 12% : 53.14 [23:14:40]line Наличными: 0.00 [23:14:40]line Безнал.: 500.41 [23:14:40]line Место: АЗС № 161 "Партнер Нефть" [23:14:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:14:40]line СНО: Общий режим [23:14:40]line Чек 326 22.10.2024 23:14 [23:14:40]line Смена: 536 ФФД: 1.0 [23:14:40]line ЗНМ: 0300000104 [23:14:40]line РНМ: 0000000000091764 [23:14:40]line Версия ККМ: 001 [23:14:40]line Платежная система: Mbank [23:14:40]line ФМ: 0000000000871759 [23:14:40]line ФД: 166571 [23:14:40]line ФПД: 194914687857692 [23:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166571&fm=194914687857692&tin=02508201610067®Number=0000000000091764&sum=50041 [23:14:40]written 0, free lines is 4095 [23:14:40]OFD Sender: Processing packet 166571 [packets to send 48, broken 47] [23:14:40]ProducePacketName [23:14:40]name=ofd_packets/00166571 [23:14:40]OFD Sender: To server: pG, [23:14:40]CommunicateWithHost lk.salyk.kg:30040 [23:14:40]ConnectInit lk.salyk.kg [23:14:40]Connected sock=10 [23:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8B E2 07 01 AB C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E0 31 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8A 02 00 35 04 06 00 B1 46 1C BB 34 1C CE D7 81 2F 5C 6A 98 E7 [23:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 74 47 00 00 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 8A 02 00 F4 03 04 00 4A D8 17 67 B6 04 01 00 00 D6 F3 4E 33 AA AF 1A 94 [23:14:40]CommunicateWithHost err = 0 [23:14:40]CheckOFDResponse [23:14:40]1017 (14) - 77093643461234 [23:14:40]1041 (16) - 0000000000871759 [23:14:40]1040 (4) - 166571 [23:14:40]1012 (4) - 22.10.2024 16:52 [23:14:40]1206 (1) - 0 [23:14:40]OFD Sender: Remove packet 166571 [23:14:40]ProducePacketName [23:14:40]name=ofd_packets/00166571 [23:14:40]NVStorageDeleteData [23:14:40]Write to MH i2c: 01 00 00 64 19 7D [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 E3 0C 73 [23:14:40]RasterBufferAndPrint [23:14:40]line [23:14:40]line [23:14:40]line [23:14:40]line [23:14:40]line [23:14:40]written 0, free lines is 3311 [23:14:41]MH_Cut [23:14:41]Write to MH i2c: D1 01 00 6B 19 01 56 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: D1 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: D1 01 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: D1 01 00 6B 19 00 55 [23:14:41]Write to MH i2c: 01 00 00 6C 19 85 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]OFD Sender: No OFD packet to send [23:14:41]*** Cut start [23:14:41]*** Partial cut [23:14:41]*** CUTSNS_PIN = 1 [23:14:41]*** CUTSNS_PIN = 0 [23:14:42]*** Brake cut motor [23:14:42]Read from MH i2c: 01 [23:14:42]MH_I2C_Read... [23:14:42]*** Stop cut motor [23:14:42]*** Cut end [23:14:42]Read from MH i2c: 01 07 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 6C 19 00 00 00 00 00 FF 0F 9A [23:14:42]process_action close_receipt done [23:14:42]requested_data is exist [23:14:42]produce_requested_data [23:14:42]requested_item fm.sn is exist - process it [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 11 00 00 [23:14:42]Write to MH i2c: E2 08 00 6D 19 80 11 00 00 00 00 00 00 00 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 6D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [23:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:14:42]wFMCommunicate OK [23:14:42]requested_item fd.num is exist - process it [23:14:42]SAM_PROTO_GetFieldsCounters [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 13 00 00 [23:14:42]Write to MH i2c: E2 08 00 6E 19 80 13 00 00 00 00 00 00 03 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 62 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 62 00 6E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:42]wFMCommunicate OK [23:14:42]SAM_PROTO_GetFieldsCounters done [23:14:42]requested_item shift.num is exist - process it [23:14:42]requested_item shift.opened is exist - process it [23:14:42]req_shift_opened [23:14:42]FM_GetShiftState [23:14:42]SAM_PROTO_GetShiftState [23:14:42]wFMCommunicate request_size=4 [23:14:42]MH_SAM_APDU [23:14:42]CAPDU: 80 13 01 00 [23:14:42]Write to MH i2c: E2 08 00 6F 19 80 13 01 00 00 00 00 00 05 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 0E 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 0E 00 6F 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 58 [23:14:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:14:42]wFMCommunicate OK [23:14:42]SAM_PROTO_GetShiftState done [23:14:42]FM_GetShiftState done [23:14:42]req_shift_opened done [23:14:42]requested_item shift.open_date is exist - process it [23:14:42]req_shift_open_date [23:14:42]req_shift_open_date done [23:14:42]produce_requested_data done [23:14:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166571,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:14:42]process_action_free close_receipt [23:14:42]json_value_free [23:14:42]json_value_free done [23:14:42]process_json_proto returns [23:14:42]Send response to host [23:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166571,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:14:42]free response buf [23:14:42]execute_script done [23:14:42]execute_script returns [23:14:42]free content buf [23:14:42]Sock 9.Close socket [23:14:42]Sock 9.Thread stoped [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:49]accept exits with 7 [23:29:49]New connection [23:29:49]New thread 3067489636 created [23:29:49]Thread 3067632996 joined [23:29:49]Waiting for new connection... [23:29:49] Sock 7.Parse request [23:29:49]Sock 7.Check first char [23:29:49]Sock 7.First char is OK [23:29:49]request: POST /json_proto HTTP/1.0 [23:29:49]Method: POST [23:29:49]URL: /json_proto [23:29:49]Method is POST - this is cgi request [23:29:49]url: /json_proto [23:29:49]query_string will be loaded in cgi processing [23:29:49]execute_cgi json_proto POST (null) [23:29:49]execute_cgi path=json_proto method=POST [23:29:49]POST find Content-Length [23:29:49]Host: 172.17.53.195:8080 [23:29:49]Content-Length: 677 [23:29:49]Content-Type: application/json [23:29:49] [23:29:49]POST finish read [23:29:49]Found Content-Length = 677 [23:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:49]execute_script... [23:29:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:49]POST & json_proto [23:29:49]process_json_proto [23:29:49]json parsed OK: [23:29:49]protocol is kg_v1.0 [23:29:49]action value=close_receipt [23:29:49]process_action close_receipt [23:29:49]cmd_close_receipt [23:29:49]MH_GetDate [23:29:49]Write to MH i2c: F0 00 00 70 19 78 [23:29:49]Write i2c OK [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: F0 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: F0 09 00 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: F0 09 00 70 19 00 6E 35 18 67 21 48 4A 65 BB [23:29:49]GetLastDocTimeStamp 1729638880 [23:29:49]current date 1729639790 [23:29:49]FM_GetShiftState [23:29:49]SAM_PROTO_GetShiftState [23:29:49]wFMCommunicate request_size=4 [23:29:49]MH_SAM_APDU [23:29:49]CAPDU: 80 13 01 00 [23:29:49]Write to MH i2c: E2 08 00 71 19 80 13 01 00 00 00 00 00 07 [23:29:49]Write i2c OK [23:29:49]MH_I2C_Read... [23:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:49]Read from MH i2c: E2 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 0E 00 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 0E 00 71 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5A [23:29:49]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:29:49]wFMCommunicate OK [23:29:49]SAM_PROTO_GetShiftState done [23:29:49]FM_GetShiftState done [23:29:49]opened in 1729557463 [23:29:49]opened+sec_in_day 1729643863 [23:29:49]quantity*price = 49974 [23:29:49]sum+1 = 49975 [23:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 327 22.10.2024 23:29 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166572 ФПД: 68384123950825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166572&fm=68384123950825&tin=02508201610067®Number=0000000000091764&sum=49900 [23:29:50]StoreToDocumentArchive [23:29:50]shift 536 fd 166572 [23:29:50]save to /storage/0536/doc_00166572 [23:29:50]save last doc name /storage/0536/doc_00166572 to /storage/kkm_last_doc_name [23:29:50]save OK [23:29:50]Clear old archive folders... [23:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:50]tlvbuf is 011F10C0 [23:29:50]SAM_PROTO_ClearQueue [23:29:50]wFMCommunicate request_size=4 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 09 00 00 [23:29:50]Write to MH i2c: E2 08 00 7E 19 80 09 00 00 00 00 00 00 09 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [23:29:50]RAPDU: 90 00 [23:29:50]wFMCommunicate OK [23:29:50]SAM_PROTO_ClearQueue done [23:29:50]KKMCreateOFDPacket [23:29:50]OFDProtocolAddRootSTLVToBuf [23:29:50]FM_MakeSignedData [23:29:50]FM_MakeSignedData [23:29:50]SAM_PROTO_SignData [23:29:50]wFMCommunicate request_size=4 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 0D 01 02 [23:29:50]Write to MH i2c: E2 08 00 7F 19 80 0D 01 02 00 00 00 00 11 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [23:29:50]RAPDU: 90 00 [23:29:50]wFMCommunicate OK [23:29:50]wFMCommunicate request_size=255 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 6E 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8A 02 00 35 04 06 00 3E [23:29:50]Write to MH i2c: E2 02 01 80 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 6E 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8A 02 00 35 04 06 00 3E 00 00 82 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [23:29:50]RAPDU: 90 00 [23:29:50]wFMCommunicate OK [23:29:50]wFMCommunicate request_size=10 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 0D 02 02 05 31 EB 6A 96 E9 [23:29:50]Write to MH i2c: E2 0D 00 81 19 80 0D 02 02 05 00 31 EB 6A 96 E9 00 00 23 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [23:29:50]RAPDU: 90 00 [23:29:50]wFMCommunicate OK [23:29:50]wFMCommunicate request_size=4 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 0D 03 02 [23:29:50]Write to MH i2c: E2 08 00 82 19 80 0D 03 02 00 00 00 00 16 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 0B 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 0B 00 82 19 00 F6 C6 88 73 95 5F E0 C4 90 00 66 [23:29:50]RAPDU: F6 C6 88 73 95 5F E0 C4 90 00 [23:29:50]wFMCommunicate OK [23:29:50]SAM_PROTO_SignData done [23:29:50]FM_MakeSignedData done [23:29:50]CreateOFDProtocolMessage [23:29:50]wFMCommunicate request_size=4 [23:29:50]MH_SAM_APDU [23:29:50]CAPDU: 80 11 00 00 [23:29:50]Write to MH i2c: E2 08 00 83 19 80 11 00 00 00 00 00 00 16 [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:50]Read from MH i2c: E2 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 17 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: E2 17 00 83 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [23:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:29:50]wFMCommunicate OK [23:29:50]CreateOFDProtocolMessage done [23:29:50]OFDSenderStorePacket 166572 [23:29:50]StoreOFDPacket docnum=166572 [23:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF A4 07 01 25 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 6E 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8A 02 00 35 04 06 00 3E 31 EB 6A 96 E9 F6 C6 88 73 95 5F E0 C4 [23:29:50]CheckFolder [23:29:50]dirname=/storage/ofd_packets [23:29:50]CheckFolder done [23:29:50]ProducePacketName [23:29:50]name=ofd_packets/00166572 [23:29:50]NVStorageSaveData ofd_packets/00166572 [23:29:50]File name is /storage/ofd_packets/00166572 [23:29:50]Write 301 bytes [23:29:50]NVStorageSaveData done [23:29:50]OFDSenderStorePacket done [23:29:50]KKMCreateOFDPacket done [23:29:50]NVStorageSaveData kkm_last_timestamp [23:29:50]File name is /storage/kkm_last_timestamp [23:29:50]Write 4 bytes [23:29:50]NVStorageSaveData done [23:29:50]ExternCall_PrintAddStr [23:29:50]wPrintStart [23:29:50]Write to MH i2c: 01 00 00 84 19 9D [23:29:50]Write i2c OK [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: 01 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: 01 07 00 [23:29:50]MH_I2C_Read... [23:29:50]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [23:29:50]RasterBufferAndPrint [23:29:50]line Счет N : (1)221153 [23:29:50]line ИНН: 02508201610067 [23:29:50]line Контрольно-Кассовый Чек [23:29:50]line ПРОДАЖА [23:29:50]line ТРК (МРК, ГНК) : 13 [23:29:50]line Товар: 2710124130 [23:29:50]line Аи-92-К-5 [23:29:50]line 7.470 * 66.90 [23:29:50]line = 499.74 [23:29:50]line НДС 12% НСП 1% [23:29:50]line > о реализуемом товаре [23:29:50]line ОКРУГЛЕНИЕ: -0.74 [23:29:50]line ИТОГО: 499.00 [23:29:50]line Внесено: 500.00 [23:29:50]line СДАЧА: 1.00 [23:29:50]line НСП 1% : 4.42 [23:29:50]line НДС 12% : 53.07 [23:29:50]line Наличными: 499.00 [23:29:50]line Безнал.: 0.00 [23:29:50]line Место: АЗС № 161 "Партнер Нефть" [23:29:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:29:50]line СНО: Общий режим [23:29:50]line Чек 327 22.10.2024 23:29 [23:29:50]line Смена: 536 ФФД: 1.0 [23:29:50]line ЗНМ: 0300000104 [23:29:50]line РНМ: 0000000000091764 [23:29:50]line Версия ККМ: 001 [23:29:50]line ФМ: 0000000000871759 [23:29:50]line ФД: 166572 [23:29:50]line ФПД: 68384123950825 [23:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232950&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166572&fm=68384123950825&tin=02508201610067®Number=0000000000091764&sum=49900 [23:29:51]OFD Sender: Processing packet 166572 [packets to send 48, broken 47] [23:29:51]ProducePacketName [23:29:51]name=ofd_packets/00166572 [23:29:51]OFD Sender: To server: pG, [23:29:51]CommunicateWithHost lk.salyk.kg:30040 [23:29:51]ConnectInit lk.salyk.kg [23:29:51]written 0, free lines is 4095 [23:29:51]Connected sock=10 [23:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF A4 07 01 25 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 6E 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8A 02 00 35 04 06 00 3E 31 EB 6A 96 E9 F6 C6 88 73 95 5F E0 C4 [23:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 65 CF 47 00 59 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 8A 02 00 F4 03 04 00 D8 DB 17 67 B6 04 01 00 00 5B FB 1A 46 35 F5 77 C1 [23:29:51]CommunicateWithHost err = 0 [23:29:51]CheckOFDResponse [23:29:51]1017 (14) - 77093643461234 [23:29:51]1041 (16) - 0000000000871759 [23:29:51]1040 (4) - 166572 [23:29:51]1012 (4) - 22.10.2024 17:07 [23:29:51]1206 (1) - 0 [23:29:51]OFD Sender: Remove packet 166572 [23:29:51]ProducePacketName [23:29:51]name=ofd_packets/00166572 [23:29:51]NVStorageDeleteData [23:29:51]Write to MH i2c: 01 00 00 AF 19 C8 [23:29:51]Write i2c OK [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: 01 [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: 01 07 00 [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 9E 0C 79 [23:29:51]RasterBufferAndPrint [23:29:51]line [23:29:51]line [23:29:51]line [23:29:51]line [23:29:51]line [23:29:51]written 0, free lines is 3238 [23:29:51]MH_Cut [23:29:51]Write to MH i2c: D1 01 00 B6 19 01 A1 [23:29:51]Write i2c OK [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: D1 [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: D1 01 00 [23:29:51]MH_I2C_Read... [23:29:51]Read from MH i2c: D1 01 00 B6 19 00 A0 [23:29:51]Write to MH i2c: 01 00 00 B7 19 D0 [23:29:51]Write i2c OK [23:29:51]MH_I2C_Read... [23:29:51]OFD Sender: No OFD packet to send [23:29:52]*** Cut start [23:29:52]*** Partial cut [23:29:52]*** CUTSNS_PIN = 1 [23:29:52]*** CUTSNS_PIN = 0 [23:29:52]*** Brake cut motor [23:29:53]Read from MH i2c: 01 [23:29:53]MH_I2C_Read... [23:29:53]*** Stop cut motor [23:29:53]*** Cut end [23:29:53]Read from MH i2c: 01 07 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: 01 07 00 B7 19 00 00 00 00 00 FF 0F E5 [23:29:53]process_action close_receipt done [23:29:53]requested_data is exist [23:29:53]produce_requested_data [23:29:53]requested_item fm.sn is exist - process it [23:29:53]wFMCommunicate request_size=4 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 11 00 00 [23:29:53]Write to MH i2c: E2 08 00 B8 19 80 11 00 00 00 00 00 00 4B [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 17 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 17 00 B8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [23:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:29:53]wFMCommunicate OK [23:29:53]requested_item fd.num is exist - process it [23:29:53]SAM_PROTO_GetFieldsCounters [23:29:53]wFMCommunicate request_size=4 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 13 00 00 [23:29:53]Write to MH i2c: E2 08 00 B9 19 80 13 00 00 00 00 00 00 4E [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 62 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 62 00 B9 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [23:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:53]wFMCommunicate OK [23:29:53]SAM_PROTO_GetFieldsCounters done [23:29:53]requested_item shift.num is exist - process it [23:29:53]requested_item shift.opened is exist - process it [23:29:53]req_shift_opened [23:29:53]FM_GetShiftState [23:29:53]SAM_PROTO_GetShiftState [23:29:53]wFMCommunicate request_size=4 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 13 01 00 [23:29:53]Write to MH i2c: E2 08 00 BA 19 80 13 01 00 00 00 00 00 50 [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 0E 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 0E 00 BA 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A3 [23:29:53]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:29:53]wFMCommunicate OK [23:29:53]SAM_PROTO_GetShiftState done [23:29:53]FM_GetShiftState done [23:29:53]req_shift_opened done [23:29:53]requested_item shift.open_date is exist - process it [23:29:53]req_shift_open_date [23:29:53]req_shift_open_date done [23:29:53]produce_requested_data done [23:29:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166572,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:29:53]process_action_free close_receipt [23:29:53]json_value_free [23:29:53]json_value_free done [23:29:53]process_json_proto returns [23:29:53]Send response to host [23:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166572,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:29:53]free response buf [23:29:53]execute_script done [23:29:53]execute_script returns [23:29:53]free content buf [23:29:53]Sock 7.Close socket [23:29:53]Sock 7.Thread stoped [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:51]accept exits with 9 [23:31:51]New connection [23:31:51]New thread 3067632996 created [23:31:51]Thread 3067489636 joined [23:31:51]Waiting for new connection... [23:31:51] Sock 9.Parse request [23:31:51]Sock 9.Check first char [23:31:51]Sock 9.First char is OK [23:31:51]request: POST /json_proto HTTP/1.0 [23:31:51]Method: POST [23:31:51]URL: /json_proto [23:31:51]Method is POST - this is cgi request [23:31:51]url: /json_proto [23:31:51]query_string will be loaded in cgi processing [23:31:51]execute_cgi json_proto POST (null) [23:31:51]execute_cgi path=json_proto method=POST [23:31:51]POST find Content-Length [23:31:51]Host: 172.17.53.195:8080 [23:31:51]Content-Length: 766 [23:31:51]Content-Type: application/json [23:31:51] [23:31:51]POST finish read [23:31:51]Found Content-Length = 766 [23:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:51]execute_script... [23:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:51]POST & json_proto [23:31:51]process_json_proto [23:31:51]json parsed OK: [23:31:51]protocol is kg_v1.0 [23:31:51]action value=close_receipt [23:31:51]process_action close_receipt [23:31:51]cmd_close_receipt [23:31:51]MH_GetDate [23:31:51]Write to MH i2c: F0 00 00 BB 19 C3 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 09 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 09 00 BB 19 00 E9 35 18 67 21 48 4A 65 81 [23:31:51]GetLastDocTimeStamp 1729639790 [23:31:51]current date 1729639913 [23:31:51]FM_GetShiftState [23:31:51]SAM_PROTO_GetShiftState [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 13 01 00 [23:31:51]Write to MH i2c: E2 08 00 BC 19 80 13 01 00 00 00 00 00 52 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 0E 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 0E 00 BC 19 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A5 [23:31:51]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:31:51]wFMCommunicate OK [23:31:51]SAM_PROTO_GetShiftState done [23:31:51]FM_GetShiftState done [23:31:51]opened in 1729557463 [23:31:51]opened+sec_in_day 1729643863 [23:31:51]quantity*price = 50041 [23:31:51]sum+1 = 50042 [23:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 328 22.10.2024 23:31 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166573 ФПД: 154080459222849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166573&fm=154080459222849&tin=02508201610067®Number=0000000000091764&sum=50041 [23:31:52]StoreToDocumentArchive [23:31:52]shift 536 fd 166573 [23:31:52]save to /storage/0536/doc_00166573 [23:31:52]save last doc name /storage/0536/doc_00166573 to /storage/kkm_last_doc_name [23:31:52]save OK [23:31:52]Clear old archive folders... [23:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:31:52]tlvbuf is 012A5EB0 [23:31:52]SAM_PROTO_ClearQueue [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 09 00 00 [23:31:52]Write to MH i2c: E2 08 00 C9 19 80 09 00 00 00 00 00 00 54 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_ClearQueue done [23:31:52]KKMCreateOFDPacket [23:31:52]OFDProtocolAddRootSTLVToBuf [23:31:52]FM_MakeSignedData [23:31:52]FM_MakeSignedData [23:31:52]SAM_PROTO_SignData [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 01 02 [23:31:52]Write to MH i2c: E2 08 00 CA 19 80 0D 01 02 00 00 00 00 5C [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 CA 19 00 90 00 57 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=255 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E9 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8A 02 00 35 04 06 00 8C [23:31:52]Write to MH i2c: E2 02 01 CB 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E9 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8A 02 00 35 04 06 00 8C 00 00 09 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:53]Read from MH i2c: E2 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 03 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 03 00 CB 19 00 90 00 58 [23:31:53]RAPDU: 90 00 [23:31:53]wFMCommunicate OK [23:31:53]wFMCommunicate request_size=10 [23:31:53]MH_SAM_APDU [23:31:53]CAPDU: 80 0D 02 02 05 22 A7 09 EF 41 [23:31:53]Write to MH i2c: E2 0D 00 CC 19 80 0D 02 02 05 00 22 A7 09 EF 41 00 00 6B [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:53]Read from MH i2c: E2 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 03 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 03 00 CC 19 00 90 00 59 [23:31:53]RAPDU: 90 00 [23:31:53]wFMCommunicate OK [23:31:53]wFMCommunicate request_size=4 [23:31:53]MH_SAM_APDU [23:31:53]CAPDU: 80 0D 03 02 [23:31:53]Write to MH i2c: E2 08 00 CD 19 80 0D 03 02 00 00 00 00 61 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:53]Read from MH i2c: E2 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 0B 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 0B 00 CD 19 00 5F 27 7A 54 54 00 86 2D 90 00 BD [23:31:53]RAPDU: 5F 27 7A 54 54 00 86 2D 90 00 [23:31:53]wFMCommunicate OK [23:31:53]SAM_PROTO_SignData done [23:31:53]FM_MakeSignedData done [23:31:53]CreateOFDProtocolMessage [23:31:53]wFMCommunicate request_size=4 [23:31:53]MH_SAM_APDU [23:31:53]CAPDU: 80 11 00 00 [23:31:53]Write to MH i2c: E2 08 00 CE 19 80 11 00 00 00 00 00 00 61 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:53]Read from MH i2c: E2 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 17 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 17 00 CE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [23:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:31:53]wFMCommunicate OK [23:31:53]CreateOFDProtocolMessage done [23:31:53]OFDSenderStorePacket 166573 [23:31:53]StoreOFDPacket docnum=166573 [23:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 25 07 01 A8 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E9 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8A 02 00 35 04 06 00 8C 22 A7 09 EF 41 5F 27 7A 54 54 00 86 2D [23:31:53]CheckFolder [23:31:53]dirname=/storage/ofd_packets [23:31:53]CheckFolder done [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00166573 [23:31:53]NVStorageSaveData ofd_packets/00166573 [23:31:53]File name is /storage/ofd_packets/00166573 [23:31:53]Write 301 bytes [23:31:53]NVStorageSaveData done [23:31:53]OFDSenderStorePacket done [23:31:53]KKMCreateOFDPacket done [23:31:53]NVStorageSaveData kkm_last_timestamp [23:31:53]File name is /storage/kkm_last_timestamp [23:31:53]Write 4 bytes [23:31:53]NVStorageSaveData done [23:31:53]ExternCall_PrintAddStr [23:31:53]wPrintStart [23:31:53]Write to MH i2c: 01 00 00 CF 19 E8 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 CF 19 00 00 00 00 00 FF 0F FD [23:31:53]RasterBufferAndPrint [23:31:53]line Счет N : (1)221154 [23:31:53]line ИНН: 02508201610067 [23:31:53]line Контрольно-Кассовый Чек [23:31:53]line ПРОДАЖА [23:31:53]line ТРК (МРК, ГНК) : 23 [23:31:53]line Товар: 2710124130 [23:31:53]line Аи-92-К-5 [23:31:53]line 7.480 * 66.90 [23:31:53]line = 500.41 [23:31:53]line НДС 12% НСП 1% [23:31:53]line > о реализуемом товаре [23:31:53]line ИТОГО: 500.41 [23:31:53]line НСП 1% : 4.43 [23:31:53]line НДС 12% : 53.14 [23:31:53]line Наличными: 0.00 [23:31:53]line Безнал.: 500.41 [23:31:53]line Место: АЗС № 161 "Партнер Нефть" [23:31:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:31:53]line СНО: Общий режим [23:31:53]line Чек 328 22.10.2024 23:31 [23:31:53]line Смена: 536 ФФД: 1.0 [23:31:53]line ЗНМ: 0300000104 [23:31:53]line РНМ: 0000000000091764 [23:31:53]line Версия ККМ: 001 [23:31:53]line Платежная система: Mbank [23:31:53]line ФМ: 0000000000871759 [23:31:53]line ФД: 166573 [23:31:53]line ФПД: 154080459222849 [23:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166573&fm=154080459222849&tin=02508201610067®Number=0000000000091764&sum=50041 [23:31:53]written 0, free lines is 4095 [23:31:53]OFD Sender: Processing packet 166573 [packets to send 48, broken 47] [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00166573 [23:31:53]OFD Sender: To server: pG, [23:31:53]CommunicateWithHost lk.salyk.kg:30040 [23:31:53]ConnectInit lk.salyk.kg [23:31:53]Connected sock=10 [23:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 25 07 01 A8 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 E9 35 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8A 02 00 35 04 06 00 8C 22 A7 09 EF 41 5F 27 7A 54 54 00 86 2D [23:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 7D 47 00 D5 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 8A 02 00 F4 03 04 00 52 DC 17 67 B6 04 01 00 00 C7 15 1C 88 40 22 27 27 [23:31:53]CommunicateWithHost err = 0 [23:31:53]CheckOFDResponse [23:31:53]1017 (14) - 77093643461234 [23:31:53]1041 (16) - 0000000000871759 [23:31:53]1040 (4) - 166573 [23:31:53]1012 (4) - 22.10.2024 17:09 [23:31:53]1206 (1) - 0 [23:31:53]OFD Sender: Remove packet 166573 [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00166573 [23:31:53]NVStorageDeleteData [23:31:53]Write to MH i2c: 01 00 00 F8 19 11 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 F8 19 00 00 00 00 00 D5 0C F9 [23:31:53]RasterBufferAndPrint [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]written 0, free lines is 3294 [23:31:53]MH_Cut [23:31:53]Write to MH i2c: D1 01 00 FF 19 01 EA [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 FF 19 00 E9 [23:31:53]Write to MH i2c: 01 00 00 00 1A 1A [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:54]OFD Sender: No OFD packet to send [23:31:54]*** Cut start [23:31:54]*** Partial cut [23:31:54]*** CUTSNS_PIN = 1 [23:31:54]*** CUTSNS_PIN = 0 [23:31:54]*** Brake cut motor [23:31:55]Read from MH i2c: 01 [23:31:55]MH_I2C_Read... [23:31:55]*** Stop cut motor [23:31:55]*** Cut end [23:31:55]Read from MH i2c: 01 07 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: 01 07 00 00 1A 00 00 00 00 00 FF 0F 2F [23:31:55]process_action close_receipt done [23:31:55]requested_data is exist [23:31:55]produce_requested_data [23:31:55]requested_item fm.sn is exist - process it [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 11 00 00 [23:31:55]Write to MH i2c: E2 08 00 01 1A 80 11 00 00 00 00 00 00 95 [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 17 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 17 00 01 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [23:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:31:55]wFMCommunicate OK [23:31:55]requested_item fd.num is exist - process it [23:31:55]SAM_PROTO_GetFieldsCounters [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 13 00 00 [23:31:55]Write to MH i2c: E2 08 00 02 1A 80 13 00 00 00 00 00 00 98 [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 62 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 62 00 02 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [23:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:55]wFMCommunicate OK [23:31:55]SAM_PROTO_GetFieldsCounters done [23:31:55]requested_item shift.num is exist - process it [23:31:55]requested_item shift.opened is exist - process it [23:31:55]req_shift_opened [23:31:55]FM_GetShiftState [23:31:55]SAM_PROTO_GetShiftState [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 13 01 00 [23:31:55]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 0E 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 ED [23:31:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:31:55]wFMCommunicate OK [23:31:55]SAM_PROTO_GetShiftState done [23:31:55]FM_GetShiftState done [23:31:55]req_shift_opened done [23:31:55]requested_item shift.open_date is exist - process it [23:31:55]req_shift_open_date [23:31:55]req_shift_open_date done [23:31:55]produce_requested_data done [23:31:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166573,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:31:55]process_action_free close_receipt [23:31:55]json_value_free [23:31:55]json_value_free done [23:31:55]process_json_proto returns [23:31:55]Send response to host [23:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166573,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:31:55]free response buf [23:31:55]execute_script done [23:31:55]execute_script returns [23:31:55]free content buf [23:31:55]Sock 9.Close socket [23:31:55]Sock 9.Thread stoped [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:07]accept exits with 7 [23:39:07]New connection [23:39:07]New thread 3067489636 created [23:39:07]Thread 3067632996 joined [23:39:07]Waiting for new connection... [23:39:07] Sock 7.Parse request [23:39:07]Sock 7.Check first char [23:39:07]Sock 7.First char is OK [23:39:07]request: POST /json_proto HTTP/1.0 [23:39:07]Method: POST [23:39:07]URL: /json_proto [23:39:07]Method is POST - this is cgi request [23:39:07]url: /json_proto [23:39:07]query_string will be loaded in cgi processing [23:39:07]execute_cgi json_proto POST (null) [23:39:07]execute_cgi path=json_proto method=POST [23:39:07]POST find Content-Length [23:39:07]Host: 172.17.53.195:8080 [23:39:07]Content-Length: 769 [23:39:07]Content-Type: application/json [23:39:07] [23:39:07]POST finish read [23:39:07]Found Content-Length = 769 [23:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.790, "sum" : 1056.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1056.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]execute_script... [23:39: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)221156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.790, "sum" : 1056.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1056.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]POST & json_proto [23:39:07]process_json_proto [23:39:07]json parsed OK: [23:39:07]protocol is kg_v1.0 [23:39:07]action value=close_receipt [23:39:07]process_action close_receipt [23:39:07]cmd_close_receipt [23:39:07]MH_GetDate [23:39:07]Write to MH i2c: F0 00 00 04 1A 0D [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 09 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 09 00 04 1A 00 9D 37 18 67 21 48 4A 65 81 [23:39:07]GetLastDocTimeStamp 1729639913 [23:39:07]current date 1729640349 [23:39:07]FM_GetShiftState [23:39:07]SAM_PROTO_GetShiftState [23:39:07]wFMCommunicate request_size=4 [23:39:07]MH_SAM_APDU [23:39:07]CAPDU: 80 13 01 00 [23:39:07]Write to MH i2c: E2 08 00 05 1A 80 13 01 00 00 00 00 00 9C [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:07]Read from MH i2c: E2 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: E2 0E 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: E2 0E 00 05 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 EF [23:39:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:39:07]wFMCommunicate OK [23:39:07]SAM_PROTO_GetShiftState done [23:39:07]FM_GetShiftState done [23:39:07]opened in 1729557463 [23:39:07]opened+sec_in_day 1729643863 [23:39:07]quantity*price = 105635 [23:39:07]sum+1 = 105636 [23:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1056.35 НСП 1% : 9.35 НДС 12% : 112.18 Наличными: 0.00 Безнал.: 1056.35 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 329 22.10.2024 23:39 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166574 ФПД: 51953287344364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233909&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166574&fm=51953287344364&tin=02508201610067®Number=0000000000091764&sum=105635 [23:39:08]StoreToDocumentArchive [23:39:08]shift 536 fd 166574 [23:39:08]save to /storage/0536/doc_00166574 [23:39:08]save last doc name /storage/0536/doc_00166574 to /storage/kkm_last_doc_name [23:39:08]save OK [23:39:08]Clear old archive folders... [23:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:39:08]tlvbuf is 012A61A0 [23:39:08]SAM_PROTO_ClearQueue [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 09 00 00 [23:39:08]Write to MH i2c: E2 08 00 12 1A 80 09 00 00 00 00 00 00 9E [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_ClearQueue done [23:39:08]KKMCreateOFDPacket [23:39:08]OFDProtocolAddRootSTLVToBuf [23:39:08]FM_MakeSignedData [23:39:08]FM_MakeSignedData [23:39:08]SAM_PROTO_SignData [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 01 02 [23:39:08]Write to MH i2c: E2 08 00 13 1A 80 0D 01 02 00 00 00 00 A6 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=255 [23:39:08]MH_SAM_APDU [23:39: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 AE 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 37 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8A 02 00 35 04 06 00 2F [23:39:08]Write to MH i2c: E2 02 01 14 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 37 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8A 02 00 35 04 06 00 2F 00 00 65 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 14 1A 00 90 00 A2 [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=10 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 02 02 05 40 51 3C B0 EC [23:39:08]Write to MH i2c: E2 0D 00 15 1A 80 0D 02 02 05 00 40 51 3C B0 EC 00 00 1C [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 15 1A 00 90 00 A3 [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 03 02 [23:39:08]Write to MH i2c: E2 08 00 16 1A 80 0D 03 02 00 00 00 00 AB [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0B 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0B 00 16 1A 00 82 07 D6 07 4C 7C D7 7C 90 00 2D [23:39:08]RAPDU: 82 07 D6 07 4C 7C D7 7C 90 00 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_SignData done [23:39:08]FM_MakeSignedData done [23:39:08]CreateOFDProtocolMessage [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 11 00 00 [23:39:08]Write to MH i2c: E2 08 00 17 1A 80 11 00 00 00 00 00 00 AB [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 17 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 17 00 17 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [23:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:39:08]wFMCommunicate OK [23:39:08]CreateOFDProtocolMessage done [23:39:08]OFDSenderStorePacket 166574 [23:39:08]StoreOFDPacket docnum=166574 [23:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 8C 07 01 63 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 37 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8A 02 00 35 04 06 00 2F 40 51 3C B0 EC 82 07 D6 07 4C 7C D7 7C [23:39:08]CheckFolder [23:39:08]dirname=/storage/ofd_packets [23:39:08]CheckFolder done [23:39:08]ProducePacketName [23:39:08]name=ofd_packets/00166574 [23:39:08]NVStorageSaveData ofd_packets/00166574 [23:39:08]File name is /storage/ofd_packets/00166574 [23:39:08]Write 301 bytes [23:39:08]NVStorageSaveData done [23:39:08]OFDSenderStorePacket done [23:39:08]KKMCreateOFDPacket done [23:39:08]NVStorageSaveData kkm_last_timestamp [23:39:08]File name is /storage/kkm_last_timestamp [23:39:08]Write 4 bytes [23:39:08]NVStorageSaveData done [23:39:08]ExternCall_PrintAddStr [23:39:08]wPrintStart [23:39:08]Write to MH i2c: 01 00 00 18 1A 32 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: 01 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: 01 07 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: 01 07 00 18 1A 00 00 00 00 00 FF 0F 47 [23:39:08]RasterBufferAndPrint [23:39:08]line Счет N : (1)221156 [23:39:08]line ИНН: 02508201610067 [23:39:08]line Контрольно-Кассовый Чек [23:39:08]line ПРОДАЖА [23:39:08]line ТРК (МРК, ГНК) : 13 [23:39:08]line Товар: 2710124130 [23:39:08]line Аи-92-К-5 [23:39:08]line 15.790 * 66.90 [23:39:08]line = 1056.35 [23:39:08]line НДС 12% НСП 1% [23:39:08]line > о реализуемом товаре [23:39:08]line ИТОГО: 1056.35 [23:39:08]line НСП 1% : 9.35 [23:39:08]line НДС 12% : 112.18 [23:39:08]line Наличными: 0.00 [23:39:08]line Безнал.: 1056.35 [23:39:08]line Место: АЗС № 161 "Партнер Нефть" [23:39:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:39:08]line СНО: Общий режим [23:39:08]line Чек 329 22.10.2024 23:39 [23:39:08]line Смена: 536 ФФД: 1.0 [23:39:08]line ЗНМ: 0300000104 [23:39:08]line РНМ: 0000000000091764 [23:39:08]line Версия ККМ: 001 [23:39:08]line Платежная система: Mbank [23:39:08]line ФМ: 0000000000871759 [23:39:08]line ФД: 166574 [23:39:08]line ФПД: 51953287344364 [23:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233909&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166574&fm=51953287344364&tin=02508201610067®Number=0000000000091764&sum=105635 [23:39:09]written 0, free lines is 4095 [23:39:09]OFD Sender: Processing packet 166574 [packets to send 48, broken 47] [23:39:09]ProducePacketName [23:39:09]name=ofd_packets/00166574 [23:39:09]OFD Sender: To server: pG, [23:39:09]CommunicateWithHost lk.salyk.kg:30040 [23:39:09]ConnectInit lk.salyk.kg [23:39:09]Write to MH i2c: 01 00 00 41 1A 5B [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 41 1A 00 00 00 00 00 D0 0C 3E [23:39:09]RasterBufferAndPrint [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]written 0, free lines is 3285 [23:39:09]MH_Cut [23:39:09]Write to MH i2c: D1 01 00 48 1A 01 34 [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 01 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 01 00 48 1A 00 33 [23:39:09]Write to MH i2c: 01 00 00 49 1A 63 [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:10]*** Cut start [23:39:10]*** Partial cut [23:39:10]*** CUTSNS_PIN = 1 [23:39:10]*** CUTSNS_PIN = 0 [23:39:10]*** Brake cut motor [23:39:11]Read from MH i2c: 01 [23:39:11]MH_I2C_Read... [23:39:11]*** Stop cut motor [23:39:11]*** Cut end [23:39:11]Read from MH i2c: 01 07 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [23:39:11]process_action close_receipt done [23:39:11]requested_data is exist [23:39:11]produce_requested_data [23:39:11]requested_item fm.sn is exist - process it [23:39:11]wFMCommunicate request_size=4 [23:39:11]MH_SAM_APDU [23:39:11]CAPDU: 80 11 00 00 [23:39:11]Write to MH i2c: E2 08 00 4A 1A 80 11 00 00 00 00 00 00 DE [23:39:11]Write i2c OK [23:39:11]MH_I2C_Read... [23:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:11]Read from MH i2c: E2 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 17 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 17 00 4A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [23:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:39:11]wFMCommunicate OK [23:39:11]requested_item fd.num is exist - process it [23:39:11]SAM_PROTO_GetFieldsCounters [23:39:11]wFMCommunicate request_size=4 [23:39:11]MH_SAM_APDU [23:39:11]CAPDU: 80 13 00 00 [23:39:11]Write to MH i2c: E2 08 00 4B 1A 80 13 00 00 00 00 00 00 E1 [23:39:11]Write i2c OK [23:39:11]MH_I2C_Read... [23:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:11]Read from MH i2c: E2 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 62 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 62 00 4B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:11]wFMCommunicate OK [23:39:11]SAM_PROTO_GetFieldsCounters done [23:39:11]requested_item shift.num is exist - process it [23:39:11]requested_item shift.opened is exist - process it [23:39:11]req_shift_opened [23:39:11]FM_GetShiftState [23:39:11]SAM_PROTO_GetShiftState [23:39:11]wFMCommunicate request_size=4 [23:39:11]MH_SAM_APDU [23:39:11]CAPDU: 80 13 01 00 [23:39:11]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [23:39:11]Write i2c OK [23:39:11]MH_I2C_Read... [23:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:11]Read from MH i2c: E2 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 0E 00 [23:39:11]MH_I2C_Read... [23:39:11]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 36 [23:39:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:39:11]wFMCommunicate OK [23:39:11]SAM_PROTO_GetShiftState done [23:39:11]FM_GetShiftState done [23:39:11]req_shift_opened done [23:39:11]requested_item shift.open_date is exist - process it [23:39:11]req_shift_open_date [23:39:11]req_shift_open_date done [23:39:11]produce_requested_data done [23:39:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166574,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:39:11]process_action_free close_receipt [23:39:11]json_value_free [23:39:11]json_value_free done [23:39:11]process_json_proto returns [23:39:11]Send response to host [23:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166574,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:39:11]free response buf [23:39:11]execute_script done [23:39:11]execute_script returns [23:39:11]free content buf [23:39:11]Sock 7.Close socket [23:39:11]Sock 7.Thread stoped [23:41:21]ConnectInit Can't connect to host [23:41:21]CommunicateWithHost connect error [23:41:21]CommunicateWithHost err = -1 [23:41:21]OFD Sender: Server communicate error [23:41:26]OFD Sender: Processing packet 166574 [packets to send 48, broken 47] [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00166574 [23:41:26]OFD Sender: To server: pG, [23:41:26]CommunicateWithHost lk.salyk.kg:30040 [23:41:26]ConnectInit lk.salyk.kg [23:41:26]Connected sock=7 [23:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 8C 07 01 63 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 3D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 9D 37 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8A 02 00 35 04 06 00 2F 40 51 3C B0 EC 82 07 D6 07 4C 7C D7 7C [23:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6B 62 47 00 4A 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 8A 02 00 F4 03 04 00 90 DE 17 67 B6 04 01 00 00 1A D7 DF 80 CD 10 F3 D8 [23:41:27]CommunicateWithHost err = 0 [23:41:27]CheckOFDResponse [23:41:27]1017 (14) - 77093643461234 [23:41:27]1041 (16) - 0000000000871759 [23:41:27]1040 (4) - 166574 [23:41:27]1012 (4) - 22.10.2024 17:19 [23:41:27]1206 (1) - 0 [23:41:27]OFD Sender: Remove packet 166574 [23:41:27]ProducePacketName [23:41:27]name=ofd_packets/00166574 [23:41:27]NVStorageDeleteData [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]accept exits with 9 [23:43:37]New connection [23:43:37]New thread 3067632996 created [23:43:37]Thread 3067489636 joined [23:43:37]Waiting for new connection... [23:43:37] Sock 9.Parse request [23:43:37]Sock 9.Check first char [23:43:37]Sock 9.First char is OK [23:43:37]request: POST /json_proto HTTP/1.0 [23:43:37]Method: POST [23:43:37]URL: /json_proto [23:43:37]Method is POST - this is cgi request [23:43:37]url: /json_proto [23:43:37]query_string will be loaded in cgi processing [23:43:37]execute_cgi json_proto POST (null) [23:43:37]execute_cgi path=json_proto method=POST [23:43:37]POST find Content-Length [23:43:37]Host: 172.17.53.195:8080 [23:43:37]Content-Length: 682 [23:43:37]Content-Type: application/json [23:43:37] [23:43:37]POST finish read [23:43:37]Found Content-Length = 682 [23:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:37]execute_script... [23:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:37]POST & json_proto [23:43:37]process_json_proto [23:43:37]json parsed OK: [23:43:37]protocol is kg_v1.0 [23:43:37]action value=close_receipt [23:43:37]process_action close_receipt [23:43:37]cmd_close_receipt [23:43:37]MH_GetDate [23:43:37]Write to MH i2c: F0 00 00 4D 1A 56 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: F0 09 00 4D 1A 00 AA 38 18 67 21 48 4A 65 D8 [23:43:37]GetLastDocTimeStamp 1729640349 [23:43:37]current date 1729640618 [23:43:37]FM_GetShiftState [23:43:37]SAM_PROTO_GetShiftState [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 13 01 00 [23:43:37]Write to MH i2c: E2 08 00 4E 1A 80 13 01 00 00 00 00 00 E5 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 4E 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 38 [23:43:37]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetShiftState done [23:43:37]FM_GetShiftState done [23:43:37]opened in 1729557463 [23:43:37]opened+sec_in_day 1729643863 [23:43:37]quantity*price = 100021 [23:43:37]sum+1 = 100023 [23:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 330 22.10.2024 23:43 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166575 ФПД: 168905644831343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234338&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166575&fm=168905644831343&tin=02508201610067®Number=0000000000091764&sum=100000 [23:43:38]StoreToDocumentArchive [23:43:38]shift 536 fd 166575 [23:43:38]save to /storage/0536/doc_00166575 [23:43:38]save last doc name /storage/0536/doc_00166575 to /storage/kkm_last_doc_name [23:43:38]save OK [23:43:38]Clear old archive folders... [23:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:43:38]tlvbuf is 012ABB90 [23:43:38]SAM_PROTO_ClearQueue [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 09 00 00 [23:43:38]Write to MH i2c: E2 08 00 5B 1A 80 09 00 00 00 00 00 00 E7 [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [23:43:38]RAPDU: 90 00 [23:43:38]wFMCommunicate OK [23:43:38]SAM_PROTO_ClearQueue done [23:43:38]KKMCreateOFDPacket [23:43:38]OFDProtocolAddRootSTLVToBuf [23:43:38]FM_MakeSignedData [23:43:38]FM_MakeSignedData [23:43:38]SAM_PROTO_SignData [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 0D 01 02 [23:43:38]Write to MH i2c: E2 08 00 5C 1A 80 0D 01 02 00 00 00 00 EF [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [23:43:38]RAPDU: 90 00 [23:43:38]wFMCommunicate OK [23:43:38]wFMCommunicate request_size=255 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 AA 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8A 02 00 35 04 06 00 99 [23:43:38]Write to MH i2c: E2 02 01 5D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 AA 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8A 02 00 35 04 06 00 99 00 00 3C [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [23:43:38]RAPDU: 90 00 [23:43:38]wFMCommunicate OK [23:43:38]wFMCommunicate request_size=10 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 0D 02 02 05 9E 68 F5 F2 6F [23:43:38]Write to MH i2c: E2 0D 00 5E 1A 80 0D 02 02 05 00 9E 68 F5 F2 6F 00 00 58 [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [23:43:38]RAPDU: 90 00 [23:43:38]wFMCommunicate OK [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 0D 03 02 [23:43:38]Write to MH i2c: E2 08 00 5F 1A 80 0D 03 02 00 00 00 00 F4 [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 0B 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 0B 00 5F 1A 00 3B 5A BA 3C 74 DE FD 41 90 00 10 [23:43:38]RAPDU: 3B 5A BA 3C 74 DE FD 41 90 00 [23:43:38]wFMCommunicate OK [23:43:38]SAM_PROTO_SignData done [23:43:38]FM_MakeSignedData done [23:43:38]CreateOFDProtocolMessage [23:43:38]wFMCommunicate request_size=4 [23:43:38]MH_SAM_APDU [23:43:38]CAPDU: 80 11 00 00 [23:43:38]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:38]Read from MH i2c: E2 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 17 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: E2 17 00 60 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [23:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:43:38]wFMCommunicate OK [23:43:38]CreateOFDProtocolMessage done [23:43:38]OFDSenderStorePacket 166575 [23:43:38]StoreOFDPacket docnum=166575 [23:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 90 07 01 A5 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 AA 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8A 02 00 35 04 06 00 99 9E 68 F5 F2 6F 3B 5A BA 3C 74 DE FD 41 [23:43:38]CheckFolder [23:43:38]dirname=/storage/ofd_packets [23:43:38]CheckFolder done [23:43:38]ProducePacketName [23:43:38]name=ofd_packets/00166575 [23:43:38]NVStorageSaveData ofd_packets/00166575 [23:43:38]File name is /storage/ofd_packets/00166575 [23:43:38]Write 301 bytes [23:43:38]NVStorageSaveData done [23:43:38]OFDSenderStorePacket done [23:43:38]KKMCreateOFDPacket done [23:43:38]NVStorageSaveData kkm_last_timestamp [23:43:38]File name is /storage/kkm_last_timestamp [23:43:38]Write 4 bytes [23:43:38]NVStorageSaveData done [23:43:38]ExternCall_PrintAddStr [23:43:38]wPrintStart [23:43:38]Write to MH i2c: 01 00 00 61 1A 7B [23:43:38]Write i2c OK [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: 01 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: 01 07 00 [23:43:38]MH_I2C_Read... [23:43:38]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 FF 0F 90 [23:43:38]RasterBufferAndPrint [23:43:38]line Счет N : (1)221157 [23:43:38]line ИНН: 02508201610067 [23:43:38]line Контрольно-Кассовый Чек [23:43:38]line ПРОДАЖА [23:43:38]line ТРК (МРК, ГНК) : 34 [23:43:38]line Товар: 2710124500 [23:43:38]line Аи-95-К-5 [23:43:38]line 13.480 * 74.20 [23:43:38]line = 1000.22 [23:43:38]line НДС 12% НСП 1% [23:43:38]line > о реализуемом товаре [23:43:38]line ОКРУГЛЕНИЕ: -0.22 [23:43:38]line ИТОГО: 1000.00 [23:43:38]line Внесено: 1000.00 [23:43:38]line СДАЧА: 0.00 [23:43:38]line НСП 1% : 8.85 [23:43:38]line НДС 12% : 106.22 [23:43:38]line Наличными: 1000.00 [23:43:38]line Безнал.: 0.00 [23:43:38]line Место: АЗС № 161 "Партнер Нефть" [23:43:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:43:38]line СНО: Общий режим [23:43:38]line Чек 330 22.10.2024 23:43 [23:43:38]line Смена: 536 ФФД: 1.0 [23:43:38]line ЗНМ: 0300000104 [23:43:38]line РНМ: 0000000000091764 [23:43:38]line Версия ККМ: 001 [23:43:38]line ФМ: 0000000000871759 [23:43:38]line ФД: 166575 [23:43:38]line ФПД: 168905644831343 [23:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234338&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166575&fm=168905644831343&tin=02508201610067®Number=0000000000091764&sum=100000 [23:43:39]OFD Sender: Processing packet 166575 [packets to send 48, broken 47] [23:43:39]ProducePacketName [23:43:39]name=ofd_packets/00166575 [23:43:39]OFD Sender: To server: pG, [23:43:39]CommunicateWithHost lk.salyk.kg:30040 [23:43:39]ConnectInit lk.salyk.kg [23:43:39]written 0, free lines is 4095 [23:43:39]Connected sock=10 [23:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 90 07 01 A5 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 AA 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8A 02 00 35 04 06 00 99 9E 68 F5 F2 6F 3B 5A BA 3C 74 DE FD 41 [23:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B0 A8 47 00 1C 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 8A 02 00 F4 03 04 00 14 DF 17 67 B6 04 01 00 00 19 03 86 57 BC 23 0B B9 [23:43:39]CommunicateWithHost err = 0 [23:43:39]CheckOFDResponse [23:43:39]1017 (14) - 77093643461234 [23:43:39]1041 (16) - 0000000000871759 [23:43:39]1040 (4) - 166575 [23:43:39]1012 (4) - 22.10.2024 17:21 [23:43:39]1206 (1) - 0 [23:43:39]OFD Sender: Remove packet 166575 [23:43:39]ProducePacketName [23:43:39]name=ofd_packets/00166575 [23:43:39]NVStorageDeleteData [23:43:39]Write to MH i2c: 01 00 00 8C 1A A6 [23:43:39]Write i2c OK [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: 01 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: 01 07 00 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 AC 0C 65 [23:43:39]RasterBufferAndPrint [23:43:39]line [23:43:39]line [23:43:39]line [23:43:39]line [23:43:39]line [23:43:39]written 0, free lines is 3249 [23:43:39]MH_Cut [23:43:39]Write to MH i2c: D1 01 00 93 1A 01 7F [23:43:39]Write i2c OK [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: D1 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: D1 01 00 [23:43:39]MH_I2C_Read... [23:43:39]Read from MH i2c: D1 01 00 93 1A 00 7E [23:43:39]Write to MH i2c: 01 00 00 94 1A AE [23:43:39]Write i2c OK [23:43:39]MH_I2C_Read... [23:43:39]OFD Sender: No OFD packet to send [23:43:40]*** Cut start [23:43:40]*** Partial cut [23:43:40]*** CUTSNS_PIN = 1 [23:43:40]*** CUTSNS_PIN = 0 [23:43:40]*** Brake cut motor [23:43:41]Read from MH i2c: 01 [23:43:41]MH_I2C_Read... [23:43:41]*** Stop cut motor [23:43:41]*** Cut end [23:43:41]Read from MH i2c: 01 07 00 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [23:43:41]process_action close_receipt done [23:43:41]requested_data is exist [23:43:41]produce_requested_data [23:43:41]requested_item fm.sn is exist - process it [23:43:41]wFMCommunicate request_size=4 [23:43:41]MH_SAM_APDU [23:43:41]CAPDU: 80 11 00 00 [23:43:41]Write to MH i2c: E2 08 00 95 1A 80 11 00 00 00 00 00 00 29 [23:43:41]Write i2c OK [23:43:41]MH_I2C_Read... [23:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:41]Read from MH i2c: E2 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 17 00 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 17 00 95 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [23:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:43:41]wFMCommunicate OK [23:43:41]requested_item fd.num is exist - process it [23:43:41]SAM_PROTO_GetFieldsCounters [23:43:41]wFMCommunicate request_size=4 [23:43:41]MH_SAM_APDU [23:43:41]CAPDU: 80 13 00 00 [23:43:41]Write to MH i2c: E2 08 00 96 1A 80 13 00 00 00 00 00 00 2C [23:43:41]Write i2c OK [23:43:41]MH_I2C_Read... [23:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:41]Read from MH i2c: E2 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 62 00 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 62 00 96 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [23:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:41]wFMCommunicate OK [23:43:41]SAM_PROTO_GetFieldsCounters done [23:43:41]requested_item shift.num is exist - process it [23:43:41]requested_item shift.opened is exist - process it [23:43:41]req_shift_opened [23:43:41]FM_GetShiftState [23:43:41]SAM_PROTO_GetShiftState [23:43:41]wFMCommunicate request_size=4 [23:43:41]MH_SAM_APDU [23:43:41]CAPDU: 80 13 01 00 [23:43:41]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [23:43:41]Write i2c OK [23:43:41]MH_I2C_Read... [23:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:41]Read from MH i2c: E2 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 0E 00 [23:43:41]MH_I2C_Read... [23:43:41]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 81 [23:43:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:43:41]wFMCommunicate OK [23:43:41]SAM_PROTO_GetShiftState done [23:43:41]FM_GetShiftState done [23:43:41]req_shift_opened done [23:43:41]requested_item shift.open_date is exist - process it [23:43:41]req_shift_open_date [23:43:41]req_shift_open_date done [23:43:41]produce_requested_data done [23:43:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166575,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:43:41]process_action_free close_receipt [23:43:41]json_value_free [23:43:41]json_value_free done [23:43:41]process_json_proto returns [23:43:41]Send response to host [23:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166575,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:43:41]free response buf [23:43:41]execute_script done [23:43:41]execute_script returns [23:43:41]free content buf [23:43:41]Sock 9.Close socket [23:43:41]Sock 9.Thread stoped [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:00]accept exits with 7 [23:44:00]New connection [23:44:00]New thread 3067489636 created [23:44:00]Thread 3067632996 joined [23:44:00]Waiting for new connection... [23:44:00] Sock 7.Parse request [23:44:00]Sock 7.Check first char [23:44:00]Sock 7.First char is OK [23:44:00]request: POST /json_proto HTTP/1.0 [23:44:00]Method: POST [23:44:00]URL: /json_proto [23:44:00]Method is POST - this is cgi request [23:44:00]url: /json_proto [23:44:00]query_string will be loaded in cgi processing [23:44:00]execute_cgi json_proto POST (null) [23:44:00]execute_cgi path=json_proto method=POST [23:44:00]POST find Content-Length [23:44:00]Host: 172.17.53.195:8080 [23:44:00]Content-Length: 215 [23:44:00]Content-Type: application/json [23:44:00] [23:44:00]POST finish read [23:44:00]Found Content-Length = 215 [23:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:00]execute_script... [23:44:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:00]POST & json_proto [23:44:00]process_json_proto [23:44:00]json parsed OK: [23:44:00]protocol is kg_v1.0 [23:44:00]action value=get_value [23:44:00]process_action get_value [23:44:00]cmd_get_value [23:44:00]process_action get_value done [23:44:00]requested_data is exist [23:44:00]produce_requested_data [23:44:00]requested_item kkm.sn is exist - process it [23:44:00]requested_item kkm.ver is exist - process it [23:44:00]requested_item fm.sn is exist - process it [23:44:00]wFMCommunicate request_size=4 [23:44:00]MH_SAM_APDU [23:44:00]CAPDU: 80 11 00 00 [23:44:00]Write to MH i2c: E2 08 00 98 1A 80 11 00 00 00 00 00 00 2C [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:00]Read from MH i2c: E2 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 17 00 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 17 00 98 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [23:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:44:00]wFMCommunicate OK [23:44:00]requested_item fd.num is exist - process it [23:44:00]SAM_PROTO_GetFieldsCounters [23:44:00]wFMCommunicate request_size=4 [23:44:00]MH_SAM_APDU [23:44:00]CAPDU: 80 13 00 00 [23:44:00]Write to MH i2c: E2 08 00 99 1A 80 13 00 00 00 00 00 00 2F [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:00]Read from MH i2c: E2 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 62 00 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 62 00 99 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [23:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:00]wFMCommunicate OK [23:44:00]SAM_PROTO_GetFieldsCounters done [23:44:00]requested_item shift.num is exist - process it [23:44:00]requested_item shift.opened is exist - process it [23:44:00]req_shift_opened [23:44:00]FM_GetShiftState [23:44:00]SAM_PROTO_GetShiftState [23:44:00]wFMCommunicate request_size=4 [23:44:00]MH_SAM_APDU [23:44:00]CAPDU: 80 13 01 00 [23:44:00]Write to MH i2c: E2 08 00 9A 1A 80 13 01 00 00 00 00 00 31 [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:00]Read from MH i2c: E2 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 0E 00 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: E2 0E 00 9A 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 84 [23:44:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:44:00]wFMCommunicate OK [23:44:00]SAM_PROTO_GetShiftState done [23:44:00]FM_GetShiftState done [23:44:00]req_shift_opened done [23:44:00]requested_item shift.open_date is exist - process it [23:44:00]req_shift_open_date [23:44:00]req_shift_open_date done [23:44:00]produce_requested_data done [23:44:00]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166575,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:44:00]process_action_free get_value [23:44:00]json_value_free [23:44:00]json_value_free done [23:44:00]process_json_proto returns [23:44:00]Send response to host [23:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166575,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:44:00]free response buf [23:44:00]execute_script done [23:44:00]execute_script returns [23:44:00]free content buf [23:44:00]Sock 7.Close socket [23:44:00]Sock 7.Thread stoped [23:44:00]accept exits with 9 [23:44:00]New connection [23:44:00]New thread 3067632996 created [23:44:00]Thread 3067489636 joined [23:44:00]Waiting for new connection... [23:44:00] Sock 9.Parse request [23:44:00]Sock 9.Check first char [23:44:00]Sock 9.First char is OK [23:44:00]request: POST /json_proto HTTP/1.0 [23:44:00]Method: POST [23:44:00]URL: /json_proto [23:44:00]Method is POST - this is cgi request [23:44:00]url: /json_proto [23:44:00]query_string will be loaded in cgi processing [23:44:00]execute_cgi json_proto POST (null) [23:44:00]execute_cgi path=json_proto method=POST [23:44:00]POST find Content-Length [23:44:00]Host: 172.17.53.195:8080 [23:44:00]Content-Length: 331 [23:44:00]Content-Type: application/json [23:44:00] [23:44:00]POST finish read [23:44:00]Found Content-Length = 331 [23:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:44:00]execute_script... [23:44:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:44:00]POST & json_proto [23:44:00]process_json_proto [23:44:00]json parsed OK: [23:44:00]protocol is kg_v1.0 [23:44:00]action value=get_value [23:44:00]process_action get_value [23:44:00]cmd_get_value [23:44:00]process_action get_value done [23:44:00]requested_data is exist [23:44:00]produce_requested_data [23:44:00]requested_item fm.sale.total is exist - process it [23:44:00]SAM_PROTO_GetFMData [23:44:00]wFMCommunicate request_size=4 [23:44:00]MH_SAM_APDU [23:44:00]CAPDU: 80 13 03 00 [23:44:00]Write to MH i2c: E2 08 00 9B 1A 80 13 03 00 00 00 00 00 34 [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:44:01]Read from MH i2c: E2 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 9B 1A 00 C5 04 85 04 C1 04 6E 04 04 00 7F 86 02 00 69 04 A3 00 6F 04 04 00 80 85 02 00 B1 04 05 00 22 EC 52 B4 03 70 04 05 00 30 CA 50 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1C E2 BF 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 35 3A 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 0A [23:44:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7F 86 02 00 69 04 A3 00 6F 04 04 00 80 85 02 00 B1 04 05 00 22 EC 52 B4 03 70 04 05 00 30 CA 50 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1C E2 BF 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 35 3A 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [23:44:01]wFMCommunicate OK [23:44:01]wFMCommunicate request_size=4 [23:44:01]MH_SAM_APDU [23:44:01]CAPDU: 80 17 00 00 [23:44:01]Write to MH i2c: E2 08 00 9C 1A 80 17 00 00 00 00 00 00 36 [23:44:01]Write i2c OK [23:44:01]MH_I2C_Read... [23:44:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:01]Read from MH i2c: E2 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 9C 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 02 [23:44:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:44:01]wFMCommunicate OK [23:44:01]wFMCommunicate request_size=4 [23:44:01]MH_SAM_APDU [23:44:01]CAPDU: 80 17 00 00 [23:44:01]Write to MH i2c: E2 08 00 9D 1A 80 17 00 00 00 00 00 00 37 [23:44:01]Write i2c OK [23:44:01]MH_I2C_Read... [23:44:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:01]Read from MH i2c: E2 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 9D 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 49 [23:44:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:44:01]wFMCommunicate OK [23:44:01]wFMCommunicate request_size=4 [23:44:01]MH_SAM_APDU [23:44:01]CAPDU: 80 17 00 00 [23:44:01]Write to MH i2c: E2 08 00 9E 1A 80 17 00 00 00 00 00 00 38 [23:44:01]Write i2c OK [23:44:01]MH_I2C_Read... [23:44:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:01]Read from MH i2c: E2 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 [23:44:01]MH_I2C_Read... [23:44:01]Read from MH i2c: E2 FD 00 9E 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C4 [23:44:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:44:01]wFMCommunicate OK [23:44:01]wFMCommunicate request_size=4 [23:44:01]MH_SAM_APDU [23:44:01]CAPDU: 80 17 00 00 [23:44:01]Write to MH i2c: E2 08 00 9F 1A 80 17 00 00 00 00 00 00 39 [23:44:01]Write i2c OK [23:44:01]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 E2 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 E2 00 9F 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 17 [23:44:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:02]wFMCommunicate OK [23:44:02]SAM_PROTO_GetFMData done [23:44:02]requested_item fm.sale_refund.total is exist - process it [23:44:02]requested_item fm.buy.total is exist - process it [23:44:02]requested_item shift.sale.total is exist - process it [23:44:02]SAM_PROTO_GetShiftData [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 13 02 00 [23:44:02]Write to MH i2c: E2 08 00 A0 1A 80 13 02 00 00 00 00 00 38 [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:44:02]Read from MH i2c: E2 FD 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 FD 00 A0 1A 00 B1 04 AA 04 AD 04 6E 04 04 00 4A 01 00 00 69 04 9E 00 6F 04 04 00 4A 01 00 00 B1 04 04 00 6E 1D DE 01 70 04 04 00 18 5C 80 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 C9 32 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 70 3B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EB [23:44:02]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4A 01 00 00 69 04 9E 00 6F 04 04 00 4A 01 00 00 B1 04 04 00 6E 1D DE 01 70 04 04 00 18 5C 80 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 C9 32 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 70 3B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:44:02]wFMCommunicate OK [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 17 00 00 [23:44:02]Write to MH i2c: E2 08 00 A1 1A 80 17 00 00 00 00 00 00 3B [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 FD 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 FD 00 A1 1A 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 54 [23:44:02]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [23:44:02]wFMCommunicate OK [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 17 00 00 [23:44:02]Write to MH i2c: E2 08 00 A2 1A 80 17 00 00 00 00 00 00 3C [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:03]Read from MH i2c: E2 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 FD 00 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 FD 00 A2 1A 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F5 [23:44:03]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:44:03]wFMCommunicate OK [23:44:03]wFMCommunicate request_size=4 [23:44:03]MH_SAM_APDU [23:44:03]CAPDU: 80 17 00 00 [23:44:03]Write to MH i2c: E2 08 00 A3 1A 80 17 00 00 00 00 00 00 3D [23:44:03]Write i2c OK [23:44:03]MH_I2C_Read... [23:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:44:03]Read from MH i2c: E2 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 FD 00 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 FD 00 A3 1A 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B5 [23:44:03]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:44:03]wFMCommunicate OK [23:44:03]wFMCommunicate request_size=4 [23:44:03]MH_SAM_APDU [23:44:03]CAPDU: 80 17 00 00 [23:44:03]Write to MH i2c: E2 08 00 A4 1A 80 17 00 00 00 00 00 00 3E [23:44:03]Write i2c OK [23:44:03]MH_I2C_Read... [23:44:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:44:03]Read from MH i2c: E2 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 CE 00 [23:44:03]MH_I2C_Read... [23:44:03]Read from MH i2c: E2 CE 00 A4 1A 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [23:44:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:44:03]wFMCommunicate OK [23:44:03]SAM_PROTO_GetShiftData done [23:44:03]requested_item shift.sale.total_cash is exist - process it [23:44:03]requested_item shift.sale_refund.total is exist - process it [23:44:03]requested_item shift.sale_refund.total_cash is exist - process it [23:44:03]requested_item shift.buy.total is exist - process it [23:44:03]requested_item shift.buy.total_cash is exist - process it [23:44:03]produce_requested_data done [23:44:03]produce_requested_data return {"fm.sale.total":159102351.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":313337.42,"shift.sale.total_cash":251894.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:44:03]process_action_free get_value [23:44:03]json_value_free [23:44:03]json_value_free done [23:44:03]process_json_proto returns [23:44:03]Send response to host [23:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159102351.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":313337.42,"shift.sale.total_cash":251894.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:44:03]free response buf [23:44:03]execute_script done [23:44:03]execute_script returns [23:44:03]free content buf [23:44:03]Sock 9.Close socket [23:44:03]Sock 9.Thread stoped [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:10]accept exits with 7 [23:44:10]New connection [23:44:10]New thread 3067489636 created [23:44:10]Thread 3067632996 joined [23:44:10]Waiting for new connection... [23:44:10] Sock 7.Parse request [23:44:10]Sock 7.Check first char [23:44:10]Sock 7.First char is OK [23:44:10]request: POST /json_proto HTTP/1.0 [23:44:10]Method: POST [23:44:10]URL: /json_proto [23:44:10]Method is POST - this is cgi request [23:44:10]url: /json_proto [23:44:10]query_string will be loaded in cgi processing [23:44:10]execute_cgi json_proto POST (null) [23:44:10]execute_cgi path=json_proto method=POST [23:44:10]POST find Content-Length [23:44:10]Host: 172.17.53.195:8080 [23:44:10]Content-Length: 677 [23:44:10]Content-Type: application/json [23:44:10] [23:44:10]POST finish read [23:44:10]Found Content-Length = 677 [23:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:10]execute_script... [23:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:10]POST & json_proto [23:44:10]process_json_proto [23:44:10]json parsed OK: [23:44:10]protocol is kg_v1.0 [23:44:10]action value=close_receipt [23:44:10]process_action close_receipt [23:44:10]cmd_close_receipt [23:44:10]MH_GetDate [23:44:10]Write to MH i2c: F0 00 00 A5 1A AE [23:44:10]Write i2c OK [23:44:10]MH_I2C_Read... [23:44:10]Read from MH i2c: F0 [23:44:10]MH_I2C_Read... [23:44:10]Read from MH i2c: F0 09 00 [23:44:10]MH_I2C_Read... [23:44:10]Read from MH i2c: F0 09 00 A5 1A 00 CC 38 18 67 21 48 4A 65 52 [23:44:10]GetLastDocTimeStamp 1729640618 [23:44:10]current date 1729640652 [23:44:10]FM_GetShiftState [23:44:10]SAM_PROTO_GetShiftState [23:44:10]wFMCommunicate request_size=4 [23:44:10]MH_SAM_APDU [23:44:10]CAPDU: 80 13 01 00 [23:44:10]Write to MH i2c: E2 08 00 A6 1A 80 13 01 00 00 00 00 00 3D [23:44:10]Write i2c OK [23:44:10]MH_I2C_Read... [23:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:10]Read from MH i2c: E2 [23:44:10]MH_I2C_Read... [23:44:10]Read from MH i2c: E2 0E 00 [23:44:10]MH_I2C_Read... [23:44:10]Read from MH i2c: E2 0E 00 A6 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 90 [23:44:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:44:10]wFMCommunicate OK [23:44:10]SAM_PROTO_GetShiftState done [23:44:10]FM_GetShiftState done [23:44:10]opened in 1729557463 [23:44:10]opened+sec_in_day 1729643863 [23:44:10]quantity*price = 50041 [23:44:10]sum+1 = 50042 [23:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 331 22.10.2024 23:44 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166576 ФПД: 226991867528689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234412&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166576&fm=226991867528689&tin=02508201610067®Number=0000000000091764&sum=50000 [23:44:11]StoreToDocumentArchive [23:44:11]shift 536 fd 166576 [23:44:11]save to /storage/0536/doc_00166576 [23:44:11]save last doc name /storage/0536/doc_00166576 to /storage/kkm_last_doc_name [23:44:11]save OK [23:44:11]Clear old archive folders... [23:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:11]tlvbuf is 011EE990 [23:44:11]SAM_PROTO_ClearQueue [23:44:11]wFMCommunicate request_size=4 [23:44:11]MH_SAM_APDU [23:44:11]CAPDU: 80 09 00 00 [23:44:11]Write to MH i2c: E2 08 00 B3 1A 80 09 00 00 00 00 00 00 3F [23:44:11]Write i2c OK [23:44:11]MH_I2C_Read... [23:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:11]Read from MH i2c: E2 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 03 00 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 03 00 B3 1A 00 90 00 41 [23:44:11]RAPDU: 90 00 [23:44:11]wFMCommunicate OK [23:44:11]SAM_PROTO_ClearQueue done [23:44:11]KKMCreateOFDPacket [23:44:11]OFDProtocolAddRootSTLVToBuf [23:44:11]FM_MakeSignedData [23:44:11]FM_MakeSignedData [23:44:11]SAM_PROTO_SignData [23:44:11]wFMCommunicate request_size=4 [23:44:11]MH_SAM_APDU [23:44:11]CAPDU: 80 0D 01 02 [23:44:11]Write to MH i2c: E2 08 00 B4 1A 80 0D 01 02 00 00 00 00 47 [23:44:11]Write i2c OK [23:44:11]MH_I2C_Read... [23:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:11]Read from MH i2c: E2 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 03 00 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [23:44:11]RAPDU: 90 00 [23:44:11]wFMCommunicate OK [23:44:11]wFMCommunicate request_size=255 [23:44:11]MH_SAM_APDU [23:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 CC 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8A 02 00 35 04 06 00 CE [23:44:11]Write to MH i2c: E2 02 01 B5 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 CC 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8A 02 00 35 04 06 00 CE 00 00 D0 [23:44:11]Write i2c OK [23:44:11]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 [23:44:12]MH_I2C_Read... [23:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:12]Read from MH i2c: E2 03 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [23:44:12]RAPDU: 90 00 [23:44:12]wFMCommunicate OK [23:44:12]wFMCommunicate request_size=10 [23:44:12]MH_SAM_APDU [23:44:12]CAPDU: 80 0D 02 02 05 72 A9 A1 85 F1 [23:44:12]Write to MH i2c: E2 0D 00 B6 1A 80 0D 02 02 05 00 72 A9 A1 85 F1 00 00 86 [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:12]Read from MH i2c: E2 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 03 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [23:44:12]RAPDU: 90 00 [23:44:12]wFMCommunicate OK [23:44:12]wFMCommunicate request_size=4 [23:44:12]MH_SAM_APDU [23:44:12]CAPDU: 80 0D 03 02 [23:44:12]Write to MH i2c: E2 08 00 B7 1A 80 0D 03 02 00 00 00 00 4C [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:12]Read from MH i2c: E2 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 0B 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 0B 00 B7 1A 00 20 E7 80 89 F0 52 1D 21 90 00 DD [23:44:12]RAPDU: 20 E7 80 89 F0 52 1D 21 90 00 [23:44:12]wFMCommunicate OK [23:44:12]SAM_PROTO_SignData done [23:44:12]FM_MakeSignedData done [23:44:12]CreateOFDProtocolMessage [23:44:12]wFMCommunicate request_size=4 [23:44:12]MH_SAM_APDU [23:44:12]CAPDU: 80 11 00 00 [23:44:12]Write to MH i2c: E2 08 00 B8 1A 80 11 00 00 00 00 00 00 4C [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:12]Read from MH i2c: E2 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 17 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: E2 17 00 B8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [23:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:44:12]wFMCommunicate OK [23:44:12]CreateOFDProtocolMessage done [23:44:12]OFDSenderStorePacket 166576 [23:44:12]StoreOFDPacket docnum=166576 [23:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 E3 07 01 55 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 CC 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8A 02 00 35 04 06 00 CE 72 A9 A1 85 F1 20 E7 80 89 F0 52 1D 21 [23:44:12]CheckFolder [23:44:12]dirname=/storage/ofd_packets [23:44:12]CheckFolder done [23:44:12]ProducePacketName [23:44:12]name=ofd_packets/00166576 [23:44:12]NVStorageSaveData ofd_packets/00166576 [23:44:12]File name is /storage/ofd_packets/00166576 [23:44:12]Write 301 bytes [23:44:12]NVStorageSaveData done [23:44:12]OFDSenderStorePacket done [23:44:12]KKMCreateOFDPacket done [23:44:12]NVStorageSaveData kkm_last_timestamp [23:44:12]File name is /storage/kkm_last_timestamp [23:44:12]Write 4 bytes [23:44:12]NVStorageSaveData done [23:44:12]ExternCall_PrintAddStr [23:44:12]wPrintStart [23:44:12]Write to MH i2c: 01 00 00 B9 1A D3 [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 07 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 07 00 B9 1A 00 00 00 00 00 FF 0F E8 [23:44:12]RasterBufferAndPrint [23:44:12]line Счет N : (1)221158 [23:44:12]line ИНН: 02508201610067 [23:44:12]line Контрольно-Кассовый Чек [23:44:12]line ПРОДАЖА [23:44:12]line ТРК (МРК, ГНК) : 23 [23:44:12]line Товар: 2710124130 [23:44:12]line Аи-92-К-5 [23:44:12]line 7.480 * 66.90 [23:44:12]line = 500.41 [23:44:12]line НДС 12% НСП 1% [23:44:12]line > о реализуемом товаре [23:44:12]line ОКРУГЛЕНИЕ: -0.41 [23:44:12]line ИТОГО: 500.00 [23:44:12]line Внесено: 500.00 [23:44:12]line СДАЧА: 0.00 [23:44:12]line НСП 1% : 4.43 [23:44:12]line НДС 12% : 53.14 [23:44:12]line Наличными: 500.00 [23:44:12]line Безнал.: 0.00 [23:44:12]line Место: АЗС № 161 "Партнер Нефть" [23:44:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:44:12]line СНО: Общий режим [23:44:12]line Чек 331 22.10.2024 23:44 [23:44:12]line Смена: 536 ФФД: 1.0 [23:44:12]line ЗНМ: 0300000104 [23:44:12]line РНМ: 0000000000091764 [23:44:12]line Версия ККМ: 001 [23:44:12]line ФМ: 0000000000871759 [23:44:12]line ФД: 166576 [23:44:12]line ФПД: 226991867528689 [23:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234412&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166576&fm=226991867528689&tin=02508201610067®Number=0000000000091764&sum=50000 [23:44:12]written 0, free lines is 4095 [23:44:12]OFD Sender: Processing packet 166576 [packets to send 48, broken 47] [23:44:12]ProducePacketName [23:44:12]name=ofd_packets/00166576 [23:44:12]OFD Sender: To server: pG, [23:44:12]CommunicateWithHost lk.salyk.kg:30040 [23:44:12]ConnectInit lk.salyk.kg [23:44:12]Connected sock=10 [23:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 16 E3 07 01 55 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 CC 38 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8A 02 00 35 04 06 00 CE 72 A9 A1 85 F1 20 E7 80 89 F0 52 1D 21 [23:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 97 45 47 00 68 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 8A 02 00 F4 03 04 00 35 DF 17 67 B6 04 01 00 00 5E 3B 62 57 9E 99 29 88 [23:44:12]CommunicateWithHost err = 0 [23:44:12]CheckOFDResponse [23:44:12]1017 (14) - 77093643461234 [23:44:12]1041 (16) - 0000000000871759 [23:44:12]1040 (4) - 166576 [23:44:12]1012 (4) - 22.10.2024 17:21 [23:44:12]1206 (1) - 0 [23:44:12]OFD Sender: Remove packet 166576 [23:44:12]ProducePacketName [23:44:12]name=ofd_packets/00166576 [23:44:12]NVStorageDeleteData [23:44:12]Write to MH i2c: 01 00 00 E4 1A FE [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 07 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 AD 0C BE [23:44:12]RasterBufferAndPrint [23:44:12]line [23:44:12]line [23:44:12]line [23:44:12]line [23:44:12]line [23:44:12]written 0, free lines is 3258 [23:44:12]MH_Cut [23:44:12]Write to MH i2c: D1 01 00 EB 1A 01 D7 [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: D1 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: D1 01 00 [23:44:12]MH_I2C_Read... [23:44:12]Read from MH i2c: D1 01 00 EB 1A 00 D6 [23:44:12]Write to MH i2c: 01 00 00 EC 1A 06 [23:44:12]Write i2c OK [23:44:12]MH_I2C_Read... [23:44:13]OFD Sender: No OFD packet to send [23:44:13]*** Cut start [23:44:13]*** Partial cut [23:44:13]*** CUTSNS_PIN = 1 [23:44:13]*** CUTSNS_PIN = 0 [23:44:13]*** Brake cut motor [23:44:14]Read from MH i2c: 01 [23:44:14]MH_I2C_Read... [23:44:14]*** Stop cut motor [23:44:14]*** Cut end [23:44:14]Read from MH i2c: 01 07 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [23:44:14]process_action close_receipt done [23:44:14]requested_data is exist [23:44:14]produce_requested_data [23:44:14]requested_item fm.sn is exist - process it [23:44:14]wFMCommunicate request_size=4 [23:44:14]MH_SAM_APDU [23:44:14]CAPDU: 80 11 00 00 [23:44:14]Write to MH i2c: E2 08 00 ED 1A 80 11 00 00 00 00 00 00 81 [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:14]Read from MH i2c: E2 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 17 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 17 00 ED 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [23:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:44:14]wFMCommunicate OK [23:44:14]requested_item fd.num is exist - process it [23:44:14]SAM_PROTO_GetFieldsCounters [23:44:14]wFMCommunicate request_size=4 [23:44:14]MH_SAM_APDU [23:44:14]CAPDU: 80 13 00 00 [23:44:14]Write to MH i2c: E2 08 00 EE 1A 80 13 00 00 00 00 00 00 84 [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:14]Read from MH i2c: E2 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 62 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 62 00 EE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [23:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:14]wFMCommunicate OK [23:44:14]SAM_PROTO_GetFieldsCounters done [23:44:14]requested_item shift.num is exist - process it [23:44:14]requested_item shift.opened is exist - process it [23:44:14]req_shift_opened [23:44:14]FM_GetShiftState [23:44:14]SAM_PROTO_GetShiftState [23:44:14]wFMCommunicate request_size=4 [23:44:14]MH_SAM_APDU [23:44:14]CAPDU: 80 13 01 00 [23:44:14]Write to MH i2c: E2 08 00 EF 1A 80 13 01 00 00 00 00 00 86 [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:14]Read from MH i2c: E2 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 0E 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: E2 0E 00 EF 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D9 [23:44:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:44:14]wFMCommunicate OK [23:44:14]SAM_PROTO_GetShiftState done [23:44:14]FM_GetShiftState done [23:44:14]req_shift_opened done [23:44:14]requested_item shift.open_date is exist - process it [23:44:14]req_shift_open_date [23:44:14]req_shift_open_date done [23:44:14]produce_requested_data done [23:44:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166576,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:44:14]process_action_free close_receipt [23:44:14]json_value_free [23:44:14]json_value_free done [23:44:14]process_json_proto returns [23:44:14]Send response to host [23:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166576,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:44:14]free response buf [23:44:14]execute_script done [23:44:14]execute_script returns [23:44:14]free content buf [23:44:14]Sock 7.Close socket [23:44:14]Sock 7.Thread stoped [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:42]accept exits with 9 [23:48:42]New connection [23:48:42]New thread 3067632996 created [23:48:42]Thread 3067489636 joined [23:48:42]Waiting for new connection... [23:48:42] Sock 9.Parse request [23:48:42]Sock 9.Check first char [23:48:42]Sock 9.First char is OK [23:48:42]request: POST /json_proto HTTP/1.0 [23:48:42]Method: POST [23:48:42]URL: /json_proto [23:48:42]Method is POST - this is cgi request [23:48:42]url: /json_proto [23:48:42]query_string will be loaded in cgi processing [23:48:42]execute_cgi json_proto POST (null) [23:48:42]execute_cgi path=json_proto method=POST [23:48:42]POST find Content-Length [23:48:42]Host: 172.17.53.195:8080 [23:48:42]Content-Length: 677 [23:48:42]Content-Type: application/json [23:48:42] [23:48:42]POST finish read [23:48:42]Found Content-Length = 677 [23:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:42]execute_script... [23:48: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)221159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:42]POST & json_proto [23:48:42]process_json_proto [23:48:42]json parsed OK: [23:48:42]protocol is kg_v1.0 [23:48:42]action value=close_receipt [23:48:42]process_action close_receipt [23:48:42]cmd_close_receipt [23:48:42]MH_GetDate [23:48:42]Write to MH i2c: F0 00 00 F0 1A F9 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: F0 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: F0 09 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: F0 09 00 F0 1A 00 DC 39 18 67 21 48 4A 65 AE [23:48:42]GetLastDocTimeStamp 1729640652 [23:48:42]current date 1729640924 [23:48:42]FM_GetShiftState [23:48:42]SAM_PROTO_GetShiftState [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 13 01 00 [23:48:42]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:43]Read from MH i2c: E2 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: E2 0E 00 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DB [23:48:43]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:48:43]wFMCommunicate OK [23:48:43]SAM_PROTO_GetShiftState done [23:48:43]FM_GetShiftState done [23:48:43]opened in 1729557463 [23:48:43]opened+sec_in_day 1729643863 [23:48:43]quantity*price = 50041 [23:48:43]sum+1 = 50042 [23:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 332 22.10.2024 23:48 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166577 ФПД: 79467336357683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166577&fm=79467336357683&tin=02508201610067®Number=0000000000091764&sum=50000 [23:48:44]StoreToDocumentArchive [23:48:44]shift 536 fd 166577 [23:48:44]save to /storage/0536/doc_00166577 [23:48:44]save last doc name /storage/0536/doc_00166577 to /storage/kkm_last_doc_name [23:48:44]save OK [23:48:44]Clear old archive folders... [23:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:44]tlvbuf is 0124E3B0 [23:48:44]SAM_PROTO_ClearQueue [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 09 00 00 [23:48:44]Write to MH i2c: E2 08 00 FE 1A 80 09 00 00 00 00 00 00 8A [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [23:48:44]RAPDU: 90 00 [23:48:44]wFMCommunicate OK [23:48:44]SAM_PROTO_ClearQueue done [23:48:44]KKMCreateOFDPacket [23:48:44]OFDProtocolAddRootSTLVToBuf [23:48:44]FM_MakeSignedData [23:48:44]FM_MakeSignedData [23:48:44]SAM_PROTO_SignData [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 0D 01 02 [23:48:44]Write to MH i2c: E2 08 00 FF 1A 80 0D 01 02 00 00 00 00 92 [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [23:48:44]RAPDU: 90 00 [23:48:44]wFMCommunicate OK [23:48:44]wFMCommunicate request_size=255 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DC 39 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8A 02 00 35 04 06 00 48 [23:48:44]Write to MH i2c: E2 02 01 00 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DC 39 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8A 02 00 35 04 06 00 48 00 00 A9 [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [23:48:44]RAPDU: 90 00 [23:48:44]wFMCommunicate OK [23:48:44]wFMCommunicate request_size=10 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 0D 02 02 05 46 6E 5A D7 33 [23:48:44]Write to MH i2c: E2 0D 00 01 1B 80 0D 02 02 05 00 46 6E 5A D7 33 00 00 B8 [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [23:48:44]RAPDU: 90 00 [23:48:44]wFMCommunicate OK [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 0D 03 02 [23:48:44]Write to MH i2c: E2 08 00 02 1B 80 0D 03 02 00 00 00 00 98 [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 0B 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 0B 00 02 1B 00 85 B6 63 A0 F1 B8 76 8F 90 00 85 [23:48:44]RAPDU: 85 B6 63 A0 F1 B8 76 8F 90 00 [23:48:44]wFMCommunicate OK [23:48:44]SAM_PROTO_SignData done [23:48:44]FM_MakeSignedData done [23:48:44]CreateOFDProtocolMessage [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 11 00 00 [23:48:44]Write to MH i2c: E2 08 00 03 1B 80 11 00 00 00 00 00 00 98 [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 17 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 17 00 03 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [23:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:48:44]wFMCommunicate OK [23:48:44]CreateOFDProtocolMessage done [23:48:44]OFDSenderStorePacket 166577 [23:48:44]StoreOFDPacket docnum=166577 [23:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 D7 07 01 05 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DC 39 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8A 02 00 35 04 06 00 48 46 6E 5A D7 33 85 B6 63 A0 F1 B8 76 8F [23:48:44]CheckFolder [23:48:44]dirname=/storage/ofd_packets [23:48:44]CheckFolder done [23:48:44]ProducePacketName [23:48:44]name=ofd_packets/00166577 [23:48:44]NVStorageSaveData ofd_packets/00166577 [23:48:44]File name is /storage/ofd_packets/00166577 [23:48:44]Write 301 bytes [23:48:44]NVStorageSaveData done [23:48:44]OFDSenderStorePacket done [23:48:44]KKMCreateOFDPacket done [23:48:44]NVStorageSaveData kkm_last_timestamp [23:48:44]File name is /storage/kkm_last_timestamp [23:48:44]Write 4 bytes [23:48:44]NVStorageSaveData done [23:48:44]ExternCall_PrintAddStr [23:48:44]wPrintStart [23:48:44]Write to MH i2c: 01 00 00 04 1B 1F [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: 01 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: 01 07 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 FF 0F 34 [23:48:44]RasterBufferAndPrint [23:48:44]line Счет N : (1)221159 [23:48:44]line ИНН: 02508201610067 [23:48:44]line Контрольно-Кассовый Чек [23:48:44]line ПРОДАЖА [23:48:44]line ТРК (МРК, ГНК) : 33 [23:48:44]line Товар: 2710124130 [23:48:44]line Аи-92-К-5 [23:48:44]line 7.480 * 66.90 [23:48:44]line = 500.41 [23:48:44]line НДС 12% НСП 1% [23:48:44]line > о реализуемом товаре [23:48:44]line ОКРУГЛЕНИЕ: -0.41 [23:48:44]line ИТОГО: 500.00 [23:48:44]line Внесено: 500.00 [23:48:44]line СДАЧА: 0.00 [23:48:44]line НСП 1% : 4.43 [23:48:44]line НДС 12% : 53.14 [23:48:44]line Наличными: 500.00 [23:48:44]line Безнал.: 0.00 [23:48:44]line Место: АЗС № 161 "Партнер Нефть" [23:48:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:48:44]line СНО: Общий режим [23:48:44]line Чек 332 22.10.2024 23:48 [23:48:44]line Смена: 536 ФФД: 1.0 [23:48:44]line ЗНМ: 0300000104 [23:48:44]line РНМ: 0000000000091764 [23:48:44]line Версия ККМ: 001 [23:48:44]line ФМ: 0000000000871759 [23:48:44]line ФД: 166577 [23:48:44]line ФПД: 79467336357683 [23:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T234844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166577&fm=79467336357683&tin=02508201610067®Number=0000000000091764&sum=50000 [23:48:45]OFD Sender: Processing packet 166577 [packets to send 48, broken 47] [23:48:45]ProducePacketName [23:48:45]name=ofd_packets/00166577 [23:48:45]OFD Sender: To server: pG, [23:48:45]CommunicateWithHost lk.salyk.kg:30040 [23:48:45]ConnectInit lk.salyk.kg [23:48:45]written 0, free lines is 4095 [23:48:45]Connected sock=10 [23:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 D7 07 01 05 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DC 39 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8A 02 00 35 04 06 00 48 46 6E 5A D7 33 85 B6 63 A0 F1 B8 76 8F [23:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 1A 47 00 21 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 8A 02 00 F4 03 04 00 46 E0 17 67 B6 04 01 00 00 7E 31 14 C3 13 92 84 A8 [23:48:45]CommunicateWithHost err = 0 [23:48:45]CheckOFDResponse [23:48:45]1017 (14) - 77093643461234 [23:48:45]1041 (16) - 0000000000871759 [23:48:45]1040 (4) - 166577 [23:48:45]1012 (4) - 22.10.2024 17:26 [23:48:45]1206 (1) - 0 [23:48:45]OFD Sender: Remove packet 166577 [23:48:45]ProducePacketName [23:48:45]name=ofd_packets/00166577 [23:48:45]NVStorageDeleteData [23:48:45]Write to MH i2c: 01 00 00 2F 1B 4A [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: 01 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: 01 07 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 A5 0C 02 [23:48:45]RasterBufferAndPrint [23:48:45]line [23:48:45]line [23:48:45]line [23:48:45]line [23:48:45]line [23:48:45]written 0, free lines is 3242 [23:48:45]MH_Cut [23:48:45]Write to MH i2c: D1 01 00 36 1B 01 23 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: D1 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: D1 01 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: D1 01 00 36 1B 00 22 [23:48:45]Write to MH i2c: 01 00 00 37 1B 52 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]OFD Sender: No OFD packet to send [23:48:46]*** Cut start [23:48:46]*** Partial cut [23:48:46]*** CUTSNS_PIN = 1 [23:48:46]*** CUTSNS_PIN = 0 [23:48:46]*** Brake cut motor [23:48:46]Read from MH i2c: 01 [23:48:46]MH_I2C_Read... [23:48:46]*** Stop cut motor [23:48:46]*** Cut end [23:48:46]Read from MH i2c: 01 07 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [23:48:46]process_action close_receipt done [23:48:46]requested_data is exist [23:48:46]produce_requested_data [23:48:46]requested_item fm.sn is exist - process it [23:48:46]wFMCommunicate request_size=4 [23:48:46]MH_SAM_APDU [23:48:46]CAPDU: 80 11 00 00 [23:48:46]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:46]Read from MH i2c: E2 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [23:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:48:47]wFMCommunicate OK [23:48:47]requested_item fd.num is exist - process it [23:48:47]SAM_PROTO_GetFieldsCounters [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 13 00 00 [23:48:47]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 62 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 62 00 39 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [23:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:47]wFMCommunicate OK [23:48:47]SAM_PROTO_GetFieldsCounters done [23:48:47]requested_item shift.num is exist - process it [23:48:47]requested_item shift.opened is exist - process it [23:48:47]req_shift_opened [23:48:47]FM_GetShiftState [23:48:47]SAM_PROTO_GetShiftState [23:48:47]wFMCommunicate request_size=4 [23:48:47]MH_SAM_APDU [23:48:47]CAPDU: 80 13 01 00 [23:48:47]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [23:48:47]Write i2c OK [23:48:47]MH_I2C_Read... [23:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:47]Read from MH i2c: E2 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 [23:48:47]MH_I2C_Read... [23:48:47]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 25 [23:48:47]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:48:47]wFMCommunicate OK [23:48:47]SAM_PROTO_GetShiftState done [23:48:47]FM_GetShiftState done [23:48:47]req_shift_opened done [23:48:47]requested_item shift.open_date is exist - process it [23:48:47]req_shift_open_date [23:48:47]req_shift_open_date done [23:48:47]produce_requested_data done [23:48:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166577,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:48:47]process_action_free close_receipt [23:48:47]json_value_free [23:48:47]json_value_free done [23:48:47]process_json_proto returns [23:48:47]Send response to host [23:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166577,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:48:47]free response buf [23:48:47]execute_script done [23:48:47]execute_script returns [23:48:47]free content buf [23:48:47]Sock 9.Close socket [23:48:47]Sock 9.Thread stoped [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:16]accept exits with 7 [23:55:16]New connection [23:55:16]New thread 3067489636 created [23:55:16]Thread 3067632996 joined [23:55:16]Waiting for new connection... [23:55:16] Sock 7.Parse request [23:55:16]Sock 7.Check first char [23:55:16]Sock 7.First char is OK [23:55:16]request: POST /json_proto HTTP/1.0 [23:55:16]Method: POST [23:55:16]URL: /json_proto [23:55:16]Method is POST - this is cgi request [23:55:16]url: /json_proto [23:55:16]query_string will be loaded in cgi processing [23:55:16]execute_cgi json_proto POST (null) [23:55:16]execute_cgi path=json_proto method=POST [23:55:16]POST find Content-Length [23:55:16]Host: 172.17.53.195:8080 [23:55:16]Content-Length: 679 [23:55:16]Content-Type: application/json [23:55:16] [23:55:16]POST finish read [23:55:16]Found Content-Length = 679 [23:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:16]execute_script... [23:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:16]POST & json_proto [23:55:16]process_json_proto [23:55:16]json parsed OK: [23:55:16]protocol is kg_v1.0 [23:55:16]action value=close_receipt [23:55:16]process_action close_receipt [23:55:16]cmd_close_receipt [23:55:16]MH_GetDate [23:55:16]Write to MH i2c: F0 00 00 3B 1B 45 [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: F0 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: F0 09 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: F0 09 00 3B 1B 00 66 3B 18 67 21 48 4A 65 86 [23:55:16]GetLastDocTimeStamp 1729640924 [23:55:16]current date 1729641318 [23:55:16]FM_GetShiftState [23:55:16]SAM_PROTO_GetShiftState [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 13 01 00 [23:55:16]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 0E 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 27 [23:55:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:55:16]wFMCommunicate OK [23:55:16]SAM_PROTO_GetShiftState done [23:55:16]FM_GetShiftState done [23:55:16]opened in 1729557463 [23:55:16]opened+sec_in_day 1729643863 [23:55:16]quantity*price = 100050 [23:55:16]sum+1 = 100052 [23:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 333 22.10.2024 23:55 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166578 ФПД: 12884267201756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235518&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166578&fm=12884267201756&tin=02508201610067®Number=0000000000091764&sum=100000 [23:55:18]StoreToDocumentArchive [23:55:18]shift 536 fd 166578 [23:55:18]save to /storage/0536/doc_00166578 [23:55:18]save last doc name /storage/0536/doc_00166578 to /storage/kkm_last_doc_name [23:55:18]save OK [23:55:18]Clear old archive folders... [23:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:55:18]tlvbuf is 012754A0 [23:55:18]SAM_PROTO_ClearQueue [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 09 00 00 [23:55:18]Write to MH i2c: E2 08 00 49 1B 80 09 00 00 00 00 00 00 D6 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]SAM_PROTO_ClearQueue done [23:55:18]KKMCreateOFDPacket [23:55:18]OFDProtocolAddRootSTLVToBuf [23:55:18]FM_MakeSignedData [23:55:18]FM_MakeSignedData [23:55:18]SAM_PROTO_SignData [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 01 02 [23:55:18]Write to MH i2c: E2 08 00 4A 1B 80 0D 01 02 00 00 00 00 DE [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]wFMCommunicate request_size=255 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 66 3B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8A 02 00 35 04 06 00 0B B7 DA 2B [23:55:18]Write to MH i2c: E2 02 01 4B 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 66 3B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8A 02 00 35 04 06 00 0B B7 DA 2B 00 00 F7 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]wFMCommunicate request_size=7 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 02 02 02 74 DC [23:55:18]Write to MH i2c: E2 0A 00 4C 1B 80 0D 02 02 02 00 74 DC 00 00 35 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [23:55:18]RAPDU: 90 00 [23:55:18]wFMCommunicate OK [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 0D 03 02 [23:55:18]Write to MH i2c: E2 08 00 4D 1B 80 0D 03 02 00 00 00 00 E3 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 0B 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 0B 00 4D 1B 00 F1 3C CF B6 B0 72 F9 F6 90 00 A7 [23:55:18]RAPDU: F1 3C CF B6 B0 72 F9 F6 90 00 [23:55:18]wFMCommunicate OK [23:55:18]SAM_PROTO_SignData done [23:55:18]FM_MakeSignedData done [23:55:18]CreateOFDProtocolMessage [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 11 00 00 [23:55:18]Write to MH i2c: E2 08 00 4E 1B 80 11 00 00 00 00 00 00 E3 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 17 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 17 00 4E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [23:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:55:18]wFMCommunicate OK [23:55:18]CreateOFDProtocolMessage done [23:55:18]OFDSenderStorePacket 166578 [23:55:18]StoreOFDPacket docnum=166578 [23:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 11 04 01 E9 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 66 3B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8A 02 00 35 04 06 00 0B B7 DA 2B 74 DC F1 3C CF B6 B0 72 F9 F6 [23:55:18]CheckFolder [23:55:18]dirname=/storage/ofd_packets [23:55:18]CheckFolder done [23:55:18]ProducePacketName [23:55:18]name=ofd_packets/00166578 [23:55:18]NVStorageSaveData ofd_packets/00166578 [23:55:18]File name is /storage/ofd_packets/00166578 [23:55:18]Write 298 bytes [23:55:18]NVStorageSaveData done [23:55:18]OFDSenderStorePacket done [23:55:18]KKMCreateOFDPacket done [23:55:18]NVStorageSaveData kkm_last_timestamp [23:55:18]File name is /storage/kkm_last_timestamp [23:55:18]Write 4 bytes [23:55:18]NVStorageSaveData done [23:55:18]ExternCall_PrintAddStr [23:55:18]wPrintStart [23:55:18]Write to MH i2c: 01 00 00 4F 1B 6A [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 07 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [23:55:18]RasterBufferAndPrint [23:55:18]line Счет N : (1)221160 [23:55:18]line ИНН: 02508201610067 [23:55:18]line Контрольно-Кассовый Чек [23:55:18]line ПРОДАЖА [23:55:18]line ТРК (МРК, ГНК) : 31 [23:55:18]line Товар: 2710194210 [23:55:18]line ДТ-К-5 [23:55:18]line 13.130 * 76.20 [23:55:18]line = 1000.51 [23:55:18]line НДС 12% НСП 1% [23:55:18]line > о реализуемом товаре [23:55:18]line ОКРУГЛЕНИЕ: -0.51 [23:55:18]line ИТОГО: 1000.00 [23:55:18]line Внесено: 1000.00 [23:55:18]line СДАЧА: 0.00 [23:55:18]line НСП 1% : 8.85 [23:55:18]line НДС 12% : 106.25 [23:55:18]line Наличными: 1000.00 [23:55:18]line Безнал.: 0.00 [23:55:18]line Место: АЗС № 161 "Партнер Нефть" [23:55:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:55:18]line СНО: Общий режим [23:55:18]line Чек 333 22.10.2024 23:55 [23:55:18]line Смена: 536 ФФД: 1.0 [23:55:18]line ЗНМ: 0300000104 [23:55:18]line РНМ: 0000000000091764 [23:55:18]line Версия ККМ: 001 [23:55:18]line ФМ: 0000000000871759 [23:55:18]line ФД: 166578 [23:55:18]line ФПД: 12884267201756 [23:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235518&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166578&fm=12884267201756&tin=02508201610067®Number=0000000000091764&sum=100000 [23:55:18]OFD Sender: Processing packet 166578 [packets to send 48, broken 47] [23:55:18]ProducePacketName [23:55:18]name=ofd_packets/00166578 [23:55:18]OFD Sender: To server: pG, [23:55:18]CommunicateWithHost lk.salyk.kg:30040 [23:55:18]ConnectInit lk.salyk.kg [23:55:18]written 0, free lines is 4095 [23:55:19]Connected sock=10 [23:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 11 04 01 E9 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 66 3B 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8A 02 00 35 04 06 00 0B B7 DA 2B 74 DC F1 3C CF B6 B0 72 F9 F6 [23:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 45 3D 47 00 A8 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 8A 02 00 F4 03 04 00 D0 E1 17 67 B6 04 01 00 00 9F BC 51 4C 74 E2 3A 46 [23:55:19]CommunicateWithHost err = 0 [23:55:19]CheckOFDResponse [23:55:19]1017 (14) - 77093643461234 [23:55:19]1041 (16) - 0000000000871759 [23:55:19]1040 (4) - 166578 [23:55:19]1012 (4) - 22.10.2024 17:33 [23:55:19]1206 (1) - 0 [23:55:19]OFD Sender: Remove packet 166578 [23:55:19]ProducePacketName [23:55:19]name=ofd_packets/00166578 [23:55:19]NVStorageDeleteData [23:55:19]Write to MH i2c: 01 00 00 7A 1B 95 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 07 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 AB 0C 53 [23:55:19]RasterBufferAndPrint [23:55:19]line [23:55:19]line [23:55:19]line [23:55:19]line [23:55:19]line [23:55:19]written 0, free lines is 3249 [23:55:19]MH_Cut [23:55:19]Write to MH i2c: D1 01 00 81 1B 01 6E [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: D1 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: D1 01 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: D1 01 00 81 1B 00 6D [23:55:19]Write to MH i2c: 01 00 00 82 1B 9D [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]OFD Sender: No OFD packet to send [23:55:20]*** Cut start [23:55:20]*** Partial cut [23:55:20]*** CUTSNS_PIN = 1 [23:55:20]*** CUTSNS_PIN = 0 [23:55:20]*** Brake cut motor [23:55:20]Read from MH i2c: 01 [23:55:20]MH_I2C_Read... [23:55:20]*** Stop cut motor [23:55:20]*** Cut end [23:55:20]Read from MH i2c: 01 07 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 FF 0F B2 [23:55:20]process_action close_receipt done [23:55:20]requested_data is exist [23:55:20]produce_requested_data [23:55:20]requested_item fm.sn is exist - process it [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 11 00 00 [23:55:20]Write to MH i2c: E2 08 00 83 1B 80 11 00 00 00 00 00 00 18 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 17 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 17 00 83 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [23:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:55:20]wFMCommunicate OK [23:55:20]requested_item fd.num is exist - process it [23:55:20]SAM_PROTO_GetFieldsCounters [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 13 00 00 [23:55:20]Write to MH i2c: E2 08 00 84 1B 80 13 00 00 00 00 00 00 1B [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 62 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 62 00 84 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [23:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:21]wFMCommunicate OK [23:55:21]SAM_PROTO_GetFieldsCounters done [23:55:21]requested_item shift.num is exist - process it [23:55:21]requested_item shift.opened is exist - process it [23:55:21]req_shift_opened [23:55:21]FM_GetShiftState [23:55:21]SAM_PROTO_GetShiftState [23:55:21]wFMCommunicate request_size=4 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 13 01 00 [23:55:21]Write to MH i2c: E2 08 00 85 1B 80 13 01 00 00 00 00 00 1D [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 0E 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 0E 00 85 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 70 [23:55:21]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [23:55:21]wFMCommunicate OK [23:55:21]SAM_PROTO_GetShiftState done [23:55:21]FM_GetShiftState done [23:55:21]req_shift_opened done [23:55:21]requested_item shift.open_date is exist - process it [23:55:21]req_shift_open_date [23:55:21]req_shift_open_date done [23:55:21]produce_requested_data done [23:55:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166578,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [23:55:21]process_action_free close_receipt [23:55:21]json_value_free [23:55:21]json_value_free done [23:55:21]process_json_proto returns [23:55:21]Send response to host [23:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166578,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [23:55:21]free response buf [23:55:21]execute_script done [23:55:21]execute_script returns [23:55:21]free content buf [23:55:21]Sock 7.Close socket [23:55:21]Sock 7.Thread stoped [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:08]accept exits with 9 [00:02:08]New connection [00:02:08]New thread 3067632996 created [00:02:08]Thread 3067489636 joined [00:02:08]Waiting for new connection... [00:02:08] Sock 9.Parse request [00:02:08]Sock 9.Check first char [00:02:08]Sock 9.First char is OK [00:02:08]request: POST /json_proto HTTP/1.0 [00:02:08]Method: POST [00:02:08]URL: /json_proto [00:02:08]Method is POST - this is cgi request [00:02:08]url: /json_proto [00:02:08]query_string will be loaded in cgi processing [00:02:08]execute_cgi json_proto POST (null) [00:02:08]execute_cgi path=json_proto method=POST [00:02:08]POST find Content-Length [00:02:08]Host: 172.17.53.195:8080 [00:02:08]Content-Length: 682 [00:02:08]Content-Type: application/json [00:02:08] [00:02:08]POST finish read [00:02:08]Found Content-Length = 682 [00:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:08]execute_script... [00:02:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:08]POST & json_proto [00:02:08]process_json_proto [00:02:08]json parsed OK: [00:02:08]protocol is kg_v1.0 [00:02:08]action value=close_receipt [00:02:08]process_action close_receipt [00:02:08]cmd_close_receipt [00:02:08]MH_GetDate [00:02:08]Write to MH i2c: F0 00 00 86 1B 90 [00:02:08]Write i2c OK [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: F0 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: F0 09 00 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: F0 09 00 86 1B 00 02 3D 18 67 21 48 4A 65 6F [00:02:08]GetLastDocTimeStamp 1729641318 [00:02:08]current date 1729641730 [00:02:08]FM_GetShiftState [00:02:08]SAM_PROTO_GetShiftState [00:02:08]wFMCommunicate request_size=4 [00:02:08]MH_SAM_APDU [00:02:08]CAPDU: 80 13 01 00 [00:02:08]Write to MH i2c: E2 08 00 87 1B 80 13 01 00 00 00 00 00 1F [00:02:08]Write i2c OK [00:02:08]MH_I2C_Read... [00:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:08]Read from MH i2c: E2 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 0E 00 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 0E 00 87 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 72 [00:02:08]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:02:08]wFMCommunicate OK [00:02:08]SAM_PROTO_GetShiftState done [00:02:08]FM_GetShiftState done [00:02:08]opened in 1729557463 [00:02:08]opened+sec_in_day 1729643863 [00:02:08]quantity*price = 250005 [00:02:08]sum+1 = 250006 [00:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 334 23.10.2024 00:02 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166579 ФПД: 175535069164863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T000210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166579&fm=175535069164863&tin=02508201610067®Number=0000000000091764&sum=250000 [00:02:10]StoreToDocumentArchive [00:02:10]shift 536 fd 166579 [00:02:10]save to /storage/0536/doc_00166579 [00:02:10]save last doc name /storage/0536/doc_00166579 to /storage/kkm_last_doc_name [00:02:10]save OK [00:02:10]Clear old archive folders... [00:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:02:10]tlvbuf is B6FFB970 [00:02:10]SAM_PROTO_ClearQueue [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 09 00 00 [00:02:10]Write to MH i2c: E2 08 00 94 1B 80 09 00 00 00 00 00 00 21 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]SAM_PROTO_ClearQueue done [00:02:10]KKMCreateOFDPacket [00:02:10]OFDProtocolAddRootSTLVToBuf [00:02:10]FM_MakeSignedData [00:02:10]FM_MakeSignedData [00:02:10]SAM_PROTO_SignData [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 0D 01 02 [00:02:10]Write to MH i2c: E2 08 00 95 1B 80 0D 01 02 00 00 00 00 29 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:10]OFD Sender: No OFD packet to send [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=255 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 02 3D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8A 02 00 35 04 06 00 9F [00:02:10]Write to MH i2c: E2 02 01 96 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 02 3D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8A 02 00 35 04 06 00 9F 00 00 FC [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 96 1B 00 90 00 25 [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=10 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 0D 02 02 05 A5 F1 71 75 3F [00:02:10]Write to MH i2c: E2 0D 00 97 1B 80 0D 02 02 05 00 A5 F1 71 75 3F 00 00 F1 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 97 1B 00 90 00 26 [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 0D 03 02 [00:02:10]Write to MH i2c: E2 08 00 98 1B 80 0D 03 02 00 00 00 00 2E [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0B 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0B 00 98 1B 00 9A F3 BA 48 7D 33 CD DD 90 00 18 [00:02:10]RAPDU: 9A F3 BA 48 7D 33 CD DD 90 00 [00:02:10]wFMCommunicate OK [00:02:10]SAM_PROTO_SignData done [00:02:10]FM_MakeSignedData done [00:02:10]CreateOFDProtocolMessage [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 11 00 00 [00:02:10]Write to MH i2c: E2 08 00 99 1B 80 11 00 00 00 00 00 00 2E [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 17 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 17 00 99 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [00:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:02:10]wFMCommunicate OK [00:02:10]CreateOFDProtocolMessage done [00:02:10]OFDSenderStorePacket 166579 [00:02:10]StoreOFDPacket docnum=166579 [00:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C1 C4 07 01 E7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 02 3D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8A 02 00 35 04 06 00 9F A5 F1 71 75 3F 9A F3 BA 48 7D 33 CD DD [00:02:10]CheckFolder [00:02:10]dirname=/storage/ofd_packets [00:02:10]CheckFolder done [00:02:10]ProducePacketName [00:02:10]name=ofd_packets/00166579 [00:02:10]NVStorageSaveData ofd_packets/00166579 [00:02:10]File name is /storage/ofd_packets/00166579 [00:02:10]Write 301 bytes [00:02:10]NVStorageSaveData done [00:02:10]OFDSenderStorePacket done [00:02:10]KKMCreateOFDPacket done [00:02:10]NVStorageSaveData kkm_last_timestamp [00:02:10]File name is /storage/kkm_last_timestamp [00:02:10]Write 4 bytes [00:02:10]NVStorageSaveData done [00:02:10]ExternCall_PrintAddStr [00:02:10]wPrintStart [00:02:10]Write to MH i2c: 01 00 00 9A 1B B5 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: 01 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: 01 07 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: 01 07 00 9A 1B 00 00 00 00 00 FF 0F CA [00:02:10]RasterBufferAndPrint [00:02:10]line Счет N : (1)221161 [00:02:10]line ИНН: 02508201610067 [00:02:10]line Контрольно-Кассовый Чек [00:02:10]line ПРОДАЖА [00:02:10]line ТРК (МРК, ГНК) : 13 [00:02:10]line Товар: 2710124130 [00:02:10]line Аи-92-К-5 [00:02:10]line 37.370 * 66.90 [00:02:10]line = 2500.05 [00:02:10]line НДС 12% НСП 1% [00:02:10]line > о реализуемом товаре [00:02:10]line ОКРУГЛЕНИЕ: -0.05 [00:02:10]line ИТОГО: 2500.00 [00:02:10]line Внесено: 2500.00 [00:02:10]line СДАЧА: 0.00 [00:02:10]line НСП 1% : 22.12 [00:02:10]line НДС 12% : 265.49 [00:02:10]line Наличными: 2500.00 [00:02:10]line Безнал.: 0.00 [00:02:10]line Место: АЗС № 161 "Партнер Нефть" [00:02:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:02:10]line СНО: Общий режим [00:02:10]line Чек 334 23.10.2024 00:02 [00:02:10]line Смена: 536 ФФД: 1.0 [00:02:10]line ЗНМ: 0300000104 [00:02:10]line РНМ: 0000000000091764 [00:02:10]line Версия ККМ: 001 [00:02:10]line ФМ: 0000000000871759 [00:02:10]line ФД: 166579 [00:02:10]line ФПД: 175535069164863 [00:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T000210&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166579&fm=175535069164863&tin=02508201610067®Number=0000000000091764&sum=250000 [00:02:10]OFD Sender: Processing packet 166579 [packets to send 48, broken 47] [00:02:10]ProducePacketName [00:02:10]name=ofd_packets/00166579 [00:02:10]OFD Sender: To server: pG, [00:02:10]CommunicateWithHost lk.salyk.kg:30040 [00:02:10]ConnectInit lk.salyk.kg [00:02:10]written 0, free lines is 4095 [00:02:11]Connected sock=10 [00:02:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C1 C4 07 01 E7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 02 3D 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8A 02 00 35 04 06 00 9F A5 F1 71 75 3F 9A F3 BA 48 7D 33 CD DD [00:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DC 8C 47 00 71 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 8A 02 00 F4 03 04 00 6C E3 17 67 B6 04 01 00 00 57 4A 5B BB 29 4C 98 F0 [00:02:11]CommunicateWithHost err = 0 [00:02:11]CheckOFDResponse [00:02:11]1017 (14) - 77093643461234 [00:02:11]1041 (16) - 0000000000871759 [00:02:11]1040 (4) - 166579 [00:02:11]1012 (4) - 22.10.2024 17:39 [00:02:11]1206 (1) - 0 [00:02:11]OFD Sender: Remove packet 166579 [00:02:11]ProducePacketName [00:02:11]name=ofd_packets/00166579 [00:02:11]NVStorageDeleteData [00:02:11]Write to MH i2c: 01 00 00 C5 1B E0 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 07 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 07 00 C5 1B 00 00 00 00 00 AF 0C A2 [00:02:11]RasterBufferAndPrint [00:02:11]line [00:02:11]line [00:02:11]line [00:02:11]line [00:02:11]line [00:02:11]written 0, free lines is 3253 [00:02:11]MH_Cut [00:02:11]Write to MH i2c: D1 01 00 CC 1B 01 B9 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: D1 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: D1 01 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: D1 01 00 CC 1B 00 B8 [00:02:11]Write to MH i2c: 01 00 00 CD 1B E8 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]OFD Sender: No OFD packet to send [00:02:12]*** Cut start [00:02:12]*** Partial cut [00:02:12]*** CUTSNS_PIN = 1 [00:02:12]*** CUTSNS_PIN = 0 [00:02:12]*** Brake cut motor [00:02:12]Read from MH i2c: 01 [00:02:12]MH_I2C_Read... [00:02:12]*** Stop cut motor [00:02:12]*** Cut end [00:02:12]Read from MH i2c: 01 07 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [00:02:12]process_action close_receipt done [00:02:12]requested_data is exist [00:02:12]produce_requested_data [00:02:12]requested_item fm.sn is exist - process it [00:02:12]wFMCommunicate request_size=4 [00:02:12]MH_SAM_APDU [00:02:12]CAPDU: 80 11 00 00 [00:02:12]Write to MH i2c: E2 08 00 CE 1B 80 11 00 00 00 00 00 00 63 [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:12]Read from MH i2c: E2 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 17 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 17 00 CE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [00:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:02:12]wFMCommunicate OK [00:02:12]requested_item fd.num is exist - process it [00:02:12]SAM_PROTO_GetFieldsCounters [00:02:12]wFMCommunicate request_size=4 [00:02:12]MH_SAM_APDU [00:02:12]CAPDU: 80 13 00 00 [00:02:12]Write to MH i2c: E2 08 00 CF 1B 80 13 00 00 00 00 00 00 66 [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 62 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 62 00 CF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00:02:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_GetFieldsCounters done [00:02:13]requested_item shift.num is exist - process it [00:02:13]requested_item shift.opened is exist - process it [00:02:13]req_shift_opened [00:02:13]FM_GetShiftState [00:02:13]SAM_PROTO_GetShiftState [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 13 01 00 [00:02:13]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 0E 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BB [00:02:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_GetShiftState done [00:02:13]FM_GetShiftState done [00:02:13]req_shift_opened done [00:02:13]requested_item shift.open_date is exist - process it [00:02:13]req_shift_open_date [00:02:13]req_shift_open_date done [00:02:13]produce_requested_data done [00:02:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166579,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:02:13]process_action_free close_receipt [00:02:13]json_value_free [00:02:13]json_value_free done [00:02:13]process_json_proto returns [00:02:13]Send response to host [00:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166579,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:02:13]free response buf [00:02:13]execute_script done [00:02:13]execute_script returns [00:02:13]free content buf [00:02:13]Sock 9.Close socket [00:02:13]Sock 9.Thread stoped [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:19]accept exits with 7 [00:17:19]New connection [00:17:19]New thread 3067489636 created [00:17:19]Thread 3067632996 joined [00:17:19]Waiting for new connection... [00:17:19] Sock 7.Parse request [00:17:19]Sock 7.Check first char [00:17:19]Sock 7.First char is OK [00:17:19]request: POST /json_proto HTTP/1.0 [00:17:19]Method: POST [00:17:19]URL: /json_proto [00:17:19]Method is POST - this is cgi request [00:17:19]url: /json_proto [00:17:19]query_string will be loaded in cgi processing [00:17:19]execute_cgi json_proto POST (null) [00:17:19]execute_cgi path=json_proto method=POST [00:17:19]POST find Content-Length [00:17:19]Host: 172.17.53.195:8080 [00:17:19]Content-Length: 675 [00:17:19]Content-Type: application/json [00:17:19] [00:17:19]POST finish read [00:17:19]Found Content-Length = 675 [00:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:19]execute_script... [00:17:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:19]POST & json_proto [00:17:19]process_json_proto [00:17:19]json parsed OK: [00:17:19]protocol is kg_v1.0 [00:17:19]action value=close_receipt [00:17:19]process_action close_receipt [00:17:19]cmd_close_receipt [00:17:19]MH_GetDate [00:17:19]Write to MH i2c: F0 00 00 D1 1B DB [00:17:19]Write i2c OK [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: F0 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: F0 09 00 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: F0 09 00 D1 1B 00 91 40 18 67 21 48 4A 65 4C [00:17:19]GetLastDocTimeStamp 1729641730 [00:17:19]current date 1729642641 [00:17:19]FM_GetShiftState [00:17:19]SAM_PROTO_GetShiftState [00:17:19]wFMCommunicate request_size=4 [00:17:19]MH_SAM_APDU [00:17:19]CAPDU: 80 13 01 00 [00:17:19]Write to MH i2c: E2 08 00 D2 1B 80 13 01 00 00 00 00 00 6A [00:17:19]Write i2c OK [00:17:19]MH_I2C_Read... [00:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:19]Read from MH i2c: E2 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: E2 0E 00 [00:17:19]MH_I2C_Read... [00:17:19]Read from MH i2c: E2 0E 00 D2 1B 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 BD [00:17:19]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:17:19]wFMCommunicate OK [00:17:19]SAM_PROTO_GetShiftState done [00:17:19]FM_GetShiftState done [00:17:19]opened in 1729557463 [00:17:19]opened+sec_in_day 1729643863 [00:17:19]quantity*price = 80010 [00:17:19]sum+1 = 80011 [00:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 335 23.10.2024 00:17 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166580 ФПД: 226598851172297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T001721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166580&fm=226598851172297&tin=02508201610067®Number=0000000000091764&sum=80000 [00:17:20]StoreToDocumentArchive [00:17:20]shift 536 fd 166580 [00:17:20]save to /storage/0536/doc_00166580 [00:17:20]save last doc name /storage/0536/doc_00166580 to /storage/kkm_last_doc_name [00:17:20]save OK [00:17:20]Clear old archive folders... [00:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:17:20]tlvbuf is 01261CB0 [00:17:20]SAM_PROTO_ClearQueue [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 09 00 00 [00:17:20]Write to MH i2c: E2 08 00 DF 1B 80 09 00 00 00 00 00 00 6C [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]SAM_PROTO_ClearQueue done [00:17:20]KKMCreateOFDPacket [00:17:20]OFDProtocolAddRootSTLVToBuf [00:17:20]FM_MakeSignedData [00:17:20]FM_MakeSignedData [00:17:20]SAM_PROTO_SignData [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 01 02 [00:17:20]Write to MH i2c: E2 08 00 E0 1B 80 0D 01 02 00 00 00 00 74 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=255 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 91 40 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8A 02 00 35 04 06 00 CE 17 28 07 [00:17:20]Write to MH i2c: E2 02 01 E1 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 91 40 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8A 02 00 35 04 06 00 CE 17 28 07 00 00 41 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 E1 1B 00 90 00 70 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=7 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 02 02 02 D7 C9 [00:17:20]Write to MH i2c: E2 0A 00 E2 1B 80 0D 02 02 02 00 D7 C9 00 00 1B [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [00:17:20]RAPDU: 90 00 [00:17:20]wFMCommunicate OK [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 0D 03 02 [00:17:20]Write to MH i2c: E2 08 00 E3 1B 80 0D 03 02 00 00 00 00 79 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 0B 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 0B 00 E3 1B 00 50 12 71 23 F9 13 5B A8 90 00 7F [00:17:20]RAPDU: 50 12 71 23 F9 13 5B A8 90 00 [00:17:20]wFMCommunicate OK [00:17:20]SAM_PROTO_SignData done [00:17:20]FM_MakeSignedData done [00:17:20]CreateOFDProtocolMessage [00:17:20]wFMCommunicate request_size=4 [00:17:20]MH_SAM_APDU [00:17:20]CAPDU: 80 11 00 00 [00:17:20]Write to MH i2c: E2 08 00 E4 1B 80 11 00 00 00 00 00 00 79 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:20]Read from MH i2c: E2 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 17 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: E2 17 00 E4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [00:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:17:20]wFMCommunicate OK [00:17:20]CreateOFDProtocolMessage done [00:17:20]OFDSenderStorePacket 166580 [00:17:20]StoreOFDPacket docnum=166580 [00:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C2 16 04 01 81 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 91 40 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8A 02 00 35 04 06 00 CE 17 28 07 D7 C9 50 12 71 23 F9 13 5B A8 [00:17:20]CheckFolder [00:17:20]dirname=/storage/ofd_packets [00:17:20]CheckFolder done [00:17:20]ProducePacketName [00:17:20]name=ofd_packets/00166580 [00:17:20]NVStorageSaveData ofd_packets/00166580 [00:17:20]File name is /storage/ofd_packets/00166580 [00:17:20]Write 298 bytes [00:17:20]NVStorageSaveData done [00:17:20]OFDSenderStorePacket done [00:17:20]KKMCreateOFDPacket done [00:17:20]NVStorageSaveData kkm_last_timestamp [00:17:20]File name is /storage/kkm_last_timestamp [00:17:20]Write 4 bytes [00:17:20]NVStorageSaveData done [00:17:20]ExternCall_PrintAddStr [00:17:20]wPrintStart [00:17:20]Write to MH i2c: 01 00 00 E5 1B 00 [00:17:20]Write i2c OK [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 07 00 [00:17:20]MH_I2C_Read... [00:17:20]Read from MH i2c: 01 07 00 E5 1B 00 00 00 00 00 FF 0F 15 [00:17:20]RasterBufferAndPrint [00:17:20]line Счет N : (1)221162 [00:17:20]line ИНН: 02508201610067 [00:17:20]line Контрольно-Кассовый Чек [00:17:20]line ПРОДАЖА [00:17:20]line ТРК (МРК, ГНК) : 21 [00:17:20]line Товар: 2710194210 [00:17:20]line ДТ-К-5 [00:17:20]line 10.500 * 76.20 [00:17:20]line = 800.10 [00:17:20]line НДС 12% НСП 1% [00:17:20]line > о реализуемом товаре [00:17:20]line ОКРУГЛЕНИЕ: -0.10 [00:17:20]line ИТОГО: 800.00 [00:17:20]line Внесено: 800.00 [00:17:20]line СДАЧА: 0.00 [00:17:20]line НСП 1% : 7.08 [00:17:20]line НДС 12% : 84.97 [00:17:20]line Наличными: 800.00 [00:17:20]line Безнал.: 0.00 [00:17:20]line Место: АЗС № 161 "Партнер Нефть" [00:17:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:17:20]line СНО: Общий режим [00:17:20]line Чек 335 23.10.2024 00:17 [00:17:20]line Смена: 536 ФФД: 1.0 [00:17:20]line ЗНМ: 0300000104 [00:17:20]line РНМ: 0000000000091764 [00:17:20]line Версия ККМ: 001 [00:17:20]line ФМ: 0000000000871759 [00:17:20]line ФД: 166580 [00:17:20]line ФПД: 226598851172297 [00:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T001721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166580&fm=226598851172297&tin=02508201610067®Number=0000000000091764&sum=80000 [00:17:21]OFD Sender: Processing packet 166580 [packets to send 48, broken 47] [00:17:21]ProducePacketName [00:17:21]name=ofd_packets/00166580 [00:17:21]OFD Sender: To server: pG, [00:17:21]CommunicateWithHost lk.salyk.kg:30040 [00:17:21]ConnectInit lk.salyk.kg [00:17:21]written 0, free lines is 4095 [00:17:21]Connected sock=9 [00:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C2 16 04 01 81 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 91 40 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8A 02 00 35 04 06 00 CE 17 28 07 D7 C9 50 12 71 23 F9 13 5B A8 [00:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9C F5 47 00 FB 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 8A 02 00 F4 03 04 00 FA E6 17 67 B6 04 01 00 00 6E E3 0F B4 E3 6F F7 D1 [00:17:21]CommunicateWithHost err = 0 [00:17:21]CheckOFDResponse [00:17:21]1017 (14) - 77093643461234 [00:17:21]1041 (16) - 0000000000871759 [00:17:21]1040 (4) - 166580 [00:17:21]1012 (4) - 22.10.2024 17:55 [00:17:21]1206 (1) - 0 [00:17:21]OFD Sender: Remove packet 166580 [00:17:21]ProducePacketName [00:17:21]name=ofd_packets/00166580 [00:17:21]NVStorageDeleteData [00:17:21]Write to MH i2c: 01 00 00 10 1C 2C [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 07 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: 01 07 00 10 1C 00 00 00 00 00 A2 0C E1 [00:17:21]RasterBufferAndPrint [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]line [00:17:21]written 0, free lines is 3240 [00:17:21]MH_Cut [00:17:21]Write to MH i2c: D1 01 00 17 1C 01 05 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 01 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: D1 01 00 17 1C 00 04 [00:17:21]Write to MH i2c: 01 00 00 18 1C 34 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]OFD Sender: No OFD packet to send [00:17:22]*** Cut start [00:17:22]*** Partial cut [00:17:22]*** CUTSNS_PIN = 1 [00:17:22]*** CUTSNS_PIN = 0 [00:17:22]*** Brake cut motor [00:17:23]Read from MH i2c: 01 [00:17:23]MH_I2C_Read... [00:17:23]*** Stop cut motor [00:17:23]*** Cut end [00:17:23]Read from MH i2c: 01 07 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 FF 0F 49 [00:17:23]process_action close_receipt done [00:17:23]requested_data is exist [00:17:23]produce_requested_data [00:17:23]requested_item fm.sn is exist - process it [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 11 00 00 [00:17:23]Write to MH i2c: E2 08 00 19 1C 80 11 00 00 00 00 00 00 AF [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 17 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 17 00 19 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [00:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:17:23]wFMCommunicate OK [00:17:23]requested_item fd.num is exist - process it [00:17:23]SAM_PROTO_GetFieldsCounters [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 13 00 00 [00:17:23]Write to MH i2c: E2 08 00 1A 1C 80 13 00 00 00 00 00 00 B2 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 62 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 62 00 1A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_GetFieldsCounters done [00:17:23]requested_item shift.num is exist - process it [00:17:23]requested_item shift.opened is exist - process it [00:17:23]req_shift_opened [00:17:23]FM_GetShiftState [00:17:23]SAM_PROTO_GetShiftState [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 13 01 00 [00:17:23]Write to MH i2c: E2 08 00 1B 1C 80 13 01 00 00 00 00 00 B4 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0E 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0E 00 1B 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 07 [00:17:23]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_GetShiftState done [00:17:23]FM_GetShiftState done [00:17:23]req_shift_opened done [00:17:23]requested_item shift.open_date is exist - process it [00:17:23]req_shift_open_date [00:17:23]req_shift_open_date done [00:17:23]produce_requested_data done [00:17:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166580,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:17:23]process_action_free close_receipt [00:17:23]json_value_free [00:17:23]json_value_free done [00:17:23]process_json_proto returns [00:17:23]Send response to host [00:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166580,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:17:23]free response buf [00:17:23]execute_script done [00:17:23]execute_script returns [00:17:23]free content buf [00:17:23]Sock 7.Close socket [00:17:23]Sock 7.Thread stoped [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:34]accept exits with 10 [00:19:34]New connection [00:19:34]New thread 3067632996 created [00:19:34]Thread 3067489636 joined [00:19:34]Waiting for new connection... [00:19:34] Sock 10.Parse request [00:19:34]Sock 10.Check first char [00:19:34]Sock 10.First char is OK [00:19:34]request: POST /json_proto HTTP/1.0 [00:19:34]Method: POST [00:19:34]URL: /json_proto [00:19:34]Method is POST - this is cgi request [00:19:34]url: /json_proto [00:19:34]query_string will be loaded in cgi processing [00:19:34]execute_cgi json_proto POST (null) [00:19:34]execute_cgi path=json_proto method=POST [00:19:34]POST find Content-Length [00:19:34]Host: 172.17.53.195:8080 [00:19:34]Content-Length: 677 [00:19:34]Content-Type: application/json [00:19:34] [00:19:34]POST finish read [00:19:34]Found Content-Length = 677 [00:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:34]execute_script... [00:19:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:34]POST & json_proto [00:19:34]process_json_proto [00:19:34]json parsed OK: [00:19:34]protocol is kg_v1.0 [00:19:34]action value=close_receipt [00:19:34]process_action close_receipt [00:19:34]cmd_close_receipt [00:19:34]MH_GetDate [00:19:34]Write to MH i2c: F0 00 00 1C 1C 27 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 09 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 09 00 1C 1C 00 18 41 18 67 21 48 4A 65 20 [00:19:34]GetLastDocTimeStamp 1729642641 [00:19:34]current date 1729642776 [00:19:34]FM_GetShiftState [00:19:34]SAM_PROTO_GetShiftState [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 13 01 00 [00:19:34]Write to MH i2c: E2 08 00 1D 1C 80 13 01 00 00 00 00 00 B6 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 1D 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 09 [00:19:34]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_GetShiftState done [00:19:34]FM_GetShiftState done [00:19:34]opened in 1729557463 [00:19:34]opened+sec_in_day 1729643863 [00:19:34]quantity*price = 29971 [00:19:34]sum+1 = 29972 [00:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 336 23.10.2024 00:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166581 ФПД: 251023767398331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T001936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166581&fm=251023767398331&tin=02508201610067®Number=0000000000091764&sum=29900 [00:19:35]StoreToDocumentArchive [00:19:35]shift 536 fd 166581 [00:19:35]save to /storage/0536/doc_00166581 [00:19:35]save last doc name /storage/0536/doc_00166581 to /storage/kkm_last_doc_name [00:19:35]save OK [00:19:35]Clear old archive folders... [00:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:19:35]tlvbuf is 011F0750 [00:19:35]SAM_PROTO_ClearQueue [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 09 00 00 [00:19:35]Write to MH i2c: E2 08 00 2A 1C 80 09 00 00 00 00 00 00 B8 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]SAM_PROTO_ClearQueue done [00:19:35]KKMCreateOFDPacket [00:19:35]OFDProtocolAddRootSTLVToBuf [00:19:35]FM_MakeSignedData [00:19:35]FM_MakeSignedData [00:19:35]SAM_PROTO_SignData [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 01 02 [00:19:35]Write to MH i2c: E2 08 00 2B 1C 80 0D 01 02 00 00 00 00 C0 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 2B 1C 00 90 00 BB [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=255 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 18 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8A 02 00 35 04 06 00 E4 [00:19:35]Write to MH i2c: E2 02 01 2C 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 18 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8A 02 00 35 04 06 00 E4 00 00 93 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 2C 1C 00 90 00 BC [00:19:36]RAPDU: 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=10 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 0D 02 02 05 4E 06 7C 67 BB [00:19:36]Write to MH i2c: E2 0D 00 2D 1C 80 0D 02 02 05 00 4E 06 7C 67 BB 00 00 BF [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [00:19:36]RAPDU: 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 0D 03 02 [00:19:36]Write to MH i2c: E2 08 00 2E 1C 80 0D 03 02 00 00 00 00 C5 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 0B 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 0B 00 2E 1C 00 93 1E F1 4B D0 F5 03 91 90 00 0C [00:19:36]RAPDU: 93 1E F1 4B D0 F5 03 91 90 00 [00:19:36]wFMCommunicate OK [00:19:36]SAM_PROTO_SignData done [00:19:36]FM_MakeSignedData done [00:19:36]CreateOFDProtocolMessage [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 11 00 00 [00:19:36]Write to MH i2c: E2 08 00 2F 1C 80 11 00 00 00 00 00 00 C5 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 17 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 17 00 2F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [00:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:19:36]wFMCommunicate OK [00:19:36]CreateOFDProtocolMessage done [00:19:36]OFDSenderStorePacket 166581 [00:19:36]StoreOFDPacket docnum=166581 [00:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 BD 07 01 9A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 18 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8A 02 00 35 04 06 00 E4 4E 06 7C 67 BB 93 1E F1 4B D0 F5 03 91 [00:19:36]CheckFolder [00:19:36]dirname=/storage/ofd_packets [00:19:36]CheckFolder done [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00166581 [00:19:36]NVStorageSaveData ofd_packets/00166581 [00:19:36]File name is /storage/ofd_packets/00166581 [00:19:36]Write 301 bytes [00:19:36]NVStorageSaveData done [00:19:36]OFDSenderStorePacket done [00:19:36]KKMCreateOFDPacket done [00:19:36]NVStorageSaveData kkm_last_timestamp [00:19:36]File name is /storage/kkm_last_timestamp [00:19:36]Write 4 bytes [00:19:36]NVStorageSaveData done [00:19:36]ExternCall_PrintAddStr [00:19:36]wPrintStart [00:19:36]Write to MH i2c: 01 00 00 30 1C 4C [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 30 1C 00 00 00 00 00 FF 0F 61 [00:19:36]RasterBufferAndPrint [00:19:36]line Счет N : (1)221163 [00:19:36]line ИНН: 02508201610067 [00:19:36]line Контрольно-Кассовый Чек [00:19:36]line ПРОДАЖА [00:19:36]line ТРК (МРК, ГНК) : 43 [00:19:36]line Товар: 2710124130 [00:19:36]line Аи-92-К-5 [00:19:36]line 4.480 * 66.90 [00:19:36]line = 299.71 [00:19:36]line НДС 12% НСП 1% [00:19:36]line > о реализуемом товаре [00:19:36]line ОКРУГЛЕНИЕ: -0.71 [00:19:36]line ИТОГО: 299.00 [00:19:36]line Внесено: 300.00 [00:19:36]line СДАЧА: 1.00 [00:19:36]line НСП 1% : 2.65 [00:19:36]line НДС 12% : 31.83 [00:19:36]line Наличными: 299.00 [00:19:36]line Безнал.: 0.00 [00:19:36]line Место: АЗС № 161 "Партнер Нефть" [00:19:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:19:36]line СНО: Общий режим [00:19:36]line Чек 336 23.10.2024 00:19 [00:19:36]line Смена: 536 ФФД: 1.0 [00:19:36]line ЗНМ: 0300000104 [00:19:36]line РНМ: 0000000000091764 [00:19:36]line Версия ККМ: 001 [00:19:36]line ФМ: 0000000000871759 [00:19:36]line ФД: 166581 [00:19:36]line ФПД: 251023767398331 [00:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T001936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166581&fm=251023767398331&tin=02508201610067®Number=0000000000091764&sum=29900 [00:19:36]OFD Sender: Processing packet 166581 [packets to send 48, broken 47] [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00166581 [00:19:36]OFD Sender: To server: pG, [00:19:36]CommunicateWithHost lk.salyk.kg:30040 [00:19:36]ConnectInit lk.salyk.kg [00:19:36]written 0, free lines is 4095 [00:19:36]Connected sock=9 [00:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 BD 07 01 9A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 18 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8A 02 00 35 04 06 00 E4 4E 06 7C 67 BB 93 1E F1 4B D0 F5 03 91 [00:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2E A0 47 00 C0 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 8A 02 00 F4 03 04 00 82 E7 17 67 B6 04 01 00 00 B3 A1 B5 15 B7 6B 00 81 [00:19:36]CommunicateWithHost err = 0 [00:19:36]CheckOFDResponse [00:19:36]1017 (14) - 77093643461234 [00:19:36]1041 (16) - 0000000000871759 [00:19:36]1040 (4) - 166581 [00:19:36]1012 (4) - 22.10.2024 17:57 [00:19:36]1206 (1) - 0 [00:19:36]OFD Sender: Remove packet 166581 [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00166581 [00:19:36]NVStorageDeleteData [00:19:37]Write to MH i2c: 01 00 00 5B 1C 77 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: 01 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: 01 07 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: 01 07 00 5B 1C 00 00 00 00 00 A9 0C 33 [00:19:37]RasterBufferAndPrint [00:19:37]line [00:19:37]line [00:19:37]line [00:19:37]line [00:19:37]line [00:19:37]written 0, free lines is 3246 [00:19:37]MH_Cut [00:19:37]Write to MH i2c: D1 01 00 62 1C 01 50 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: D1 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: D1 01 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: D1 01 00 62 1C 00 4F [00:19:37]Write to MH i2c: 01 00 00 63 1C 7F [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]OFD Sender: No OFD packet to send [00:19:37]*** Cut start [00:19:37]*** Partial cut [00:19:37]*** CUTSNS_PIN = 1 [00:19:37]*** CUTSNS_PIN = 0 [00:19:38]*** Brake cut motor [00:19:38]Read from MH i2c: 01 [00:19:38]MH_I2C_Read... [00:19:38]*** Stop cut motor [00:19:38]*** Cut end [00:19:38]Read from MH i2c: 01 07 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 FF 0F 94 [00:19:38]process_action close_receipt done [00:19:38]requested_data is exist [00:19:38]produce_requested_data [00:19:38]requested_item fm.sn is exist - process it [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 11 00 00 [00:19:38]Write to MH i2c: E2 08 00 64 1C 80 11 00 00 00 00 00 00 FA [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 17 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 17 00 64 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [00:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:19:38]wFMCommunicate OK [00:19:38]requested_item fd.num is exist - process it [00:19:38]SAM_PROTO_GetFieldsCounters [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 13 00 00 [00:19:38]Write to MH i2c: E2 08 00 65 1C 80 13 00 00 00 00 00 00 FD [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 62 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 62 00 65 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [00:19:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:38]wFMCommunicate OK [00:19:38]SAM_PROTO_GetFieldsCounters done [00:19:38]requested_item shift.num is exist - process it [00:19:38]requested_item shift.opened is exist - process it [00:19:38]req_shift_opened [00:19:38]FM_GetShiftState [00:19:38]SAM_PROTO_GetShiftState [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 13 01 00 [00:19:38]Write to MH i2c: E2 08 00 66 1C 80 13 01 00 00 00 00 00 FF [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 66 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 52 [00:19:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:19:38]wFMCommunicate OK [00:19:38]SAM_PROTO_GetShiftState done [00:19:38]FM_GetShiftState done [00:19:38]req_shift_opened done [00:19:38]requested_item shift.open_date is exist - process it [00:19:38]req_shift_open_date [00:19:38]req_shift_open_date done [00:19:38]produce_requested_data done [00:19:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166581,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:19:38]process_action_free close_receipt [00:19:38]json_value_free [00:19:38]json_value_free done [00:19:38]process_json_proto returns [00:19:38]Send response to host [00:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166581,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:19:38]free response buf [00:19:38]execute_script done [00:19:38]execute_script returns [00:19:38]free content buf [00:19:38]Sock 10.Close socket [00:19:38]Sock 10.Thread stoped [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:20]accept exits with 7 [00:23:20]New connection [00:23:20]New thread 3067489636 created [00:23:20]Thread 3067632996 joined [00:23:20]Waiting for new connection... [00:23:20] Sock 7.Parse request [00:23:20]Sock 7.Check first char [00:23:20]Sock 7.First char is OK [00:23:20]request: POST /json_proto HTTP/1.0 [00:23:20]Method: POST [00:23:20]URL: /json_proto [00:23:20]Method is POST - this is cgi request [00:23:20]url: /json_proto [00:23:20]query_string will be loaded in cgi processing [00:23:20]execute_cgi json_proto POST (null) [00:23:20]execute_cgi path=json_proto method=POST [00:23:20]POST find Content-Length [00:23:20]Host: 172.17.53.195:8080 [00:23:20]Content-Length: 789 [00:23:20]Content-Type: application/json [00:23:20] [00:23:20]POST finish read [00:23:20]Found Content-Length = 789 [00:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 47.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:20]execute_script... [00:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 47.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:20]POST & json_proto [00:23:20]process_json_proto [00:23:20]json parsed OK: [00:23:20]protocol is kg_v1.0 [00:23:20]action value=close_receipt [00:23:20]process_action close_receipt [00:23:20]cmd_close_receipt [00:23:20]MH_GetDate [00:23:20]Write to MH i2c: F0 00 00 67 1C 72 [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: F0 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: F0 09 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: F0 09 00 67 1C 00 FA 41 18 67 21 48 4A 65 4D [00:23:20]GetLastDocTimeStamp 1729642776 [00:23:20]current date 1729643002 [00:23:20]FM_GetShiftState [00:23:20]SAM_PROTO_GetShiftState [00:23:20]wFMCommunicate request_size=4 [00:23:20]MH_SAM_APDU [00:23:20]CAPDU: 80 13 01 00 [00:23:20]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [00:23:20]Write i2c OK [00:23:20]MH_I2C_Read... [00:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:20]Read from MH i2c: E2 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 [00:23:20]MH_I2C_Read... [00:23:20]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 54 [00:23:20]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:23:20]wFMCommunicate OK [00:23:20]SAM_PROTO_GetShiftState done [00:23:20]FM_GetShiftState done [00:23:20]opened in 1729557463 [00:23:20]opened+sec_in_day 1729643863 [00:23:20]quantity*price = 0 [00:23:20]sum+1 = 1 [00:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 337 23.10.2024 00:23 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 04822 ФМ: 0000000000871759 ФД: 166582 ФПД: 142197156743961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002323&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166582&fm=142197156743961&tin=02508201610067®Number=0000000000091764&sum=0 [00:23:22]StoreToDocumentArchive [00:23:22]shift 536 fd 166582 [00:23:22]save to /storage/0536/doc_00166582 [00:23:22]save last doc name /storage/0536/doc_00166582 to /storage/kkm_last_doc_name [00:23:22]save OK [00:23:22]Clear old archive folders... [00:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:23:22]tlvbuf is 01248AF0 [00:23:22]SAM_PROTO_ClearQueue [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 09 00 00 [00:23:22]Write to MH i2c: E2 08 00 75 1C 80 09 00 00 00 00 00 00 03 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 75 1C 00 90 00 05 [00:23:22]RAPDU: 90 00 [00:23:22]wFMCommunicate OK [00:23:22]SAM_PROTO_ClearQueue done [00:23:22]KKMCreateOFDPacket [00:23:22]OFDProtocolAddRootSTLVToBuf [00:23:22]FM_MakeSignedData [00:23:22]FM_MakeSignedData [00:23:22]SAM_PROTO_SignData [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 0D 01 02 [00:23:22]Write to MH i2c: E2 08 00 76 1C 80 0D 01 02 00 00 00 00 0B [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 76 1C 00 90 00 06 [00:23:22]RAPDU: 90 00 [00:23:22]wFMCommunicate OK [00:23:22]wFMCommunicate request_size=255 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FB 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8A 02 00 35 04 06 00 81 53 DB 04 [00:23:22]Write to MH i2c: E2 02 01 77 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FB 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8A 02 00 35 04 06 00 81 53 DB 04 00 00 DA [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [00:23:22]RAPDU: 90 00 [00:23:22]wFMCommunicate OK [00:23:22]wFMCommunicate request_size=7 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 0D 02 02 02 0B 19 [00:23:22]Write to MH i2c: E2 0A 00 78 1C 80 0D 02 02 02 00 0B 19 00 00 36 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [00:23:22]RAPDU: 90 00 [00:23:22]wFMCommunicate OK [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 0D 03 02 [00:23:22]Write to MH i2c: E2 08 00 79 1C 80 0D 03 02 00 00 00 00 10 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 0B 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 0B 00 79 1C 00 FC F0 26 2B C2 27 43 6A 90 00 E4 [00:23:22]RAPDU: FC F0 26 2B C2 27 43 6A 90 00 [00:23:22]wFMCommunicate OK [00:23:22]SAM_PROTO_SignData done [00:23:22]FM_MakeSignedData done [00:23:22]CreateOFDProtocolMessage [00:23:22]wFMCommunicate request_size=4 [00:23:22]MH_SAM_APDU [00:23:22]CAPDU: 80 11 00 00 [00:23:22]Write to MH i2c: E2 08 00 7A 1C 80 11 00 00 00 00 00 00 10 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:22]Read from MH i2c: E2 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 17 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: E2 17 00 7A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [00:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:23:22]wFMCommunicate OK [00:23:22]CreateOFDProtocolMessage done [00:23:22]OFDSenderStorePacket 166582 [00:23:22]StoreOFDPacket docnum=166582 [00:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DF 6B 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FB 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8A 02 00 35 04 06 00 81 53 DB 04 0B 19 FC F0 26 2B C2 27 43 6A [00:23:22]CheckFolder [00:23:22]dirname=/storage/ofd_packets [00:23:22]CheckFolder done [00:23:22]ProducePacketName [00:23:22]name=ofd_packets/00166582 [00:23:22]NVStorageSaveData ofd_packets/00166582 [00:23:22]File name is /storage/ofd_packets/00166582 [00:23:22]Write 298 bytes [00:23:22]NVStorageSaveData done [00:23:22]OFDSenderStorePacket done [00:23:22]KKMCreateOFDPacket done [00:23:22]NVStorageSaveData kkm_last_timestamp [00:23:22]File name is /storage/kkm_last_timestamp [00:23:22]Write 4 bytes [00:23:22]NVStorageSaveData done [00:23:22]ExternCall_PrintAddStr [00:23:22]wPrintStart [00:23:22]Write to MH i2c: 01 00 00 7B 1C 97 [00:23:22]Write i2c OK [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: 01 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: 01 07 00 [00:23:22]MH_I2C_Read... [00:23:22]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 FF 0F AC [00:23:22]RasterBufferAndPrint [00:23:22]line Счет N : (1)221164 [00:23:22]line ИНН: 02508201610067 [00:23:22]line Контрольно-Кассовый Чек [00:23:22]line ПРОДАЖА [00:23:22]line ТРК (МРК, ГНК) : 21 [00:23:22]line Товар: 2710194210 [00:23:22]line ДТ-К-5 [00:23:22]line 47.000 * 0.00 [00:23:22]line = 0.00 [00:23:22]line НДС 12% НСП 1% [00:23:22]line > о реализуемом товаре [00:23:22]line ИТОГО: 0.00 [00:23:22]line НСП 1% : 0.00 [00:23:22]line НДС 12% : 0.00 [00:23:22]line Наличными: 0.00 [00:23:22]line Безнал.: 0.00 [00:23:22]line Место: АЗС № 161 "Партнер Нефть" [00:23:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:23:22]line СНО: Общий режим [00:23:22]line Чек 337 23.10.2024 00:23 [00:23:22]line Смена: 536 ФФД: 1.0 [00:23:22]line ЗНМ: 0300000104 [00:23:22]line РНМ: 0000000000091764 [00:23:22]line Версия ККМ: 001 [00:23:22]line Талоны: Топливная Карта [00:23:22]line 04822 [00:23:22]line ФМ: 0000000000871759 [00:23:22]line ФД: 166582 [00:23:22]line ФПД: 142197156743961 [00:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002323&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166582&fm=142197156743961&tin=02508201610067®Number=0000000000091764&sum=0 [00:23:22]OFD Sender: Processing packet 166582 [packets to send 48, broken 47] [00:23:22]ProducePacketName [00:23:22]name=ofd_packets/00166582 [00:23:22]OFD Sender: To server: pG, [00:23:22]CommunicateWithHost lk.salyk.kg:30040 [00:23:22]ConnectInit lk.salyk.kg [00:23:22]written 0, free lines is 4095 [00:23:23]Connected sock=10 [00:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DF 6B 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 FB 41 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8A 02 00 35 04 06 00 81 53 DB 04 0B 19 FC F0 26 2B C2 27 43 6A [00:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 D3 47 00 44 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 8A 02 00 F4 03 04 00 64 E8 17 67 B6 04 01 00 00 4D 82 A2 74 7A 79 46 02 [00:23:23]CommunicateWithHost err = 0 [00:23:23]CheckOFDResponse [00:23:23]1017 (14) - 77093643461234 [00:23:23]1041 (16) - 0000000000871759 [00:23:23]1040 (4) - 166582 [00:23:23]1012 (4) - 22.10.2024 18:01 [00:23:23]1206 (1) - 0 [00:23:23]OFD Sender: Remove packet 166582 [00:23:23]ProducePacketName [00:23:23]name=ofd_packets/00166582 [00:23:23]NVStorageDeleteData [00:23:23]Write to MH i2c: 01 00 00 A5 1C C1 [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: 01 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: 01 07 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 B3 0C 87 [00:23:23]RasterBufferAndPrint [00:23:23]line [00:23:23]line [00:23:23]line [00:23:23]line [00:23:23]line [00:23:23]written 0, free lines is 3257 [00:23:23]MH_Cut [00:23:23]Write to MH i2c: D1 01 00 AC 1C 01 9A [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: D1 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: D1 01 00 [00:23:23]MH_I2C_Read... [00:23:23]Read from MH i2c: D1 01 00 AC 1C 00 99 [00:23:23]Write to MH i2c: 01 00 00 AD 1C C9 [00:23:23]Write i2c OK [00:23:23]MH_I2C_Read... [00:23:23]OFD Sender: No OFD packet to send [00:23:24]*** Cut start [00:23:24]*** Partial cut [00:23:24]*** CUTSNS_PIN = 1 [00:23:24]*** CUTSNS_PIN = 0 [00:23:24]*** Brake cut motor [00:23:24]Read from MH i2c: 01 [00:23:24]MH_I2C_Read... [00:23:24]*** Stop cut motor [00:23:24]*** Cut end [00:23:24]Read from MH i2c: 01 07 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: 01 07 00 AD 1C 00 00 00 00 00 FF 0F DE [00:23:24]process_action close_receipt done [00:23:24]requested_data is exist [00:23:24]produce_requested_data [00:23:24]requested_item fm.sn is exist - process it [00:23:24]wFMCommunicate request_size=4 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 11 00 00 [00:23:24]Write to MH i2c: E2 08 00 AE 1C 80 11 00 00 00 00 00 00 44 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 17 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 17 00 AE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [00:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:23:24]wFMCommunicate OK [00:23:24]requested_item fd.num is exist - process it [00:23:24]SAM_PROTO_GetFieldsCounters [00:23:24]wFMCommunicate request_size=4 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 13 00 00 [00:23:24]Write to MH i2c: E2 08 00 AF 1C 80 13 00 00 00 00 00 00 47 [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 62 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 62 00 AF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [00:23:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:25]wFMCommunicate OK [00:23:25]SAM_PROTO_GetFieldsCounters done [00:23:25]requested_item shift.num is exist - process it [00:23:25]requested_item shift.opened is exist - process it [00:23:25]req_shift_opened [00:23:25]FM_GetShiftState [00:23:25]SAM_PROTO_GetShiftState [00:23:25]wFMCommunicate request_size=4 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 13 01 00 [00:23:25]Write to MH i2c: E2 08 00 B0 1C 80 13 01 00 00 00 00 00 49 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 0E 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 0E 00 B0 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9C [00:23:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:23:25]wFMCommunicate OK [00:23:25]SAM_PROTO_GetShiftState done [00:23:25]FM_GetShiftState done [00:23:25]req_shift_opened done [00:23:25]requested_item shift.open_date is exist - process it [00:23:25]req_shift_open_date [00:23:25]req_shift_open_date done [00:23:25]produce_requested_data done [00:23:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166582,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:23:25]process_action_free close_receipt [00:23:25]json_value_free [00:23:25]json_value_free done [00:23:25]process_json_proto returns [00:23:25]Send response to host [00:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166582,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:23:25]free response buf [00:23:25]execute_script done [00:23:25]execute_script returns [00:23:25]free content buf [00:23:25]Sock 7.Close socket [00:23:25]Sock 7.Thread stoped [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]accept exits with 9 [00:24:18]New connection [00:24:18]New thread 3067632996 created [00:24:18]Thread 3067489636 joined [00:24:18]Waiting for new connection... [00:24:18] Sock 9.Parse request [00:24:18]Sock 9.Check first char [00:24:18]Sock 9.First char is OK [00:24:18]request: POST /json_proto HTTP/1.0 [00:24:18]Method: POST [00:24:18]URL: /json_proto [00:24:18]Method is POST - this is cgi request [00:24:18]url: /json_proto [00:24:18]query_string will be loaded in cgi processing [00:24:18]execute_cgi json_proto POST (null) [00:24:18]execute_cgi path=json_proto method=POST [00:24:18]POST find Content-Length [00:24:18]Host: 172.17.53.195:8080 [00:24:18]Content-Length: 215 [00:24:18]Content-Type: application/json [00:24:18] [00:24:18]POST finish read [00:24:18]Found Content-Length = 215 [00:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:18]execute_script... [00:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:18]POST & json_proto [00:24:18]process_json_proto [00:24:18]json parsed OK: [00:24:18]protocol is kg_v1.0 [00:24:18]action value=get_value [00:24:18]process_action get_value [00:24:18]cmd_get_value [00:24:18]process_action get_value done [00:24:18]requested_data is exist [00:24:18]produce_requested_data [00:24:18]requested_item kkm.sn is exist - process it [00:24:18]requested_item kkm.ver is exist - process it [00:24:18]requested_item fm.sn is exist - process it [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 11 00 00 [00:24:18]Write to MH i2c: E2 08 00 B1 1C 80 11 00 00 00 00 00 00 47 [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 17 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 17 00 B1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [00:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:24:18]wFMCommunicate OK [00:24:18]requested_item fd.num is exist - process it [00:24:18]SAM_PROTO_GetFieldsCounters [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 00 00 [00:24:18]Write to MH i2c: E2 08 00 B2 1C 80 13 00 00 00 00 00 00 4A [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 B2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00: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 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetFieldsCounters done [00:24:18]requested_item shift.num is exist - process it [00:24:18]requested_item shift.opened is exist - process it [00:24:18]req_shift_opened [00:24:18]FM_GetShiftState [00:24:18]SAM_PROTO_GetShiftState [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 01 00 [00:24:18]Write to MH i2c: E2 08 00 B3 1C 80 13 01 00 00 00 00 00 4C [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 B3 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 9F [00:24:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetShiftState done [00:24:18]FM_GetShiftState done [00:24:18]req_shift_opened done [00:24:18]requested_item shift.open_date is exist - process it [00:24:18]req_shift_open_date [00:24:18]req_shift_open_date done [00:24:18]produce_requested_data done [00:24:18]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166582,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:24:18]process_action_free get_value [00:24:18]json_value_free [00:24:18]json_value_free done [00:24:18]process_json_proto returns [00:24:18]Send response to host [00:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166582,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:24:18]free response buf [00:24:18]execute_script done [00:24:18]execute_script returns [00:24:18]free content buf [00:24:18]Sock 9.Close socket [00:24:18]Sock 9.Thread stoped [00:24:18]accept exits with 7 [00:24:18]New connection [00:24:18]New thread 3067489636 created [00:24:18]Thread 3067632996 joined [00:24:18]Waiting for new connection... [00:24:18] Sock 7.Parse request [00:24:18]Sock 7.Check first char [00:24:18]Sock 7.First char is OK [00:24:18]request: POST /json_proto HTTP/1.0 [00:24:18]Method: POST [00:24:18]URL: /json_proto [00:24:18]Method is POST - this is cgi request [00:24:18]url: /json_proto [00:24:18]query_string will be loaded in cgi processing [00:24:18]execute_cgi json_proto POST (null) [00:24:18]execute_cgi path=json_proto method=POST [00:24:18]POST find Content-Length [00:24:18]Host: 172.17.53.195:8080 [00:24:18]Content-Length: 331 [00:24:18]Content-Type: application/json [00:24:18] [00:24:18]POST finish read [00:24:18]Found Content-Length = 331 [00:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:18]execute_script... [00:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:18]POST & json_proto [00:24:18]process_json_proto [00:24:18]json parsed OK: [00:24:18]protocol is kg_v1.0 [00:24:18]action value=get_value [00:24:18]process_action get_value [00:24:18]cmd_get_value [00:24:18]process_action get_value done [00:24:18]requested_data is exist [00:24:18]produce_requested_data [00:24:18]requested_item fm.sale.total is exist - process it [00:24:18]SAM_PROTO_GetFMData [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 03 00 [00:24:18]Write to MH i2c: E2 08 00 B4 1C 80 13 03 00 00 00 00 00 4F [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]OFD Sender: No OFD packet to send [00:24:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:19]Read from MH i2c: E2 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 B4 1C 00 C5 04 85 04 C1 04 6E 04 04 00 86 86 02 00 69 04 A3 00 6F 04 04 00 87 85 02 00 B1 04 05 00 3E 77 5B B4 03 70 04 05 00 4C 55 59 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 76 CA C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 91 4D 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 45 [00:24:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 86 02 00 69 04 A3 00 6F 04 04 00 87 85 02 00 B1 04 05 00 3E 77 5B B4 03 70 04 05 00 4C 55 59 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 76 CA C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 91 4D 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:24:19]wFMCommunicate OK [00:24:19]wFMCommunicate request_size=4 [00:24:19]MH_SAM_APDU [00:24:19]CAPDU: 80 17 00 00 [00:24:19]Write to MH i2c: E2 08 00 B5 1C 80 17 00 00 00 00 00 00 51 [00:24:19]Write i2c OK [00:24:19]MH_I2C_Read... [00:24:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:19]Read from MH i2c: E2 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 B5 1C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1D [00:24:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:24:19]wFMCommunicate OK [00:24:19]wFMCommunicate request_size=4 [00:24:19]MH_SAM_APDU [00:24:19]CAPDU: 80 17 00 00 [00:24:19]Write to MH i2c: E2 08 00 B6 1C 80 17 00 00 00 00 00 00 52 [00:24:19]Write i2c OK [00:24:19]MH_I2C_Read... [00:24:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:19]Read from MH i2c: E2 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 B6 1C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 64 [00:24:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:24:19]wFMCommunicate OK [00:24:19]wFMCommunicate request_size=4 [00:24:19]MH_SAM_APDU [00:24:19]CAPDU: 80 17 00 00 [00:24:19]Write to MH i2c: E2 08 00 B7 1C 80 17 00 00 00 00 00 00 53 [00:24:19]Write i2c OK [00:24:19]MH_I2C_Read... [00:24:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:19]Read from MH i2c: E2 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 FD 00 B7 1C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DF [00:24:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:24:19]wFMCommunicate OK [00:24:19]wFMCommunicate request_size=4 [00:24:19]MH_SAM_APDU [00:24:19]CAPDU: 80 17 00 00 [00:24:19]Write to MH i2c: E2 08 00 B8 1C 80 17 00 00 00 00 00 00 54 [00:24:19]Write i2c OK [00:24:19]MH_I2C_Read... [00:24:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:24:20]Read from MH i2c: E2 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 E2 00 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 E2 00 B8 1C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 32 [00:24:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:20]wFMCommunicate OK [00:24:20]SAM_PROTO_GetFMData done [00:24:20]requested_item fm.sale_refund.total is exist - process it [00:24:20]requested_item fm.buy.total is exist - process it [00:24:20]requested_item shift.sale.total is exist - process it [00:24:20]SAM_PROTO_GetShiftData [00:24:20]wFMCommunicate request_size=4 [00:24:20]MH_SAM_APDU [00:24:20]CAPDU: 80 13 02 00 [00:24:20]Write to MH i2c: E2 08 00 B9 1C 80 13 02 00 00 00 00 00 53 [00:24:20]Write i2c OK [00:24:20]MH_I2C_Read... [00:24:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:20]Read from MH i2c: E2 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 FD 00 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 FD 00 B9 1C 00 B1 04 AA 04 AD 04 6E 04 04 00 51 01 00 00 69 04 9E 00 6F 04 04 00 51 01 00 00 B1 04 04 00 8A A8 E6 01 70 04 04 00 34 E7 88 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 B2 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 4E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 25 [00:24:20]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 51 01 00 00 69 04 9E 00 6F 04 04 00 51 01 00 00 B1 04 04 00 8A A8 E6 01 70 04 04 00 34 E7 88 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 B2 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 4E 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:20]wFMCommunicate OK [00:24:20]wFMCommunicate request_size=4 [00:24:20]MH_SAM_APDU [00:24:20]CAPDU: 80 17 00 00 [00:24:20]Write to MH i2c: E2 08 00 BA 1C 80 17 00 00 00 00 00 00 56 [00:24:20]Write i2c OK [00:24:20]MH_I2C_Read... [00:24:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:20]Read from MH i2c: E2 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 FD 00 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 FD 00 BA 1C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 6F [00:24:20]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:20]wFMCommunicate OK [00:24:20]wFMCommunicate request_size=4 [00:24:20]MH_SAM_APDU [00:24:20]CAPDU: 80 17 00 00 [00:24:20]Write to MH i2c: E2 08 00 BB 1C 80 17 00 00 00 00 00 00 57 [00:24:20]Write i2c OK [00:24:20]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 FD 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 FD 00 BB 1C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 10 [00:24:21]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:21]wFMCommunicate OK [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 17 00 00 [00:24:21]Write to MH i2c: E2 08 00 BC 1C 80 17 00 00 00 00 00 00 58 [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 FD 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 FD 00 BC 1C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D0 [00:24:21]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:21]wFMCommunicate OK [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 17 00 00 [00:24:21]Write to MH i2c: E2 08 00 BD 1C 80 17 00 00 00 00 00 00 59 [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 CE 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 CE 00 BD 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [00:24:21]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:21]wFMCommunicate OK [00:24:21]SAM_PROTO_GetShiftData done [00:24:21]requested_item shift.sale.total_cash is exist - process it [00:24:21]requested_item shift.sale_refund.total is exist - process it [00:24:21]requested_item shift.sale_refund.total_cash is exist - process it [00:24:21]requested_item shift.buy.total is exist - process it [00:24:21]requested_item shift.buy.total_cash is exist - process it [00:24:21]produce_requested_data done [00:24:21]produce_requested_data return {"fm.sale.total":159107950.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":318936.42,"shift.sale.total_cash":257493.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:24:21]process_action_free get_value [00:24:21]json_value_free [00:24:21]json_value_free done [00:24:21]process_json_proto returns [00:24:21]Send response to host [00:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159107950.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":318936.42,"shift.sale.total_cash":257493.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:24:21]free response buf [00:24:21]execute_script done [00:24:21]execute_script returns [00:24:21]free content buf [00:24:21]Sock 7.Close socket [00:24:21]Sock 7.Thread stoped [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:09]accept exits with 9 [00:25:09]New connection [00:25:09]New thread 3067632996 created [00:25:09] Sock 9.Parse request [00:25:09]Thread 3067489636 joined [00:25:09]Sock 9.Check first char [00:25:09]Waiting for new connection... [00:25:09]Sock 9.First char is OK [00:25:09]request: POST /json_proto HTTP/1.0 [00:25:09]Method: POST [00:25:09]URL: /json_proto [00:25:09]Method is POST - this is cgi request [00:25:09]url: /json_proto [00:25:09]query_string will be loaded in cgi processing [00:25:09]execute_cgi json_proto POST (null) [00:25:09]execute_cgi path=json_proto method=POST [00:25:09]POST find Content-Length [00:25:09]Host: 172.17.53.195:8080 [00:25:09]Content-Length: 677 [00:25:09]Content-Type: application/json [00:25:09] [00:25:09]POST finish read [00:25:09]Found Content-Length = 677 [00:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:09]execute_script... [00:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:09]POST & json_proto [00:25:09]process_json_proto [00:25:09]json parsed OK: [00:25:09]protocol is kg_v1.0 [00:25:09]action value=close_receipt [00:25:09]process_action close_receipt [00:25:09]cmd_close_receipt [00:25:09]MH_GetDate [00:25:09]Write to MH i2c: F0 00 00 BE 1C C9 [00:25:09]Write i2c OK [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: F0 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: F0 09 00 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: F0 09 00 BE 1C 00 68 42 18 67 21 48 4A 65 13 [00:25:09]GetLastDocTimeStamp 1729643003 [00:25:09]current date 1729643112 [00:25:09]FM_GetShiftState [00:25:09]SAM_PROTO_GetShiftState [00:25:09]wFMCommunicate request_size=4 [00:25:09]MH_SAM_APDU [00:25:09]CAPDU: 80 13 01 00 [00:25:09]Write to MH i2c: E2 08 00 BF 1C 80 13 01 00 00 00 00 00 58 [00:25:09]Write i2c OK [00:25:09]MH_I2C_Read... [00:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:09]Read from MH i2c: E2 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 0E 00 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 0E 00 BF 1C 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AB [00:25:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:25:09]wFMCommunicate OK [00:25:09]SAM_PROTO_GetShiftState done [00:25:09]FM_GetShiftState done [00:25:10]opened in 1729557463 [00:25:10]opened+sec_in_day 1729643863 [00:25:10]quantity*price = 50041 [00:25:10]sum+1 = 50042 [00:25:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 338 23.10.2024 00:25 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166583 ФПД: 177618977730571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166583&fm=177618977730571&tin=02508201610067®Number=0000000000091764&sum=50000 [00:25:11]StoreToDocumentArchive [00:25:11]shift 536 fd 166583 [00:25:11]save to /storage/0536/doc_00166583 [00:25:11]save last doc name /storage/0536/doc_00166583 to /storage/kkm_last_doc_name [00:25:11]save OK [00:25:11]Clear old archive folders... [00:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:11]tlvbuf is B6E4E710 [00:25:11]SAM_PROTO_ClearQueue [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 09 00 00 [00:25:11]Write to MH i2c: E2 08 00 CC 1C 80 09 00 00 00 00 00 00 5A [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 CC 1C 00 90 00 5C [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]SAM_PROTO_ClearQueue done [00:25:11]KKMCreateOFDPacket [00:25:11]OFDProtocolAddRootSTLVToBuf [00:25:11]FM_MakeSignedData [00:25:11]FM_MakeSignedData [00:25:11]SAM_PROTO_SignData [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 01 02 [00:25:11]Write to MH i2c: E2 08 00 CD 1C 80 0D 01 02 00 00 00 00 62 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 CD 1C 00 90 00 5D [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=255 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 68 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8A 02 00 35 04 06 00 A1 [00:25:11]Write to MH i2c: E2 02 01 CE 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 68 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8A 02 00 35 04 06 00 A1 00 00 72 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 CE 1C 00 90 00 5E [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=10 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 02 02 05 8B 24 12 B0 0B [00:25:11]Write to MH i2c: E2 0D 00 CF 1C 80 0D 02 02 05 00 8B 24 12 B0 0B 00 00 EB [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 CF 1C 00 90 00 5F [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 0D 03 02 [00:25:11]Write to MH i2c: E2 08 00 D0 1C 80 0D 03 02 00 00 00 00 67 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0B 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 0B 00 D0 1C 00 8A D5 A3 7C 04 23 0A CE 90 00 E5 [00:25:11]RAPDU: 8A D5 A3 7C 04 23 0A CE 90 00 [00:25:11]wFMCommunicate OK [00:25:11]SAM_PROTO_SignData done [00:25:11]FM_MakeSignedData done [00:25:11]CreateOFDProtocolMessage [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 11 00 00 [00:25:11]Write to MH i2c: E2 08 00 D1 1C 80 11 00 00 00 00 00 00 67 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 17 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 17 00 D1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [00:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:25:11]wFMCommunicate OK [00:25:11]CreateOFDProtocolMessage done [00:25:11]OFDSenderStorePacket 166583 [00:25:11]StoreOFDPacket docnum=166583 [00:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 28 07 01 19 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 68 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8A 02 00 35 04 06 00 A1 8B 24 12 B0 0B 8A D5 A3 7C 04 23 0A CE [00:25:11]CheckFolder [00:25:11]dirname=/storage/ofd_packets [00:25:11]CheckFolder done [00:25:11]ProducePacketName [00:25:11]name=ofd_packets/00166583 [00:25:11]NVStorageSaveData ofd_packets/00166583 [00:25:11]File name is /storage/ofd_packets/00166583 [00:25:11]Write 301 bytes [00:25:11]NVStorageSaveData done [00:25:11]OFDSenderStorePacket done [00:25:11]KKMCreateOFDPacket done [00:25:11]NVStorageSaveData kkm_last_timestamp [00:25:11]File name is /storage/kkm_last_timestamp [00:25:11]Write 4 bytes [00:25:11]NVStorageSaveData done [00:25:11]ExternCall_PrintAddStr [00:25:11]wPrintStart [00:25:11]Write to MH i2c: 01 00 00 D2 1C EE [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 D2 1C 00 00 00 00 00 FF 0F 03 [00:25:11]RasterBufferAndPrint [00:25:11]line Счет N : (1)221165 [00:25:11]line ИНН: 02508201610067 [00:25:11]line Контрольно-Кассовый Чек [00:25:11]line ПРОДАЖА [00:25:11]line ТРК (МРК, ГНК) : 13 [00:25:11]line Товар: 2710124130 [00:25:11]line Аи-92-К-5 [00:25:11]line 7.480 * 66.90 [00:25:11]line = 500.41 [00:25:11]line НДС 12% НСП 1% [00:25:11]line > о реализуемом товаре [00:25:11]line ОКРУГЛЕНИЕ: -0.41 [00:25:11]line ИТОГО: 500.00 [00:25:11]line Внесено: 500.00 [00:25:11]line СДАЧА: 0.00 [00:25:11]line НСП 1% : 4.43 [00:25:11]line НДС 12% : 53.14 [00:25:11]line Наличными: 500.00 [00:25:11]line Безнал.: 0.00 [00:25:11]line Место: АЗС № 161 "Партнер Нефть" [00:25:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:25:11]line СНО: Общий режим [00:25:11]line Чек 338 23.10.2024 00:25 [00:25:11]line Смена: 536 ФФД: 1.0 [00:25:11]line ЗНМ: 0300000104 [00:25:11]line РНМ: 0000000000091764 [00:25:11]line Версия ККМ: 001 [00:25:11]line ФМ: 0000000000871759 [00:25:11]line ФД: 166583 [00:25:11]line ФПД: 177618977730571 [00:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166583&fm=177618977730571&tin=02508201610067®Number=0000000000091764&sum=50000 [00:25:12]OFD Sender: Processing packet 166583 [packets to send 48, broken 47] [00:25:12]ProducePacketName [00:25:12]name=ofd_packets/00166583 [00:25:12]OFD Sender: To server: pG, [00:25:12]CommunicateWithHost lk.salyk.kg:30040 [00:25:12]ConnectInit lk.salyk.kg [00:25:12]written 0, free lines is 4095 [00:25:12]Connected sock=7 [00:25:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB 28 07 01 19 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 68 42 18 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8A 02 00 35 04 06 00 A1 8B 24 12 B0 0B 8A D5 A3 7C 04 23 0A CE [00:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 07 BC 47 00 6D 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 8A 02 00 F4 03 04 00 D1 E8 17 67 B6 04 01 00 00 3C DC EF 8B CD B6 0F 6A [00:25:12]CommunicateWithHost err = 0 [00:25:12]CheckOFDResponse [00:25:12]1017 (14) - 77093643461234 [00:25:12]1041 (16) - 0000000000871759 [00:25:12]1040 (4) - 166583 [00:25:12]1012 (4) - 22.10.2024 18:02 [00:25:12]1206 (1) - 0 [00:25:12]OFD Sender: Remove packet 166583 [00:25:12]ProducePacketName [00:25:12]name=ofd_packets/00166583 [00:25:12]NVStorageDeleteData [00:25:12]Write to MH i2c: 01 00 00 FD 1C 19 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 07 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 07 00 FD 1C 00 00 00 00 00 A7 0C D3 [00:25:12]RasterBufferAndPrint [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]line [00:25:12]written 0, free lines is 3245 [00:25:12]MH_Cut [00:25:12]Write to MH i2c: D1 01 00 04 1D 01 F3 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 01 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: D1 01 00 04 1D 00 F2 [00:25:12]Write to MH i2c: 01 00 00 05 1D 22 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]OFD Sender: No OFD packet to send [00:25:13]*** Cut start [00:25:13]*** Partial cut [00:25:13]*** CUTSNS_PIN = 1 [00:25:13]*** CUTSNS_PIN = 0 [00:25:13]*** Brake cut motor [00:25:13]Read from MH i2c: 01 [00:25:13]MH_I2C_Read... [00:25:13]*** Stop cut motor [00:25:13]*** Cut end [00:25:13]Read from MH i2c: 01 07 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: 01 07 00 05 1D 00 00 00 00 00 FF 0F 37 [00:25:13]process_action close_receipt done [00:25:13]requested_data is exist [00:25:13]produce_requested_data [00:25:13]requested_item fm.sn is exist - process it [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 11 00 00 [00:25:13]Write to MH i2c: E2 08 00 06 1D 80 11 00 00 00 00 00 00 9D [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 17 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 17 00 06 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [00:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:25:14]wFMCommunicate OK [00:25:14]requested_item fd.num is exist - process it [00:25:14]SAM_PROTO_GetFieldsCounters [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 13 00 00 [00:25:14]Write to MH i2c: E2 08 00 07 1D 80 13 00 00 00 00 00 00 A0 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 62 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 62 00 07 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [00:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_GetFieldsCounters done [00:25:14]requested_item shift.num is exist - process it [00:25:14]requested_item shift.opened is exist - process it [00:25:14]req_shift_opened [00:25:14]FM_GetShiftState [00:25:14]SAM_PROTO_GetShiftState [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 13 01 00 [00:25:14]Write to MH i2c: E2 08 00 08 1D 80 13 01 00 00 00 00 00 A2 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 0E 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 0E 00 08 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F5 [00:25:14]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_GetShiftState done [00:25:14]FM_GetShiftState done [00:25:14]req_shift_opened done [00:25:14]requested_item shift.open_date is exist - process it [00:25:14]req_shift_open_date [00:25:14]req_shift_open_date done [00:25:14]produce_requested_data done [00:25:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:25:14]process_action_free close_receipt [00:25:14]json_value_free [00:25:14]json_value_free done [00:25:14]process_json_proto returns [00:25:14]Send response to host [00:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:25:14]free response buf [00:25:14]execute_script done [00:25:14]execute_script returns [00:25:14]free content buf [00:25:14]Sock 9.Close socket [00:25:14]Sock 9.Thread stoped [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:29]accept exits with 10 [00:25:29]New connection [00:25:29]New thread 3067489636 created [00:25:29]Thread 3067632996 joined [00:25:29]Waiting for new connection... [00:25:29] Sock 10.Parse request [00:25:29]Sock 10.Check first char [00:25:29]Sock 10.First char is OK [00:25:29]request: POST /json_proto HTTP/1.0 [00:25:29]Method: POST [00:25:29]URL: /json_proto [00:25:29]Method is POST - this is cgi request [00:25:29]url: /json_proto [00:25:29]query_string will be loaded in cgi processing [00:25:29]execute_cgi json_proto POST (null) [00:25:29]execute_cgi path=json_proto method=POST [00:25:29]POST find Content-Length [00:25:29]Host: 172.17.53.195:8080 [00:25:29]Content-Length: 215 [00:25:29]Content-Type: application/json [00:25:29] [00:25:29]POST finish read [00:25:29]Found Content-Length = 215 [00:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:29]execute_script... [00:25:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:29]POST & json_proto [00:25:29]process_json_proto [00:25:29]json parsed OK: [00:25:29]protocol is kg_v1.0 [00:25:29]action value=get_value [00:25:29]process_action get_value [00:25:29]cmd_get_value [00:25:29]process_action get_value done [00:25:29]requested_data is exist [00:25:29]produce_requested_data [00:25:29]requested_item kkm.sn is exist - process it [00:25:29]requested_item kkm.ver is exist - process it [00:25:29]requested_item fm.sn is exist - process it [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 11 00 00 [00:25:29]Write to MH i2c: E2 08 00 09 1D 80 11 00 00 00 00 00 00 A0 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 17 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 17 00 09 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [00:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:25:29]wFMCommunicate OK [00:25:29]requested_item fd.num is exist - process it [00:25:29]SAM_PROTO_GetFieldsCounters [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 13 00 00 [00:25:29]Write to MH i2c: E2 08 00 0A 1D 80 13 00 00 00 00 00 00 A3 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 62 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 62 00 0A 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [00:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:29]wFMCommunicate OK [00:25:29]SAM_PROTO_GetFieldsCounters done [00:25:29]requested_item shift.num is exist - process it [00:25:29]requested_item shift.opened is exist - process it [00:25:29]req_shift_opened [00:25:29]FM_GetShiftState [00:25:29]SAM_PROTO_GetShiftState [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 13 01 00 [00:25:29]Write to MH i2c: E2 08 00 0B 1D 80 13 01 00 00 00 00 00 A5 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 0E 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 0E 00 0B 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F8 [00:25:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:25:29]wFMCommunicate OK [00:25:29]SAM_PROTO_GetShiftState done [00:25:29]FM_GetShiftState done [00:25:29]req_shift_opened done [00:25:29]requested_item shift.open_date is exist - process it [00:25:29]req_shift_open_date [00:25:29]req_shift_open_date done [00:25:29]produce_requested_data done [00:25:29]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:25:29]process_action_free get_value [00:25:29]json_value_free [00:25:29]json_value_free done [00:25:29]process_json_proto returns [00:25:29]Send response to host [00:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:25:29]free response buf [00:25:29]execute_script done [00:25:29]execute_script returns [00:25:29]free content buf [00:25:29]Sock 10.Close socket [00:25:29]Sock 10.Thread stoped [00:25:29]accept exits with 7 [00:25:29]New connection [00:25:29]New thread 3067632996 created [00:25:29]Thread 3067489636 joined [00:25:29]Waiting for new connection... [00:25:29] Sock 7.Parse request [00:25:29]Sock 7.Check first char [00:25:29]Sock 7.First char is OK [00:25:29]request: POST /json_proto HTTP/1.0 [00:25:29]Method: POST [00:25:29]URL: /json_proto [00:25:29]Method is POST - this is cgi request [00:25:29]url: /json_proto [00:25:29]query_string will be loaded in cgi processing [00:25:29]execute_cgi json_proto POST (null) [00:25:29]execute_cgi path=json_proto method=POST [00:25:29]POST find Content-Length [00:25:29]Host: 172.17.53.195:8080 [00:25:29]Content-Length: 331 [00:25:29]Content-Type: application/json [00:25:29] [00:25:29]POST finish read [00:25:29]Found Content-Length = 331 [00:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:29]execute_script... [00:25:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:30]POST & json_proto [00:25:30]process_json_proto [00:25:30]json parsed OK: [00:25:30]protocol is kg_v1.0 [00:25:30]action value=get_value [00:25:30]process_action get_value [00:25:30]cmd_get_value [00:25:30]process_action get_value done [00:25:30]requested_data is exist [00:25:30]produce_requested_data [00:25:30]requested_item fm.sale.total is exist - process it [00:25:30]SAM_PROTO_GetFMData [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 03 00 [00:25:30]Write to MH i2c: E2 08 00 0C 1D 80 13 03 00 00 00 00 00 A8 [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 0C 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 5C [00:25:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 0D 1D 80 17 00 00 00 00 00 00 AA [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 0D 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 76 [00:25:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 0E 1D 80 17 00 00 00 00 00 00 AB [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 0E 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BD [00:25:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 0F 1D 80 17 00 00 00 00 00 00 AC [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 0F 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 38 [00:25:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:25:31]wFMCommunicate OK [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 17 00 00 [00:25:31]Write to MH i2c: E2 08 00 10 1D 80 17 00 00 00 00 00 00 AD [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 E2 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 E2 00 10 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [00:25:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:31]wFMCommunicate OK [00:25:31]SAM_PROTO_GetFMData done [00:25:31]requested_item fm.sale_refund.total is exist - process it [00:25:31]requested_item fm.buy.total is exist - process it [00:25:31]requested_item shift.sale.total is exist - process it [00:25:31]SAM_PROTO_GetShiftData [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 13 02 00 [00:25:31]Write to MH i2c: E2 08 00 11 1D 80 13 02 00 00 00 00 00 AC [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 FD 00 11 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3B [00:25:31]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:31]wFMCommunicate OK [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 17 00 00 [00:25:31]Write to MH i2c: E2 08 00 12 1D 80 17 00 00 00 00 00 00 AF [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:32]Read from MH i2c: E2 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 12 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 C8 [00:25:32]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:25:32]wFMCommunicate OK [00:25:32]wFMCommunicate request_size=4 [00:25:32]MH_SAM_APDU [00:25:32]CAPDU: 80 17 00 00 [00:25:32]Write to MH i2c: E2 08 00 13 1D 80 17 00 00 00 00 00 00 B0 [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:32]Read from MH i2c: E2 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 13 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 69 [00:25:32]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:32]wFMCommunicate OK [00:25:32]wFMCommunicate request_size=4 [00:25:32]MH_SAM_APDU [00:25:32]CAPDU: 80 17 00 00 [00:25:32]Write to MH i2c: E2 08 00 14 1D 80 17 00 00 00 00 00 00 B1 [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:32]Read from MH i2c: E2 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: E2 FD 00 14 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 29 [00:25:32]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:32]wFMCommunicate OK [00:25:32]wFMCommunicate request_size=4 [00:25:32]MH_SAM_APDU [00:25:32]CAPDU: 80 17 00 00 [00:25:32]Write to MH i2c: E2 08 00 15 1D 80 17 00 00 00 00 00 00 B2 [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]OFD Sender: No OFD packet to send [00:25:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 CE 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 CE 00 15 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [00:25:33]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:33]wFMCommunicate OK [00:25:33]SAM_PROTO_GetShiftData done [00:25:33]requested_item shift.sale.total_cash is exist - process it [00:25:33]requested_item shift.sale_refund.total is exist - process it [00:25:33]requested_item shift.sale_refund.total_cash is exist - process it [00:25:33]requested_item shift.buy.total is exist - process it [00:25:33]requested_item shift.buy.total_cash is exist - process it [00:25:33]produce_requested_data done [00:25:33]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:33]process_action_free get_value [00:25:33]json_value_free [00:25:33]json_value_free done [00:25:33]process_json_proto returns [00:25:33]Send response to host [00:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:33]free response buf [00:25:33]execute_script done [00:25:33]execute_script returns [00:25:33]free content buf [00:25:33]Sock 7.Close socket [00:25:33]Sock 7.Thread stoped [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:18]accept exits with 9 [00:26:18]New connection [00:26:18]New thread 3067489636 created [00:26:18]Thread 3067632996 joined [00:26:18]Waiting for new connection... [00:26:18] Sock 9.Parse request [00:26:18]Sock 9.Check first char [00:26:18]Sock 9.First char is OK [00:26:18]request: POST /json_proto HTTP/1.0 [00:26:18]Method: POST [00:26:18]URL: /json_proto [00:26:18]Method is POST - this is cgi request [00:26:18]url: /json_proto [00:26:18]query_string will be loaded in cgi processing [00:26:18]execute_cgi json_proto POST (null) [00:26:18]execute_cgi path=json_proto method=POST [00:26:18]POST find Content-Length [00:26:18]Host: 172.17.53.195:8080 [00:26:18]Content-Length: 215 [00:26:18]Content-Type: application/json [00:26:18] [00:26:18]POST finish read [00:26:18]Found Content-Length = 215 [00:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:18]execute_script... [00:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:18]POST & json_proto [00:26:18]process_json_proto [00:26:18]json parsed OK: [00:26:18]protocol is kg_v1.0 [00:26:18]action value=get_value [00:26:18]process_action get_value [00:26:18]cmd_get_value [00:26:18]process_action get_value done [00:26:18]requested_data is exist [00:26:18]produce_requested_data [00:26:18]requested_item kkm.sn is exist - process it [00:26:18]requested_item kkm.ver is exist - process it [00:26:18]requested_item fm.sn is exist - process it [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 11 00 00 [00:26:18]Write to MH i2c: E2 08 00 16 1D 80 11 00 00 00 00 00 00 AD [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 17 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 17 00 16 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [00:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:18]wFMCommunicate OK [00:26:18]requested_item fd.num is exist - process it [00:26:18]SAM_PROTO_GetFieldsCounters [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 00 00 [00:26:18]Write to MH i2c: E2 08 00 17 1D 80 13 00 00 00 00 00 00 B0 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 62 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 62 00 17 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [00:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetFieldsCounters done [00:26:18]requested_item shift.num is exist - process it [00:26:18]requested_item shift.opened is exist - process it [00:26:18]req_shift_opened [00:26:18]FM_GetShiftState [00:26:18]SAM_PROTO_GetShiftState [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 01 00 [00:26:18]Write to MH i2c: E2 08 00 18 1D 80 13 01 00 00 00 00 00 B2 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0E 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0E 00 18 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 05 [00:26:18]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_GetShiftState done [00:26:18]FM_GetShiftState done [00:26:18]req_shift_opened done [00:26:18]requested_item shift.open_date is exist - process it [00:26:18]req_shift_open_date [00:26:18]req_shift_open_date done [00:26:18]produce_requested_data done [00:26:18]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:26:18]process_action_free get_value [00:26:18]json_value_free [00:26:18]json_value_free done [00:26:18]process_json_proto returns [00:26:18]Send response to host [00:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:26:18]free response buf [00:26:18]execute_script done [00:26:18]execute_script returns [00:26:18]free content buf [00:26:18]Sock 9.Close socket [00:26:18]Sock 9.Thread stoped [00:26:18]accept exits with 7 [00:26:18]New connection [00:26:18]New thread 3067632996 created [00:26:18]Thread 3067489636 joined [00:26:18]Waiting for new connection... [00:26:18] Sock 7.Parse request [00:26:18]Sock 7.Check first char [00:26:18]Sock 7.First char is OK [00:26:18]request: POST /json_proto HTTP/1.0 [00:26:18]Method: POST [00:26:18]URL: /json_proto [00:26:18]Method is POST - this is cgi request [00:26:18]url: /json_proto [00:26:18]query_string will be loaded in cgi processing [00:26:18]execute_cgi json_proto POST (null) [00:26:18]execute_cgi path=json_proto method=POST [00:26:18]POST find Content-Length [00:26:18]Host: 172.17.53.195:8080 [00:26:18]Content-Length: 331 [00:26:18]Content-Type: application/json [00:26:18] [00:26:18]POST finish read [00:26:18]Found Content-Length = 331 [00:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:18]execute_script... [00:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:18]POST & json_proto [00:26:18]process_json_proto [00:26:18]json parsed OK: [00:26:18]protocol is kg_v1.0 [00:26:18]action value=get_value [00:26:18]process_action get_value [00:26:18]cmd_get_value [00:26:18]process_action get_value done [00:26:18]requested_data is exist [00:26:18]produce_requested_data [00:26:18]requested_item fm.sale.total is exist - process it [00:26:18]SAM_PROTO_GetFMData [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 13 03 00 [00:26:18]Write to MH i2c: E2 08 00 19 1D 80 13 03 00 00 00 00 00 B5 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 19 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 69 [00:26:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 1A 1D 80 17 00 00 00 00 00 00 B7 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 1A 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 83 [00:26:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 1B 1D 80 17 00 00 00 00 00 00 B8 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 1B 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CA [00:26:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 1C 1D 80 17 00 00 00 00 00 00 B9 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 1C 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 45 [00:26:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 1D 1D 80 17 00 00 00 00 00 00 BA [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 E2 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 E2 00 1D 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [00:26:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:20]wFMCommunicate OK [00:26:20]SAM_PROTO_GetFMData done [00:26:20]requested_item fm.sale_refund.total is exist - process it [00:26:20]requested_item fm.buy.total is exist - process it [00:26:20]requested_item shift.sale.total is exist - process it [00:26:20]SAM_PROTO_GetShiftData [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 13 02 00 [00:26:20]Write to MH i2c: E2 08 00 1E 1D 80 13 02 00 00 00 00 00 B9 [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 1E 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 48 [00:26:20]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 1F 1D 80 17 00 00 00 00 00 00 BC [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 1F 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 D5 [00:26:21]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 20 1D 80 17 00 00 00 00 00 00 BD [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 20 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 76 [00:26:21]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 21 1D 80 17 00 00 00 00 00 00 BE [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 21 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 36 [00:26:21]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 22 1D 80 17 00 00 00 00 00 00 BF [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 CE 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 CE 00 22 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A4 [00:26:21]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:21]wFMCommunicate OK [00:26:21]SAM_PROTO_GetShiftData done [00:26:21]requested_item shift.sale.total_cash is exist - process it [00:26:21]requested_item shift.sale_refund.total is exist - process it [00:26:21]requested_item shift.sale_refund.total_cash is exist - process it [00:26:21]requested_item shift.buy.total is exist - process it [00:26:21]requested_item shift.buy.total_cash is exist - process it [00:26:21]produce_requested_data done [00:26:21]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:21]process_action_free get_value [00:26:21]json_value_free [00:26:21]json_value_free done [00:26:21]process_json_proto returns [00:26:21]Send response to host [00:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:21]free response buf [00:26:21]execute_script done [00:26:21]execute_script returns [00:26:21]free content buf [00:26:21]Sock 7.Close socket [00:26:21]Sock 7.Thread stoped [00:26:22]accept exits with 9 [00:26:22]New connection [00:26:22]New thread 3067489636 created [00:26:22]Thread 3067632996 joined [00:26:22]Waiting for new connection... [00:26:22] Sock 9.Parse request [00:26:22]Sock 9.Check first char [00:26:22]Sock 9.First char is OK [00:26:22]request: POST /json_proto HTTP/1.0 [00:26:22]Method: POST [00:26:22]URL: /json_proto [00:26:22]Method is POST - this is cgi request [00:26:22]url: /json_proto [00:26:22]query_string will be loaded in cgi processing [00:26:22]execute_cgi json_proto POST (null) [00:26:22]execute_cgi path=json_proto method=POST [00:26:22]POST find Content-Length [00:26:22]Host: 172.17.53.195:8080 [00:26:22]Content-Length: 331 [00:26:22]Content-Type: application/json [00:26:22] [00:26:22]POST finish read [00:26:22]Found Content-Length = 331 [00:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:22]execute_script... [00:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:22]POST & json_proto [00:26:22]process_json_proto [00:26:22]json parsed OK: [00:26:22]protocol is kg_v1.0 [00:26:22]action value=get_value [00:26:22]process_action get_value [00:26:22]cmd_get_value [00:26:22]process_action get_value done [00:26:22]requested_data is exist [00:26:22]produce_requested_data [00:26:22]requested_item fm.sale.total is exist - process it [00:26:22]SAM_PROTO_GetFMData [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 13 03 00 [00:26:22]Write to MH i2c: E2 08 00 23 1D 80 13 03 00 00 00 00 00 BF [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 23 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 73 [00:26:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:26:22]wFMCommunicate OK [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 17 00 00 [00:26:22]Write to MH i2c: E2 08 00 24 1D 80 17 00 00 00 00 00 00 C1 [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 24 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8D [00:26:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 25 1D 80 17 00 00 00 00 00 00 C2 [00:26:23]OFD Sender: No OFD packet to send [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 25 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D4 [00:26:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 26 1D 80 17 00 00 00 00 00 00 C3 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 26 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4F [00:26:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 27 1D 80 17 00 00 00 00 00 00 C4 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 E2 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 E2 00 27 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A2 [00:26:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:24]wFMCommunicate OK [00:26:24]SAM_PROTO_GetFMData done [00:26:24]requested_item fm.sale_refund.total is exist - process it [00:26:24]requested_item fm.buy.total is exist - process it [00:26:24]requested_item shift.sale.total is exist - process it [00:26:24]SAM_PROTO_GetShiftData [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 13 02 00 [00:26:24]Write to MH i2c: E2 08 00 28 1D 80 13 02 00 00 00 00 00 C3 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 28 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 52 [00:26:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:24]wFMCommunicate OK [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 29 1D 80 17 00 00 00 00 00 00 C6 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 29 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 DF [00:26:25]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 2A 1D 80 17 00 00 00 00 00 00 C7 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 2A 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 80 [00:26:25]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 2B 1D 80 17 00 00 00 00 00 00 C8 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 2B 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 40 [00:26:25]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 2C 1D 80 17 00 00 00 00 00 00 C9 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 CE 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 CE 00 2C 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [00:26:26]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:26]wFMCommunicate OK [00:26:26]SAM_PROTO_GetShiftData done [00:26:26]requested_item shift.sale.total_cash is exist - process it [00:26:26]requested_item shift.sale_refund.total is exist - process it [00:26:26]requested_item shift.sale_refund.total_cash is exist - process it [00:26:26]requested_item shift.buy.total is exist - process it [00:26:26]requested_item shift.buy.total_cash is exist - process it [00:26:26]produce_requested_data done [00:26:26]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:26]process_action_free get_value [00:26:26]json_value_free [00:26:26]json_value_free done [00:26:26]process_json_proto returns [00:26:26]Send response to host [00:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:26]free response buf [00:26:26]execute_script done [00:26:26]execute_script returns [00:26:26]free content buf [00:26:26]Sock 9.Close socket [00:26:26]Sock 9.Thread stoped [00:26:26]accept exits with 7 [00:26:26]New connection [00:26:26]New thread 3067632996 created [00:26:26]Thread 3067489636 joined [00:26:26]Waiting for new connection... [00:26:26] Sock 7.Parse request [00:26:26]Sock 7.Check first char [00:26:26]Sock 7.First char is OK [00:26:26]request: POST /json_proto HTTP/1.0 [00:26:26]Method: POST [00:26:26]URL: /json_proto [00:26:26]Method is POST - this is cgi request [00:26:26]url: /json_proto [00:26:26]query_string will be loaded in cgi processing [00:26:26]execute_cgi json_proto POST (null) [00:26:26]execute_cgi path=json_proto method=POST [00:26:26]POST find Content-Length [00:26:26]Host: 172.17.53.195:8080 [00:26:26]Content-Length: 245 [00:26:26]Content-Type: application/json [00:26:26] [00:26:26]POST finish read [00:26:26]Found Content-Length = 245 [00:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:26]execute_script... [00:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:26]POST & json_proto [00:26:26]process_json_proto [00:26:26]json parsed OK: [00:26:26]protocol is kg_v1.0 [00:26:26]action value=x_report [00:26:26]process_action x_report [00:26:26]cmd_x_report [00:26:26]MH_GetDate [00:26:26]Write to MH i2c: F0 00 00 2D 1D 39 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 2D 1D 00 B4 42 18 67 21 48 4A 65 CF [00:26:26]GetLastDocTimeStamp 1729643112 [00:26:26]current date 1729643188 [00:26:26]FM_GetShiftState [00:26:26]SAM_PROTO_GetShiftState [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 13 01 00 [00:26:26]Write to MH i2c: E2 08 00 2E 1D 80 13 01 00 00 00 00 00 C8 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 0E 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 0E 00 2E 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1B [00:26:26]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:26:26]wFMCommunicate OK [00:26:26]SAM_PROTO_GetShiftState done [00:26:26]FM_GetShiftState done [00:26:26]KKMCreateXReportDocument [00:26:26]Load OK [00:26:26]Malloc new data [00:26:26]MH_GetDate [00:26:26]Write to MH i2c: F0 00 00 2F 1D 3B [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 2F 1D 00 B4 42 18 67 21 48 4A 65 D1 [00:26:26]Malloc new data [00:26:26]Malloc new data [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 11 00 00 [00:26:26]Write to MH i2c: E2 08 00 30 1D 80 11 00 00 00 00 00 00 C7 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 17 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 17 00 30 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [00:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:26]wFMCommunicate OK [00:26:26]SAM_PROTO_GetFieldsCounters [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 13 00 00 [00:26:26]Write to MH i2c: E2 08 00 31 1D 80 13 00 00 00 00 00 00 CA [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 62 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 62 00 31 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:26]wFMCommunicate OK [00:26:26]SAM_PROTO_GetFieldsCounters done [00:26:26]Malloc new data [00:26:26]Malloc new data [00:26:26]Malloc new data [00:26:26]KKMCreateXReportDocument OK [00:26:26]KKMSetXReportData OK [00:26:26]KKMPrepareXReportFMData [00:26:26]SAM_PROTO_GetShiftData [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 13 02 00 [00:26:26]Write to MH i2c: E2 08 00 32 1D 80 13 02 00 00 00 00 00 CD [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 32 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5C [00:26:27]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:27]wFMCommunicate OK [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 17 00 00 [00:26:27]Write to MH i2c: E2 08 00 33 1D 80 17 00 00 00 00 00 00 D0 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 33 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 E9 [00:26:27]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:27]wFMCommunicate OK [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 17 00 00 [00:26:27]Write to MH i2c: E2 08 00 34 1D 80 17 00 00 00 00 00 00 D1 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 34 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 OFD Sender: No OFD packet to send [00:26:28]8A [00:26:28]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 35 1D 80 17 00 00 00 00 00 00 D2 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 35 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 4A [00:26:28]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 36 1D 80 17 00 00 00 00 00 00 D3 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 CE 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 CE 00 36 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B8 [00:26:29]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:29]wFMCommunicate OK [00:26:29]SAM_PROTO_GetShiftData done [00:26:29]1194 (1197) - счетчики итогов смены [00:26:29] 1134 (4) - 338 - количество чеков со всеми признаками расчетов [00:26:29] 1129 (158) - счетчики операций «приход» [00:26:29] 1135 (4) - 338 - количество чеков по признаку расчетов [00:26:29] 1201 (4) - 319436.42 - общая итоговая сумма в чеках [00:26:29] 1136 (4) - 257993.00 - итоговая сумма в чеках наличными [00:26:29] 1138 (3) - 61443.42 - итоговая сумма в чеках безналичными [00:26:29] 1024 (123) - суммы налогов [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 0% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1006 (12) - суммы НДС [00:26:29] 1010 (1) - 12% - код ставки НДС [00:26:29] 1011 (3) - 33932.53 - сумма НДС по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (12) - суммы НСП [00:26:29] 1014 (1) - 1% - код ставки НСП [00:26:29] 1015 (3) - 2827.59 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 2% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 3% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 5% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1130 (141) - счетчики операций «возврат прихода» [00:26:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:29] 1024 (117) - суммы налогов [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 0% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 12% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 2% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 3% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 5% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1131 (141) - счетчики операций «расход» [00:26:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:29] 1024 (117) - суммы налогов [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 0% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 12% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 2% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 3% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 5% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1132 (141) - счетчики операций «возврат расхода» [00:26:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:29] 1024 (117) - суммы налогов [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 0% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1006 (9) - суммы НДС [00:26:29] 1010 (1) - 12% - код ставки НДС [00:26:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 2% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 3% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 5% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 0,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1007 (9) - суммы НСП [00:26:29] 1014 (1) - 1,50% - код ставки НСП [00:26:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:29] 1133 (588) - - счетчики коррекции - не используются [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1194 (04AA) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1134 (046E) [00:26:29]Malloc new data [00:26:29]Processing tag 1129 (0469) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1135 (046F) [00:26:29]Malloc new data [00:26:29]Processing tag 1201 (04B1) [00:26:29]Malloc new data [00:26:29]Processing tag 1136 (0470) [00:26:29]Malloc new data [00:26:29]Processing tag 1138 (0472) [00:26:29]Malloc new data [00:26:29]Processing tag 1024 (0400) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1006 (03EE) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1010 (03F2) [00:26:29]Malloc new data [00:26:29]Processing tag 1011 (03F3) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1006 (03EE) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1010 (03F2) [00:26:29]Malloc new data [00:26:29]Processing tag 1011 (03F3) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]SetTLVBufToDocument err=0 [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1130 (046A) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1135 (046F) [00:26:29]Malloc new data [00:26:29]Processing tag 1201 (04B1) [00:26:29]Malloc new data [00:26:29]Processing tag 1136 (0470) [00:26:29]Malloc new data [00:26:29]Processing tag 1138 (0472) [00:26:29]Malloc new data [00:26:29]Processing tag 1024 (0400) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1006 (03EE) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1010 (03F2) [00:26:29]Malloc new data [00:26:29]Processing tag 1011 (03F3) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1006 (03EE) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1010 (03F2) [00:26:29]Malloc new data [00:26:29]Processing tag 1011 (03F3) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:29]Malloc new data [00:26:29]SetTLVBufToDocument err=0 [00:26:29]Processing tag 1007 (03EF) [00:26:29]Load OK [00:26:29]SetTLVBufToDocument [00:26:29]Processing tag 1014 (03F6) [00:26:29]Malloc new data [00:26:29]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1131 (046B) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1135 (046F) [00:26:30]Malloc new data [00:26:30]Processing tag 1201 (04B1) [00:26:30]Malloc new data [00:26:30]Processing tag 1136 (0470) [00:26:30]Malloc new data [00:26:30]Processing tag 1138 (0472) [00:26:30]Malloc new data [00:26:30]Processing tag 1024 (0400) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1006 (03EE) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1010 (03F2) [00:26:30]Malloc new data [00:26:30]Processing tag 1011 (03F3) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1006 (03EE) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1010 (03F2) [00:26:30]Malloc new data [00:26:30]Processing tag 1011 (03F3) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1132 (046C) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1135 (046F) [00:26:30]Malloc new data [00:26:30]Processing tag 1201 (04B1) [00:26:30]Malloc new data [00:26:30]Processing tag 1136 (0470) [00:26:30]Malloc new data [00:26:30]Processing tag 1138 (0472) [00:26:30]Malloc new data [00:26:30]Processing tag 1024 (0400) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1006 (03EE) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1010 (03F2) [00:26:30]Malloc new data [00:26:30]Processing tag 1011 (03F3) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1006 (03EE) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1010 (03F2) [00:26:30]Malloc new data [00:26:30]Processing tag 1011 (03F3) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1007 (03EF) [00:26:30]Load OK [00:26:30]SetTLVBufToDocument [00:26:30]Processing tag 1014 (03F6) [00:26:30]Malloc new data [00:26:30]Processing tag 1015 (03F7) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Processing tag 1133 (046D) [00:26:30]Malloc new data [00:26:30]SetTLVBufToDocument err=0 [00:26:30]SetTLVBufToDocument err=0 [00:26:30]Malloc new data [00:26:30]SAM_PROTO_GetFMData [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 13 03 00 [00:26:30]Write to MH i2c: E2 08 00 37 1D 80 13 03 00 00 00 00 00 D3 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:30]Read from MH i2c: E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 FD 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 FD 00 37 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 87 [00:26:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:26:31]wFMCommunicate OK [00:26:31]wFMCommunicate request_size=4 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 17 00 00 [00:26:31]Write to MH i2c: E2 08 00 38 1D 80 17 00 00 00 00 00 00 D5 [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:31]Read from MH i2c: E2 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 FD 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 FD 00 38 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A1 [00:26:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:26:31]wFMCommunicate OK [00:26:31]wFMCommunicate request_size=4 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 17 00 00 [00:26:31]Write to MH i2c: E2 08 00 39 1D 80 17 00 00 00 00 00 00 D6 [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:31]Read from MH i2c: E2 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 FD 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 FD 00 39 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E8 [00:26:32]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:26:32]wFMCommunicate OK [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 17 00 00 [00:26:32]Write to MH i2c: E2 08 00 3A 1D 80 17 00 00 00 00 00 00 D7 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 FD 00 3A 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 63 [00:26:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:26:32]wFMCommunicate OK [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 17 00 00 [00:26:32]Write to MH i2c: E2 08 00 3B 1D 80 17 00 00 00 00 00 00 D8 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 E2 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 E2 00 3B 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B6 [00:26:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:33]wFMCommunicate OK [00:26:33]SAM_PROTO_GetFMData done [00:26:33]FM_GetFMData:85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 OFD Sender: No OFD packet to send [00:26:33]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:33]oper:6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:33]total:8E 3A 5C B4 03 [00:26:33]Malloc new data [00:26:33]oper:6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:34]total:A0 FF AF 0A [00:26:34]Malloc new data [00:26:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:34]total: [00:26:34]Malloc new data [00:26:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:34]total: [00:26:34]Malloc new data [00:26:34]KKMPrepareXReportFMData err=0 [00:26:34]Х отчет ИНН: 02508201610067 Кассир: Салиев Э. 23.10.2024 00:26 Смена: 522 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Всего чеков: 338 ИТОГИ ПРИХОД Чеков: 338 Общий итог: 319436.42 Итого наличными: 257993.00 Итого безнал.: 61443.42 НДС 0% : 0.00 НДС 12% : 33932.53 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2827.59 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 257993.00 НС Приход: 159108450.70 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871759 [00:26:34]StoreToDocumentArchive [00:26:34]MH_GetDate [00:26:34]Write to MH i2c: F0 00 00 3C 1D 48 [00:26:34]Write i2c OK [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: F0 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: F0 09 00 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: F0 09 00 3C 1D 00 BC 42 18 67 21 48 4A 65 E6 [00:26:34]shift 522 fd 1729643196 [00:26:34]Create dir for shift 0522 [00:26:34]save to /storage/0522/doc_1729643196 [00:26:34]save last doc name /storage/0522/doc_1729643196 to /storage/kkm_last_doc_name [00:26:34]save OK [00:26:34]Clear old archive folders... [00:26:34]NVStorageSaveData kkm_last_timestamp [00:26:34]File name is /storage/kkm_last_timestamp [00:26:34]Write 4 bytes [00:26:34]NVStorageSaveData done [00:26:34]ExternCall_PrintAddStr [00:26:34]wPrintStart [00:26:34]Write to MH i2c: 01 00 00 3D 1D 5A [00:26:34]Write i2c OK [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: 01 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: 01 07 00 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [00:26:34]RasterBufferAndPrint [00:26:34]line Х отчет [00:26:34]line ИНН: 02508201610067 [00:26:34]line Кассир: Салиев Э. [00:26:34]line 23.10.2024 00:26 [00:26:34]line Смена: 522 [00:26:34]line РНМ: 0000000000091764 [00:26:34]line ЗНМ: 0300000104 [00:26:34]line СНО: Общий режим [00:26:34]line Всего чеков: 338 [00:26:34]line ИТОГИ ПРИХОД [00:26:34]line Чеков: 338 [00:26:34]line Общий итог: 319436.42 [00:26:34]line Итого наличными: 257993.00 [00:26:34]line Итого безнал.: 61443.42 [00:26:34]line НДС 0% : 0.00 [00:26:34]line НДС 12% : 33932.53 [00:26:34]line НСП 0% : 0.00 [00:26:34]line НСП 1,50% : 0.00 [00:26:34]line НСП 0,50% : 0.00 [00:26:34]line НСП 5% : 0.00 [00:26:34]line НСП 3% : 0.00 [00:26:34]line НСП 2% : 0.00 [00:26:34]line НСП 1% : 2827.59 [00:26:34]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:34]line Чеков: 0 [00:26:34]line Общий итог: 0.00 [00:26:34]line Итого наличными: 0.00 [00:26:34]line Итого безнал.: 0.00 [00:26:34]line НДС 0% : 0.00 [00:26:34]line НДС 12% : 0.00 [00:26:34]line НСП 0% : 0.00 [00:26:34]line НСП 1,50% : 0.00 [00:26:34]line НСП 0,50% : 0.00 [00:26:34]line НСП 5% : 0.00 [00:26:34]line НСП 3% : 0.00 [00:26:34]line НСП 2% : 0.00 [00:26:34]line НСП 1% : 0.00 [00:26:34]line ИТОГИ РАСХОД [00:26:34]line Чеков: 0 [00:26:34]line Общий итог: 0.00 [00:26:34]line Итого наличными: 0.00 [00:26:34]line Итого безнал.: 0.00 [00:26:34]line НДС 0% : 0.00 [00:26:34]line НДС 12% : 0.00 [00:26:34]line НСП 0% : 0.00 [00:26:34]line НСП 1,50% : 0.00 [00:26:34]line НСП 0,50% : 0.00 [00:26:34]line НСП 5% : 0.00 [00:26:34]line НСП 3% : 0.00 [00:26:34]line НСП 2% : 0.00 [00:26:34]line НСП 1% : 0.00 [00:26:34]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:34]line Чеков: 0 [00:26:34]line Общий итог: 0.00 [00:26:34]line Итого наличными: 0.00 [00:26:34]line Итого безнал.: 0.00 [00:26:34]line НДС 0% : 0.00 [00:26:34]line НДС 12% : 0.00 [00:26:34]line НСП 0% : 0.00 [00:26:34]line НСП 1,50% : 0.00 [00:26:34]line НСП 0,50% : 0.00 [00:26:34]line НСП 5% : 0.00 [00:26:34]line НСП 3% : 0.00 [00:26:34]line НСП 2% : 0.00 [00:26:34]line НСП 1% : 0.00 [00:26:34]line Сумма внесений: 0.00 [00:26:34]line Сумма выплат: 0.00 [00:26:34]line Нал. в кассе: 257993.00 [00:26:34]line НС Приход: 159108450.70 [00:26:34]line НС Возвр.Прихода: 1793064.00 [00:26:34]line НС Расход: 0.00 [00:26:34]line НС Возвр.Расхода: 0.00 [00:26:34]line ФМ: 0000000000871759 [00:26:34]written 0, free lines is 4095 [00:26:35]Write to MH i2c: 01 00 00 88 1D A5 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: 01 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: 01 07 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 86 0A 3C [00:26:35]RasterBufferAndPrint [00:26:35]line [00:26:35]line [00:26:35]line [00:26:35]line [00:26:35]line [00:26:35]written 0, free lines is 2720 [00:26:35]MH_Cut [00:26:35]Write to MH i2c: D1 01 00 8F 1D 01 7E [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: D1 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: D1 01 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: D1 01 00 8F 1D 00 7D [00:26:35]Write to MH i2c: 01 00 00 90 1D AD [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:36]*** Cut start [00:26:36]*** Partial cut [00:26:36]*** CUTSNS_PIN = 1 [00:26:36]*** CUTSNS_PIN = 0 [00:26:36]*** Brake cut motor [00:26:36]Read from MH i2c: 01 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: 01 07 00 [00:26:36]MH_I2C_Read... [00:26:36]*** Stop cut motor [00:26:36]*** Cut end [00:26:36]Read from MH i2c: 01 07 00 90 1D 00 00 00 00 00 FF 0F C2 [00:26:36]process_action x_report done [00:26:36]requested_data is exist [00:26:36]produce_requested_data [00:26:36]requested_item fd.num is exist - process it [00:26:36]SAM_PROTO_GetFieldsCounters [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 13 00 00 [00:26:36]Write to MH i2c: E2 08 00 91 1D 80 13 00 00 00 00 00 00 2A [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 62 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 62 00 91 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [00:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:37]wFMCommunicate OK [00:26:37]SAM_PROTO_GetFieldsCounters done [00:26:37]requested_item shift.num is exist - process it [00:26:37]requested_item shift.opened is exist - process it [00:26:37]req_shift_opened [00:26:37]FM_GetShiftState [00:26:37]SAM_PROTO_GetShiftState [00:26:37]wFMCommunicate request_size=4 [00:26:37]MH_SAM_APDU [00:26:37]CAPDU: 80 13 01 00 [00:26:37]Write to MH i2c: E2 08 00 92 1D 80 13 01 00 00 00 00 00 2C [00:26:37]Write i2c OK [00:26:37]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 0E 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 0E 00 92 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 7F [00:26:37]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:26:37]wFMCommunicate OK [00:26:37]SAM_PROTO_GetShiftState done [00:26:37]FM_GetShiftState done [00:26:37]req_shift_opened done [00:26:37]requested_item shift.open_date is exist - process it [00:26:37]req_shift_open_date [00:26:37]req_shift_open_date done [00:26:37]produce_requested_data done [00:26:37]produce_requested_data return {"fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:26:37]process_action_free x_report [00:26:37]json_value_free [00:26:37]json_value_free done [00:26:37]process_json_proto returns [00:26:37]Send response to host [00:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:26:37]free response buf [00:26:37]execute_script done [00:26:37]execute_script returns [00:26:37]free content buf [00:26:37]Sock 7.Close socket [00:26:37]Sock 7.Thread stoped [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:05]accept exits with 9 [00:27:05]New connection [00:27:05]New thread 3067489636 created [00:27:05]Thread 3067632996 joined [00:27:05]Waiting for new connection... [00:27:05] Sock 9.Parse request [00:27:05]Sock 9.Check first char [00:27:05]Sock 9.First char is OK [00:27:05]request: POST /json_proto HTTP/1.0 [00:27:05]Method: POST [00:27:05]URL: /json_proto [00:27:05]Method is POST - this is cgi request [00:27:05]url: /json_proto [00:27:05]query_string will be loaded in cgi processing [00:27:05]execute_cgi json_proto POST (null) [00:27:05]execute_cgi path=json_proto method=POST [00:27:05]POST find Content-Length [00:27:05]Host: 172.17.53.195:8080 [00:27:05]Content-Length: 215 [00:27:05]Content-Type: application/json [00:27:05] [00:27:05]POST finish read [00:27:05]Found Content-Length = 215 [00:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:05]execute_script... [00:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:05]POST & json_proto [00:27:05]process_json_proto [00:27:05]json parsed OK: [00:27:05]protocol is kg_v1.0 [00:27:05]action value=get_value [00:27:05]process_action get_value [00:27:05]cmd_get_value [00:27:05]process_action get_value done [00:27:05]requested_data is exist [00:27:05]produce_requested_data [00:27:05]requested_item kkm.sn is exist - process it [00:27:05]requested_item kkm.ver is exist - process it [00:27:05]requested_item fm.sn is exist - process it [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 11 00 00 [00:27:05]Write to MH i2c: E2 08 00 93 1D 80 11 00 00 00 00 00 00 2A [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:05]Read from MH i2c: E2 17 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 17 00 93 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [00:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:27:05]wFMCommunicate OK [00:27:05]requested_item fd.num is exist - process it [00:27:05]SAM_PROTO_GetFieldsCounters [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 13 00 00 [00:27:05]Write to MH i2c: E2 08 00 94 1D 80 13 00 00 00 00 00 00 2D [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 62 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 62 00 94 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [00:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:05]wFMCommunicate OK [00:27:05]SAM_PROTO_GetFieldsCounters done [00:27:05]requested_item shift.num is exist - process it [00:27:05]requested_item shift.opened is exist - process it [00:27:05]req_shift_opened [00:27:05]FM_GetShiftState [00:27:05]SAM_PROTO_GetShiftState [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 13 01 00 [00:27:05]Write to MH i2c: E2 08 00 95 1D 80 13 01 00 00 00 00 00 2F [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 0E 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 0E 00 95 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 82 [00:27:05]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:27:05]wFMCommunicate OK [00:27:05]SAM_PROTO_GetShiftState done [00:27:05]FM_GetShiftState done [00:27:05]req_shift_opened done [00:27:05]requested_item shift.open_date is exist - process it [00:27:05]req_shift_open_date [00:27:05]req_shift_open_date done [00:27:05]produce_requested_data done [00:27:05]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:27:05]process_action_free get_value [00:27:05]json_value_free [00:27:05]json_value_free done [00:27:05]process_json_proto returns [00:27:05]Send response to host [00:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166583,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:27:05]free response buf [00:27:05]execute_script done [00:27:05]execute_script returns [00:27:05]free content buf [00:27:05]Sock 9.Close socket [00:27:05]Sock 9.Thread stoped [00:27:05]accept exits with 7 [00:27:05]New connection [00:27:05]New thread 3067632996 created [00:27:05]Thread 3067489636 joined [00:27:05]Waiting for new connection... [00:27:05] Sock 7.Parse request [00:27:05]Sock 7.Check first char [00:27:05]Sock 7.First char is OK [00:27:05]request: POST /json_proto HTTP/1.0 [00:27:05]Method: POST [00:27:05]URL: /json_proto [00:27:05]Method is POST - this is cgi request [00:27:05]url: /json_proto [00:27:05]query_string will be loaded in cgi processing [00:27:05]execute_cgi json_proto POST (null) [00:27:05]execute_cgi path=json_proto method=POST [00:27:05]POST find Content-Length [00:27:05]Host: 172.17.53.195:8080 [00:27:05]Content-Length: 331 [00:27:05]Content-Type: application/json [00:27:05] [00:27:05]POST finish read [00:27:05]Found Content-Length = 331 [00:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:05]execute_script... [00:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:05]POST & json_proto [00:27:05]process_json_proto [00:27:05]json parsed OK: [00:27:05]protocol is kg_v1.0 [00:27:05]action value=get_value [00:27:05]process_action get_value [00:27:05]cmd_get_value [00:27:05]process_action get_value done [00:27:05]requested_data is exist [00:27:05]produce_requested_data [00:27:05]requested_item fm.sale.total is exist - process it [00:27:05]SAM_PROTO_GetFMData [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 13 03 00 [00:27:05]Write to MH i2c: E2 08 00 96 1D 80 13 03 00 00 00 00 00 32 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:06]Read from MH i2c: E2 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 96 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 E6 [00:27:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:27:06]wFMCommunicate OK [00:27:06]wFMCommunicate request_size=4 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 17 00 00 [00:27:06]Write to MH i2c: E2 08 00 97 1D 80 17 00 00 00 00 00 00 34 [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:06]Read from MH i2c: E2 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 97 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 00 [00:27:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:27:06]wFMCommunicate OK [00:27:06]wFMCommunicate request_size=4 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 17 00 00 [00:27:06]Write to MH i2c: E2 08 00 98 1D 80 17 00 00 00 00 00 00 35 [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:06]Read from MH i2c: E2 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 FD 00 98 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 47 [00:27:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:27:06]wFMCommunicate OK [00:27:06]wFMCommunicate request_size=4 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 17 00 00 [00:27:06]Write to MH i2c: E2 08 00 99 1D 80 17 00 00 00 00 00 00 36 [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 FD 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 FD 00 99 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C2 [00:27:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:27:07]wFMCommunicate OK [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 17 00 00 [00:27:07]Write to MH i2c: E2 08 00 9A 1D 80 17 00 00 00 00 00 00 37 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 E2 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 E2 00 9A 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [00:27:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:07]wFMCommunicate OK [00:27:07]SAM_PROTO_GetFMData done [00:27:07]requested_item fm.sale_refund.total is exist - process it [00:27:07]requested_item fm.buy.total is exist - process it [00:27:07]requested_item shift.sale.total is exist - process it [00:27:07]SAM_PROTO_GetShiftData [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 13 02 00 [00:27:07]Write to MH i2c: E2 08 00 9B 1D 80 13 02 00 00 00 00 00 36 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 FD 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 FD 00 9B 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C5 [00:27:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:08]wFMCommunicate OK [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 17 00 00 [00:27:08]Write to MH i2c: E2 08 00 9C 1D 80 17 00 00 00 00 00 00 39 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 9C 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 52 [00:27:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:27:08]wFMCommunicate OK [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 17 00 00 [00:27:08]Write to MH i2c: E2 08 00 9D 1D 80 17 00 00 00 00 00 00 3A [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]OFD Sender: No OFD packet to send [00:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 FD 00 9D 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F3 [00:27:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:27:08]wFMCommunicate OK [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 17 00 00 [00:27:08]Write to MH i2c: E2 08 00 9E 1D 80 17 00 00 00 00 00 00 3B [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 9E 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B3 [00:27:09]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:09]wFMCommunicate OK [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 17 00 00 [00:27:09]Write to MH i2c: E2 08 00 9F 1D 80 17 00 00 00 00 00 00 3C [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 CE 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 CE 00 9F 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 21 [00:27:09]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:09]wFMCommunicate OK [00:27:09]SAM_PROTO_GetShiftData done [00:27:09]requested_item shift.sale.total_cash is exist - process it [00:27:09]requested_item shift.sale_refund.total is exist - process it [00:27:09]requested_item shift.sale_refund.total_cash is exist - process it [00:27:09]requested_item shift.buy.total is exist - process it [00:27:09]requested_item shift.buy.total_cash is exist - process it [00:27:09]produce_requested_data done [00:27:09]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:09]process_action_free get_value [00:27:09]json_value_free [00:27:09]json_value_free done [00:27:09]process_json_proto returns [00:27:09]Send response to host [00:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:09]free response buf [00:27:09]execute_script done [00:27:09]execute_script returns [00:27:09]free content buf [00:27:09]Sock 7.Close socket [00:27:09]Sock 7.Thread stoped [00:27:09]accept exits with 9 [00:27:09]New connection [00:27:09]New thread 3067489636 created [00:27:09]Thread 3067632996 joined [00:27:09]Waiting for new connection... [00:27:09] Sock 9.Parse request [00:27:09]Sock 9.Check first char [00:27:09]Sock 9.First char is OK [00:27:09]request: POST /json_proto HTTP/1.0 [00:27:09]Method: POST [00:27:09]URL: /json_proto [00:27:09]Method is POST - this is cgi request [00:27:09]url: /json_proto [00:27:09]query_string will be loaded in cgi processing [00:27:09]execute_cgi json_proto POST (null) [00:27:09]execute_cgi path=json_proto method=POST [00:27:09]POST find Content-Length [00:27:09]Host: 172.17.53.195:8080 [00:27:09]Content-Length: 331 [00:27:09]Content-Type: application/json [00:27:09] [00:27:09]POST finish read [00:27:09]Found Content-Length = 331 [00:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:09]execute_script... [00:27:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:09]POST & json_proto [00:27:09]process_json_proto [00:27:09]json parsed OK: [00:27:09]protocol is kg_v1.0 [00:27:09]action value=get_value [00:27:09]process_action get_value [00:27:09]cmd_get_value [00:27:09]process_action get_value done [00:27:09]requested_data is exist [00:27:09]produce_requested_data [00:27:09]requested_item fm.sale.total is exist - process it [00:27:09]SAM_PROTO_GetFMData [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 13 03 00 [00:27:09]Write to MH i2c: E2 08 00 A0 1D 80 13 03 00 00 00 00 00 3C [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 A0 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 F0 [00:27:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 A1 1D 80 17 00 00 00 00 00 00 3E [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 A1 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0A [00:27:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 A2 1D 80 17 00 00 00 00 00 00 3F [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 A2 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 51 [00:27:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:27:11]wFMCommunicate OK [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 17 00 00 [00:27:11]Write to MH i2c: E2 08 00 A3 1D 80 17 00 00 00 00 00 00 40 [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 A3 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CC [00:27:11]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:27:11]wFMCommunicate OK [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 17 00 00 [00:27:11]Write to MH i2c: E2 08 00 A4 1D 80 17 00 00 00 00 00 00 41 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 E2 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 E2 00 A4 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [00:27:12]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:12]wFMCommunicate OK [00:27:12]SAM_PROTO_GetFMData done [00:27:12]requested_item fm.sale_refund.total is exist - process it [00:27:12]requested_item fm.buy.total is exist - process it [00:27:12]requested_item shift.sale.total is exist - process it [00:27:12]SAM_PROTO_GetShiftData [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 13 02 00 [00:27:12]Write to MH i2c: E2 08 00 A5 1D 80 13 02 00 00 00 00 00 40 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 A5 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CF [00:27:12]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 A6 1D 80 17 00 00 00 00 00 00 43 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 A6 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 5C [00:27:13]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 A7 1D 80 17 00 00 00 00 00 00 44 [00:27:13]OFD Sender: No OFD packet to send [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 A7 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 FD [00:27:13]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 A8 1D 80 17 00 00 00 00 00 00 45 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 A8 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 BD [00:27:14]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 A9 1D 80 17 00 00 00 00 00 00 46 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 CE 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 CE 00 A9 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2B [00:27:14]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]SAM_PROTO_GetShiftData done [00:27:14]requested_item shift.sale.total_cash is exist - process it [00:27:14]requested_item shift.sale_refund.total is exist - process it [00:27:14]requested_item shift.sale_refund.total_cash is exist - process it [00:27:14]requested_item shift.buy.total is exist - process it [00:27:14]requested_item shift.buy.total_cash is exist - process it [00:27:14]produce_requested_data done [00:27:14]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:14]process_action_free get_value [00:27:14]json_value_free [00:27:14]json_value_free done [00:27:14]process_json_proto returns [00:27:14]Send response to host [00:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:14]free response buf [00:27:14]execute_script done [00:27:14]execute_script returns [00:27:14]free content buf [00:27:14]Sock 9.Close socket [00:27:14]Sock 9.Thread stoped [00:27:14]accept exits with 7 [00:27:14]New connection [00:27:14]New thread 3067632996 created [00:27:14]Thread 3067489636 joined [00:27:14]Waiting for new connection... [00:27:14] Sock 7.Parse request [00:27:14]Sock 7.Check first char [00:27:15]Sock 7.First char is OK [00:27:15]request: POST /json_proto HTTP/1.0 [00:27:15]Method: POST [00:27:15]URL: /json_proto [00:27:15]Method is POST - this is cgi request [00:27:15]url: /json_proto [00:27:15]query_string will be loaded in cgi processing [00:27:15]execute_cgi json_proto POST (null) [00:27:15]execute_cgi path=json_proto method=POST [00:27:15]POST find Content-Length [00:27:15]Host: 172.17.53.195:8080 [00:27:15]Content-Length: 248 [00:27:15]Content-Type: application/json [00:27:15] [00:27:15]POST finish read [00:27:15]Found Content-Length = 248 [00:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:15]execute_script... [00:27:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:15]POST & json_proto [00:27:15]process_json_proto [00:27:15]json parsed OK: [00:27:15]protocol is kg_v1.0 [00:27:15]action value=close_shift [00:27:15]process_action close_shift [00:27:15]cmd_close_shift [00:27:15]MH_GetDate [00:27:15]Write to MH i2c: F0 00 00 AA 1D B6 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 09 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 09 00 AA 1D 00 E5 42 18 67 21 48 4A 65 7D [00:27:15]GetLastDocTimeStamp 1729643188 [00:27:15]current date 1729643237 [00:27:15]FM_GetShiftState [00:27:15]SAM_PROTO_GetShiftState [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 13 01 00 [00:27:15]Write to MH i2c: E2 08 00 AB 1D 80 13 01 00 00 00 00 00 45 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 0E 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 0E 00 AB 1D 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 98 [00:27:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:27:15]wFMCommunicate OK [00:27:15]SAM_PROTO_GetShiftState done [00:27:15]FM_GetShiftState done [00:27:15]KKMCreateCloseShiftDocument [00:27:15]Load OK [00:27:15]Malloc new data [00:27:15]MH_GetDate [00:27:15]Write to MH i2c: F0 00 00 AC 1D B8 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 09 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: F0 09 00 AC 1D 00 E5 42 18 67 21 48 4A 65 7F [00:27:15]Malloc new data [00:27:15]Malloc new data [00:27:15]Malloc new data [00:27:15]Malloc new data [00:27:15]KKMCreateCloseShiftDocument OK [00:27:15]KKMSetCloseShiftData OK [00:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=67 [00:27:15]tlvbuf is 0138E830 [00:27:15]KKMLoadAndSignCloseShiftData [00:27:15]SAM_PROTO_ProcessDocument [00:27:15]wFMCommunicate request_size=9 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 01 00 04 05 00 43 00 [00:27:15]Write to MH i2c: E2 0C 00 AD 1D 80 15 01 00 04 00 05 00 43 00 00 00 99 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 AD 1D 00 90 00 3E [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=23 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:27:15]Write to MH i2c: E2 1A 00 AE 1D 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 40 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 AE 1D 00 90 00 3F [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=26 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 [00:27:15]Write to MH i2c: E2 1D 00 AF 1D 80 15 02 00 15 00 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 00 00 7D [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 AF 1D 00 90 00 40 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=13 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 02 00 08 F4 03 04 00 E5 42 18 67 [00:27:15]Write to MH i2c: E2 10 00 B0 1D 80 15 02 00 08 00 F4 03 04 00 E5 42 18 67 00 00 FE [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=25 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:27:15]Write to MH i2c: E2 1C 00 B1 1D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 B2 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [00:27:15]RAPDU: 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 15 03 00 [00:27:15]Write to MH i2c: E2 08 00 B2 1D 80 15 03 00 00 00 00 00 50 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 B2 1D 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 7D [00:27:16]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:27:16]wFMCommunicate OK [00:27:16]SAM_PROTO_ProcessDocument answer len = 1268 [00:27:16]SAM_PROTO_ProcessDocument remain to read = 1020 [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 17 00 00 [00:27:16]Write to MH i2c: E2 08 00 B3 1D 80 17 00 00 00 00 00 00 50 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 B3 1D 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 A4 [00:27:16]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:17]SAM_PROTO_ProcessDocument remain to read = 770 [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 B4 1D 80 17 00 00 00 00 00 00 51 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 B4 1D 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 B3 [00:27:17]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:17]SAM_PROTO_ProcessDocument remain to read = 520 [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 B5 1D 80 17 00 00 00 00 00 00 52 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 B5 1D 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 DA [00:27:18]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:18]SAM_PROTO_ProcessDocument remain to read = 270 [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 B6 1D 80 17 00 00 00 00 00 00 53 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 B6 1D 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 1D [00:27:18]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [00:27:18]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:18]SAM_PROTO_ProcessDocument remain to read = 20 [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 B7 1D 80 17 00 00 00 00 00 00 54 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 17 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 17 00 B7 1D 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BD 28 F7 31 ED EE 90 00 7D [00:27:18]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BD 28 F7 31 ED EE 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:27:18]SAM_PROTO_ProcessDocument done [00:27:18]1209 (1) - 1.0 - номер версии ФФД [00:27:18]1041 (16) - 0000000000871759 - номер ФМ [00:27:18]1040 (4) - 166584 - номер ФД [00:27:18]1038 (4) - 536 - номер смены [00:27:18]1118 (4) - 338 - количество кассовых чеков за смену [00:27:18]1111 (4) - 340 - общее количество ФД за смену [00:27:18]1194 (1197) - счетчики итогов смены [00:27:18] 1134 (4) - 338 - количество чеков со всеми признаками расчетов [00:27:18] 1129 (158) - счетчики операций «приход» [00:27:18] 1135 (4) - 338 - количество чеков по признаку расчетов [00:27:18] 1201 (4) - 319436.42 - общая итоговая сумма в чеках [00:27:18] 1136 (4) - 257993.00 - итоговая сумма в чеках наличными [00:27:18] 1138 (3) - 61443.42 - итоговая сумма в чеках безналичными [00:27:18] 1024 (123) - суммы налогов [00:27:18] 1006 (9) - суммы НДС [00:27:18] 1010 (1) - 0% - код ставки НДС [00:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:18] 1006 (12) - суммы НДС [00:27:18] 1010 (1) - 12% - код ставки НДС [00:27:18] 1011 (3) - 33932.53 - сумма НДС по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 0% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (12) - суммы НСП [00:27:18] 1014 (1) - 1% - код ставки НСП [00:27:18] 1015 (3) - 2827.59 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 2% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 3% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 5% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 0,50% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 1,50% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1130 (141) - счетчики операций «возврат прихода» [00:27:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:18] 1024 (117) - суммы налогов [00:27:18] 1006 (9) - суммы НДС [00:27:18] 1010 (1) - 0% - код ставки НДС [00:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:18] 1006 (9) - суммы НДС [00:27:18] 1010 (1) - 12% - код ставки НДС [00:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:18] 1014 (1) - 0% - код ставки НСП [00:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:18] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 2% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 3% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 5% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 0,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1131 (141) - счетчики операций «расход» [00:27:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:19] 1024 (117) - суммы налогов [00:27:19] 1006 (9) - суммы НДС [00:27:19] 1010 (1) - 0% - код ставки НДС [00:27:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:19] 1006 (9) - суммы НДС [00:27:19] 1010 (1) - 12% - код ставки НДС [00:27:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 0% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 2% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 3% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 5% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 0,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1132 (141) - счетчики операций «возврат расхода» [00:27:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:19] 1024 (117) - суммы налогов [00:27:19] 1006 (9) - суммы НДС [00:27:19] 1010 (1) - 0% - код ставки НДС [00:27:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:19] 1006 (9) - суммы НДС [00:27:19] 1010 (1) - 12% - код ставки НДС [00:27:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 0% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 2% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 3% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 5% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 0,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1007 (9) - суммы НСП [00:27:19] 1014 (1) - 1,50% - код ставки НСП [00:27:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:19] 1133 (588) - - счетчики коррекции - не используются [00:27:19]1077 (6) - 207983643586030 - ФПД [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1209 (04B9) [00:27:19]Malloc new data [00:27:19]Processing tag 1041 (0411) [00:27:19]Processing tag 1040 (0410) [00:27:19]Malloc new data [00:27:19]Processing tag 1038 (040E) [00:27:19]Malloc new data [00:27:19]Processing tag 1118 (045E) [00:27:19]Malloc new data [00:27:19]Processing tag 1111 (0457) [00:27:19]Malloc new data [00:27:19]Processing tag 1194 (04AA) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1134 (046E) [00:27:19]Malloc new data [00:27:19]Processing tag 1129 (0469) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1135 (046F) [00:27:19]Malloc new data [00:27:19]Processing tag 1201 (04B1) [00:27:19]Malloc new data [00:27:19]Processing tag 1136 (0470) [00:27:19]Malloc new data [00:27:19]Processing tag 1138 (0472) [00:27:19]Malloc new data [00:27:19]Processing tag 1024 (0400) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1130 (046A) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1135 (046F) [00:27:19]Malloc new data [00:27:19]Processing tag 1201 (04B1) [00:27:19]Malloc new data [00:27:19]Processing tag 1136 (0470) [00:27:19]Malloc new data [00:27:19]Processing tag 1138 (0472) [00:27:19]Malloc new data [00:27:19]Processing tag 1024 (0400) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1131 (046B) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1135 (046F) [00:27:19]Malloc new data [00:27:19]Processing tag 1201 (04B1) [00:27:19]Malloc new data [00:27:19]Processing tag 1136 (0470) [00:27:19]Malloc new data [00:27:19]Processing tag 1138 (0472) [00:27:19]Malloc new data [00:27:19]Processing tag 1024 (0400) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1132 (046C) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1135 (046F) [00:27:19]Malloc new data [00:27:19]Processing tag 1201 (04B1) [00:27:19]Malloc new data [00:27:19]Processing tag 1136 (0470) [00:27:19]Malloc new data [00:27:19]Processing tag 1138 (0472) [00:27:19]Malloc new data [00:27:19]Processing tag 1024 (0400) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1006 (03EE) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1010 (03F2) [00:27:19]Malloc new data [00:27:19]Processing tag 1011 (03F3) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1007 (03EF) [00:27:19]Load OK [00:27:19]SetTLVBufToDocument [00:27:19]Processing tag 1014 (03F6) [00:27:19]Malloc new data [00:27:19]Processing tag 1015 (03F7) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1133 (046D) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Processing tag 1077 (0435) [00:27:19]Malloc new data [00:27:19]SetTLVBufToDocument err=0 [00:27:19]Malloc new data [00:27:19]SAM_PROTO_GetFMData [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 13 03 00 [00:27:19]Write to MH i2c: E2 08 00 B8 1D 80 13 03 00 00 00 00 00 54 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 B8 1D 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 08 [00:27:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 B9 1D 80 17 00 00 00 00 00 00 56 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 B9 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 22 [00:27:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:27:21]wFMCommunicate OK [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 17 00 00 [00:27:21]Write to MH i2c: E2 08 00 BA 1D 80 17 00 00 00 00 00 00 57 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 BA 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 69 [00:27:21]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:27:21]wFMCommunicate OK [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 17 00 00 [00:27:21]Write to MH i2c: E2 08 00 BB 1D 80 17 00 00 00 00 00 00 58 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 BB 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E4 [00:27:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 BC 1D 80 17 00 00 00 00 00 00 59 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 E2 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 E2 00 BC 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 37 [00:27:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_GetFMData done [00:27:23]Malloc new data [00:27:23]Malloc new data [00:27:23]Malloc new data [00:27:23]Malloc new data [00:27:23]KKMLoadAndSignCloseShiftData err=0 [00:27:23]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Салиев Э. 23.10.2024 00:27 Смена: 536 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Чеков за смену: 338 ФД за смену: 340 Всего чеков: 338 ИТОГИ ПРИХОД Чеков: 338 Общий итог: 319436.42 Итого наличными: 257993.00 Итого безнал.: 61443.42 НДС 0% : 0.00 НДС 12% : 33932.53 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2827.59 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 257993.00 НС Приход: 159108450.70 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 166584 ФМ: 0000000000871759 ФПД: 207983643586030 [00:27:23]StoreToDocumentArchive [00:27:23]shift 536 fd 166584 [00:27:23]save to /storage/0536/doc_00166584 [00:27:23]save last doc name /storage/0536/doc_00166584 to /storage/kkm_last_doc_name [00:27:23]save OK [00:27:23]Clear old archive folders... [00:27:23]Remove dir /storage/0522 [00:27:23]opendir ok [00:27:23]file . [00:27:23]file .. [00:27:23]file doc_1729643196 [00:27:23]remove file /storage/0522/doc_1729643196 [00:27:23]remove dir /storage/0522 [00:27:23]NVStorageSaveData kkm_registers [00:27:23]File name is /storage/kkm_registers [00:27:23]Write 24 bytes [00:27:23]NVStorageSaveData done [00:27:23]NVStorageSaveData kkm_registers [00:27:23]File name is /storage/kkm_registers [00:27:23]Write 24 bytes [00:27:23]NVStorageSaveData done [00:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=1378 [00:27:23]tlvbuf is 01258130 [00:27:23]SAM_PROTO_ClearQueue [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 09 00 00 [00:27:23]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_ClearQueue done [00:27:23]KKMCreateOFDPacket [00:27:23]OFDProtocolAddRootSTLVToBuf [00:27:23]FM_MakeSignedData [00:27:23]FM_MakeSignedData [00:27:23]SAM_PROTO_SignData [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 01 02 [00:27:23]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [00:27:23]RAPDU: 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=255 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 0D 02 02 FA 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 E5 42 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 D8 04 6E 04 04 00 52 01 00 00 69 04 A5 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 [00:27:23]Write to MH i2c: E2 02 01 BF 1D 80 0D 02 02 FA 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 E5 42 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 D8 04 6E 04 04 00 52 01 00 00 69 04 A5 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 FA [00:27:23]OFD Sender: No OFD packet to send [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [00:27:24]RAPDU: 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=255 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A [00:27:24]Write to MH i2c: E2 02 01 C0 1D 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 00 9F [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [00:27:24]RAPDU: 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=255 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 [00:27:24]Write to MH i2c: E2 02 01 C1 1D 80 0D 02 02 FA 00 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 1E [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 03 00 C1 1D 00 90 00 52 [00:27:25]RAPDU: 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=255 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 0D 02 02 FA 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 [00:27:25]Write to MH i2c: E2 02 01 C2 1D 80 0D 02 02 FA 00 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 1E [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 C2 1D 00 90 00 53 [00:27:26]RAPDU: 90 00 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=255 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 [00:27:26]Write to MH i2c: E2 02 01 C3 1D 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 00 00 DD [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 03 00 C3 1D 00 90 00 54 [00:27:26]RAPDU: 90 00 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=137 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 0D 02 02 84 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B8 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 BD 28 F7 31 ED EE [00:27:26]Write to MH i2c: E2 8C 00 C4 1D 80 0D 02 02 84 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B8 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 BD 28 F7 31 ED EE 00 00 D1 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 C4 1D 00 90 00 55 [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 03 02 [00:27:27]Write to MH i2c: E2 08 00 C5 1D 80 0D 03 02 00 00 00 00 5D [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 C5 1D 00 D6 A6 9B 17 B9 5D BA 78 90 00 D4 [00:27:27]RAPDU: D6 A6 9B 17 B9 5D BA 78 90 00 [00:27:27]wFMCommunicate OK [00:27:27]SAM_PROTO_SignData done [00:27:27]FM_MakeSignedData done [00:27:27]CreateOFDProtocolMessage [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 11 00 00 [00:27:27]Write to MH i2c: E2 08 00 C6 1D 80 11 00 00 00 00 00 00 5D [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:27]Read from MH i2c: E2 17 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 17 00 C6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [00:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:27:27]wFMCommunicate OK [00:27:27]CreateOFDProtocolMessage done [00:27:27]OFDSenderStorePacket 166584 [00:27:27]StoreOFDPacket docnum=166584 [00:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 76 05 00 00 87 AC 6E 05 F8 9B 5A 05 01 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 E5 42 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 D8 04 6E 04 04 00 52 01 00 00 69 04 A5 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B8 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 BD 28 F7 31 ED EE D6 A6 9B 17 B9 5D BA 78 [00:27:27]CheckFolder [00:27:27]dirname=/storage/ofd_packets [00:27:27]CheckFolder done [00:27:27]ProducePacketName [00:27:27]name=ofd_packets/00166584 [00:27:27]NVStorageSaveData ofd_packets/00166584 [00:27:27]File name is /storage/ofd_packets/00166584 [00:27:27]Write 1428 bytes [00:27:27]NVStorageSaveData done [00:27:27]OFDSenderStorePacket done [00:27:27]KKMCreateOFDPacket done [00:27:27]NVStorageSaveData kkm_last_timestamp [00:27:27]File name is /storage/kkm_last_timestamp [00:27:27]Write 4 bytes [00:27:27]NVStorageSaveData done [00:27:27]ExternCall_PrintAddStr [00:27:27]wPrintStart [00:27:27]Write to MH i2c: 01 00 00 C7 1D E4 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 FF 0F F9 [00:27:27]RasterBufferAndPrint [00:27:27]line Отчет о закрытии смены [00:27:27]line ФФД: 1.0 [00:27:27]line ИНН: 02508201610067 [00:27:27]line Кассир: Салиев Э. [00:27:27]line 23.10.2024 00:27 [00:27:27]line Смена: 536 [00:27:27]line РНМ: 0000000000091764 [00:27:27]line ЗНМ: 0300000104 [00:27:27]line СНО: Общий режим [00:27:27]line Чеков за смену: 338 [00:27:27]line ФД за смену: 340 [00:27:27]line Всего чеков: 338 [00:27:27]line ИТОГИ ПРИХОД [00:27:27]line Чеков: 338 [00:27:27]line Общий итог: 319436.42 [00:27:27]line Итого наличными: 257993.00 [00:27:27]line Итого безнал.: 61443.42 [00:27:27]line НДС 0% : 0.00 [00:27:27]line НДС 12% : 33932.53 [00:27:27]line НСП 0% : 0.00 [00:27:27]line НСП 1,50% : 0.00 [00:27:27]line НСП 0,50% : 0.00 [00:27:27]line НСП 5% : 0.00 [00:27:27]line НСП 3% : 0.00 [00:27:27]line НСП 2% : 0.00 [00:27:27]line НСП 1% : 2827.59 [00:27:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:27:27]line Чеков: 0 [00:27:27]line Общий итог: 0.00 [00:27:27]line Итого наличными: 0.00 [00:27:27]line Итого безнал.: 0.00 [00:27:27]line НДС 0% : 0.00 [00:27:27]line НДС 12% : 0.00 [00:27:27]line НСП 0% : 0.00 [00:27:27]line НСП 1,50% : 0.00 [00:27:27]line НСП 0,50% : 0.00 [00:27:27]line НСП 5% : 0.00 [00:27:27]line НСП 3% : 0.00 [00:27:27]line НСП 2% : 0.00 [00:27:27]line НСП 1% : 0.00 [00:27:27]line ИТОГИ РАСХОД [00:27:27]line Чеков: 0 [00:27:27]line Общий итог: 0.00 [00:27:27]line Итого наличными: 0.00 [00:27:27]line Итого безнал.: 0.00 [00:27:27]line НДС 0% : 0.00 [00:27:27]line НДС 12% : 0.00 [00:27:27]line НСП 0% : 0.00 [00:27:27]line НСП 1,50% : 0.00 [00:27:27]line НСП 0,50% : 0.00 [00:27:27]line НСП 5% : 0.00 [00:27:27]line НСП 3% : 0.00 [00:27:27]line НСП 2% : 0.00 [00:27:27]line НСП 1% : 0.00 [00:27:27]line ИТОГИ ВОЗВРАТ РАСХОДА [00:27:27]line Чеков: 0 [00:27:27]line Общий итог: 0.00 [00:27:27]line Итого наличными: 0.00 [00:27:27]line Итого безнал.: 0.00 [00:27:27]line НДС 0% : 0.00 [00:27:27]line НДС 12% : 0.00 [00:27:27]line НСП 0% : 0.00 [00:27:27]line НСП 1,50% : 0.00 [00:27:27]line НСП 0,50% : 0.00 [00:27:27]line НСП 5% : 0.00 [00:27:27]line НСП 3% : 0.00 [00:27:27]line НСП 2% : 0.00 [00:27:27]line НСП 1% : 0.00 [00:27:27]line Сумма внесений: 0.00 [00:27:27]line Сумма выплат: 0.00 [00:27:27]line Нал. в кассе: 257993.00 [00:27:27]line НС Приход: 159108450.70 [00:27:27]line НС Возвр.Прихода: 1793064.00 [00:27:27]line НС Расход: 0.00 [00:27:27]line НС Возвр.Расхода: 0.00 [00:27:27]line ФД: 166584 [00:27:28]line ФМ: 0000000000871759 [00:27:28]line ФПД: 207983643586030 [00:27:28]OFD Sender: Processing packet 166584 [packets to send 48, broken 47] [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00166584 [00:27:28]OFD Sender: To server: pG, [00:27:28]CommunicateWithHost lk.salyk.kg:30040 [00:27:28]ConnectInit lk.salyk.kg [00:27:28]written 0, free lines is 4095 [00:27:28]Connected sock=11 [00:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 76 05 00 00 87 AC 6E 05 F8 9B 5A 05 01 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 E5 42 18 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 AA 04 D8 04 6E 04 04 00 52 01 00 00 69 04 A5 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 Write to MH i2c: 00 01 F6 00 03 00 01 17 00 1E 02 35 F7 [00:27:28]03 00 Write i2c OK [00:27:28]00 MH_I2C_Read... [00:27:28]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF Read from MH i2c: 03 01 09 [00:27:28]00 MH_I2C_Read... [00:27:28]F6 Read from MH i2c: 03 01 01 07 00 00 04 [00:27:28]F7 MH_I2C_Read... [00:27:28]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 17 00 1E 06 00 F7 00 03 00 00 00 00 00 D0 60 04 0A A6 8D [00:27:28]00 RasterBufferAndPrint [00:27:28]6F line [00:27:28]04 line [00:27:28]04 line [00:27:28]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 line [00:27:28]04 line [00:27:28]00 00 00 04 75 00 EE 03 09 00 F2 written 0, free lines is 2804 [00:27:28]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 MH_Cut [00:27:28]01 Write to MH i2c: F3 D1 03 01 00 00 00 1E EF 1E 03 09 01 00 0E F6 [00:27:28]03 01 00 00 F7 03 00 00 EF 03 09 00 Write i2c OK [00:27:29]F6 MH_I2C_Read... [00:27:29]03 Read from MH i2c: 01 D1 00 [00:27:29]01 MH_I2C_Read... [00:27:29]F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 02 D1 F7 01 03 00 00 [00:27:29]00 MH_I2C_Read... [00:27:29]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 1E 03 1E 01 00 00 0D 04 [00:27:29]F7 Write to MH i2c: 03 01 00 00 00 00 EF 1F 03 1E 09 3D 00 [00:27:29]F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 Write i2c OK [00:27:29]06 MH_I2C_Read... [00:27:29]F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B8 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 BD 28 F7 31 ED EE D6 A6 9B 17 B9 5D BA 78 [00:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E 74 47 00 DD 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 8A 02 00 F4 03 04 00 5A E9 17 67 B6 04 01 00 00 3F 71 E0 91 7A 19 AA 51 [00:27:29]CommunicateWithHost err = 0 [00:27:29]CheckOFDResponse [00:27:29]1017 (14) - 77093643461234 [00:27:29]1041 (16) - 0000000000871759 [00:27:29]1040 (4) - 166584 [00:27:29]1012 (4) - 22.10.2024 18:05 [00:27:29]1206 (1) - 0 [00:27:29]OFD Sender: Remove packet 166584 [00:27:29]ProducePacketName [00:27:29]name=ofd_packets/00166584 [00:27:29]NVStorageDeleteData [00:27:30]*** Cut start [00:27:30]*** Partial cut [00:27:30]*** CUTSNS_PIN = 1 [00:27:30]*** CUTSNS_PIN = 0 [00:27:30]OFD Sender: No OFD packet to send [00:27:30]*** Brake cut motor [00:27:30]Read from MH i2c: 01 [00:27:30]MH_I2C_Read... [00:27:30]*** Stop cut motor [00:27:30]*** Cut end [00:27:30]Read from MH i2c: 01 07 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 FF 0F 52 [00:27:30]process_action close_shift done [00:27:30]requested_data is exist [00:27:30]produce_requested_data [00:27:30]requested_item fd.num is exist - process it [00:27:30]SAM_PROTO_GetFieldsCounters [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 00 00 [00:27:30]Write to MH i2c: E2 08 00 20 1E 80 13 00 00 00 00 00 00 BA [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 20 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [00:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_GetFieldsCounters done [00:27:31]requested_item shift.num is exist - process it [00:27:31]requested_item shift.opened is exist - process it [00:27:31]req_shift_opened [00:27:31]FM_GetShiftState [00:27:31]SAM_PROTO_GetShiftState [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 13 01 00 [00:27:31]Write to MH i2c: E2 08 00 21 1E 80 13 01 00 00 00 00 00 BC [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 21 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C7 [00:27:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_GetShiftState done [00:27:31]FM_GetShiftState done [00:27:31]req_shift_opened done [00:27:31]requested_item shift.open_date is exist - process it [00:27:31]req_shift_open_date [00:27:31]FM_GetShiftState [00:27:31]SAM_PROTO_GetShiftState [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 13 01 00 [00:27:31]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0E 00 22 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C8 [00:27:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_GetShiftState done [00:27:31]FM_GetShiftState done [00:27:31]req_shift_open_date done [00:27:31]produce_requested_data done [00:27:31]produce_requested_data return {"fd.num":166584,"shift.num":536,"shift.opened":0,"shift.open_date":0} [00:27:31]process_action_free close_shift [00:27:31]json_value_free [00:27:31]json_value_free done [00:27:31]process_json_proto returns [00:27:31]Send response to host [00:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166584,"shift.num":536,"shift.opened":0,"shift.open_date":0}}} [00:27:31]free response buf [00:27:31]execute_script done [00:27:31]execute_script returns [00:27:31]free content buf [00:27:31]Sock 7.Close socket [00:27:31]Sock 7.Thread stoped [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:06]accept exits with 9 [00:36:06]New connection [00:36:06]New thread 3067489636 created [00:36:06]Thread 3067632996 joined [00:36:06]Waiting for new connection... [00:36:06] Sock 9.Parse request [00:36:06]Sock 9.Check first char [00:36:06]Sock 9.First char is OK [00:36:06]request: POST /json_proto HTTP/1.0 [00:36:06]Method: POST [00:36:06]URL: /json_proto [00:36:06]Method is POST - this is cgi request [00:36:06]url: /json_proto [00:36:06]query_string will be loaded in cgi processing [00:36:06]execute_cgi json_proto POST (null) [00:36:06]execute_cgi path=json_proto method=POST [00:36:06]POST find Content-Length [00:36:06]Host: 172.17.53.195:8080 [00:36:06]Content-Length: 215 [00:36:06]Content-Type: application/json [00:36:06] [00:36:06]POST finish read [00:36:06]Found Content-Length = 215 [00:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:06]execute_script... [00:36:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:06]POST & json_proto [00:36:06]process_json_proto [00:36:06]json parsed OK: [00:36:06]protocol is kg_v1.0 [00:36:06]action value=get_value [00:36:06]process_action get_value [00:36:06]cmd_get_value [00:36:06]process_action get_value done [00:36:06]requested_data is exist [00:36:06]produce_requested_data [00:36:06]requested_item kkm.sn is exist - process it [00:36:06]requested_item kkm.ver is exist - process it [00:36:06]requested_item fm.sn is exist - process it [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 11 00 00 [00:36:06]Write to MH i2c: E2 08 00 23 1E 80 11 00 00 00 00 00 00 BB [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 17 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 17 00 23 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [00:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:36:06]wFMCommunicate OK [00:36:06]requested_item fd.num is exist - process it [00:36:06]SAM_PROTO_GetFieldsCounters [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 13 00 00 [00:36:06]Write to MH i2c: E2 08 00 24 1E 80 13 00 00 00 00 00 00 BE [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 62 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 62 00 24 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [00:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 8A 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:06]wFMCommunicate OK [00:36:06]SAM_PROTO_GetFieldsCounters done [00:36:06]requested_item shift.num is exist - process it [00:36:06]requested_item shift.opened is exist - process it [00:36:06]req_shift_opened [00:36:06]FM_GetShiftState [00:36:06]SAM_PROTO_GetShiftState [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 13 01 00 [00:36:06]Write to MH i2c: E2 08 00 25 1E 80 13 01 00 00 00 00 00 C0 [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 0E 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 0E 00 25 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CB [00:36:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:06]wFMCommunicate OK [00:36:06]SAM_PROTO_GetShiftState done [00:36:06]FM_GetShiftState done [00:36:06]req_shift_opened done [00:36:06]requested_item shift.open_date is exist - process it [00:36:06]req_shift_open_date [00:36:06]FM_GetShiftState [00:36:06]SAM_PROTO_GetShiftState [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 13 01 00 [00:36:06]Write to MH i2c: E2 08 00 26 1E 80 13 01 00 00 00 00 00 C1 [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 26 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CC [00:36:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_GetShiftState done [00:36:07]FM_GetShiftState done [00:36:07]req_shift_open_date done [00:36:07]produce_requested_data done [00:36:07]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166584,"shift.num":536,"shift.opened":0,"shift.open_date":0} [00:36:07]process_action_free get_value [00:36:07]json_value_free [00:36:07]json_value_free done [00:36:07]process_json_proto returns [00:36:07]Send response to host [00:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166584,"shift.num":536,"shift.opened":0,"shift.open_date":0}}} [00:36:07]free response buf [00:36:07]execute_script done [00:36:07]execute_script returns [00:36:07]free content buf [00:36:07]Sock 9.Close socket [00:36:07]Sock 9.Thread stoped [00:36:07]accept exits with 7 [00:36:07]New connection [00:36:07]New thread 3067632996 created [00:36:07]Thread 3067489636 joined [00:36:07]Waiting for new connection... [00:36:07] Sock 7.Parse request [00:36:07]Sock 7.Check first char [00:36:07]Sock 7.First char is OK [00:36:07]request: POST /json_proto HTTP/1.0 [00:36:07]Method: POST [00:36:07]URL: /json_proto [00:36:07]Method is POST - this is cgi request [00:36:07]url: /json_proto [00:36:07]query_string will be loaded in cgi processing [00:36:07]execute_cgi json_proto POST (null) [00:36:07]execute_cgi path=json_proto method=POST [00:36:07]POST find Content-Length [00:36:07]Host: 172.17.53.195:8080 [00:36:07]Content-Length: 331 [00:36:07]Content-Type: application/json [00:36:07] [00:36:07]POST finish read [00:36:07]Found Content-Length = 331 [00:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:07]execute_script... [00:36:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:07]POST & json_proto [00:36:07]process_json_proto [00:36:07]json parsed OK: [00:36:07]protocol is kg_v1.0 [00:36:07]action value=get_value [00:36:07]process_action get_value [00:36:07]cmd_get_value [00:36:07]process_action get_value done [00:36:07]requested_data is exist [00:36:07]produce_requested_data [00:36:07]requested_item fm.sale.total is exist - process it [00:36:07]SAM_PROTO_GetFMData [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 13 03 00 [00:36:07]Write to MH i2c: E2 08 00 27 1E 80 13 03 00 00 00 00 00 C4 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 FD 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 FD 00 27 1E 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 78 [00:36:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:36:07]wFMCommunicate OK [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 17 00 00 [00:36:07]Write to MH i2c: E2 08 00 28 1E 80 17 00 00 00 00 00 00 C6 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:08]Read from MH i2c: E2 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 28 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 92 [00:36:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:36:08]wFMCommunicate OK [00:36:08]wFMCommunicate request_size=4 [00:36:08]MH_SAM_APDU [00:36:08]CAPDU: 80 17 00 00 [00:36:08]Write to MH i2c: E2 08 00 29 1E 80 17 00 00 00 00 00 00 C7 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:08]Read from MH i2c: E2 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 29 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D9 [00:36:08]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:36:08]wFMCommunicate OK [00:36:08]wFMCommunicate request_size=4 [00:36:08]MH_SAM_APDU [00:36:08]CAPDU: 80 17 00 00 [00:36:08]Write to MH i2c: E2 08 00 2A 1E 80 17 00 00 00 00 00 00 C8 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:08]Read from MH i2c: E2 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 FD 00 2A 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 54 [00:36:08]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:36:08]wFMCommunicate OK [00:36:08]wFMCommunicate request_size=4 [00:36:08]MH_SAM_APDU [00:36:08]CAPDU: 80 17 00 00 [00:36:08]Write to MH i2c: E2 08 00 2B 1E 80 17 00 00 00 00 00 00 C9 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:36:08]Read from MH i2c: E2 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 E2 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: E2 E2 00 2B 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [00:36:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:08]wFMCommunicate OK [00:36:08]SAM_PROTO_GetFMData done [00:36:08]requested_item fm.sale_refund.total is exist - process it [00:36:08]requested_item fm.buy.total is exist - process it [00:36:08]requested_item shift.sale.total is exist - process it [00:36:08]SAM_PROTO_GetShiftData [00:36:08]wFMCommunicate request_size=4 [00:36:08]MH_SAM_APDU [00:36:08]CAPDU: 80 13 02 00 [00:36:08]Write to MH i2c: E2 08 00 2C 1E 80 13 02 00 00 00 00 00 C8 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:09]Read from MH i2c: E2 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 2C 1E 00 B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 57 [00:36:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 52 01 00 00 69 04 9E 00 6F 04 04 00 52 01 00 00 B1 04 04 00 DA 6B E7 01 70 04 04 00 84 AA 89 01 72 04 03 00 56 C1 5D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 C6 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 87 50 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:36:09]wFMCommunicate OK [00:36:09]wFMCommunicate request_size=4 [00:36:09]MH_SAM_APDU [00:36:09]CAPDU: 80 17 00 00 [00:36:09]Write to MH i2c: E2 08 00 2D 1E 80 17 00 00 00 00 00 00 CB [00:36:09]Write i2c OK [00:36:09]MH_I2C_Read... [00:36:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:09]Read from MH i2c: E2 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 2D 1E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 E4 [00:36:09]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:36:09]wFMCommunicate OK [00:36:09]wFMCommunicate request_size=4 [00:36:09]MH_SAM_APDU [00:36:09]CAPDU: 80 17 00 00 [00:36:09]Write to MH i2c: E2 08 00 2E 1E 80 17 00 00 00 00 00 00 CC [00:36:09]Write i2c OK [00:36:09]MH_I2C_Read... [00:36:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:09]Read from MH i2c: E2 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 [00:36:09]MH_I2C_Read... [00:36:09]Read from MH i2c: E2 FD 00 2E 1E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 85 [00:36:09]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:36:09]wFMCommunicate OK [00:36:09]wFMCommunicate request_size=4 [00:36:09]MH_SAM_APDU [00:36:09]CAPDU: 80 17 00 00 [00:36:09]Write to MH i2c: E2 08 00 2F 1E 80 17 00 00 00 00 00 00 CD [00:36:09]Write i2c OK [00:36:09]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 FD 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 FD 00 2F 1E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 45 [00:36:10]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:36:10]wFMCommunicate OK [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 17 00 00 [00:36:10]Write to MH i2c: E2 08 00 30 1E 80 17 00 00 00 00 00 00 CE [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 CE 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 CE 00 30 1E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B3 [00:36:10]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetShiftData done [00:36:10]requested_item shift.sale.total_cash is exist - process it [00:36:10]requested_item shift.sale_refund.total is exist - process it [00:36:10]requested_item shift.sale_refund.total_cash is exist - process it [00:36:10]requested_item shift.buy.total is exist - process it [00:36:10]requested_item shift.buy.total_cash is exist - process it [00:36:10]produce_requested_data done [00:36:10]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:10]process_action_free get_value [00:36:10]json_value_free [00:36:10]json_value_free done [00:36:10]process_json_proto returns [00:36:10]Send response to host [00:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":319436.42,"shift.sale.total_cash":257993.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:10]free response buf [00:36:10]execute_script done [00:36:10]execute_script returns [00:36:10]free content buf [00:36:10]Sock 7.Close socket [00:36:10]Sock 7.Thread stoped [00:36:10]accept exits with 9 [00:36:10]New connection [00:36:10]New thread 3067489636 created [00:36:10]Thread 3067632996 joined [00:36:10]Waiting for new connection... [00:36:10] Sock 9.Parse request [00:36:10]Sock 9.Check first char [00:36:10]Sock 9.First char is OK [00:36:10]request: POST /json_proto HTTP/1.0 [00:36:10]Method: POST [00:36:10]URL: /json_proto [00:36:10]Method is POST - this is cgi request [00:36:10]url: /json_proto [00:36:10]query_string will be loaded in cgi processing [00:36:10]execute_cgi json_proto POST (null) [00:36:10]execute_cgi path=json_proto method=POST [00:36:10]POST find Content-Length [00:36:10]Host: 172.17.53.195:8080 [00:36:10]Content-Length: 265 [00:36:10]Content-Type: application/json [00:36:10] [00:36:10]POST finish read [00:36:10]Found Content-Length = 265 [00:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:10]execute_script... [00:36:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:10]POST & json_proto [00:36:10]process_json_proto [00:36:10]json parsed OK: [00:36:10]protocol is kg_v1.0 [00:36:10]action value=open_shift [00:36:10]process_action open_shift [00:36:10]cmd_open_shift [00:36:10]MH_GetDate [00:36:10]Write to MH i2c: F0 00 00 31 1E 3E [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 09 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 09 00 31 1E 00 FC 44 18 67 21 48 4A 65 1E [00:36:10]GetLastDocTimeStamp 1729643237 [00:36:10]current date 1729643772 [00:36:10]FM_GetShiftState [00:36:10]SAM_PROTO_GetShiftState [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 13 01 00 [00:36:10]Write to MH i2c: E2 08 00 32 1E 80 13 01 00 00 00 00 00 CD [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 32 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D8 [00:36:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetShiftState done [00:36:10]FM_GetShiftState done [00:36:10]KKMCreateOpenShiftDocument [00:36:10]Load OK [00:36:10]Malloc new data [00:36:10]MH_GetDate [00:36:10]Write to MH i2c: F0 00 00 33 1E 40 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 09 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: F0 09 00 33 1E 00 FC 44 18 67 21 48 4A 65 20 [00:36:10]Malloc new data [00:36:10]OFD Sender: No OFD packet to send [00:36:10]KKMCreateOpenShiftDocument OK [00:36:10]KKMSetOpenShiftData OK [00:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=206 [00:36:10]tlvbuf is 0139F2B0 [00:36:10]KKMLoadAndSignOpenShiftData [00:36:10]SAM_PROTO_ProcessDocument [00:36:10]wFMCommunicate request_size=9 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 15 01 00 04 02 00 CE 00 [00:36:10]Write to MH i2c: E2 0C 00 34 1E 80 15 01 00 04 00 02 00 CE 00 00 00 A9 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [00:36:10]RAPDU: 90 00 [00:36:10]wFMCommunicate OK [00:36:10]wFMCommunicate request_size=23 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:36:10]Write to MH i2c: E2 1A 00 35 1E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 C8 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 03 00 35 1E 00 90 00 C7 [00:36:10]RAPDU: 90 00 [00:36:10]wFMCommunicate OK [00:36:10]wFMCommunicate request_size=32 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 [00:36:10]Write to MH i2c: E2 23 00 36 1E 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 00 00 39 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=92 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 [00:36:11]Write to MH i2c: E2 5F 00 37 1E 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 00 00 3B [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 37 1E 00 90 00 C9 [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=51 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:36:11]Write to MH i2c: E2 36 00 38 1E 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 80 [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 38 1E 00 90 00 CA [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=13 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 15 02 00 08 F4 03 04 00 FC 44 18 67 [00:36:11]Write to MH i2c: E2 10 00 39 1E 80 15 02 00 08 00 F4 03 04 00 FC 44 18 67 00 00 A1 [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 39 1E 00 90 00 CB [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=25 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:36:11]Write to MH i2c: E2 1C 00 3A 1E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 3C [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 03 00 3A 1E 00 90 00 CC [00:36:11]RAPDU: 90 00 [00:36:11]wFMCommunicate OK [00:36:11]wFMCommunicate request_size=4 [00:36:11]MH_SAM_APDU [00:36:11]CAPDU: 80 15 03 00 [00:36:11]Write to MH i2c: E2 08 00 3B 1E 80 15 03 00 00 00 00 00 DA [00:36:11]Write i2c OK [00:36:11]MH_I2C_Read... [00:36:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:36:11]Read from MH i2c: E2 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 38 00 [00:36:11]MH_I2C_Read... [00:36:11]Read from MH i2c: E2 38 00 3B 1E 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8A 02 00 0E 04 04 00 19 02 00 00 35 04 06 00 6F A0 C2 FA 01 B0 90 00 87 [00:36:11]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8A 02 00 0E 04 04 00 19 02 00 00 35 04 06 00 6F A0 C2 FA 01 B0 90 00 [00:36:11]wFMCommunicate OK [00:36:11]SAM_PROTO_ProcessDocument answer len = 51 [00:36:11]SAM_PROTO_ProcessDocument done [00:36:11]SetTLVBufToDocument [00:36:11]Processing tag 1209 (04B9) [00:36:11]Malloc new data [00:36:11]Processing tag 1041 (0411) [00:36:11]Processing tag 1040 (0410) [00:36:11]Malloc new data [00:36:11]Processing tag 1038 (040E) [00:36:11]Malloc new data [00:36:11]Processing tag 1077 (0435) [00:36:11]Malloc new data [00:36:11]SetTLVBufToDocument err=0 [00:36:11]KKMLoadAndSignOpenShiftData store KKM data [00:36:11]KKMLoadAndSignOpenShiftData err=0 [00:36:11]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Алыкулова К. Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 Место: АЗС № 161 "Партнер Нефть" 23.10.2024 00:36 Смена: 537 РНМ: 0000000000091764 ЗНМ: 0300000104 ФД: 166585 ФМ: 0000000000871759 ФПД: 122736256614832 [00:36:11]StoreToDocumentArchive [00:36:11]shift 537 fd 166585 [00:36:11]Create dir for shift 0537 [00:36:11]save to /storage/0537/doc_00166585 [00:36:11]save last doc name /storage/0537/doc_00166585 to /storage/kkm_last_doc_name [00:36:11]save OK [00:36:11]Clear old archive folders... [00:36:11]Remove dir /storage/0536 [00:36:11]opendir ok [00:36:11]file . [00:36:11]file .. [00:36:11]file doc_00166245 [00:36:11]remove file /storage/0536/doc_00166245 [00:36:11]file doc_00166246 [00:36:11]remove file /storage/0536/doc_00166246 [00:36:11]file doc_00166247 [00:36:11]remove file /storage/0536/doc_00166247 [00:36:11]file doc_00166248 [00:36:11]remove file /storage/0536/doc_00166248 [00:36:11]file doc_00166249 [00:36:11]remove file /storage/0536/doc_00166249 [00:36:11]file doc_00166250 [00:36:11]remove file /storage/0536/doc_00166250 [00:36:11]file doc_00166251 [00:36:11]remove file /storage/0536/doc_00166251 [00:36:11]file doc_00166252 [00:36:11]remove file /storage/0536/doc_00166252 [00:36:11]file doc_00166253 [00:36:11]remove file /storage/0536/doc_00166253 [00:36:11]file doc_00166254 [00:36:11]remove file /storage/0536/doc_00166254 [00:36:11]file doc_00166255 [00:36:11]remove file /storage/0536/doc_00166255 [00:36:11]file doc_00166256 [00:36:11]remove file /storage/0536/doc_00166256 [00:36:11]file doc_00166257 [00:36:11]remove file /storage/0536/doc_00166257 [00:36:11]file doc_00166258 [00:36:11]remove file /storage/0536/doc_00166258 [00:36:11]file doc_00166259 [00:36:11]remove file /storage/0536/doc_00166259 [00:36:11]file doc_00166260 [00:36:11]remove file /storage/0536/doc_00166260 [00:36:11]file doc_00166261 [00:36:11]remove file /storage/0536/doc_00166261 [00:36:11]file doc_00166262 [00:36:11]remove file /storage/0536/doc_00166262 [00:36:11]file doc_00166263 [00:36:11]remove file /storage/0536/doc_00166263 [00:36:11]file doc_00166264 [00:36:11]remove file /storage/0536/doc_00166264 [00:36:11]file doc_00166265 [00:36:11]remove file /storage/0536/doc_00166265 [00:36:11]file doc_00166266 [00:36:11]remove file /storage/0536/doc_00166266 [00:36:11]file doc_00166267 [00:36:11]remove file /storage/0536/doc_00166267 [00:36:11]file doc_00166268 [00:36:11]remove file /storage/0536/doc_00166268 [00:36:11]file doc_00166269 [00:36:11]remove file /storage/0536/doc_00166269 [00:36:11]file doc_00166270 [00:36:11]remove file /storage/0536/doc_00166270 [00:36:11]file doc_00166271 [00:36:11]remove file /storage/0536/doc_00166271 [00:36:11]file doc_00166272 [00:36:11]remove file /storage/0536/doc_00166272 [00:36:11]file doc_00166273 [00:36:11]remove file /storage/0536/doc_00166273 [00:36:11]file doc_00166274 [00:36:11]remove file /storage/0536/doc_00166274 [00:36:11]file doc_00166275 [00:36:11]remove file /storage/0536/doc_00166275 [00:36:11]file doc_00166276 [00:36:11]remove file /storage/0536/doc_00166276 [00:36:11]file doc_00166277 [00:36:11]remove file /storage/0536/doc_00166277 [00:36:11]file doc_00166278 [00:36:11]remove file /storage/0536/doc_00166278 [00:36:11]file doc_00166279 [00:36:11]remove file /storage/0536/doc_00166279 [00:36:11]file doc_00166280 [00:36:11]remove file /storage/0536/doc_00166280 [00:36:11]file doc_00166281 [00:36:11]remove file /storage/0536/doc_00166281 [00:36:11]file doc_00166282 [00:36:11]remove file /storage/0536/doc_00166282 [00:36:11]file doc_00166283 [00:36:11]remove file /storage/0536/doc_00166283 [00:36:11]file doc_00166284 [00:36:11]remove file /storage/0536/doc_00166284 [00:36:11]file doc_00166285 [00:36:11]remove file /storage/0536/doc_00166285 [00:36:11]file doc_00166286 [00:36:11]remove file /storage/0536/doc_00166286 [00:36:11]file doc_00166287 [00:36:11]remove file /storage/0536/doc_00166287 [00:36:11]file doc_00166288 [00:36:11]remove file /storage/0536/doc_00166288 [00:36:11]file doc_00166289 [00:36:11]remove file /storage/0536/doc_00166289 [00:36:11]file doc_00166290 [00:36:11]remove file /storage/0536/doc_00166290 [00:36:11]file doc_00166291 [00:36:11]remove file /storage/0536/doc_00166291 [00:36:11]file doc_00166292 [00:36:11]remove file /storage/0536/doc_00166292 [00:36:11]file doc_00166293 [00:36:11]remove file /storage/0536/doc_00166293 [00:36:11]file doc_00166294 [00:36:11]remove file /storage/0536/doc_00166294 [00:36:11]file doc_00166295 [00:36:11]remove file /storage/0536/doc_00166295 [00:36:11]file doc_00166296 [00:36:11]remove file /storage/0536/doc_00166296 [00:36:11]file doc_00166297 [00:36:11]remove file /storage/0536/doc_00166297 [00:36:11]file doc_00166298 [00:36:11]remove file /storage/0536/doc_00166298 [00:36:11]file doc_00166299 [00:36:11]remove file /storage/0536/doc_00166299 [00:36:11]file doc_00166300 [00:36:11]remove file /storage/0536/doc_00166300 [00:36:11]file doc_00166301 [00:36:11]remove file /storage/0536/doc_00166301 [00:36:11]file doc_00166302 [00:36:11]remove file /storage/0536/doc_00166302 [00:36:11]file doc_00166303 [00:36:11]remove file /storage/0536/doc_00166303 [00:36:11]file doc_00166304 [00:36:11]remove file /storage/0536/doc_00166304 [00:36:11]file doc_00166305 [00:36:11]remove file /storage/0536/doc_00166305 [00:36:11]file doc_00166306 [00:36:11]remove file /storage/0536/doc_00166306 [00:36:11]file doc_00166307 [00:36:11]remove file /storage/0536/doc_00166307 [00:36:11]file doc_00166308 [00:36:11]remove file /storage/0536/doc_00166308 [00:36:11]file doc_00166309 [00:36:11]remove file /storage/0536/doc_00166309 [00:36:11]file doc_00166310 [00:36:11]remove file /storage/0536/doc_00166310 [00:36:11]file doc_00166311 [00:36:11]remove file /storage/0536/doc_00166311 [00:36:11]file doc_00166312 [00:36:11]remove file /storage/0536/doc_00166312 [00:36:11]file doc_00166313 [00:36:11]remove file /storage/0536/doc_00166313 [00:36:11]file doc_00166314 [00:36:11]remove file /storage/0536/doc_00166314 [00:36:11]file doc_00166315 [00:36:11]remove file /storage/0536/doc_00166315 [00:36:11]file doc_00166316 [00:36:11]remove file /storage/0536/doc_00166316 [00:36:11]file doc_00166317 [00:36:11]remove file /storage/0536/doc_00166317 [00:36:11]file doc_00166318 [00:36:11]remove file /storage/0536/doc_00166318 [00:36:11]file doc_00166319 [00:36:11]remove file /storage/0536/doc_00166319 [00:36:11]file doc_00166320 [00:36:11]remove file /storage/0536/doc_00166320 [00:36:11]file doc_00166321 [00:36:11]remove file /storage/0536/doc_00166321 [00:36:11]file doc_00166322 [00:36:11]remove file /storage/0536/doc_00166322 [00:36:11]file doc_00166323 [00:36:11]remove file /storage/0536/doc_00166323 [00:36:11]file doc_00166324 [00:36:11]remove file /storage/0536/doc_00166324 [00:36:11]file doc_00166325 [00:36:11]remove file /storage/0536/doc_00166325 [00:36:11]file doc_00166326 [00:36:11]remove file /storage/0536/doc_00166326 [00:36:11]file doc_00166327 [00:36:11]remove file /storage/0536/doc_00166327 [00:36:11]file doc_00166328 [00:36:11]remove file /storage/0536/doc_00166328 [00:36:11]file doc_00166329 [00:36:11]remove file /storage/0536/doc_00166329 [00:36:11]file doc_00166330 [00:36:11]remove file /storage/0536/doc_00166330 [00:36:11]file doc_00166331 [00:36:11]remove file /storage/0536/doc_00166331 [00:36:12]file doc_00166332 [00:36:12]remove file /storage/0536/doc_00166332 [00:36:12]file doc_00166333 [00:36:12]remove file /storage/0536/doc_00166333 [00:36:12]file doc_00166334 [00:36:12]remove file /storage/0536/doc_00166334 [00:36:12]file doc_00166335 [00:36:12]remove file /storage/0536/doc_00166335 [00:36:12]file doc_00166336 [00:36:12]remove file /storage/0536/doc_00166336 [00:36:12]file doc_00166337 [00:36:12]remove file /storage/0536/doc_00166337 [00:36:12]file doc_00166338 [00:36:12]remove file /storage/0536/doc_00166338 [00:36:12]file doc_00166339 [00:36:12]remove file /storage/0536/doc_00166339 [00:36:12]file doc_00166340 [00:36:12]remove file /storage/0536/doc_00166340 [00:36:12]file doc_00166341 [00:36:12]remove file /storage/0536/doc_00166341 [00:36:12]file doc_00166342 [00:36:12]remove file /storage/0536/doc_00166342 [00:36:12]file doc_00166343 [00:36:12]remove file /storage/0536/doc_00166343 [00:36:12]file doc_00166344 [00:36:12]remove file /storage/0536/doc_00166344 [00:36:12]file doc_00166345 [00:36:12]remove file /storage/0536/doc_00166345 [00:36:12]file doc_00166346 [00:36:12]remove file /storage/0536/doc_00166346 [00:36:12]file doc_00166347 [00:36:12]remove file /storage/0536/doc_00166347 [00:36:12]file doc_00166348 [00:36:12]remove file /storage/0536/doc_00166348 [00:36:12]file doc_00166349 [00:36:12]remove file /storage/0536/doc_00166349 [00:36:12]file doc_00166350 [00:36:12]remove file /storage/0536/doc_00166350 [00:36:12]file doc_00166351 [00:36:12]remove file /storage/0536/doc_00166351 [00:36:12]file doc_00166352 [00:36:12]remove file /storage/0536/doc_00166352 [00:36:12]file doc_00166353 [00:36:12]remove file /storage/0536/doc_00166353 [00:36:12]file doc_00166354 [00:36:12]remove file /storage/0536/doc_00166354 [00:36:12]file doc_00166355 [00:36:12]remove file /storage/0536/doc_00166355 [00:36:12]file doc_00166356 [00:36:12]remove file /storage/0536/doc_00166356 [00:36:12]file doc_00166357 [00:36:12]remove file /storage/0536/doc_00166357 [00:36:12]file doc_00166358 [00:36:12]remove file /storage/0536/doc_00166358 [00:36:12]file doc_00166359 [00:36:12]remove file /storage/0536/doc_00166359 [00:36:12]file doc_00166360 [00:36:12]remove file /storage/0536/doc_00166360 [00:36:12]file doc_00166361 [00:36:12]remove file /storage/0536/doc_00166361 [00:36:12]file doc_00166362 [00:36:12]remove file /storage/0536/doc_00166362 [00:36:12]file doc_00166363 [00:36:12]remove file /storage/0536/doc_00166363 [00:36:12]file doc_00166364 [00:36:12]remove file /storage/0536/doc_00166364 [00:36:12]file doc_00166365 [00:36:12]remove file /storage/0536/doc_00166365 [00:36:12]file doc_00166366 [00:36:12]remove file /storage/0536/doc_00166366 [00:36:12]file doc_00166367 [00:36:12]remove file /storage/0536/doc_00166367 [00:36:12]file doc_00166368 [00:36:12]remove file /storage/0536/doc_00166368 [00:36:12]file doc_00166369 [00:36:12]remove file /storage/0536/doc_00166369 [00:36:12]file doc_00166370 [00:36:12]remove file /storage/0536/doc_00166370 [00:36:12]file doc_00166371 [00:36:12]remove file /storage/0536/doc_00166371 [00:36:12]file doc_00166372 [00:36:12]remove file /storage/0536/doc_00166372 [00:36:12]file doc_00166373 [00:36:12]remove file /storage/0536/doc_00166373 [00:36:12]file doc_00166374 [00:36:12]remove file /storage/0536/doc_00166374 [00:36:12]file doc_00166375 [00:36:12]remove file /storage/0536/doc_00166375 [00:36:12]file doc_00166376 [00:36:12]remove file /storage/0536/doc_00166376 [00:36:12]file doc_00166377 [00:36:12]remove file /storage/0536/doc_00166377 [00:36:12]file doc_00166378 [00:36:12]remove file /storage/0536/doc_00166378 [00:36:12]file doc_00166379 [00:36:12]remove file /storage/0536/doc_00166379 [00:36:12]file doc_00166380 [00:36:12]remove file /storage/0536/doc_00166380 [00:36:12]file doc_00166381 [00:36:12]remove file /storage/0536/doc_00166381 [00:36:12]file doc_00166382 [00:36:12]remove file /storage/0536/doc_00166382 [00:36:12]file doc_00166383 [00:36:12]remove file /storage/0536/doc_00166383 [00:36:12]file doc_00166384 [00:36:12]remove file /storage/0536/doc_00166384 [00:36:12]file doc_00166385 [00:36:12]remove file /storage/0536/doc_00166385 [00:36:12]file doc_00166386 [00:36:12]remove file /storage/0536/doc_00166386 [00:36:12]file doc_00166387 [00:36:12]remove file /storage/0536/doc_00166387 [00:36:12]file doc_00166388 [00:36:12]remove file /storage/0536/doc_00166388 [00:36:12]file doc_00166389 [00:36:12]remove file /storage/0536/doc_00166389 [00:36:12]file doc_00166390 [00:36:12]remove file /storage/0536/doc_00166390 [00:36:12]file doc_00166391 [00:36:12]remove file /storage/0536/doc_00166391 [00:36:12]file doc_00166392 [00:36:12]remove file /storage/0536/doc_00166392 [00:36:12]file doc_00166393 [00:36:12]remove file /storage/0536/doc_00166393 [00:36:12]file doc_00166394 [00:36:12]remove file /storage/0536/doc_00166394 [00:36:12]file doc_00166395 [00:36:12]remove file /storage/0536/doc_00166395 [00:36:12]file doc_00166396 [00:36:12]remove file /storage/0536/doc_00166396 [00:36:12]file doc_00166397 [00:36:12]remove file /storage/0536/doc_00166397 [00:36:12]file doc_00166398 [00:36:12]remove file /storage/0536/doc_00166398 [00:36:12]file doc_00166399 [00:36:12]remove file /storage/0536/doc_00166399 [00:36:12]file doc_00166400 [00:36:12]remove file /storage/0536/doc_00166400 [00:36:12]file doc_00166401 [00:36:12]remove file /storage/0536/doc_00166401 [00:36:12]file doc_00166402 [00:36:12]remove file /storage/0536/doc_00166402 [00:36:12]file doc_00166403 [00:36:12]remove file /storage/0536/doc_00166403 [00:36:12]file doc_00166404 [00:36:12]remove file /storage/0536/doc_00166404 [00:36:12]file doc_00166405 [00:36:12]remove file /storage/0536/doc_00166405 [00:36:12]file doc_00166406 [00:36:12]remove file /storage/0536/doc_00166406 [00:36:12]file doc_00166407 [00:36:12]remove file /storage/0536/doc_00166407 [00:36:12]file doc_00166408 [00:36:12]remove file /storage/0536/doc_00166408 [00:36:12]file doc_00166409 [00:36:12]remove file /storage/0536/doc_00166409 [00:36:12]file doc_00166410 [00:36:12]remove file /storage/0536/doc_00166410 [00:36:12]file doc_00166411 [00:36:12]remove file /storage/0536/doc_00166411 [00:36:12]file doc_00166412 [00:36:12]remove file /storage/0536/doc_00166412 [00:36:12]file doc_00166413 [00:36:12]remove file /storage/0536/doc_00166413 [00:36:12]file doc_00166414 [00:36:12]remove file /storage/0536/doc_00166414 [00:36:12]file doc_00166415 [00:36:12]remove file /storage/0536/doc_00166415 [00:36:12]file doc_00166416 [00:36:12]remove file /storage/0536/doc_00166416 [00:36:12]file doc_00166417 [00:36:12]remove file /storage/0536/doc_00166417 [00:36:12]file doc_00166418 [00:36:12]remove file /storage/0536/doc_00166418 [00:36:12]file doc_00166419 [00:36:12]remove file /storage/0536/doc_00166419 [00:36:12]file doc_00166420 [00:36:12]remove file /storage/0536/doc_00166420 [00:36:12]file doc_00166421 [00:36:12]remove file /storage/0536/doc_00166421 [00:36:12]file doc_00166422 [00:36:12]remove file /storage/0536/doc_00166422 [00:36:12]file doc_00166423 [00:36:12]remove file /storage/0536/doc_00166423 [00:36:12]file doc_00166424 [00:36:12]remove file /storage/0536/doc_00166424 [00:36:12]file doc_00166425 [00:36:12]remove file /storage/0536/doc_00166425 [00:36:12]file doc_00166426 [00:36:12]remove file /storage/0536/doc_00166426 [00:36:12]file doc_00166427 [00:36:12]remove file /storage/0536/doc_00166427 [00:36:12]file doc_00166428 [00:36:12]remove file /storage/0536/doc_00166428 [00:36:12]file doc_00166429 [00:36:12]remove file /storage/0536/doc_00166429 [00:36:12]file doc_00166430 [00:36:12]remove file /storage/0536/doc_00166430 [00:36:12]file doc_00166431 [00:36:12]remove file /storage/0536/doc_00166431 [00:36:12]file doc_00166432 [00:36:12]remove file /storage/0536/doc_00166432 [00:36:12]file doc_00166433 [00:36:12]remove file /storage/0536/doc_00166433 [00:36:12]file doc_00166434 [00:36:12]remove file /storage/0536/doc_00166434 [00:36:12]file doc_00166435 [00:36:12]remove file /storage/0536/doc_00166435 [00:36:12]file doc_00166436 [00:36:12]remove file /storage/0536/doc_00166436 [00:36:12]file doc_00166437 [00:36:12]remove file /storage/0536/doc_00166437 [00:36:12]file doc_00166438 [00:36:12]remove file /storage/0536/doc_00166438 [00:36:12]file doc_00166439 [00:36:12]remove file /storage/0536/doc_00166439 [00:36:12]file doc_00166440 [00:36:12]remove file /storage/0536/doc_00166440 [00:36:12]file doc_00166441 [00:36:12]remove file /storage/0536/doc_00166441 [00:36:12]file doc_00166442 [00:36:12]remove file /storage/0536/doc_00166442 [00:36:12]file doc_00166443 [00:36:12]remove file /storage/0536/doc_00166443 [00:36:12]file doc_00166444 [00:36:12]remove file /storage/0536/doc_00166444 [00:36:12]file doc_00166445 [00:36:12]remove file /storage/0536/doc_00166445 [00:36:12]file doc_00166446 [00:36:12]remove file /storage/0536/doc_00166446 [00:36:12]file doc_00166447 [00:36:12]remove file /storage/0536/doc_00166447 [00:36:12]file doc_00166448 [00:36:12]remove file /storage/0536/doc_00166448 [00:36:12]file doc_00166449 [00:36:12]remove file /storage/0536/doc_00166449 [00:36:12]file doc_00166450 [00:36:12]remove file /storage/0536/doc_00166450 [00:36:12]file doc_00166451 [00:36:12]remove file /storage/0536/doc_00166451 [00:36:12]file doc_00166452 [00:36:12]remove file /storage/0536/doc_00166452 [00:36:12]file doc_00166453 [00:36:12]remove file /storage/0536/doc_00166453 [00:36:12]file doc_00166454 [00:36:12]remove file /storage/0536/doc_00166454 [00:36:12]file doc_00166455 [00:36:12]remove file /storage/0536/doc_00166455 [00:36:12]file doc_00166456 [00:36:12]remove file /storage/0536/doc_00166456 [00:36:12]file doc_00166457 [00:36:12]remove file /storage/0536/doc_00166457 [00:36:12]file doc_00166458 [00:36:12]remove file /storage/0536/doc_00166458 [00:36:12]file doc_00166459 [00:36:12]remove file /storage/0536/doc_00166459 [00:36:12]file doc_00166460 [00:36:12]remove file /storage/0536/doc_00166460 [00:36:12]file doc_00166461 [00:36:12]remove file /storage/0536/doc_00166461 [00:36:12]file doc_00166462 [00:36:12]remove file /storage/0536/doc_00166462 [00:36:12]file doc_00166463 [00:36:12]remove file /storage/0536/doc_00166463 [00:36:12]file doc_00166464 [00:36:12]remove file /storage/0536/doc_00166464 [00:36:12]file doc_00166465 [00:36:12]remove file /storage/0536/doc_00166465 [00:36:12]file doc_00166466 [00:36:12]remove file /storage/0536/doc_00166466 [00:36:12]file doc_00166467 [00:36:12]remove file /storage/0536/doc_00166467 [00:36:12]file doc_00166468 [00:36:12]remove file /storage/0536/doc_00166468 [00:36:12]file doc_00166469 [00:36:12]remove file /storage/0536/doc_00166469 [00:36:12]file doc_00166470 [00:36:12]remove file /storage/0536/doc_00166470 [00:36:12]file doc_00166471 [00:36:12]remove file /storage/0536/doc_00166471 [00:36:12]file doc_00166472 [00:36:12]remove file /storage/0536/doc_00166472 [00:36:12]file doc_00166473 [00:36:12]remove file /storage/0536/doc_00166473 [00:36:12]file doc_00166474 [00:36:12]remove file /storage/0536/doc_00166474 [00:36:12]file doc_00166475 [00:36:12]remove file /storage/0536/doc_00166475 [00:36:12]file doc_00166476 [00:36:12]remove file /storage/0536/doc_00166476 [00:36:12]file doc_00166477 [00:36:12]remove file /storage/0536/doc_00166477 [00:36:12]file doc_00166478 [00:36:12]remove file /storage/0536/doc_00166478 [00:36:12]file doc_00166479 [00:36:12]remove file /storage/0536/doc_00166479 [00:36:12]file doc_00166480 [00:36:12]remove file /storage/0536/doc_00166480 [00:36:12]file doc_00166481 [00:36:12]remove file /storage/0536/doc_00166481 [00:36:12]file doc_00166482 [00:36:12]remove file /storage/0536/doc_00166482 [00:36:12]file doc_00166483 [00:36:12]remove file /storage/0536/doc_00166483 [00:36:12]file doc_00166484 [00:36:12]remove file /storage/0536/doc_00166484 [00:36:12]file doc_00166486 [00:36:12]remove file /storage/0536/doc_00166486 [00:36:12]file doc_00166487 [00:36:12]remove file /storage/0536/doc_00166487 [00:36:12]file doc_00166488 [00:36:12]remove file /storage/0536/doc_00166488 [00:36:12]file doc_00166489 [00:36:12]remove file /storage/0536/doc_00166489 [00:36:12]file doc_00166490 [00:36:12]remove file /storage/0536/doc_00166490 [00:36:12]file doc_00166491 [00:36:12]remove file /storage/0536/doc_00166491 [00:36:12]file doc_00166492 [00:36:12]remove file /storage/0536/doc_00166492 [00:36:12]file doc_00166493 [00:36:12]remove file /storage/0536/doc_00166493 [00:36:12]file doc_00166494 [00:36:12]remove file /storage/0536/doc_00166494 [00:36:12]file doc_00166495 [00:36:12]remove file /storage/0536/doc_00166495 [00:36:12]file doc_00166496 [00:36:12]remove file /storage/0536/doc_00166496 [00:36:12]file doc_00166497 [00:36:12]remove file /storage/0536/doc_00166497 [00:36:12]file doc_00166498 [00:36:12]remove file /storage/0536/doc_00166498 [00:36:12]file doc_00166499 [00:36:12]remove file /storage/0536/doc_00166499 [00:36:12]file doc_00166500 [00:36:12]remove file /storage/0536/doc_00166500 [00:36:12]file doc_00166501 [00:36:12]remove file /storage/0536/doc_00166501 [00:36:12]file doc_00166502 [00:36:12]remove file /storage/0536/doc_00166502 [00:36:12]file doc_00166503 [00:36:12]remove file /storage/0536/doc_00166503 [00:36:12]file doc_00166504 [00:36:12]remove file /storage/0536/doc_00166504 [00:36:12]file doc_00166505 [00:36:12]remove file /storage/0536/doc_00166505 [00:36:12]file doc_00166506 [00:36:12]remove file /storage/0536/doc_00166506 [00:36:12]file doc_00166507 [00:36:12]remove file /storage/0536/doc_00166507 [00:36:12]file doc_00166508 [00:36:12]remove file /storage/0536/doc_00166508 [00:36:12]file doc_00166509 [00:36:13]remove file /storage/0536/doc_00166509 [00:36:13]file doc_00166510 [00:36:13]remove file /storage/0536/doc_00166510 [00:36:13]file doc_00166511 [00:36:13]remove file /storage/0536/doc_00166511 [00:36:13]file doc_00166512 [00:36:13]remove file /storage/0536/doc_00166512 [00:36:13]file doc_00166513 [00:36:13]remove file /storage/0536/doc_00166513 [00:36:13]file doc_00166514 [00:36:13]remove file /storage/0536/doc_00166514 [00:36:13]file doc_00166515 [00:36:13]remove file /storage/0536/doc_00166515 [00:36:13]file doc_00166516 [00:36:13]remove file /storage/0536/doc_00166516 [00:36:13]file doc_00166517 [00:36:13]remove file /storage/0536/doc_00166517 [00:36:13]file doc_00166518 [00:36:13]remove file /storage/0536/doc_00166518 [00:36:13]file doc_00166519 [00:36:13]remove file /storage/0536/doc_00166519 [00:36:13]file doc_00166520 [00:36:13]remove file /storage/0536/doc_00166520 [00:36:13]file doc_00166521 [00:36:13]remove file /storage/0536/doc_00166521 [00:36:13]file doc_00166522 [00:36:13]remove file /storage/0536/doc_00166522 [00:36:13]file doc_00166523 [00:36:13]remove file /storage/0536/doc_00166523 [00:36:13]file doc_00166524 [00:36:13]remove file /storage/0536/doc_00166524 [00:36:13]file doc_00166525 [00:36:13]remove file /storage/0536/doc_00166525 [00:36:13]file doc_00166526 [00:36:13]remove file /storage/0536/doc_00166526 [00:36:13]file doc_00166527 [00:36:13]remove file /storage/0536/doc_00166527 [00:36:13]file doc_00166528 [00:36:13]remove file /storage/0536/doc_00166528 [00:36:13]file doc_00166529 [00:36:13]remove file /storage/0536/doc_00166529 [00:36:13]file doc_00166530 [00:36:13]remove file /storage/0536/doc_00166530 [00:36:13]file doc_00166531 [00:36:13]remove file /storage/0536/doc_00166531 [00:36:13]file doc_00166532 [00:36:13]remove file /storage/0536/doc_00166532 [00:36:13]file doc_00166533 [00:36:13]remove file /storage/0536/doc_00166533 [00:36:13]file doc_00166534 [00:36:13]remove file /storage/0536/doc_00166534 [00:36:13]file doc_00166535 [00:36:13]remove file /storage/0536/doc_00166535 [00:36:13]file doc_00166536 [00:36:13]remove file /storage/0536/doc_00166536 [00:36:13]file doc_00166537 [00:36:13]remove file /storage/0536/doc_00166537 [00:36:13]file doc_00166538 [00:36:13]remove file /storage/0536/doc_00166538 [00:36:13]file doc_00166539 [00:36:13]remove file /storage/0536/doc_00166539 [00:36:13]file doc_00166540 [00:36:13]remove file /storage/0536/doc_00166540 [00:36:13]file doc_00166541 [00:36:13]remove file /storage/0536/doc_00166541 [00:36:13]file doc_00166542 [00:36:13]remove file /storage/0536/doc_00166542 [00:36:13]file doc_00166543 [00:36:13]remove file /storage/0536/doc_00166543 [00:36:13]file doc_00166544 [00:36:13]remove file /storage/0536/doc_00166544 [00:36:13]file doc_00166545 [00:36:13]remove file /storage/0536/doc_00166545 [00:36:13]file doc_00166546 [00:36:13]remove file /storage/0536/doc_00166546 [00:36:13]file doc_00166547 [00:36:13]remove file /storage/0536/doc_00166547 [00:36:13]file doc_00166548 [00:36:13]remove file /storage/0536/doc_00166548 [00:36:13]file doc_00166549 [00:36:13]remove file /storage/0536/doc_00166549 [00:36:13]file doc_00166550 [00:36:13]remove file /storage/0536/doc_00166550 [00:36:13]file doc_00166551 [00:36:13]remove file /storage/0536/doc_00166551 [00:36:13]file doc_00166552 [00:36:13]remove file /storage/0536/doc_00166552 [00:36:13]file doc_00166553 [00:36:13]remove file /storage/0536/doc_00166553 [00:36:13]file doc_00166554 [00:36:13]remove file /storage/0536/doc_00166554 [00:36:13]file doc_00166555 [00:36:13]remove file /storage/0536/doc_00166555 [00:36:13]file doc_00166556 [00:36:13]remove file /storage/0536/doc_00166556 [00:36:13]file doc_00166557 [00:36:13]remove file /storage/0536/doc_00166557 [00:36:13]file doc_00166558 [00:36:13]remove file /storage/0536/doc_00166558 [00:36:13]file doc_00166559 [00:36:13]remove file /storage/0536/doc_00166559 [00:36:13]file doc_00166560 [00:36:13]remove file /storage/0536/doc_00166560 [00:36:13]file doc_00166561 [00:36:13]remove file /storage/0536/doc_00166561 [00:36:13]file doc_00166562 [00:36:13]remove file /storage/0536/doc_00166562 [00:36:13]file doc_00166563 [00:36:13]remove file /storage/0536/doc_00166563 [00:36:13]file doc_00166564 [00:36:13]remove file /storage/0536/doc_00166564 [00:36:13]file doc_00166565 [00:36:13]remove file /storage/0536/doc_00166565 [00:36:13]file doc_00166566 [00:36:13]remove file /storage/0536/doc_00166566 [00:36:13]file doc_00166567 [00:36:13]remove file /storage/0536/doc_00166567 [00:36:13]file doc_00166568 [00:36:13]remove file /storage/0536/doc_00166568 [00:36:13]file doc_00166569 [00:36:13]remove file /storage/0536/doc_00166569 [00:36:13]file doc_00166570 [00:36:13]remove file /storage/0536/doc_00166570 [00:36:13]file doc_00166571 [00:36:13]remove file /storage/0536/doc_00166571 [00:36:13]file doc_00166572 [00:36:13]remove file /storage/0536/doc_00166572 [00:36:13]file doc_00166573 [00:36:13]remove file /storage/0536/doc_00166573 [00:36:13]file doc_00166574 [00:36:13]remove file /storage/0536/doc_00166574 [00:36:13]file doc_00166575 [00:36:13]remove file /storage/0536/doc_00166575 [00:36:13]file doc_00166576 [00:36:13]remove file /storage/0536/doc_00166576 [00:36:13]file doc_00166577 [00:36:13]remove file /storage/0536/doc_00166577 [00:36:13]file doc_00166578 [00:36:13]remove file /storage/0536/doc_00166578 [00:36:13]file doc_00166579 [00:36:13]remove file /storage/0536/doc_00166579 [00:36:13]file doc_00166580 [00:36:13]remove file /storage/0536/doc_00166580 [00:36:13]file doc_00166581 [00:36:13]remove file /storage/0536/doc_00166581 [00:36:13]file doc_00166582 [00:36:13]remove file /storage/0536/doc_00166582 [00:36:13]file doc_00166583 [00:36:13]remove file /storage/0536/doc_00166583 [00:36:13]file doc_00166584 [00:36:13]remove file /storage/0536/doc_00166584 [00:36:13]remove dir /storage/0536 [00:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:36:13]tlvbuf is 012225D0 [00:36:13]SAM_PROTO_ClearQueue [00:36:13]wFMCommunicate request_size=4 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 09 00 00 [00:36:13]Write to MH i2c: E2 08 00 3C 1E 80 09 00 00 00 00 00 00 CC [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [00:36:13]RAPDU: 90 00 [00:36:13]wFMCommunicate OK [00:36:13]SAM_PROTO_ClearQueue done [00:36:13]KKMCreateOFDPacket [00:36:13]OFDProtocolAddRootSTLVToBuf [00:36:13]FM_MakeSignedData [00:36:13]FM_MakeSignedData [00:36:13]SAM_PROTO_SignData [00:36:13]wFMCommunicate request_size=4 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 0D 01 02 [00:36:13]Write to MH i2c: E2 08 00 3D 1E 80 0D 01 02 00 00 00 00 D4 [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [00:36:13]RAPDU: 90 00 [00:36:13]wFMCommunicate OK [00:36:13]wFMCommunicate request_size=255 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 0D 02 02 FA 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FC 44 18 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 [00:36:13]Write to MH i2c: E2 02 01 3E 1E 80 0D 02 02 FA 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FC 44 18 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 00 00 29 [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [00:36:13]RAPDU: 90 00 [00:36:13]wFMCommunicate OK [00:36:13]wFMCommunicate request_size=16 [00:36:13]MH_SAM_APDU [00:36:13]CAPDU: 80 0D 02 02 0B 39 35 04 06 00 6F A0 C2 FA 01 B0 [00:36:13]Write to MH i2c: E2 13 00 3F 1E 80 0D 02 02 0B 00 39 35 04 06 00 6F A0 C2 FA 01 B0 00 00 E1 [00:36:13]Write i2c OK [00:36:13]MH_I2C_Read... [00:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:13]Read from MH i2c: E2 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 [00:36:13]MH_I2C_Read... [00:36:13]Read from MH i2c: E2 03 00 3F 1E 00 90 00 D1 [00:36:13]RAPDU: 90 00 [00:36:14]wFMCommunicate OK [00:36:14]wFMCommunicate request_size=4 [00:36:14]MH_SAM_APDU [00:36:14]CAPDU: 80 0D 03 02 [00:36:14]Write to MH i2c: E2 08 00 40 1E 80 0D 03 02 00 00 00 00 D9 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:14]Read from MH i2c: E2 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 0B 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 0B 00 40 1E 00 77 D6 76 24 28 03 CD 52 90 00 0B [00:36:14]RAPDU: 77 D6 76 24 28 03 CD 52 90 00 [00:36:14]wFMCommunicate OK [00:36:14]SAM_PROTO_SignData done [00:36:14]FM_MakeSignedData done [00:36:14]CreateOFDProtocolMessage [00:36:14]wFMCommunicate request_size=4 [00:36:14]MH_SAM_APDU [00:36:14]CAPDU: 80 11 00 00 [00:36:14]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:14]Read from MH i2c: E2 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 17 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [00:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:36:14]wFMCommunicate OK [00:36:14]CreateOFDProtocolMessage done [00:36:14]OFDSenderStorePacket 166585 [00:36:14]StoreOFDPacket docnum=166585 [00:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 15 01 00 00 0F 80 0D 01 55 8D 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FC 44 18 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 6F A0 C2 FA 01 B0 77 D6 76 24 28 03 CD 52 [00:36:14]CheckFolder [00:36:14]dirname=/storage/ofd_packets [00:36:14]CheckFolder done [00:36:14]ProducePacketName [00:36:14]name=ofd_packets/00166585 [00:36:14]NVStorageSaveData ofd_packets/00166585 [00:36:14]File name is /storage/ofd_packets/00166585 [00:36:14]Write 307 bytes [00:36:14]NVStorageSaveData done [00:36:14]OFDSenderStorePacket done [00:36:14]KKMCreateOFDPacket done [00:36:14]NVStorageSaveData kkm_last_timestamp [00:36:14]File name is /storage/kkm_last_timestamp [00:36:14]Write 4 bytes [00:36:14]NVStorageSaveData done [00:36:14]ExternCall_PrintAddStr [00:36:14]wPrintStart [00:36:14]Write to MH i2c: 01 00 00 42 1E 60 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 07 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [00:36:14]RasterBufferAndPrint [00:36:14]line Отчет об открытии смены [00:36:14]line ФФД: 1.0 [00:36:14]line ИНН: 02508201610067 [00:36:14]line Кассир: Алыкулова К. [00:36:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:36:14]line Место: АЗС № 161 "Партнер Нефть" [00:36:14]line 23.10.2024 00:36 [00:36:14]line Смена: 537 [00:36:14]line РНМ: 0000000000091764 [00:36:14]line ЗНМ: 0300000104 [00:36:14]line ФД: 166585 [00:36:14]line ФМ: 0000000000871759 [00:36:14]line ФПД: 122736256614832 [00:36:14]written 0, free lines is 4095 [00:36:14]OFD Sender: Processing packet 166585 [packets to send 48, broken 47] [00:36:14]ProducePacketName [00:36:14]name=ofd_packets/00166585 [00:36:14]OFD Sender: To server: pG, [00:36:14]CommunicateWithHost lk.salyk.kg:30040 [00:36:14]ConnectInit lk.salyk.kg [00:36:14]Connected sock=10 [00:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 15 01 00 00 0F 80 0D 01 55 8D 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FC 44 18 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 6F A0 C2 FA 01 B0 77 D6 76 24 28 03 CD 52 [00:36:14]Write to MH i2c: 01 00 00 54 1E 72 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 07 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: 01 07 00 54 1E 00 00 00 00 00 B3 0E 3A [00:36:14]RasterBufferAndPrint [00:36:14]line [00:36:14]line [00:36:14]line [00:36:14]line [00:36:14]line [00:36:14]written 0, free lines is 3778 [00:36:14]MH_Cut [00:36:14]Write to MH i2c: D1 01 00 5B 1E 01 4B [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: D1 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: D1 01 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: D1 01 00 5B 1E 00 4A [00:36:14]Write to MH i2c: 01 00 00 5C 1E 7A [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 0A 47 00 8B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 8A 02 00 F4 03 04 00 67 EB 17 67 B6 04 01 00 00 74 28 BE 41 FF C6 D9 AF [00:36:14]CommunicateWithHost err = 0 [00:36:14]CheckOFDResponse [00:36:14]1017 (14) - 77093643461234 [00:36:14]1041 (16) - 0000000000871759 [00:36:14]1040 (4) - 166585 [00:36:14]1012 (4) - 22.10.2024 18:13 [00:36:14]1206 (1) - 0 [00:36:14]OFD Sender: Remove packet 166585 [00:36:14]ProducePacketName [00:36:14]name=ofd_packets/00166585 [00:36:14]NVStorageDeleteData [00:36:14]*** Cut start [00:36:14]*** Partial cut [00:36:14]*** CUTSNS_PIN = 1 [00:36:14]*** CUTSNS_PIN = 0 [00:36:15]OFD Sender: No OFD packet to send [00:36:15]*** Brake cut motor [00:36:15]Read from MH i2c: 01 [00:36:15]MH_I2C_Read... [00:36:15]*** Stop cut motor [00:36:15]*** Cut end [00:36:15]Read from MH i2c: 01 07 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 FF 0F 8F [00:36:15]process_action open_shift done [00:36:15]requested_data is exist [00:36:15]produce_requested_data [00:36:15]requested_item fd.num is exist - process it [00:36:15]SAM_PROTO_GetFieldsCounters [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 13 00 00 [00:36:15]Write to MH i2c: E2 08 00 5D 1E 80 13 00 00 00 00 00 00 F7 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 62 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 62 00 5D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:15]wFMCommunicate OK [00:36:15]SAM_PROTO_GetFieldsCounters done [00:36:15]requested_item shift.num is exist - process it [00:36:15]requested_item shift.opened is exist - process it [00:36:15]req_shift_opened [00:36:15]FM_GetShiftState [00:36:15]SAM_PROTO_GetShiftState [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 13 01 00 [00:36:15]Write to MH i2c: E2 08 00 5E 1E 80 13 01 00 00 00 00 00 F9 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 0E 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 0E 00 5E 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C4 [00:36:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:36:15]wFMCommunicate OK [00:36:15]SAM_PROTO_GetShiftState done [00:36:15]FM_GetShiftState done [00:36:15]req_shift_opened done [00:36:15]requested_item shift.open_date is exist - process it [00:36:15]req_shift_open_date [00:36:15]req_shift_open_date done [00:36:15]produce_requested_data done [00:36:15]produce_requested_data return {"fd.num":166585,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:36:15]process_action_free open_shift [00:36:15]json_value_free [00:36:15]json_value_free done [00:36:15]process_json_proto returns [00:36:15]Send response to host [00:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166585,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:36:15]free response buf [00:36:15]execute_script done [00:36:15]execute_script returns [00:36:15]free content buf [00:36:15]Sock 9.Close socket [00:36:15]Sock 9.Thread stoped [00:36:15]accept exits with 7 [00:36:15]New connection [00:36:15]New thread 3067632996 created [00:36:15]Thread 3067489636 joined [00:36:15]Waiting for new connection... [00:36:15] Sock 7.Parse request [00:36:15]Sock 7.Check first char [00:36:15]Sock 7.First char is OK [00:36:15]request: POST /json_proto HTTP/1.0 [00:36:15]Method: POST [00:36:15]URL: /json_proto [00:36:15]Method is POST - this is cgi request [00:36:15]url: /json_proto [00:36:15]query_string will be loaded in cgi processing [00:36:15]execute_cgi json_proto POST (null) [00:36:15]execute_cgi path=json_proto method=POST [00:36:15]POST find Content-Length [00:36:15]Host: 172.17.53.195:8080 [00:36:15]Content-Length: 331 [00:36:15]Content-Type: application/json [00:36:15] [00:36:15]POST finish read [00:36:15]Found Content-Length = 331 [00:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:15]execute_script... [00:36:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:15]POST & json_proto [00:36:15]process_json_proto [00:36:15]json parsed OK: [00:36:15]protocol is kg_v1.0 [00:36:15]action value=get_value [00:36:15]process_action get_value [00:36:15]cmd_get_value [00:36:15]process_action get_value done [00:36:15]requested_data is exist [00:36:15]produce_requested_data [00:36:15]requested_item fm.sale.total is exist - process it [00:36:15]SAM_PROTO_GetFMData [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 13 03 00 [00:36:15]Write to MH i2c: E2 08 00 5F 1E 80 13 03 00 00 00 00 00 FC [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 [00:36:16]MH_I2C_Read... [00:36:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:16]Read from MH i2c: E2 FD 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 FD 00 5F 1E 00 C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 B0 [00:36:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 86 02 00 69 04 A3 00 6F 04 04 00 88 85 02 00 B1 04 05 00 8E 3A 5C B4 03 70 04 05 00 9C 18 5A 2A 03 72 04 04 00 F2 21 02 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 DF C0 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C 4F 65 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:36:16]wFMCommunicate OK [00:36:16]wFMCommunicate request_size=4 [00:36:16]MH_SAM_APDU [00:36:16]CAPDU: 80 17 00 00 [00:36:16]Write to MH i2c: E2 08 00 60 1E 80 17 00 00 00 00 00 00 FE [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:16]Read from MH i2c: E2 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 FD 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 FD 00 60 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 CA [00:36:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:36:16]wFMCommunicate OK [00:36:16]wFMCommunicate request_size=4 [00:36:16]MH_SAM_APDU [00:36:16]CAPDU: 80 17 00 00 [00:36:16]Write to MH i2c: E2 08 00 61 1E 80 17 00 00 00 00 00 00 FF [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 FD 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 FD 00 61 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 11 [00:36:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:36:17]wFMCommunicate OK [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 17 00 00 [00:36:17]Write to MH i2c: E2 08 00 62 1E 80 17 00 00 00 00 00 00 00 [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:17]Read from MH i2c: E2 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 FD 00 [00:36:17]MH_I2C_Read... [00:36:17]Read from MH i2c: E2 FD 00 62 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8C [00:36:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:36:17]wFMCommunicate OK [00:36:17]wFMCommunicate request_size=4 [00:36:17]MH_SAM_APDU [00:36:17]CAPDU: 80 17 00 00 [00:36:17]Write to MH i2c: E2 08 00 63 1E 80 17 00 00 00 00 00 00 01 [00:36:17]Write i2c OK [00:36:17]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 E2 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 E2 00 63 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:36:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:18]wFMCommunicate OK [00:36:18]SAM_PROTO_GetFMData done [00:36:18]requested_item fm.sale_refund.total is exist - process it [00:36:18]requested_item fm.buy.total is exist - process it [00:36:18]requested_item shift.sale.total is exist - process it [00:36:18]SAM_PROTO_GetShiftData [00:36:18]wFMCommunicate request_size=4 [00:36:18]MH_SAM_APDU [00:36:18]CAPDU: 80 13 02 00 [00:36:18]Write to MH i2c: E2 08 00 64 1E 80 13 02 00 00 00 00 00 00 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 FD 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 FD 00 64 1E 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 73 [00:36:18]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:36:18]wFMCommunicate OK [00:36:18]wFMCommunicate request_size=4 [00:36:18]MH_SAM_APDU [00:36:18]CAPDU: 80 17 00 00 [00:36:18]Write to MH i2c: E2 08 00 65 1E 80 17 00 00 00 00 00 00 03 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 FD 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 FD 00 65 1E 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 0B [00:36:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:36:19]wFMCommunicate OK [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 17 00 00 [00:36:19]Write to MH i2c: E2 08 00 66 1E 80 17 00 00 00 00 00 00 04 [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 FD 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 FD 00 66 1E 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 D6 [00:36:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:36:19]wFMCommunicate OK [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 17 00 00 [00:36:19]Write to MH i2c: E2 08 00 67 1E 80 17 00 00 00 00 00 00 05 [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 FD 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 FD 00 67 1E 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 77 [00:36:20]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 OFD Sender: No OFD packet to send [00:36:20]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:36:20]wFMCommunicate OK [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 17 00 00 [00:36:20]Write to MH i2c: E2 08 00 68 1E 80 17 00 00 00 00 00 00 06 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 BD 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 BD 00 68 1E 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:36:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:20]wFMCommunicate OK [00:36:20]SAM_PROTO_GetShiftData done [00:36:20]requested_item shift.sale.total_cash is exist - process it [00:36:20]requested_item shift.sale_refund.total is exist - process it [00:36:20]requested_item shift.sale_refund.total_cash is exist - process it [00:36:20]requested_item shift.buy.total is exist - process it [00:36:20]requested_item shift.buy.total_cash is exist - process it [00:36:20]produce_requested_data done [00:36:20]produce_requested_data return {"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:20]process_action_free get_value [00:36:20]json_value_free [00:36:20]json_value_free done [00:36:20]process_json_proto returns [00:36:20]Send response to host [00:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159108450.70,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:20]free response buf [00:36:20]execute_script done [00:36:20]execute_script returns [00:36:20]free content buf [00:36:20]Sock 7.Close socket [00:36:20]Sock 7.Thread stoped [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:03]accept exits with 9 [00:37:03]New connection [00:37:03]New thread 3067489636 created [00:37:03]Thread 3067632996 joined [00:37:03]Waiting for new connection... [00:37:03] Sock 9.Parse request [00:37:03]Sock 9.Check first char [00:37:03]Sock 9.First char is OK [00:37:03]request: POST /json_proto HTTP/1.0 [00:37:03]Method: POST [00:37:03]URL: /json_proto [00:37:03]Method is POST - this is cgi request [00:37:03]url: /json_proto [00:37:03]query_string will be loaded in cgi processing [00:37:03]execute_cgi json_proto POST (null) [00:37:03]execute_cgi path=json_proto method=POST [00:37:03]POST find Content-Length [00:37:03]Host: 172.17.53.195:8080 [00:37:03]Content-Length: 677 [00:37:03]Content-Type: application/json [00:37:03] [00:37:03]POST finish read [00:37:03]Found Content-Length = 677 [00:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:03]execute_script... [00:37:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:03]POST & json_proto [00:37:03]process_json_proto [00:37:03]json parsed OK: [00:37:03]protocol is kg_v1.0 [00:37:03]action value=close_receipt [00:37:03]process_action close_receipt [00:37:03]cmd_close_receipt [00:37:03]MH_GetDate [00:37:03]Write to MH i2c: F0 00 00 69 1E 76 [00:37:03]Write i2c OK [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: F0 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: F0 09 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: F0 09 00 69 1E 00 31 45 18 67 21 48 4A 65 8C [00:37:03]GetLastDocTimeStamp 1729643772 [00:37:03]current date 1729643825 [00:37:03]FM_GetShiftState [00:37:03]SAM_PROTO_GetShiftState [00:37:03]wFMCommunicate request_size=4 [00:37:03]MH_SAM_APDU [00:37:03]CAPDU: 80 13 01 00 [00:37:03]Write to MH i2c: E2 08 00 6A 1E 80 13 01 00 00 00 00 00 05 [00:37:03]Write i2c OK [00:37:03]MH_I2C_Read... [00:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:03]Read from MH i2c: E2 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 0E 00 [00:37:03]MH_I2C_Read... [00:37:03]Read from MH i2c: E2 0E 00 6A 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D0 [00:37:03]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:37:03]wFMCommunicate OK [00:37:03]SAM_PROTO_GetShiftState done [00:37:03]FM_GetShiftState done [00:37:03]opened in 1729643772 [00:37:03]opened+sec_in_day 1729730172 [00:37:03]quantity*price = 40006 [00:37:03]sum+1 = 40007 [00:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 1 23.10.2024 00:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166586 ФПД: 249378668109799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166586&fm=249378668109799&tin=02508201610067®Number=0000000000091764&sum=40000 [00:37:04]StoreToDocumentArchive [00:37:04]shift 537 fd 166586 [00:37:04]save to /storage/0537/doc_00166586 [00:37:04]save last doc name /storage/0537/doc_00166586 to /storage/kkm_last_doc_name [00:37:04]save OK [00:37:04]Clear old archive folders... [00:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:04]tlvbuf is 01275B80 [00:37:04]SAM_PROTO_ClearQueue [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 09 00 00 [00:37:04]Write to MH i2c: E2 08 00 77 1E 80 09 00 00 00 00 00 00 07 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]SAM_PROTO_ClearQueue done [00:37:04]KKMCreateOFDPacket [00:37:04]OFDProtocolAddRootSTLVToBuf [00:37:04]FM_MakeSignedData [00:37:04]FM_MakeSignedData [00:37:04]SAM_PROTO_SignData [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 01 02 [00:37:04]Write to MH i2c: E2 08 00 78 1E 80 0D 01 02 00 00 00 00 0F [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]wFMCommunicate request_size=255 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 31 45 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8A 02 00 35 04 06 00 E2 [00:37:04]Write to MH i2c: E2 02 01 79 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 31 45 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8A 02 00 35 04 06 00 E2 00 00 AD [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:05]Read from MH i2c: E2 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 03 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [00:37:05]RAPDU: 90 00 [00:37:05]wFMCommunicate OK [00:37:05]wFMCommunicate request_size=10 [00:37:05]MH_SAM_APDU [00:37:05]CAPDU: 80 0D 02 02 05 CE FE ED 5F E7 [00:37:05]Write to MH i2c: E2 0D 00 7A 1E 80 0D 02 02 05 00 CE FE ED 5F E7 00 00 1B [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:05]Read from MH i2c: E2 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 03 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 03 00 7A 1E 00 90 00 0C [00:37:05]RAPDU: 90 00 [00:37:05]wFMCommunicate OK [00:37:05]wFMCommunicate request_size=4 [00:37:05]MH_SAM_APDU [00:37:05]CAPDU: 80 0D 03 02 [00:37:05]Write to MH i2c: E2 08 00 7B 1E 80 0D 03 02 00 00 00 00 14 [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:05]Read from MH i2c: E2 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 0B 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 0B 00 7B 1E 00 AC 3D 16 93 29 21 E2 C0 90 00 93 [00:37:05]RAPDU: AC 3D 16 93 29 21 E2 C0 90 00 [00:37:05]wFMCommunicate OK [00:37:05]SAM_PROTO_SignData done [00:37:05]FM_MakeSignedData done [00:37:05]CreateOFDProtocolMessage [00:37:05]wFMCommunicate request_size=4 [00:37:05]MH_SAM_APDU [00:37:05]CAPDU: 80 11 00 00 [00:37:05]Write to MH i2c: E2 08 00 7C 1E 80 11 00 00 00 00 00 00 14 [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:05]Read from MH i2c: E2 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 17 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: E2 17 00 7C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [00:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:37:05]wFMCommunicate OK [00:37:05]CreateOFDProtocolMessage done [00:37:05]OFDSenderStorePacket 166586 [00:37:05]StoreOFDPacket docnum=166586 [00:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 63 07 01 89 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 31 45 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8A 02 00 35 04 06 00 E2 CE FE ED 5F E7 AC 3D 16 93 29 21 E2 C0 [00:37:05]CheckFolder [00:37:05]dirname=/storage/ofd_packets [00:37:05]CheckFolder done [00:37:05]ProducePacketName [00:37:05]name=ofd_packets/00166586 [00:37:05]NVStorageSaveData ofd_packets/00166586 [00:37:05]File name is /storage/ofd_packets/00166586 [00:37:05]Write 301 bytes [00:37:05]NVStorageSaveData done [00:37:05]OFDSenderStorePacket done [00:37:05]KKMCreateOFDPacket done [00:37:05]NVStorageSaveData kkm_last_timestamp [00:37:05]File name is /storage/kkm_last_timestamp [00:37:05]Write 4 bytes [00:37:05]NVStorageSaveData done [00:37:05]ExternCall_PrintAddStr [00:37:05]wPrintStart [00:37:05]Write to MH i2c: 01 00 00 7D 1E 9B [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 07 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FF 0F B0 [00:37:05]RasterBufferAndPrint [00:37:05]line Счет N : (1)221166 [00:37:05]line ИНН: 02508201610067 [00:37:05]line Контрольно-Кассовый Чек [00:37:05]line ПРОДАЖА [00:37:05]line ТРК (МРК, ГНК) : 23 [00:37:05]line Товар: 2710124130 [00:37:05]line Аи-92-К-5 [00:37:05]line 5.980 * 66.90 [00:37:05]line = 400.06 [00:37:05]line НДС 12% НСП 1% [00:37:05]line > о реализуемом товаре [00:37:05]line ОКРУГЛЕНИЕ: -0.06 [00:37:05]line ИТОГО: 400.00 [00:37:05]line Внесено: 400.00 [00:37:05]line СДАЧА: 0.00 [00:37:05]line НСП 1% : 3.54 [00:37:05]line НДС 12% : 42.48 [00:37:05]line Наличными: 400.00 [00:37:05]line Безнал.: 0.00 [00:37:05]line Место: АЗС № 161 "Партнер Нефть" [00:37:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:37:05]line СНО: Общий режим [00:37:05]line Чек 1 23.10.2024 00:37 [00:37:05]line Смена: 537 ФФД: 1.0 [00:37:05]line ЗНМ: 0300000104 [00:37:05]line РНМ: 0000000000091764 [00:37:05]line Версия ККМ: 001 [00:37:05]line ФМ: 0000000000871759 [00:37:05]line ФД: 166586 [00:37:05]line ФПД: 249378668109799 [00:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166586&fm=249378668109799&tin=02508201610067®Number=0000000000091764&sum=40000 [00:37:05]OFD Sender: Processing packet 166586 [packets to send 48, broken 47] [00:37:05]ProducePacketName [00:37:05]name=ofd_packets/00166586 [00:37:05]OFD Sender: To server: pG, [00:37:05]CommunicateWithHost lk.salyk.kg:30040 [00:37:05]ConnectInit lk.salyk.kg [00:37:05]written 0, free lines is 4095 [00:37:05]Connected sock=10 [00:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 99 63 07 01 89 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 31 45 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8A 02 00 35 04 06 00 E2 CE FE ED 5F E7 AC 3D 16 93 29 21 E2 C0 [00:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 63 18 47 00 1D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 8A 02 00 F4 03 04 00 9B EB 17 67 B6 04 01 00 00 56 3C D6 4A D8 04 89 EB [00:37:05]CommunicateWithHost err = 0 [00:37:05]CheckOFDResponse [00:37:05]1017 (14) - 77093643461234 [00:37:05]1041 (16) - 0000000000871759 [00:37:05]1040 (4) - 166586 [00:37:05]1012 (4) - 22.10.2024 18:14 [00:37:05]1206 (1) - 0 [00:37:05]OFD Sender: Remove packet 166586 [00:37:05]ProducePacketName [00:37:05]name=ofd_packets/00166586 [00:37:05]NVStorageDeleteData [00:37:06]Write to MH i2c: 01 00 00 A8 1E C6 [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: 01 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: 01 07 00 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 AA 0C 83 [00:37:06]RasterBufferAndPrint [00:37:06]line [00:37:06]line [00:37:06]line [00:37:06]line [00:37:06]line [00:37:06]written 0, free lines is 3248 [00:37:06]MH_Cut [00:37:06]Write to MH i2c: D1 01 00 AF 1E 01 9F [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: D1 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: D1 01 00 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: D1 01 00 AF 1E 00 9E [00:37:06]Write to MH i2c: 01 00 00 B0 1E CE [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:06]OFD Sender: No OFD packet to send [00:37:06]*** Cut start [00:37:06]*** Partial cut [00:37:06]*** CUTSNS_PIN = 1 [00:37:06]*** CUTSNS_PIN = 0 [00:37:07]*** Brake cut motor [00:37:07]Read from MH i2c: 01 [00:37:07]MH_I2C_Read... [00:37:07]*** Stop cut motor [00:37:07]*** Cut end [00:37:07]Read from MH i2c: 01 07 00 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 FF 0F E3 [00:37:07]process_action close_receipt done [00:37:07]requested_data is exist [00:37:07]produce_requested_data [00:37:07]requested_item fm.sn is exist - process it [00:37:07]wFMCommunicate request_size=4 [00:37:07]MH_SAM_APDU [00:37:07]CAPDU: 80 11 00 00 [00:37:07]Write to MH i2c: E2 08 00 B1 1E 80 11 00 00 00 00 00 00 49 [00:37:07]Write i2c OK [00:37:07]MH_I2C_Read... [00:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:07]Read from MH i2c: E2 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 17 00 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 17 00 B1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [00:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:37:07]wFMCommunicate OK [00:37:07]requested_item fd.num is exist - process it [00:37:07]SAM_PROTO_GetFieldsCounters [00:37:07]wFMCommunicate request_size=4 [00:37:07]MH_SAM_APDU [00:37:07]CAPDU: 80 13 00 00 [00:37:07]Write to MH i2c: E2 08 00 B2 1E 80 13 00 00 00 00 00 00 4C [00:37:07]Write i2c OK [00:37:07]MH_I2C_Read... [00:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:07]Read from MH i2c: E2 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 62 00 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 62 00 B2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:07]wFMCommunicate OK [00:37:07]SAM_PROTO_GetFieldsCounters done [00:37:07]requested_item shift.num is exist - process it [00:37:07]requested_item shift.opened is exist - process it [00:37:07]req_shift_opened [00:37:07]FM_GetShiftState [00:37:07]SAM_PROTO_GetShiftState [00:37:07]wFMCommunicate request_size=4 [00:37:07]MH_SAM_APDU [00:37:07]CAPDU: 80 13 01 00 [00:37:07]Write to MH i2c: E2 08 00 B3 1E 80 13 01 00 00 00 00 00 4E [00:37:07]Write i2c OK [00:37:07]MH_I2C_Read... [00:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:07]Read from MH i2c: E2 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 0E 00 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 0E 00 B3 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 19 [00:37:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:37:07]wFMCommunicate OK [00:37:07]SAM_PROTO_GetShiftState done [00:37:07]FM_GetShiftState done [00:37:07]req_shift_opened done [00:37:07]requested_item shift.open_date is exist - process it [00:37:07]req_shift_open_date [00:37:07]req_shift_open_date done [00:37:07]produce_requested_data done [00:37:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166586,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:37:07]process_action_free close_receipt [00:37:07]json_value_free [00:37:07]json_value_free done [00:37:07]process_json_proto returns [00:37:07]Send response to host [00:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166586,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:37:07]free response buf [00:37:07]execute_script done [00:37:07]execute_script returns [00:37:07]free content buf [00:37:07]Sock 9.Close socket [00:37:07]Sock 9.Thread stoped [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:28]accept exits with 7 [00:44:28]New connection [00:44:28]New thread 3067632996 created [00:44:28]Thread 3067489636 joined [00:44:28]Waiting for new connection... [00:44:28] Sock 7.Parse request [00:44:28]Sock 7.Check first char [00:44:28]Sock 7.First char is OK [00:44:28]request: POST /json_proto HTTP/1.0 [00:44:28]Method: POST [00:44:28]URL: /json_proto [00:44:28]Method is POST - this is cgi request [00:44:28]url: /json_proto [00:44:28]query_string will be loaded in cgi processing [00:44:28]execute_cgi json_proto POST (null) [00:44:28]execute_cgi path=json_proto method=POST [00:44:28]POST find Content-Length [00:44:28]Host: 172.17.53.195:8080 [00:44:28]Content-Length: 682 [00:44:28]Content-Type: application/json [00:44:28] [00:44:28]POST finish read [00:44:28]Found Content-Length = 682 [00:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:28]execute_script... [00:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:28]POST & json_proto [00:44:28]process_json_proto [00:44:28]json parsed OK: [00:44:28]protocol is kg_v1.0 [00:44:28]action value=close_receipt [00:44:28]process_action close_receipt [00:44:28]cmd_close_receipt [00:44:28]MH_GetDate [00:44:28]Write to MH i2c: F0 00 00 B4 1E C1 [00:44:28]Write i2c OK [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 09 00 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 09 00 B4 1E 00 EE 46 18 67 21 48 4A 65 95 [00:44:28]GetLastDocTimeStamp 1729643825 [00:44:28]current date 1729644270 [00:44:28]FM_GetShiftState [00:44:28]SAM_PROTO_GetShiftState [00:44:28]wFMCommunicate request_size=4 [00:44:28]MH_SAM_APDU [00:44:28]CAPDU: 80 13 01 00 [00:44:28]Write to MH i2c: E2 08 00 B5 1E 80 13 01 00 00 00 00 00 50 [00:44:28]Write i2c OK [00:44:28]MH_I2C_Read... [00:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:28]Read from MH i2c: E2 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: E2 0E 00 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: E2 0E 00 B5 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 1B [00:44:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:44:28]wFMCommunicate OK [00:44:28]SAM_PROTO_GetShiftState done [00:44:28]FM_GetShiftState done [00:44:28]opened in 1729643772 [00:44:28]opened+sec_in_day 1729730172 [00:44:28]quantity*price = 180009 [00:44:28]sum+1 = 180010 [00:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 2 23.10.2024 00:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166587 ФПД: 184552366259060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166587&fm=184552366259060&tin=02508201610067®Number=0000000000091764&sum=180000 [00:44:29]StoreToDocumentArchive [00:44:29]shift 537 fd 166587 [00:44:29]save to /storage/0537/doc_00166587 [00:44:29]save last doc name /storage/0537/doc_00166587 to /storage/kkm_last_doc_name [00:44:29]save OK [00:44:29]Clear old archive folders... [00:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:29]tlvbuf is 0129B1F0 [00:44:29]SAM_PROTO_ClearQueue [00:44:29]wFMCommunicate request_size=4 [00:44:29]MH_SAM_APDU [00:44:29]CAPDU: 80 09 00 00 [00:44:29]Write to MH i2c: E2 08 00 C2 1E 80 09 00 00 00 00 00 00 52 [00:44:29]Write i2c OK [00:44:29]MH_I2C_Read... [00:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:29]Read from MH i2c: E2 [00:44:29]MH_I2C_Read... [00:44:29]Read from MH i2c: E2 03 00 [00:44:29]MH_I2C_Read... [00:44:29]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [00:44:29]RAPDU: 90 00 [00:44:29]wFMCommunicate OK [00:44:29]SAM_PROTO_ClearQueue done [00:44:29]KKMCreateOFDPacket [00:44:29]OFDProtocolAddRootSTLVToBuf [00:44:29]FM_MakeSignedData [00:44:29]FM_MakeSignedData [00:44:29]SAM_PROTO_SignData [00:44:29]wFMCommunicate request_size=4 [00:44:29]MH_SAM_APDU [00:44:29]CAPDU: 80 0D 01 02 [00:44:29]Write to MH i2c: E2 08 00 C3 1E 80 0D 01 02 00 00 00 00 5A [00:44:29]Write i2c OK [00:44:29]MH_I2C_Read... [00:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:29]Read from MH i2c: E2 [00:44:29]MH_I2C_Read... [00:44:29]Read from MH i2c: E2 03 00 [00:44:29]MH_I2C_Read... [00:44:29]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [00:44:29]RAPDU: 90 00 [00:44:29]wFMCommunicate OK [00:44:29]wFMCommunicate request_size=255 [00:44:29]MH_SAM_APDU [00:44:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 EE 46 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8A 02 00 35 04 06 00 A7 [00:44:30]Write to MH i2c: E2 02 01 C4 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 EE 46 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8A 02 00 35 04 06 00 A7 00 00 48 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]wFMCommunicate request_size=10 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 02 02 05 D9 72 3B BB 74 [00:44:30]Write to MH i2c: E2 0D 00 C5 1E 80 0D 02 02 05 00 D9 72 3B BB 74 00 00 1C [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 C5 1E 00 90 00 57 [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 03 02 [00:44:30]Write to MH i2c: E2 08 00 C6 1E 80 0D 03 02 00 00 00 00 5F [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 0B 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 0B 00 C6 1E 00 64 20 F6 E8 F1 32 5C 56 90 00 97 [00:44:30]RAPDU: 64 20 F6 E8 F1 32 5C 56 90 00 [00:44:30]wFMCommunicate OK [00:44:30]SAM_PROTO_SignData done [00:44:30]FM_MakeSignedData done [00:44:30]CreateOFDProtocolMessage [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 11 00 00 [00:44:30]Write to MH i2c: E2 08 00 C7 1E 80 11 00 00 00 00 00 00 5F [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 17 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 17 00 C7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [00:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:44:30]wFMCommunicate OK [00:44:30]CreateOFDProtocolMessage done [00:44:30]OFDSenderStorePacket 166587 [00:44:30]StoreOFDPacket docnum=166587 [00:44:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 21 07 01 86 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 EE 46 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8A 02 00 35 04 06 00 A7 D9 72 3B BB 74 64 20 F6 E8 F1 32 5C 56 [00:44:30]CheckFolder [00:44:30]dirname=/storage/ofd_packets [00:44:30]CheckFolder done [00:44:30]ProducePacketName [00:44:30]name=ofd_packets/00166587 [00:44:30]NVStorageSaveData ofd_packets/00166587 [00:44:30]File name is /storage/ofd_packets/00166587 [00:44:30]Write 301 bytes [00:44:30]NVStorageSaveData done [00:44:30]OFDSenderStorePacket done [00:44:30]KKMCreateOFDPacket done [00:44:30]NVStorageSaveData kkm_last_timestamp [00:44:30]File name is /storage/kkm_last_timestamp [00:44:30]Write 4 bytes [00:44:30]NVStorageSaveData done [00:44:30]ExternCall_PrintAddStr [00:44:30]wPrintStart [00:44:30]Write to MH i2c: 01 00 00 C8 1E E6 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 07 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 FF 0F FB [00:44:30]RasterBufferAndPrint [00:44:30]line Счет N : (1)221167 [00:44:30]line ИНН: 02508201610067 [00:44:30]line Контрольно-Кассовый Чек [00:44:30]line ПРОДАЖА [00:44:30]line ТРК (МРК, ГНК) : 24 [00:44:30]line Товар: 2710124500 [00:44:30]line Аи-95-К-5 [00:44:30]line 24.260 * 74.20 [00:44:30]line = 1800.09 [00:44:30]line НДС 12% НСП 1% [00:44:30]line > о реализуемом товаре [00:44:30]line ОКРУГЛЕНИЕ: -0.09 [00:44:30]line ИТОГО: 1800.00 [00:44:30]line Внесено: 1800.00 [00:44:30]line СДАЧА: 0.00 [00:44:30]line НСП 1% : 15.93 [00:44:30]line НДС 12% : 191.16 [00:44:30]line Наличными: 1800.00 [00:44:30]line Безнал.: 0.00 [00:44:30]line Место: АЗС № 161 "Партнер Нефть" [00:44:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:44:30]line СНО: Общий режим [00:44:30]line Чек 2 23.10.2024 00:44 [00:44:30]line Смена: 537 ФФД: 1.0 [00:44:30]line ЗНМ: 0300000104 [00:44:30]line РНМ: 0000000000091764 [00:44:30]line Версия ККМ: 001 [00:44:30]line ФМ: 0000000000871759 [00:44:30]line ФД: 166587 [00:44:30]line ФПД: 184552366259060 [00:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166587&fm=184552366259060&tin=02508201610067®Number=0000000000091764&sum=180000 [00:44:30]OFD Sender: Processing packet 166587 [packets to send 48, broken 47] [00:44:30]ProducePacketName [00:44:30]name=ofd_packets/00166587 [00:44:30]OFD Sender: To server: pG, [00:44:30]CommunicateWithHost lk.salyk.kg:30040 [00:44:30]ConnectInit lk.salyk.kg [00:44:30]written 0, free lines is 4095 [00:44:30]Connected sock=10 [00:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 21 07 01 86 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 EE 46 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8A 02 00 35 04 06 00 A7 D9 72 3B BB 74 64 20 F6 E8 F1 32 5C 56 [00:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A8 8F 47 00 06 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 8A 02 00 F4 03 04 00 58 ED 17 67 B6 04 01 00 00 7C 6B 4A 2F 28 23 8A 3B [00:44:31]CommunicateWithHost err = 0 [00:44:31]CheckOFDResponse [00:44:31]1017 (14) - 77093643461234 [00:44:31]1041 (16) - 0000000000871759 [00:44:31]1040 (4) - 166587 [00:44:31]1012 (4) - 22.10.2024 18:22 [00:44:31]1206 (1) - 0 [00:44:31]OFD Sender: Remove packet 166587 [00:44:31]ProducePacketName [00:44:31]name=ofd_packets/00166587 [00:44:31]NVStorageDeleteData [00:44:31]Write to MH i2c: 01 00 00 F3 1E 11 [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 07 00 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 07 00 F3 1E 00 00 00 00 00 C3 0C E7 [00:44:31]RasterBufferAndPrint [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]written 0, free lines is 3273 [00:44:31]MH_Cut [00:44:31]Write to MH i2c: D1 01 00 FA 1E 01 EA [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 01 00 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 01 00 FA 1E 00 E9 [00:44:31]Write to MH i2c: 01 00 00 FB 1E 19 [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]OFD Sender: No OFD packet to send [00:44:32]*** Cut start [00:44:32]*** Partial cut [00:44:32]*** CUTSNS_PIN = 1 [00:44:32]*** CUTSNS_PIN = 0 [00:44:32]*** Brake cut motor [00:44:32]Read from MH i2c: 01 [00:44:32]MH_I2C_Read... [00:44:32]*** Stop cut motor [00:44:32]*** Cut end [00:44:32]Read from MH i2c: 01 07 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: 01 07 00 FB 1E 00 00 00 00 00 FF 0F 2E [00:44:32]process_action close_receipt done [00:44:32]requested_data is exist [00:44:32]produce_requested_data [00:44:32]requested_item fm.sn is exist - process it [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 11 00 00 [00:44:32]Write to MH i2c: E2 08 00 FC 1E 80 11 00 00 00 00 00 00 94 [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 17 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 17 00 FC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [00:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:44:32]wFMCommunicate OK [00:44:32]requested_item fd.num is exist - process it [00:44:32]SAM_PROTO_GetFieldsCounters [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 13 00 00 [00:44:32]Write to MH i2c: E2 08 00 FD 1E 80 13 00 00 00 00 00 00 97 [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 62 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 62 00 FD 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:32]wFMCommunicate OK [00:44:32]SAM_PROTO_GetFieldsCounters done [00:44:32]requested_item shift.num is exist - process it [00:44:32]requested_item shift.opened is exist - process it [00:44:32]req_shift_opened [00:44:32]FM_GetShiftState [00:44:32]SAM_PROTO_GetShiftState [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 13 01 00 [00:44:32]Write to MH i2c: E2 08 00 FE 1E 80 13 01 00 00 00 00 00 99 [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 0E 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 0E 00 FE 1E 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 64 [00:44:32]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:44:32]wFMCommunicate OK [00:44:32]SAM_PROTO_GetShiftState done [00:44:32]FM_GetShiftState done [00:44:32]req_shift_opened done [00:44:32]requested_item shift.open_date is exist - process it [00:44:32]req_shift_open_date [00:44:32]req_shift_open_date done [00:44:32]produce_requested_data done [00:44:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166587,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:44:32]process_action_free close_receipt [00:44:32]json_value_free [00:44:32]json_value_free done [00:44:32]process_json_proto returns [00:44:32]Send response to host [00:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166587,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:44:32]free response buf [00:44:32]execute_script done [00:44:32]execute_script returns [00:44:32]free content buf [00:44:32]Sock 7.Close socket [00:44:32]Sock 7.Thread stoped [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:12]accept exits with 9 [00:48:12]New connection [00:48:12]New thread 3067489636 created [00:48:12]Thread 3067632996 joined [00:48:12]Waiting for new connection... [00:48:12] Sock 9.Parse request [00:48:12]Sock 9.Check first char [00:48:12]Sock 9.First char is OK [00:48:12]request: POST /json_proto HTTP/1.0 [00:48:12]Method: POST [00:48:12]URL: /json_proto [00:48:12]Method is POST - this is cgi request [00:48:12]url: /json_proto [00:48:12]query_string will be loaded in cgi processing [00:48:12]execute_cgi json_proto POST (null) [00:48:12]execute_cgi path=json_proto method=POST [00:48:12]POST find Content-Length [00:48:12]Host: 172.17.53.195:8080 [00:48:12]Content-Length: 677 [00:48:12]Content-Type: application/json [00:48:12] [00:48:12]POST finish read [00:48:12]Found Content-Length = 677 [00:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.370, "sum" : 559.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 559.00, "payments": [ { "type": 0, "sum" : 559.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:12]execute_script... [00:48: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)221168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.370, "sum" : 559.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 559.00, "payments": [ { "type": 0, "sum" : 559.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:12]POST & json_proto [00:48:12]process_json_proto [00:48:12]json parsed OK: [00:48:12]protocol is kg_v1.0 [00:48:12]action value=close_receipt [00:48:12]process_action close_receipt [00:48:12]cmd_close_receipt [00:48:12]MH_GetDate [00:48:12]Write to MH i2c: F0 00 00 FF 1E 0C [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 09 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 09 00 FF 1E 00 CE 47 18 67 21 48 4A 65 C1 [00:48:12]GetLastDocTimeStamp 1729644270 [00:48:12]current date 1729644494 [00:48:12]FM_GetShiftState [00:48:12]SAM_PROTO_GetShiftState [00:48:12]wFMCommunicate request_size=4 [00:48:12]MH_SAM_APDU [00:48:12]CAPDU: 80 13 01 00 [00:48:12]Write to MH i2c: E2 08 00 00 1F 80 13 01 00 00 00 00 00 9C [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:12]Read from MH i2c: E2 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 0E 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 0E 00 00 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 67 [00:48:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:48:12]wFMCommunicate OK [00:48:12]SAM_PROTO_GetShiftState done [00:48:12]FM_GetShiftState done [00:48:12]opened in 1729643772 [00:48:12]opened+sec_in_day 1729730172 [00:48:12]quantity*price = 55995 [00:48:12]sum+1 = 55996 [00:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 559.00 Внесено: 560.00 СДАЧА: 1.00 НСП 1% : 4.95 НДС 12% : 59.46 Наличными: 559.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 3 23.10.2024 00:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166588 ФПД: 142555339126923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004814&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166588&fm=142555339126923&tin=02508201610067®Number=0000000000091764&sum=55900 [00:48:13]StoreToDocumentArchive [00:48:13]shift 537 fd 166588 [00:48:13]save to /storage/0537/doc_00166588 [00:48:13]save last doc name /storage/0537/doc_00166588 to /storage/kkm_last_doc_name [00:48:13]save OK [00:48:13]Clear old archive folders... [00:48:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:13]tlvbuf is 012623F0 [00:48:13]SAM_PROTO_ClearQueue [00:48:13]wFMCommunicate request_size=4 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 09 00 00 [00:48:13]Write to MH i2c: E2 08 00 0D 1F 80 09 00 00 00 00 00 00 9E [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [00:48:13]RAPDU: 90 00 [00:48:13]wFMCommunicate OK [00:48:13]SAM_PROTO_ClearQueue done [00:48:13]KKMCreateOFDPacket [00:48:13]OFDProtocolAddRootSTLVToBuf [00:48:13]FM_MakeSignedData [00:48:13]FM_MakeSignedData [00:48:13]SAM_PROTO_SignData [00:48:13]wFMCommunicate request_size=4 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 0D 01 02 [00:48:13]Write to MH i2c: E2 08 00 0E 1F 80 0D 01 02 00 00 00 00 A6 [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [00:48:13]RAPDU: 90 00 [00:48:13]wFMCommunicate OK [00:48:13]wFMCommunicate request_size=255 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BB DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 17 00 00 00 00 07 04 06 00 5C DA 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 CE 47 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8A 02 00 35 04 06 00 81 [00:48:13]Write to MH i2c: E2 02 01 0F 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BB DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 17 00 00 00 00 07 04 06 00 5C DA 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 CE 47 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8A 02 00 35 04 06 00 81 00 00 82 [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [00:48:13]RAPDU: 90 00 [00:48:13]wFMCommunicate OK [00:48:13]wFMCommunicate request_size=10 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 0D 02 02 05 A7 40 59 78 8B [00:48:13]Write to MH i2c: E2 0D 00 10 1F 80 0D 02 02 05 00 A7 40 59 78 8B 00 00 F6 [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [00:48:13]RAPDU: 90 00 [00:48:13]wFMCommunicate OK [00:48:13]wFMCommunicate request_size=4 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 0D 03 02 [00:48:13]Write to MH i2c: E2 08 00 11 1F 80 0D 03 02 00 00 00 00 AB [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 0B 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 0B 00 11 1F 00 84 84 92 7A B2 DC 8B 36 90 00 0F [00:48:13]RAPDU: 84 84 92 7A B2 DC 8B 36 90 00 [00:48:13]wFMCommunicate OK [00:48:13]SAM_PROTO_SignData done [00:48:13]FM_MakeSignedData done [00:48:13]CreateOFDProtocolMessage [00:48:13]wFMCommunicate request_size=4 [00:48:13]MH_SAM_APDU [00:48:13]CAPDU: 80 11 00 00 [00:48:13]Write to MH i2c: E2 08 00 12 1F 80 11 00 00 00 00 00 00 AB [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 17 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 17 00 12 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [00:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:48:13]wFMCommunicate OK [00:48:13]CreateOFDProtocolMessage done [00:48:13]OFDSenderStorePacket 166588 [00:48:13]StoreOFDPacket docnum=166588 [00:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 9A 07 01 E0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BB DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 17 00 00 00 00 07 04 06 00 5C DA 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 CE 47 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8A 02 00 35 04 06 00 81 A7 40 59 78 8B 84 84 92 7A B2 DC 8B 36 [00:48:13]CheckFolder [00:48:13]dirname=/storage/ofd_packets [00:48:13]CheckFolder done [00:48:13]ProducePacketName [00:48:13]name=ofd_packets/00166588 [00:48:13]NVStorageSaveData ofd_packets/00166588 [00:48:13]File name is /storage/ofd_packets/00166588 [00:48:13]Write 301 bytes [00:48:13]NVStorageSaveData done [00:48:13]OFDSenderStorePacket done [00:48:13]KKMCreateOFDPacket done [00:48:13]NVStorageSaveData kkm_last_timestamp [00:48:13]File name is /storage/kkm_last_timestamp [00:48:13]Write 4 bytes [00:48:13]NVStorageSaveData done [00:48:13]ExternCall_PrintAddStr [00:48:13]wPrintStart [00:48:13]Write to MH i2c: 01 00 00 13 1F 32 [00:48:13]Write i2c OK [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: 01 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: 01 07 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: 01 07 00 13 1F 00 00 00 00 00 FF 0F 47 [00:48:13]RasterBufferAndPrint [00:48:13]line Счет N : (1)221168 [00:48:13]line ИНН: 02508201610067 [00:48:13]line Контрольно-Кассовый Чек [00:48:13]line ПРОДАЖА [00:48:13]line ТРК (МРК, ГНК) : 43 [00:48:13]line Товар: 2710124130 [00:48:13]line Аи-92-К-5 [00:48:13]line 8.370 * 66.90 [00:48:13]line = 559.95 [00:48:13]line НДС 12% НСП 1% [00:48:13]line > о реализуемом товаре [00:48:13]line ОКРУГЛЕНИЕ: -0.95 [00:48:13]line ИТОГО: 559.00 [00:48:13]line Внесено: 560.00 [00:48:13]line СДАЧА: 1.00 [00:48:13]line НСП 1% : 4.95 [00:48:13]line НДС 12% : 59.46 [00:48:13]line Наличными: 559.00 [00:48:13]line Безнал.: 0.00 [00:48:13]line Место: АЗС № 161 "Партнер Нефть" [00:48:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:48:13]line СНО: Общий режим [00:48:13]line Чек 3 23.10.2024 00:48 [00:48:13]line Смена: 537 ФФД: 1.0 [00:48:13]line ЗНМ: 0300000104 [00:48:13]line РНМ: 0000000000091764 [00:48:13]line Версия ККМ: 001 [00:48:13]line ФМ: 0000000000871759 [00:48:13]line ФД: 166588 [00:48:13]line ФПД: 142555339126923 [00:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004814&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166588&fm=142555339126923&tin=02508201610067®Number=0000000000091764&sum=55900 [00:48:14]OFD Sender: Processing packet 166588 [packets to send 48, broken 47] [00:48:14]ProducePacketName [00:48:14]name=ofd_packets/00166588 [00:48:14]OFD Sender: To server: pG, [00:48:14]CommunicateWithHost lk.salyk.kg:30040 [00:48:14]ConnectInit lk.salyk.kg [00:48:14]written 0, free lines is 4095 [00:48:14]Connected sock=10 [00:48:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 9A 07 01 E0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BB DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 17 00 00 00 00 07 04 06 00 5C DA 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 CE 47 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8A 02 00 35 04 06 00 81 A7 40 59 78 8B 84 84 92 7A B2 DC 8B 36 [00:48:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E 18 47 00 58 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 8A 02 00 F4 03 04 00 37 EE 17 67 B6 04 01 00 00 FD EE 78 C6 16 23 3D CB [00:48:14]CommunicateWithHost err = 0 [00:48:14]CheckOFDResponse [00:48:14]1017 (14) - 77093643461234 [00:48:14]1041 (16) - 0000000000871759 [00:48:14]1040 (4) - 166588 [00:48:14]1012 (4) - 22.10.2024 18:25 [00:48:14]1206 (1) - 0 [00:48:14]OFD Sender: Remove packet 166588 [00:48:14]ProducePacketName [00:48:14]name=ofd_packets/00166588 [00:48:14]NVStorageDeleteData [00:48:14]Write to MH i2c: 01 00 00 3E 1F 5D [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 07 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 07 00 3E 1F 00 00 00 00 00 C6 0C 36 [00:48:14]RasterBufferAndPrint [00:48:14]line [00:48:14]line [00:48:14]line [00:48:14]line [00:48:14]line [00:48:14]written 0, free lines is 3279 [00:48:14]MH_Cut [00:48:14]Write to MH i2c: D1 01 00 45 1F 01 36 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: D1 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: D1 01 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: D1 01 00 45 1F 00 35 [00:48:14]Write to MH i2c: 01 00 00 46 1F 65 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:15]OFD Sender: No OFD packet to send [00:48:15]*** Cut start [00:48:15]*** Partial cut [00:48:15]*** CUTSNS_PIN = 1 [00:48:15]*** CUTSNS_PIN = 0 [00:48:15]*** Brake cut motor [00:48:16]Read from MH i2c: 01 [00:48:16]MH_I2C_Read... [00:48:16]*** Stop cut motor [00:48:16]*** Cut end [00:48:16]Read from MH i2c: 01 07 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: 01 07 00 46 1F 00 00 00 00 00 FF 0F 7A [00:48:16]process_action close_receipt done [00:48:16]requested_data is exist [00:48:16]produce_requested_data [00:48:16]requested_item fm.sn is exist - process it [00:48:16]wFMCommunicate request_size=4 [00:48:16]MH_SAM_APDU [00:48:16]CAPDU: 80 11 00 00 [00:48:16]Write to MH i2c: E2 08 00 47 1F 80 11 00 00 00 00 00 00 E0 [00:48:16]Write i2c OK [00:48:16]MH_I2C_Read... [00:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:16]Read from MH i2c: E2 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 17 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 17 00 47 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [00:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:48:16]wFMCommunicate OK [00:48:16]requested_item fd.num is exist - process it [00:48:16]SAM_PROTO_GetFieldsCounters [00:48:16]wFMCommunicate request_size=4 [00:48:16]MH_SAM_APDU [00:48:16]CAPDU: 80 13 00 00 [00:48:16]Write to MH i2c: E2 08 00 48 1F 80 13 00 00 00 00 00 00 E3 [00:48:16]Write i2c OK [00:48:16]MH_I2C_Read... [00:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:16]Read from MH i2c: E2 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 62 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 62 00 48 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [00:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:16]wFMCommunicate OK [00:48:16]SAM_PROTO_GetFieldsCounters done [00:48:16]requested_item shift.num is exist - process it [00:48:16]requested_item shift.opened is exist - process it [00:48:16]req_shift_opened [00:48:16]FM_GetShiftState [00:48:16]SAM_PROTO_GetShiftState [00:48:16]wFMCommunicate request_size=4 [00:48:16]MH_SAM_APDU [00:48:16]CAPDU: 80 13 01 00 [00:48:16]Write to MH i2c: E2 08 00 49 1F 80 13 01 00 00 00 00 00 E5 [00:48:16]Write i2c OK [00:48:16]MH_I2C_Read... [00:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:16]Read from MH i2c: E2 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 0E 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 0E 00 49 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B0 [00:48:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:48:16]wFMCommunicate OK [00:48:16]SAM_PROTO_GetShiftState done [00:48:16]FM_GetShiftState done [00:48:16]req_shift_opened done [00:48:16]requested_item shift.open_date is exist - process it [00:48:16]req_shift_open_date [00:48:16]req_shift_open_date done [00:48:16]produce_requested_data done [00:48:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166588,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:48:16]process_action_free close_receipt [00:48:16]json_value_free [00:48:16]json_value_free done [00:48:16]process_json_proto returns [00:48:16]Send response to host [00:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166588,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:48:16]free response buf [00:48:16]execute_script done [00:48:16]execute_script returns [00:48:16]free content buf [00:48:16]Sock 9.Close socket [00:48:16]Sock 9.Thread stoped [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:46]accept exits with 7 [00:55:46]New connection [00:55:46]New thread 3067632996 created [00:55:46]Thread 3067489636 joined [00:55:46]Waiting for new connection... [00:55:46] Sock 7.Parse request [00:55:46]Sock 7.Check first char [00:55:46]Sock 7.First char is OK [00:55:46]request: POST /json_proto HTTP/1.0 [00:55:46]Method: POST [00:55:46]URL: /json_proto [00:55:46]Method is POST - this is cgi request [00:55:46]url: /json_proto [00:55:46]query_string will be loaded in cgi processing [00:55:46]execute_cgi json_proto POST (null) [00:55:46]execute_cgi path=json_proto method=POST [00:55:46]POST find Content-Length [00:55:46]Host: 172.17.53.195:8080 [00:55:46]Content-Length: 682 [00:55:46]Content-Type: application/json [00:55:46] [00:55:46]POST finish read [00:55:46]Found Content-Length = 682 [00:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:46]execute_script... [00:55:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:46]POST & json_proto [00:55:46]process_json_proto [00:55:46]json parsed OK: [00:55:46]protocol is kg_v1.0 [00:55:46]action value=close_receipt [00:55:46]process_action close_receipt [00:55:46]cmd_close_receipt [00:55:46]MH_GetDate [00:55:46]Write to MH i2c: F0 00 00 4A 1F 58 [00:55:46]Write i2c OK [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: F0 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: F0 09 00 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: F0 09 00 4A 1F 00 94 49 18 67 21 48 4A 65 D5 [00:55:46]GetLastDocTimeStamp 1729644494 [00:55:46]current date 1729644948 [00:55:46]FM_GetShiftState [00:55:46]SAM_PROTO_GetShiftState [00:55:46]wFMCommunicate request_size=4 [00:55:46]MH_SAM_APDU [00:55:46]CAPDU: 80 13 01 00 [00:55:46]Write to MH i2c: E2 08 00 4B 1F 80 13 01 00 00 00 00 00 E7 [00:55:46]Write i2c OK [00:55:46]MH_I2C_Read... [00:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:46]Read from MH i2c: E2 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 0E 00 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 0E 00 4B 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 B2 [00:55:46]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:55:46]wFMCommunicate OK [00:55:46]SAM_PROTO_GetShiftState done [00:55:46]FM_GetShiftState done [00:55:46]opened in 1729643772 [00:55:46]opened+sec_in_day 1729730172 [00:55:46]quantity*price = 100015 [00:55:46]sum+1 = 100017 [00:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 4 23.10.2024 00:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166589 ФПД: 89367320005382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166589&fm=89367320005382&tin=02508201610067®Number=0000000000091764&sum=100000 [00:55:47]StoreToDocumentArchive [00:55:47]shift 537 fd 166589 [00:55:47]save to /storage/0537/doc_00166589 [00:55:47]save last doc name /storage/0537/doc_00166589 to /storage/kkm_last_doc_name [00:55:47]save OK [00:55:47]Clear old archive folders... [00:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:47]tlvbuf is B6F80950 [00:55:47]SAM_PROTO_ClearQueue [00:55:47]wFMCommunicate request_size=4 [00:55:47]MH_SAM_APDU [00:55:47]CAPDU: 80 09 00 00 [00:55:47]Write to MH i2c: E2 08 00 58 1F 80 09 00 00 00 00 00 00 E9 [00:55:47]Write i2c OK [00:55:47]MH_I2C_Read... [00:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:47]Read from MH i2c: E2 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 03 00 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [00:55:47]RAPDU: 90 00 [00:55:47]wFMCommunicate OK [00:55:47]SAM_PROTO_ClearQueue done [00:55:47]KKMCreateOFDPacket [00:55:47]OFDProtocolAddRootSTLVToBuf [00:55:47]FM_MakeSignedData [00:55:47]FM_MakeSignedData [00:55:47]SAM_PROTO_SignData [00:55:47]wFMCommunicate request_size=4 [00:55:47]MH_SAM_APDU [00:55:47]CAPDU: 80 0D 01 02 [00:55:47]Write to MH i2c: E2 08 00 59 1F 80 0D 01 02 00 00 00 00 F1 [00:55:47]Write i2c OK [00:55:47]MH_I2C_Read... [00:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:47]Read from MH i2c: E2 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 03 00 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [00:55:47]RAPDU: 90 00 [00:55:47]wFMCommunicate OK [00:55:47]wFMCommunicate request_size=255 [00:55:47]MH_SAM_APDU [00:55:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 94 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8A 02 00 35 04 06 00 51 [00:55:47]Write to MH i2c: E2 02 01 5A 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 94 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8A 02 00 35 04 06 00 51 00 00 96 [00:55:47]Write i2c OK [00:55:47]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [00:55:48]RAPDU: 90 00 [00:55:48]wFMCommunicate OK [00:55:48]wFMCommunicate request_size=10 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 0D 02 02 05 47 73 5D 0B 06 [00:55:48]Write to MH i2c: E2 0D 00 5B 1F 80 0D 02 02 05 00 47 73 5D 0B 06 00 00 26 [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [00:55:48]RAPDU: 90 00 [00:55:48]wFMCommunicate OK [00:55:48]wFMCommunicate request_size=4 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 0D 03 02 [00:55:48]Write to MH i2c: E2 08 00 5C 1F 80 0D 03 02 00 00 00 00 F6 [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 0B 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 0B 00 5C 1F 00 22 F4 C2 BF 86 0E 58 25 90 00 9F [00:55:48]RAPDU: 22 F4 C2 BF 86 0E 58 25 90 00 [00:55:48]wFMCommunicate OK [00:55:48]SAM_PROTO_SignData done [00:55:48]FM_MakeSignedData done [00:55:48]CreateOFDProtocolMessage [00:55:48]wFMCommunicate request_size=4 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 11 00 00 [00:55:48]Write to MH i2c: E2 08 00 5D 1F 80 11 00 00 00 00 00 00 F6 [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 17 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 17 00 5D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [00:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:55:48]wFMCommunicate OK [00:55:48]CreateOFDProtocolMessage done [00:55:48]OFDSenderStorePacket 166589 [00:55:48]StoreOFDPacket docnum=166589 [00:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A9 12 07 01 DE D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 94 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8A 02 00 35 04 06 00 51 47 73 5D 0B 06 22 F4 C2 BF 86 0E 58 25 [00:55:48]CheckFolder [00:55:48]dirname=/storage/ofd_packets [00:55:48]CheckFolder done [00:55:48]ProducePacketName [00:55:48]name=ofd_packets/00166589 [00:55:48]NVStorageSaveData ofd_packets/00166589 [00:55:48]File name is /storage/ofd_packets/00166589 [00:55:48]Write 301 bytes [00:55:48]NVStorageSaveData done [00:55:48]OFDSenderStorePacket done [00:55:48]KKMCreateOFDPacket done [00:55:48]NVStorageSaveData kkm_last_timestamp [00:55:48]File name is /storage/kkm_last_timestamp [00:55:48]Write 4 bytes [00:55:48]NVStorageSaveData done [00:55:48]ExternCall_PrintAddStr [00:55:48]wPrintStart [00:55:48]Write to MH i2c: 01 00 00 5E 1F 7D [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: 01 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: 01 07 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: 01 07 00 5E 1F 00 00 00 00 00 FF 0F 92 [00:55:48]RasterBufferAndPrint [00:55:48]line Счет N : (1)221169 [00:55:48]line ИНН: 02508201610067 [00:55:48]line Контрольно-Кассовый Чек [00:55:48]line ПРОДАЖА [00:55:48]line ТРК (МРК, ГНК) : 13 [00:55:48]line Товар: 2710124130 [00:55:48]line Аи-92-К-5 [00:55:48]line 14.950 * 66.90 [00:55:48]line = 1000.16 [00:55:48]line НДС 12% НСП 1% [00:55:48]line > о реализуемом товаре [00:55:48]line ОКРУГЛЕНИЕ: -0.16 [00:55:48]line ИТОГО: 1000.00 [00:55:48]line Внесено: 1000.00 [00:55:48]line СДАЧА: 0.00 [00:55:48]line НСП 1% : 8.85 [00:55:48]line НДС 12% : 106.21 [00:55:48]line Наличными: 1000.00 [00:55:48]line Безнал.: 0.00 [00:55:48]line Место: АЗС № 161 "Партнер Нефть" [00:55:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:55:48]line СНО: Общий режим [00:55:48]line Чек 4 23.10.2024 00:55 [00:55:48]line Смена: 537 ФФД: 1.0 [00:55:48]line ЗНМ: 0300000104 [00:55:48]line РНМ: 0000000000091764 [00:55:48]line Версия ККМ: 001 [00:55:48]line ФМ: 0000000000871759 [00:55:48]line ФД: 166589 [00:55:48]line ФПД: 89367320005382 [00:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005548&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166589&fm=89367320005382&tin=02508201610067®Number=0000000000091764&sum=100000 [00:55:48]OFD Sender: Processing packet 166589 [packets to send 48, broken 47] [00:55:48]ProducePacketName [00:55:48]name=ofd_packets/00166589 [00:55:48]OFD Sender: To server: pG, [00:55:48]CommunicateWithHost lk.salyk.kg:30040 [00:55:48]ConnectInit lk.salyk.kg [00:55:48]written 0, free lines is 4095 [00:55:48]Connected sock=10 [00:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A9 12 07 01 DE D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 94 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8A 02 00 35 04 06 00 51 47 73 5D 0B 06 22 F4 C2 BF 86 0E 58 25 [00:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 35 69 47 00 5F 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 8A 02 00 F4 03 04 00 FE EF 17 67 B6 04 01 00 00 AC 38 5D 3D AF 5A C8 3A [00:55:48]CommunicateWithHost err = 0 [00:55:48]CheckOFDResponse [00:55:48]1017 (14) - 77093643461234 [00:55:48]1041 (16) - 0000000000871759 [00:55:48]1040 (4) - 166589 [00:55:48]1012 (4) - 22.10.2024 18:33 [00:55:48]1206 (1) - 0 [00:55:48]OFD Sender: Remove packet 166589 [00:55:48]ProducePacketName [00:55:48]name=ofd_packets/00166589 [00:55:48]NVStorageDeleteData [00:55:49]Write to MH i2c: 01 00 00 89 1F A8 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 89 1F 00 00 00 00 00 A5 0C 60 [00:55:49]RasterBufferAndPrint [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]written 0, free lines is 3242 [00:55:49]MH_Cut [00:55:49]Write to MH i2c: D1 01 00 90 1F 01 81 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 01 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 01 00 90 1F 00 80 [00:55:49]Write to MH i2c: 01 00 00 91 1F B0 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]OFD Sender: No OFD packet to send [00:55:49]*** Cut start [00:55:49]*** Partial cut [00:55:49]*** CUTSNS_PIN = 1 [00:55:49]*** CUTSNS_PIN = 0 [00:55:50]*** Brake cut motor [00:55:50]Read from MH i2c: 01 [00:55:50]MH_I2C_Read... [00:55:50]*** Stop cut motor [00:55:50]*** Cut end [00:55:50]Read from MH i2c: 01 07 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: 01 07 00 91 1F 00 00 00 00 00 FF 0F C5 [00:55:50]process_action close_receipt done [00:55:50]requested_data is exist [00:55:50]produce_requested_data [00:55:50]requested_item fm.sn is exist - process it [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 11 00 00 [00:55:50]Write to MH i2c: E2 08 00 92 1F 80 11 00 00 00 00 00 00 2B [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 17 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 17 00 92 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [00:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:55:50]wFMCommunicate OK [00:55:50]requested_item fd.num is exist - process it [00:55:50]SAM_PROTO_GetFieldsCounters [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 13 00 00 [00:55:50]Write to MH i2c: E2 08 00 93 1F 80 13 00 00 00 00 00 00 2E [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 62 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 62 00 93 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [00:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:50]wFMCommunicate OK [00:55:50]SAM_PROTO_GetFieldsCounters done [00:55:50]requested_item shift.num is exist - process it [00:55:50]requested_item shift.opened is exist - process it [00:55:50]req_shift_opened [00:55:50]FM_GetShiftState [00:55:50]SAM_PROTO_GetShiftState [00:55:50]wFMCommunicate request_size=4 [00:55:50]MH_SAM_APDU [00:55:50]CAPDU: 80 13 01 00 [00:55:50]Write to MH i2c: E2 08 00 94 1F 80 13 01 00 00 00 00 00 30 [00:55:50]Write i2c OK [00:55:50]MH_I2C_Read... [00:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:50]Read from MH i2c: E2 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 0E 00 [00:55:50]MH_I2C_Read... [00:55:50]Read from MH i2c: E2 0E 00 94 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FB [00:55:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:55:50]wFMCommunicate OK [00:55:50]SAM_PROTO_GetShiftState done [00:55:50]FM_GetShiftState done [00:55:50]req_shift_opened done [00:55:50]requested_item shift.open_date is exist - process it [00:55:50]req_shift_open_date [00:55:50]req_shift_open_date done [00:55:50]produce_requested_data done [00:55:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166589,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:55:50]process_action_free close_receipt [00:55:50]json_value_free [00:55:50]json_value_free done [00:55:50]process_json_proto returns [00:55:50]Send response to host [00:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166589,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:55:50]free response buf [00:55:50]execute_script done [00:55:50]execute_script returns [00:55:50]free content buf [00:55:50]Sock 7.Close socket [00:55:50]Sock 7.Thread stoped [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:24]accept exits with 9 [00:56:24]New connection [00:56:24]New thread 3067489636 created [00:56:24]Thread 3067632996 joined [00:56:24]Waiting for new connection... [00:56:24] Sock 9.Parse request [00:56:24]Sock 9.Check first char [00:56:24]Sock 9.First char is OK [00:56:24]request: POST /json_proto HTTP/1.0 [00:56:24]Method: POST [00:56:24]URL: /json_proto [00:56:24]Method is POST - this is cgi request [00:56:24]url: /json_proto [00:56:24]query_string will be loaded in cgi processing [00:56:24]execute_cgi json_proto POST (null) [00:56:24]execute_cgi path=json_proto method=POST [00:56:24]POST find Content-Length [00:56:24]Host: 172.17.53.195:8080 [00:56:24]Content-Length: 769 [00:56:24]Content-Type: application/json [00:56:24] [00:56:24]POST finish read [00:56:24]Found Content-Length = 769 [00:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]execute_script... [00:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]POST & json_proto [00:56:24]process_json_proto [00:56:24]json parsed OK: [00:56:24]protocol is kg_v1.0 [00:56:24]action value=close_receipt [00:56:24]process_action close_receipt [00:56:24]cmd_close_receipt [00:56:24]MH_GetDate [00:56:24]Write to MH i2c: F0 00 00 95 1F A3 [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 95 1F 00 BA 49 18 67 21 48 4A 65 46 [00:56:24]GetLastDocTimeStamp 1729644948 [00:56:24]current date 1729644986 [00:56:24]FM_GetShiftState [00:56:24]SAM_PROTO_GetShiftState [00:56:24]wFMCommunicate request_size=4 [00:56:24]MH_SAM_APDU [00:56:24]CAPDU: 80 13 01 00 [00:56:24]Write to MH i2c: E2 08 00 96 1F 80 13 01 00 00 00 00 00 32 [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:24]Read from MH i2c: E2 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 96 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 FD [00:56:24]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:56:24]wFMCommunicate OK [00:56:24]SAM_PROTO_GetShiftState done [00:56:24]FM_GetShiftState done [00:56:24]opened in 1729643772 [00:56:24]opened+sec_in_day 1729730172 [00:56:24]quantity*price = 150056 [00:56:24]sum+1 = 150058 [00:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 5 23.10.2024 00:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166590 ФПД: 104562218970952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005626&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166590&fm=104562218970952&tin=02508201610067®Number=0000000000091764&sum=150057 [00:56:25]StoreToDocumentArchive [00:56:25]shift 537 fd 166590 [00:56:25]save to /storage/0537/doc_00166590 [00:56:25]save last doc name /storage/0537/doc_00166590 to /storage/kkm_last_doc_name [00:56:25]save OK [00:56:25]Clear old archive folders... [00:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:56:25]tlvbuf is 0129B4A0 [00:56:25]SAM_PROTO_ClearQueue [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 09 00 00 [00:56:25]Write to MH i2c: E2 08 00 A3 1F 80 09 00 00 00 00 00 00 34 [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]SAM_PROTO_ClearQueue done [00:56:25]KKMCreateOFDPacket [00:56:25]OFDProtocolAddRootSTLVToBuf [00:56:25]FM_MakeSignedData [00:56:25]FM_MakeSignedData [00:56:25]SAM_PROTO_SignData [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 01 02 [00:56:25]Write to MH i2c: E2 08 00 A4 1F 80 0D 01 02 00 00 00 00 3C [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=255 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BA 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8A 02 00 35 04 06 00 5F [00:56:25]Write to MH i2c: E2 02 01 A5 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BA 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8A 02 00 35 04 06 00 5F 00 00 DA [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [00:56:26]RAPDU: 90 00 [00:56:26]wFMCommunicate OK [00:56:26]wFMCommunicate request_size=10 [00:56:26]MH_SAM_APDU [00:56:26]CAPDU: 80 0D 02 02 05 19 49 EB 2F 48 [00:56:26]Write to MH i2c: E2 0D 00 A6 1F 80 0D 02 02 05 00 19 49 EB 2F 48 00 00 0D [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 A6 1F 00 90 00 39 [00:56:26]RAPDU: 90 00 [00:56:26]wFMCommunicate OK [00:56:26]wFMCommunicate request_size=4 [00:56:26]MH_SAM_APDU [00:56:26]CAPDU: 80 0D 03 02 [00:56:26]Write to MH i2c: E2 08 00 A7 1F 80 0D 03 02 00 00 00 00 41 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 0B 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 0B 00 A7 1F 00 AE 96 8B C3 E7 9A 2E 27 90 00 AA [00:56:26]RAPDU: AE 96 8B C3 E7 9A 2E 27 90 00 [00:56:26]wFMCommunicate OK [00:56:26]SAM_PROTO_SignData done [00:56:26]FM_MakeSignedData done [00:56:26]CreateOFDProtocolMessage [00:56:26]wFMCommunicate request_size=4 [00:56:26]MH_SAM_APDU [00:56:26]CAPDU: 80 11 00 00 [00:56:26]Write to MH i2c: E2 08 00 A8 1F 80 11 00 00 00 00 00 00 41 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 17 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 17 00 A8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [00:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:56:26]wFMCommunicate OK [00:56:26]CreateOFDProtocolMessage done [00:56:26]OFDSenderStorePacket 166590 [00:56:26]StoreOFDPacket docnum=166590 [00:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 BE 07 01 E9 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BA 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8A 02 00 35 04 06 00 5F 19 49 EB 2F 48 AE 96 8B C3 E7 9A 2E 27 [00:56:26]CheckFolder [00:56:26]dirname=/storage/ofd_packets [00:56:26]CheckFolder done [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00166590 [00:56:26]NVStorageSaveData ofd_packets/00166590 [00:56:26]File name is /storage/ofd_packets/00166590 [00:56:26]Write 301 bytes [00:56:26]NVStorageSaveData done [00:56:26]OFDSenderStorePacket done [00:56:26]KKMCreateOFDPacket done [00:56:26]NVStorageSaveData kkm_last_timestamp [00:56:26]File name is /storage/kkm_last_timestamp [00:56:26]Write 4 bytes [00:56:26]NVStorageSaveData done [00:56:26]ExternCall_PrintAddStr [00:56:26]wPrintStart [00:56:26]Write to MH i2c: 01 00 00 A9 1F C8 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 A9 1F 00 00 00 00 00 FF 0F DD [00:56:26]RasterBufferAndPrint [00:56:26]line Счет N : (1)221170 [00:56:26]line ИНН: 02508201610067 [00:56:26]line Контрольно-Кассовый Чек [00:56:26]line ПРОДАЖА [00:56:26]line ТРК (МРК, ГНК) : 33 [00:56:26]line Товар: 2710124130 [00:56:26]line Аи-92-К-5 [00:56:26]line 22.430 * 66.90 [00:56:26]line = 1500.57 [00:56:26]line НДС 12% НСП 1% [00:56:26]line > о реализуемом товаре [00:56:26]line ИТОГО: 1500.57 [00:56:26]line НСП 1% : 13.28 [00:56:26]line НДС 12% : 159.35 [00:56:26]line Наличными: 0.00 [00:56:26]line Безнал.: 1500.57 [00:56:26]line Место: АЗС № 161 "Партнер Нефть" [00:56:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:56:26]line СНО: Общий режим [00:56:26]line Чек 5 23.10.2024 00:56 [00:56:26]line Смена: 537 ФФД: 1.0 [00:56:26]line ЗНМ: 0300000104 [00:56:26]line РНМ: 0000000000091764 [00:56:26]line Версия ККМ: 001 [00:56:26]line Платежная система: Mbank [00:56:26]line ФМ: 0000000000871759 [00:56:26]line ФД: 166590 [00:56:26]line ФПД: 104562218970952 [00:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005626&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166590&fm=104562218970952&tin=02508201610067®Number=0000000000091764&sum=150057 [00:56:26]written 0, free lines is 4095 [00:56:26]OFD Sender: Processing packet 166590 [packets to send 48, broken 47] [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00166590 [00:56:26]OFD Sender: To server: pG, [00:56:26]CommunicateWithHost lk.salyk.kg:30040 [00:56:26]ConnectInit lk.salyk.kg [00:56:26]Connected sock=10 [00:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 BE 07 01 E9 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BA 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8A 02 00 35 04 06 00 5F 19 49 EB 2F 48 AE 96 8B C3 E7 9A 2E 27 [00:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 61 47 00 EA B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 8A 02 00 F4 03 04 00 24 F0 17 67 B6 04 01 00 00 0F 1A 55 0D 5E F5 76 82 [00:56:26]CommunicateWithHost err = 0 [00:56:26]CheckOFDResponse [00:56:26]1017 (14) - 77093643461234 [00:56:26]1041 (16) - 0000000000871759 [00:56:26]1040 (4) - 166590 [00:56:26]1012 (4) - 22.10.2024 18:34 [00:56:26]1206 (1) - 0 [00:56:26]OFD Sender: Remove packet 166590 [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00166590 [00:56:26]NVStorageDeleteData [00:56:27]Write to MH i2c: 01 00 00 D2 1F F1 [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 07 00 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 07 00 D2 1F 00 00 00 00 00 DC 0C E0 [00:56:27]RasterBufferAndPrint [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]written 0, free lines is 3300 [00:56:27]MH_Cut [00:56:27]Write to MH i2c: D1 01 00 D9 1F 01 CA [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 01 00 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 01 00 D9 1F 00 C9 [00:56:27]Write to MH i2c: 01 00 00 DA 1F F9 [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]OFD Sender: No OFD packet to send [00:56:27]*** Cut start [00:56:27]*** Partial cut [00:56:27]*** CUTSNS_PIN = 1 [00:56:27]*** CUTSNS_PIN = 0 [00:56:28]*** Brake cut motor [00:56:28]Read from MH i2c: 01 [00:56:28]MH_I2C_Read... [00:56:28]*** Stop cut motor [00:56:28]*** Cut end [00:56:28]Read from MH i2c: 01 07 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [00:56:28]process_action close_receipt done [00:56:28]requested_data is exist [00:56:28]produce_requested_data [00:56:28]requested_item fm.sn is exist - process it [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 11 00 00 [00:56:28]Write to MH i2c: E2 08 00 DB 1F 80 11 00 00 00 00 00 00 74 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 17 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 17 00 DB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [00:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:56:28]wFMCommunicate OK [00:56:28]requested_item fd.num is exist - process it [00:56:28]SAM_PROTO_GetFieldsCounters [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 13 00 00 [00:56:28]Write to MH i2c: E2 08 00 DC 1F 80 13 00 00 00 00 00 00 77 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 62 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 62 00 DC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [00:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:28]wFMCommunicate OK [00:56:28]SAM_PROTO_GetFieldsCounters done [00:56:28]requested_item shift.num is exist - process it [00:56:28]requested_item shift.opened is exist - process it [00:56:28]req_shift_opened [00:56:28]FM_GetShiftState [00:56:28]SAM_PROTO_GetShiftState [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 13 01 00 [00:56:28]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 0E 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 44 [00:56:28]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:56:28]wFMCommunicate OK [00:56:28]SAM_PROTO_GetShiftState done [00:56:28]FM_GetShiftState done [00:56:28]req_shift_opened done [00:56:28]requested_item shift.open_date is exist - process it [00:56:28]req_shift_open_date [00:56:28]req_shift_open_date done [00:56:28]produce_requested_data done [00:56:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166590,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:56:28]process_action_free close_receipt [00:56:28]json_value_free [00:56:28]json_value_free done [00:56:28]process_json_proto returns [00:56:28]Send response to host [00:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166590,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:56:28]free response buf [00:56:28]execute_script done [00:56:28]execute_script returns [00:56:28]free content buf [00:56:28]Sock 9.Close socket [00:56:28]Sock 9.Thread stoped [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:05]accept exits with 7 [00:57:05]New connection [00:57:05]New thread 3067632996 created [00:57:05]Thread 3067489636 joined [00:57:05]Waiting for new connection... [00:57:05] Sock 7.Parse request [00:57:05]Sock 7.Check first char [00:57:05]Sock 7.First char is OK [00:57:05]request: POST /json_proto HTTP/1.0 [00:57:05]Method: POST [00:57:05]URL: /json_proto [00:57:05]Method is POST - this is cgi request [00:57:05]url: /json_proto [00:57:05]query_string will be loaded in cgi processing [00:57:05]execute_cgi json_proto POST (null) [00:57:05]execute_cgi path=json_proto method=POST [00:57:05]POST find Content-Length [00:57:05]Host: 172.17.53.195:8080 [00:57:05]Content-Length: 678 [00:57:05]Content-Type: application/json [00:57:05] [00:57:05]POST finish read [00:57:05]Found Content-Length = 678 [00:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:05]execute_script... [00:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:05]POST & json_proto [00:57:05]process_json_proto [00:57:05]json parsed OK: [00:57:05]protocol is kg_v1.0 [00:57:05]action value=close_receipt [00:57:05]process_action close_receipt [00:57:05]cmd_close_receipt [00:57:05]MH_GetDate [00:57:05]Write to MH i2c: F0 00 00 DE 1F EC [00:57:05]Write i2c OK [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: F0 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: F0 09 00 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: F0 09 00 DE 1F 00 E4 49 18 67 21 48 4A 65 B9 [00:57:05]GetLastDocTimeStamp 1729644986 [00:57:05]current date 1729645028 [00:57:05]FM_GetShiftState [00:57:05]SAM_PROTO_GetShiftState [00:57:05]wFMCommunicate request_size=4 [00:57:05]MH_SAM_APDU [00:57:05]CAPDU: 80 13 01 00 [00:57:05]Write to MH i2c: E2 08 00 DF 1F 80 13 01 00 00 00 00 00 7B [00:57:05]Write i2c OK [00:57:05]MH_I2C_Read... [00:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:05]Read from MH i2c: E2 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: E2 0E 00 [00:57:05]MH_I2C_Read... [00:57:05]Read from MH i2c: E2 0E 00 DF 1F 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 46 [00:57:05]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:57:05]wFMCommunicate OK [00:57:05]SAM_PROTO_GetShiftState done [00:57:05]FM_GetShiftState done [00:57:05]opened in 1729643772 [00:57:05]opened+sec_in_day 1729730172 [00:57:05]quantity*price = 70044 [00:57:05]sum+1 = 70045 [00:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 6 23.10.2024 00:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166591 ФПД: 58030911802917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166591&fm=58030911802917&tin=02508201610067®Number=0000000000091764&sum=70000 [00:57:07]StoreToDocumentArchive [00:57:07]shift 537 fd 166591 [00:57:07]save to /storage/0537/doc_00166591 [00:57:07]save last doc name /storage/0537/doc_00166591 to /storage/kkm_last_doc_name [00:57:07]save OK [00:57:07]Clear old archive folders... [00:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:57:07]tlvbuf is B6F808F0 [00:57:07]SAM_PROTO_ClearQueue [00:57:07]wFMCommunicate request_size=4 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 09 00 00 [00:57:07]Write to MH i2c: E2 08 00 EC 1F 80 09 00 00 00 00 00 00 7D [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [00:57:07]RAPDU: 90 00 [00:57:07]wFMCommunicate OK [00:57:07]SAM_PROTO_ClearQueue done [00:57:07]KKMCreateOFDPacket [00:57:07]OFDProtocolAddRootSTLVToBuf [00:57:07]FM_MakeSignedData [00:57:07]FM_MakeSignedData [00:57:07]SAM_PROTO_SignData [00:57:07]wFMCommunicate request_size=4 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 0D 01 02 [00:57:07]Write to MH i2c: E2 08 00 ED 1F 80 0D 01 02 00 00 00 00 85 [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [00:57:07]RAPDU: 90 00 [00:57:07]wFMCommunicate OK [00:57:07]wFMCommunicate request_size=255 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E4 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8A 02 00 35 04 06 00 34 [00:57:07]Write to MH i2c: E2 02 01 EE 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E4 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8A 02 00 35 04 06 00 34 00 00 77 [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [00:57:07]RAPDU: 90 00 [00:57:07]wFMCommunicate OK [00:57:07]wFMCommunicate request_size=10 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 0D 02 02 05 C7 5F E2 4E 25 [00:57:07]Write to MH i2c: E2 0D 00 EF 1F 80 0D 02 02 05 00 C7 5F E2 4E 25 00 00 0D [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [00:57:07]RAPDU: 90 00 [00:57:07]wFMCommunicate OK [00:57:07]wFMCommunicate request_size=4 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 0D 03 02 [00:57:07]Write to MH i2c: E2 08 00 F0 1F 80 0D 03 02 00 00 00 00 8A [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]OFD Sender: No OFD packet to send [00:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 0B 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 0B 00 F0 1F 00 CB 3C 9C 49 28 C3 1F 23 90 00 A4 [00:57:07]RAPDU: CB 3C 9C 49 28 C3 1F 23 90 00 [00:57:07]wFMCommunicate OK [00:57:07]SAM_PROTO_SignData done [00:57:07]FM_MakeSignedData done [00:57:07]CreateOFDProtocolMessage [00:57:07]wFMCommunicate request_size=4 [00:57:07]MH_SAM_APDU [00:57:07]CAPDU: 80 11 00 00 [00:57:07]Write to MH i2c: E2 08 00 F1 1F 80 11 00 00 00 00 00 00 8A [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:07]Read from MH i2c: E2 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 17 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: E2 17 00 F1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [00:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:57:07]wFMCommunicate OK [00:57:07]CreateOFDProtocolMessage done [00:57:07]OFDSenderStorePacket 166591 [00:57:07]StoreOFDPacket docnum=166591 [00:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC FC 07 01 89 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E4 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8A 02 00 35 04 06 00 34 C7 5F E2 4E 25 CB 3C 9C 49 28 C3 1F 23 [00:57:07]CheckFolder [00:57:07]dirname=/storage/ofd_packets [00:57:07]CheckFolder done [00:57:07]ProducePacketName [00:57:07]name=ofd_packets/00166591 [00:57:07]NVStorageSaveData ofd_packets/00166591 [00:57:07]File name is /storage/ofd_packets/00166591 [00:57:07]Write 301 bytes [00:57:07]NVStorageSaveData done [00:57:07]OFDSenderStorePacket done [00:57:07]KKMCreateOFDPacket done [00:57:07]NVStorageSaveData kkm_last_timestamp [00:57:07]File name is /storage/kkm_last_timestamp [00:57:07]Write 4 bytes [00:57:07]NVStorageSaveData done [00:57:07]ExternCall_PrintAddStr [00:57:07]wPrintStart [00:57:07]Write to MH i2c: 01 00 00 F2 1F 11 [00:57:07]Write i2c OK [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: 01 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: 01 07 00 [00:57:07]MH_I2C_Read... [00:57:07]Read from MH i2c: 01 07 00 F2 1F 00 00 00 00 00 FF 0F 26 [00:57:07]RasterBufferAndPrint [00:57:07]line Счет N : (1)221171 [00:57:07]line ИНН: 02508201610067 [00:57:07]line Контрольно-Кассовый Чек [00:57:07]line ПРОДАЖА [00:57:07]line ТРК (МРК, ГНК) : 23 [00:57:07]line Товар: 2710124130 [00:57:07]line Аи-92-К-5 [00:57:07]line 10.470 * 66.90 [00:57:07]line = 700.44 [00:57:07]line НДС 12% НСП 1% [00:57:07]line > о реализуемом товаре [00:57:07]line ОКРУГЛЕНИЕ: -0.44 [00:57:07]line ИТОГО: 700.00 [00:57:07]line Внесено: 700.00 [00:57:07]line СДАЧА: 0.00 [00:57:07]line НСП 1% : 6.20 [00:57:07]line НДС 12% : 74.38 [00:57:07]line Наличными: 700.00 [00:57:07]line Безнал.: 0.00 [00:57:07]line Место: АЗС № 161 "Партнер Нефть" [00:57:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:57:07]line СНО: Общий режим [00:57:07]line Чек 6 23.10.2024 00:57 [00:57:07]line Смена: 537 ФФД: 1.0 [00:57:07]line ЗНМ: 0300000104 [00:57:07]line РНМ: 0000000000091764 [00:57:07]line Версия ККМ: 001 [00:57:07]line ФМ: 0000000000871759 [00:57:07]line ФД: 166591 [00:57:07]line ФПД: 58030911802917 [00:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005708&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166591&fm=58030911802917&tin=02508201610067®Number=0000000000091764&sum=70000 [00:57:07]OFD Sender: Processing packet 166591 [packets to send 48, broken 47] [00:57:07]ProducePacketName [00:57:07]name=ofd_packets/00166591 [00:57:07]OFD Sender: To server: pG, [00:57:07]CommunicateWithHost lk.salyk.kg:30040 [00:57:07]ConnectInit lk.salyk.kg [00:57:07]written 0, free lines is 4095 [00:57:08]Connected sock=10 [00:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC FC 07 01 89 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E4 49 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8A 02 00 35 04 06 00 34 C7 5F E2 4E 25 CB 3C 9C 49 28 C3 1F 23 [00:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD 26 47 00 1B 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 8A 02 00 F4 03 04 00 4D F0 17 67 B6 04 01 00 00 3F F0 46 55 6F 86 18 76 [00:57:08]CommunicateWithHost err = 0 [00:57:08]CheckOFDResponse [00:57:08]1017 (14) - 77093643461234 [00:57:08]1041 (16) - 0000000000871759 [00:57:08]1040 (4) - 166591 [00:57:08]1012 (4) - 22.10.2024 18:34 [00:57:08]1206 (1) - 0 [00:57:08]OFD Sender: Remove packet 166591 [00:57:08]ProducePacketName [00:57:08]name=ofd_packets/00166591 [00:57:08]NVStorageDeleteData [00:57:08]Write to MH i2c: 01 00 00 1D 20 3D [00:57:08]Write i2c OK [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: 01 [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: 01 07 00 [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 AB 0C FB [00:57:08]RasterBufferAndPrint [00:57:08]line [00:57:08]line [00:57:08]line [00:57:08]line [00:57:08]line [00:57:08]written 0, free lines is 3252 [00:57:08]MH_Cut [00:57:08]Write to MH i2c: D1 01 00 24 20 01 16 [00:57:08]Write i2c OK [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: D1 [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: D1 01 00 [00:57:08]MH_I2C_Read... [00:57:08]Read from MH i2c: D1 01 00 24 20 00 15 [00:57:08]Write to MH i2c: 01 00 00 25 20 45 [00:57:08]Write i2c OK [00:57:08]MH_I2C_Read... [00:57:08]OFD Sender: No OFD packet to send [00:57:09]*** Cut start [00:57:09]*** Partial cut [00:57:09]*** CUTSNS_PIN = 1 [00:57:09]*** CUTSNS_PIN = 0 [00:57:09]*** Brake cut motor [00:57:09]Read from MH i2c: 01 [00:57:09]MH_I2C_Read... [00:57:09]*** Stop cut motor [00:57:09]*** Cut end [00:57:09]Read from MH i2c: 01 07 00 [00:57:09]MH_I2C_Read... [00:57:09]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 FF 0F 5A [00:57:09]process_action close_receipt done [00:57:09]requested_data is exist [00:57:09]produce_requested_data [00:57:09]requested_item fm.sn is exist - process it [00:57:09]wFMCommunicate request_size=4 [00:57:09]MH_SAM_APDU [00:57:09]CAPDU: 80 11 00 00 [00:57:09]Write to MH i2c: E2 08 00 26 20 80 11 00 00 00 00 00 00 C0 [00:57:09]Write i2c OK [00:57:09]MH_I2C_Read... [00:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:09]Read from MH i2c: E2 [00:57:09]MH_I2C_Read... [00:57:09]Read from MH i2c: E2 17 00 [00:57:09]MH_I2C_Read... [00:57:09]Read from MH i2c: E2 17 00 26 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [00:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:57:09]wFMCommunicate OK [00:57:09]requested_item fd.num is exist - process it [00:57:09]SAM_PROTO_GetFieldsCounters [00:57:09]wFMCommunicate request_size=4 [00:57:09]MH_SAM_APDU [00:57:09]CAPDU: 80 13 00 00 [00:57:09]Write to MH i2c: E2 08 00 27 20 80 13 00 00 00 00 00 00 C3 [00:57:09]Write i2c OK [00:57:09]MH_I2C_Read... [00:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:10]Read from MH i2c: E2 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: E2 62 00 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: E2 62 00 27 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [00:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:10]wFMCommunicate OK [00:57:10]SAM_PROTO_GetFieldsCounters done [00:57:10]requested_item shift.num is exist - process it [00:57:10]requested_item shift.opened is exist - process it [00:57:10]req_shift_opened [00:57:10]FM_GetShiftState [00:57:10]SAM_PROTO_GetShiftState [00:57:10]wFMCommunicate request_size=4 [00:57:10]MH_SAM_APDU [00:57:10]CAPDU: 80 13 01 00 [00:57:10]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [00:57:10]Write i2c OK [00:57:10]MH_I2C_Read... [00:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:10]Read from MH i2c: E2 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: E2 0E 00 [00:57:10]MH_I2C_Read... [00:57:10]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 90 [00:57:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [00:57:10]wFMCommunicate OK [00:57:10]SAM_PROTO_GetShiftState done [00:57:10]FM_GetShiftState done [00:57:10]req_shift_opened done [00:57:10]requested_item shift.open_date is exist - process it [00:57:10]req_shift_open_date [00:57:10]req_shift_open_date done [00:57:10]produce_requested_data done [00:57:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166591,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [00:57:10]process_action_free close_receipt [00:57:10]json_value_free [00:57:10]json_value_free done [00:57:10]process_json_proto returns [00:57:10]Send response to host [00:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166591,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [00:57:10]free response buf [00:57:10]execute_script done [00:57:10]execute_script returns [00:57:10]free content buf [00:57:10]Sock 7.Close socket [00:57:10]Sock 7.Thread stoped [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:37]accept exits with 9 [01:06:37]New connection [01:06:37]New thread 3067489636 created [01:06:37]Thread 3067632996 joined [01:06:37]Waiting for new connection... [01:06:37] Sock 9.Parse request [01:06:37]Sock 9.Check first char [01:06:37]Sock 9.First char is OK [01:06:37]request: POST /json_proto HTTP/1.0 [01:06:37]Method: POST [01:06:37]URL: /json_proto [01:06:37]Method is POST - this is cgi request [01:06:37]url: /json_proto [01:06:37]query_string will be loaded in cgi processing [01:06:37]execute_cgi json_proto POST (null) [01:06:37]execute_cgi path=json_proto method=POST [01:06:37]POST find Content-Length [01:06:37]Host: 172.17.53.195:8080 [01:06:37]Content-Length: 769 [01:06:37]Content-Type: application/json [01:06:37] [01:06:37]POST finish read [01:06:37]Found Content-Length = 769 [01:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:37]execute_script... [01:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:37]POST & json_proto [01:06:37]process_json_proto [01:06:37]json parsed OK: [01:06:37]protocol is kg_v1.0 [01:06:37]action value=close_receipt [01:06:37]process_action close_receipt [01:06:37]cmd_close_receipt [01:06:37]MH_GetDate [01:06:37]Write to MH i2c: F0 00 00 29 20 38 [01:06:37]Write i2c OK [01:06:37]MH_I2C_Read... [01:06:37]Read from MH i2c: F0 [01:06:37]MH_I2C_Read... [01:06:37]Read from MH i2c: F0 09 00 [01:06:37]MH_I2C_Read... [01:06:37]Read from MH i2c: F0 09 00 29 20 00 1F 4C 18 67 21 48 4A 65 43 [01:06:37]GetLastDocTimeStamp 1729645028 [01:06:37]current date 1729645599 [01:06:37]FM_GetShiftState [01:06:37]SAM_PROTO_GetShiftState [01:06:37]wFMCommunicate request_size=4 [01:06:37]MH_SAM_APDU [01:06:37]CAPDU: 80 13 01 00 [01:06:37]Write to MH i2c: E2 08 00 2A 20 80 13 01 00 00 00 00 00 C7 [01:06:37]Write i2c OK [01:06:37]MH_I2C_Read... [01:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:37]Read from MH i2c: E2 [01:06:37]MH_I2C_Read... [01:06:37]Read from MH i2c: E2 0E 00 [01:06:37]MH_I2C_Read... [01:06:37]Read from MH i2c: E2 0E 00 2A 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 92 [01:06:37]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:06:37]wFMCommunicate OK [01:06:37]SAM_PROTO_GetShiftState done [01:06:37]FM_GetShiftState done [01:06:37]opened in 1729643772 [01:06:37]opened+sec_in_day 1729730172 [01:06:37]quantity*price = 100021 [01:06:37]sum+1 = 100023 [01:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 7 23.10.2024 01:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166592 ФПД: 132190668838107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166592&fm=132190668838107&tin=02508201610067®Number=0000000000091764&sum=100022 [01:06:38]StoreToDocumentArchive [01:06:38]shift 537 fd 166592 [01:06:38]save to /storage/0537/doc_00166592 [01:06:38]save last doc name /storage/0537/doc_00166592 to /storage/kkm_last_doc_name [01:06:38]save OK [01:06:38]Clear old archive folders... [01:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:06:38]tlvbuf is 0129B440 [01:06:38]SAM_PROTO_ClearQueue [01:06:38]wFMCommunicate request_size=4 [01:06:38]MH_SAM_APDU [01:06:38]CAPDU: 80 09 00 00 [01:06:38]Write to MH i2c: E2 08 00 37 20 80 09 00 00 00 00 00 00 C9 [01:06:38]Write i2c OK [01:06:38]MH_I2C_Read... [01:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:38]Read from MH i2c: E2 [01:06:38]MH_I2C_Read... [01:06:38]Read from MH i2c: E2 03 00 [01:06:38]MH_I2C_Read... [01:06:38]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [01:06:38]RAPDU: 90 00 [01:06:38]wFMCommunicate OK [01:06:38]SAM_PROTO_ClearQueue done [01:06:38]KKMCreateOFDPacket [01:06:38]OFDProtocolAddRootSTLVToBuf [01:06:38]FM_MakeSignedData [01:06:38]FM_MakeSignedData [01:06:38]SAM_PROTO_SignData [01:06:38]wFMCommunicate request_size=4 [01:06:38]MH_SAM_APDU [01:06:38]CAPDU: 80 0D 01 02 [01:06:38]Write to MH i2c: E2 08 00 38 20 80 0D 01 02 00 00 00 00 D1 [01:06:38]Write i2c OK [01:06:38]MH_I2C_Read... [01:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:38]Read from MH i2c: E2 [01:06:38]MH_I2C_Read... [01:06:38]Read from MH i2c: E2 03 00 [01:06:38]MH_I2C_Read... [01:06:38]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [01:06:38]RAPDU: 90 00 [01:06:38]wFMCommunicate OK [01:06:38]wFMCommunicate request_size=255 [01:06:38]MH_SAM_APDU [01:06:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1F 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8A 02 00 35 04 06 00 78 [01:06:38]Write to MH i2c: E2 02 01 39 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1F 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8A 02 00 35 04 06 00 78 00 00 80 [01:06:38]Write i2c OK [01:06:38]MH_I2C_Read... [01:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:39]Read from MH i2c: E2 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 03 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [01:06:39]RAPDU: 90 00 [01:06:39]wFMCommunicate OK [01:06:39]wFMCommunicate request_size=10 [01:06:39]MH_SAM_APDU [01:06:39]CAPDU: 80 0D 02 02 05 3A 09 DB D4 DB [01:06:39]Write to MH i2c: E2 0D 00 3A 20 80 0D 02 02 05 00 3A 09 DB D4 DB 00 00 AB [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:39]Read from MH i2c: E2 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 03 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [01:06:39]RAPDU: 90 00 [01:06:39]wFMCommunicate OK [01:06:39]wFMCommunicate request_size=4 [01:06:39]MH_SAM_APDU [01:06:39]CAPDU: 80 0D 03 02 [01:06:39]Write to MH i2c: E2 08 00 3B 20 80 0D 03 02 00 00 00 00 D6 [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:39]Read from MH i2c: E2 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 0B 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 0B 00 3B 20 00 BE 9E CB CE A6 ED 0C 5F 90 00 CA [01:06:39]RAPDU: BE 9E CB CE A6 ED 0C 5F 90 00 [01:06:39]wFMCommunicate OK [01:06:39]SAM_PROTO_SignData done [01:06:39]FM_MakeSignedData done [01:06:39]CreateOFDProtocolMessage [01:06:39]wFMCommunicate request_size=4 [01:06:39]MH_SAM_APDU [01:06:39]CAPDU: 80 11 00 00 [01:06:39]Write to MH i2c: E2 08 00 3C 20 80 11 00 00 00 00 00 00 D6 [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:39]Read from MH i2c: E2 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 17 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: E2 17 00 3C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [01:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:06:39]wFMCommunicate OK [01:06:39]CreateOFDProtocolMessage done [01:06:39]OFDSenderStorePacket 166592 [01:06:39]StoreOFDPacket docnum=166592 [01:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC DD 07 01 25 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1F 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8A 02 00 35 04 06 00 78 3A 09 DB D4 DB BE 9E CB CE A6 ED 0C 5F [01:06:39]CheckFolder [01:06:39]dirname=/storage/ofd_packets [01:06:39]CheckFolder done [01:06:39]ProducePacketName [01:06:39]name=ofd_packets/00166592 [01:06:39]NVStorageSaveData ofd_packets/00166592 [01:06:39]File name is /storage/ofd_packets/00166592 [01:06:39]Write 301 bytes [01:06:39]NVStorageSaveData done [01:06:39]OFDSenderStorePacket done [01:06:39]KKMCreateOFDPacket done [01:06:39]NVStorageSaveData kkm_last_timestamp [01:06:39]File name is /storage/kkm_last_timestamp [01:06:39]Write 4 bytes [01:06:39]NVStorageSaveData done [01:06:39]ExternCall_PrintAddStr [01:06:39]wPrintStart [01:06:39]Write to MH i2c: 01 00 00 3D 20 5D [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 07 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 FF 0F 72 [01:06:39]RasterBufferAndPrint [01:06:39]line Счет N : (1)221172 [01:06:39]line ИНН: 02508201610067 [01:06:39]line Контрольно-Кассовый Чек [01:06:39]line ПРОДАЖА [01:06:39]line ТРК (МРК, ГНК) : 24 [01:06:39]line Товар: 2710124500 [01:06:39]line Аи-95-К-5 [01:06:39]line 13.480 * 74.20 [01:06:39]line = 1000.22 [01:06:39]line НДС 12% НСП 1% [01:06:39]line > о реализуемом товаре [01:06:39]line ИТОГО: 1000.22 [01:06:39]line НСП 1% : 8.85 [01:06:39]line НДС 12% : 106.22 [01:06:39]line Наличными: 0.00 [01:06:39]line Безнал.: 1000.22 [01:06:39]line Место: АЗС № 161 "Партнер Нефть" [01:06:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:06:39]line СНО: Общий режим [01:06:39]line Чек 7 23.10.2024 01:06 [01:06:39]line Смена: 537 ФФД: 1.0 [01:06:39]line ЗНМ: 0300000104 [01:06:39]line РНМ: 0000000000091764 [01:06:39]line Версия ККМ: 001 [01:06:39]line Платежная система: Mbank [01:06:39]line ФМ: 0000000000871759 [01:06:39]line ФД: 166592 [01:06:39]line ФПД: 132190668838107 [01:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166592&fm=132190668838107&tin=02508201610067®Number=0000000000091764&sum=100022 [01:06:39]OFD Sender: Processing packet 166592 [packets to send 48, broken 47] [01:06:39]ProducePacketName [01:06:39]name=ofd_packets/00166592 [01:06:39]OFD Sender: To server: pG, [01:06:39]CommunicateWithHost lk.salyk.kg:30040 [01:06:39]ConnectInit lk.salyk.kg [01:06:39]written 0, free lines is 4095 [01:06:39]Connected sock=10 [01:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AC DD 07 01 25 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1F 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8A 02 00 35 04 06 00 78 3A 09 DB D4 DB BE 9E CB CE A6 ED 0C 5F [01:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B4 6A 47 00 C2 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 8A 02 00 F4 03 04 00 89 F2 17 67 B6 04 01 00 00 1A F4 1B 0F 24 BE EC C3 [01:06:39]CommunicateWithHost err = 0 [01:06:39]CheckOFDResponse [01:06:39]1017 (14) - 77093643461234 [01:06:39]1041 (16) - 0000000000871759 [01:06:39]1040 (4) - 166592 [01:06:39]1012 (4) - 22.10.2024 18:44 [01:06:39]1206 (1) - 0 [01:06:39]OFD Sender: Remove packet 166592 [01:06:39]ProducePacketName [01:06:39]name=ofd_packets/00166592 [01:06:39]NVStorageDeleteData [01:06:39]Write to MH i2c: 01 00 00 66 20 86 [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 07 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: 01 07 00 66 20 00 00 00 00 00 E6 0C 7F [01:06:39]RasterBufferAndPrint [01:06:39]line [01:06:39]line [01:06:39]line [01:06:39]line [01:06:39]line [01:06:39]written 0, free lines is 3309 [01:06:39]MH_Cut [01:06:39]Write to MH i2c: D1 01 00 6D 20 01 5F [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: D1 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: D1 01 00 [01:06:39]MH_I2C_Read... [01:06:39]Read from MH i2c: D1 01 00 6D 20 00 5E [01:06:39]Write to MH i2c: 01 00 00 6E 20 8E [01:06:39]Write i2c OK [01:06:39]MH_I2C_Read... [01:06:40]OFD Sender: No OFD packet to send [01:06:40]*** Cut start [01:06:40]*** Partial cut [01:06:40]*** CUTSNS_PIN = 1 [01:06:40]*** CUTSNS_PIN = 0 [01:06:41]*** Brake cut motor [01:06:41]Read from MH i2c: 01 [01:06:41]MH_I2C_Read... [01:06:41]*** Stop cut motor [01:06:41]*** Cut end [01:06:41]Read from MH i2c: 01 07 00 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [01:06:41]process_action close_receipt done [01:06:41]requested_data is exist [01:06:41]produce_requested_data [01:06:41]requested_item fm.sn is exist - process it [01:06:41]wFMCommunicate request_size=4 [01:06:41]MH_SAM_APDU [01:06:41]CAPDU: 80 11 00 00 [01:06:41]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [01:06:41]Write i2c OK [01:06:41]MH_I2C_Read... [01:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:41]Read from MH i2c: E2 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 17 00 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [01:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:06:41]wFMCommunicate OK [01:06:41]requested_item fd.num is exist - process it [01:06:41]SAM_PROTO_GetFieldsCounters [01:06:41]wFMCommunicate request_size=4 [01:06:41]MH_SAM_APDU [01:06:41]CAPDU: 80 13 00 00 [01:06:41]Write to MH i2c: E2 08 00 70 20 80 13 00 00 00 00 00 00 0C [01:06:41]Write i2c OK [01:06:41]MH_I2C_Read... [01:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:41]Read from MH i2c: E2 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 62 00 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 62 00 70 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [01:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:41]wFMCommunicate OK [01:06:41]SAM_PROTO_GetFieldsCounters done [01:06:41]requested_item shift.num is exist - process it [01:06:41]requested_item shift.opened is exist - process it [01:06:41]req_shift_opened [01:06:41]FM_GetShiftState [01:06:41]SAM_PROTO_GetShiftState [01:06:41]wFMCommunicate request_size=4 [01:06:41]MH_SAM_APDU [01:06:41]CAPDU: 80 13 01 00 [01:06:41]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [01:06:41]Write i2c OK [01:06:41]MH_I2C_Read... [01:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:41]Read from MH i2c: E2 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 0E 00 [01:06:41]MH_I2C_Read... [01:06:41]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 D9 [01:06:41]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:06:41]wFMCommunicate OK [01:06:41]SAM_PROTO_GetShiftState done [01:06:41]FM_GetShiftState done [01:06:41]req_shift_opened done [01:06:41]requested_item shift.open_date is exist - process it [01:06:41]req_shift_open_date [01:06:41]req_shift_open_date done [01:06:41]produce_requested_data done [01:06:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166592,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:06:41]process_action_free close_receipt [01:06:41]json_value_free [01:06:41]json_value_free done [01:06:41]process_json_proto returns [01:06:41]Send response to host [01:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166592,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:06:41]free response buf [01:06:41]execute_script done [01:06:41]execute_script returns [01:06:41]free content buf [01:06:41]Sock 9.Close socket [01:06:41]Sock 9.Thread stoped [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:27]accept exits with 7 [01:08:27]New connection [01:08:27]New thread 3067632996 created [01:08:27]Thread 3067489636 joined [01:08:27]Waiting for new connection... [01:08:27] Sock 7.Parse request [01:08:27]Sock 7.Check first char [01:08:27]Sock 7.First char is OK [01:08:27]request: POST /json_proto HTTP/1.0 [01:08:27]Method: POST [01:08:27]URL: /json_proto [01:08:27]Method is POST - this is cgi request [01:08:27]url: /json_proto [01:08:27]query_string will be loaded in cgi processing [01:08:27]execute_cgi json_proto POST (null) [01:08:27]execute_cgi path=json_proto method=POST [01:08:27]POST find Content-Length [01:08:27]Host: 172.17.53.195:8080 [01:08:27]Content-Length: 679 [01:08:27]Content-Type: application/json [01:08:27] [01:08:27]POST finish read [01:08:27]Found Content-Length = 679 [01:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:27]execute_script... [01:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:27]POST & json_proto [01:08:27]process_json_proto [01:08:27]json parsed OK: [01:08:27]protocol is kg_v1.0 [01:08:27]action value=close_receipt [01:08:27]process_action close_receipt [01:08:27]cmd_close_receipt [01:08:27]MH_GetDate [01:08:27]Write to MH i2c: F0 00 00 72 20 81 [01:08:27]Write i2c OK [01:08:27]MH_I2C_Read... [01:08:27]Read from MH i2c: F0 [01:08:27]MH_I2C_Read... [01:08:27]Read from MH i2c: F0 09 00 [01:08:27]MH_I2C_Read... [01:08:27]Read from MH i2c: F0 09 00 72 20 00 8D 4C 18 67 21 48 4A 65 FA [01:08:27]GetLastDocTimeStamp 1729645599 [01:08:27]current date 1729645709 [01:08:27]FM_GetShiftState [01:08:27]SAM_PROTO_GetShiftState [01:08:27]wFMCommunicate request_size=4 [01:08:27]MH_SAM_APDU [01:08:27]CAPDU: 80 13 01 00 [01:08:27]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [01:08:27]Write i2c OK [01:08:27]MH_I2C_Read... [01:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:27]Read from MH i2c: E2 [01:08:27]MH_I2C_Read... [01:08:27]Read from MH i2c: E2 0E 00 [01:08:27]MH_I2C_Read... [01:08:27]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 DB [01:08:27]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:08:27]wFMCommunicate OK [01:08:27]SAM_PROTO_GetShiftState done [01:08:27]FM_GetShiftState done [01:08:27]opened in 1729643772 [01:08:27]opened+sec_in_day 1729730172 [01:08:27]quantity*price = 149961 [01:08:27]sum+1 = 149963 [01:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 8 23.10.2024 01:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166593 ФПД: 266389347324578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166593&fm=266389347324578&tin=02508201610067®Number=0000000000091764&sum=149900 [01:08:28]StoreToDocumentArchive [01:08:28]shift 537 fd 166593 [01:08:28]save to /storage/0537/doc_00166593 [01:08:28]save last doc name /storage/0537/doc_00166593 to /storage/kkm_last_doc_name [01:08:28]save OK [01:08:28]Clear old archive folders... [01:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:08:28]tlvbuf is 0122AB60 [01:08:28]SAM_PROTO_ClearQueue [01:08:28]wFMCommunicate request_size=4 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 09 00 00 [01:08:28]Write to MH i2c: E2 08 00 80 20 80 09 00 00 00 00 00 00 12 [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [01:08:28]RAPDU: 90 00 [01:08:28]wFMCommunicate OK [01:08:28]SAM_PROTO_ClearQueue done [01:08:28]KKMCreateOFDPacket [01:08:28]OFDProtocolAddRootSTLVToBuf [01:08:28]FM_MakeSignedData [01:08:28]FM_MakeSignedData [01:08:28]SAM_PROTO_SignData [01:08:28]wFMCommunicate request_size=4 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 0D 01 02 [01:08:28]Write to MH i2c: E2 08 00 81 20 80 0D 01 02 00 00 00 00 1A [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [01:08:28]RAPDU: 90 00 [01:08:28]wFMCommunicate OK [01:08:28]wFMCommunicate request_size=255 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8D 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8A 02 00 35 04 06 00 F2 47 9A 6B [01:08:28]Write to MH i2c: E2 02 01 82 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8D 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8A 02 00 35 04 06 00 F2 47 9A 6B 00 00 FB [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [01:08:28]RAPDU: 90 00 [01:08:28]wFMCommunicate OK [01:08:28]wFMCommunicate request_size=7 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 0D 02 02 02 52 A2 [01:08:28]Write to MH i2c: E2 0A 00 83 20 80 0D 02 02 02 00 52 A2 00 00 15 [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [01:08:28]RAPDU: 90 00 [01:08:28]wFMCommunicate OK [01:08:28]wFMCommunicate request_size=4 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 0D 03 02 [01:08:28]Write to MH i2c: E2 08 00 84 20 80 0D 03 02 00 00 00 00 1F [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 0B 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 0B 00 84 20 00 7F DE 54 FC 64 64 39 71 90 00 3F [01:08:28]RAPDU: 7F DE 54 FC 64 64 39 71 90 00 [01:08:28]wFMCommunicate OK [01:08:28]SAM_PROTO_SignData done [01:08:28]FM_MakeSignedData done [01:08:28]CreateOFDProtocolMessage [01:08:28]wFMCommunicate request_size=4 [01:08:28]MH_SAM_APDU [01:08:28]CAPDU: 80 11 00 00 [01:08:28]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:28]Read from MH i2c: E2 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 17 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [01:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:08:28]wFMCommunicate OK [01:08:28]CreateOFDProtocolMessage done [01:08:28]OFDSenderStorePacket 166593 [01:08:28]StoreOFDPacket docnum=166593 [01:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A7 16 04 01 FC F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8D 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8A 02 00 35 04 06 00 F2 47 9A 6B 52 A2 7F DE 54 FC 64 64 39 71 [01:08:28]CheckFolder [01:08:28]dirname=/storage/ofd_packets [01:08:28]CheckFolder done [01:08:28]ProducePacketName [01:08:28]name=ofd_packets/00166593 [01:08:28]NVStorageSaveData ofd_packets/00166593 [01:08:28]File name is /storage/ofd_packets/00166593 [01:08:28]Write 298 bytes [01:08:28]NVStorageSaveData done [01:08:28]OFDSenderStorePacket done [01:08:28]KKMCreateOFDPacket done [01:08:28]NVStorageSaveData kkm_last_timestamp [01:08:28]File name is /storage/kkm_last_timestamp [01:08:28]Write 4 bytes [01:08:28]NVStorageSaveData done [01:08:28]ExternCall_PrintAddStr [01:08:28]wPrintStart [01:08:28]Write to MH i2c: 01 00 00 86 20 A6 [01:08:28]Write i2c OK [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: 01 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: 01 07 00 [01:08:28]MH_I2C_Read... [01:08:28]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [01:08:28]RasterBufferAndPrint [01:08:28]line Счет N : (1)221173 [01:08:28]line ИНН: 02508201610067 [01:08:28]line Контрольно-Кассовый Чек [01:08:28]line ПРОДАЖА [01:08:28]line ТРК (МРК, ГНК) : 11 [01:08:28]line Товар: 2710194210 [01:08:28]line ДТ-К-5 [01:08:28]line 19.680 * 76.20 [01:08:28]line = 1499.62 [01:08:28]line НДС 12% НСП 1% [01:08:28]line > о реализуемом товаре [01:08:28]line ОКРУГЛЕНИЕ: -0.62 [01:08:28]line ИТОГО: 1499.00 [01:08:28]line Внесено: 1500.00 [01:08:28]line СДАЧА: 1.00 [01:08:28]line НСП 1% : 13.27 [01:08:28]line НДС 12% : 159.25 [01:08:28]line Наличными: 1499.00 [01:08:28]line Безнал.: 0.00 [01:08:28]line Место: АЗС № 161 "Партнер Нефть" [01:08:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:08:28]line СНО: Общий режим [01:08:28]line Чек 8 23.10.2024 01:08 [01:08:28]line Смена: 537 ФФД: 1.0 [01:08:28]line ЗНМ: 0300000104 [01:08:28]line РНМ: 0000000000091764 [01:08:28]line Версия ККМ: 001 [01:08:28]line ФМ: 0000000000871759 [01:08:28]line ФД: 166593 [01:08:28]line ФПД: 266389347324578 [01:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T010829&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166593&fm=266389347324578&tin=02508201610067®Number=0000000000091764&sum=149900 [01:08:29]written 0, free lines is 4095 [01:08:29]OFD Sender: Processing packet 166593 [packets to send 48, broken 47] [01:08:29]ProducePacketName [01:08:29]name=ofd_packets/00166593 [01:08:29]OFD Sender: To server: pG, [01:08:29]CommunicateWithHost lk.salyk.kg:30040 [01:08:29]ConnectInit lk.salyk.kg [01:08:29]Connected sock=10 [01:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A7 16 04 01 FC F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8D 4C 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8A 02 00 35 04 06 00 F2 47 9A 6B 52 A2 7F DE 54 FC 64 64 39 71 [01:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 32 98 47 00 FB 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 8A 02 00 F4 03 04 00 F6 F2 17 67 B6 04 01 00 00 77 EA C4 BE EC E4 0E D9 [01:08:29]CommunicateWithHost err = 0 [01:08:29]CheckOFDResponse [01:08:29]1017 (14) - 77093643461234 [01:08:29]1041 (16) - 0000000000871759 [01:08:29]1040 (4) - 166593 [01:08:29]1012 (4) - 22.10.2024 18:46 [01:08:29]1206 (1) - 0 [01:08:29]OFD Sender: Remove packet 166593 [01:08:29]ProducePacketName [01:08:29]name=ofd_packets/00166593 [01:08:29]NVStorageDeleteData [01:08:29]Write to MH i2c: 01 00 00 B1 20 D1 [01:08:29]Write i2c OK [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: 01 [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: 01 07 00 [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 AB 0C 8F [01:08:29]RasterBufferAndPrint [01:08:29]line [01:08:29]line [01:08:29]line [01:08:29]line [01:08:29]line [01:08:29]written 0, free lines is 3250 [01:08:29]MH_Cut [01:08:29]Write to MH i2c: D1 01 00 B8 20 01 AA [01:08:29]Write i2c OK [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: D1 [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: D1 01 00 [01:08:29]MH_I2C_Read... [01:08:29]Read from MH i2c: D1 01 00 B8 20 00 A9 [01:08:29]Write to MH i2c: 01 00 00 B9 20 D9 [01:08:29]Write i2c OK [01:08:29]MH_I2C_Read... [01:08:29]OFD Sender: No OFD packet to send [01:08:30]*** Cut start [01:08:30]*** Partial cut [01:08:30]*** CUTSNS_PIN = 1 [01:08:30]*** CUTSNS_PIN = 0 [01:08:30]*** Brake cut motor [01:08:31]Read from MH i2c: 01 [01:08:31]MH_I2C_Read... [01:08:31]*** Stop cut motor [01:08:31]*** Cut end [01:08:31]Read from MH i2c: 01 07 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [01:08:31]process_action close_receipt done [01:08:31]requested_data is exist [01:08:31]produce_requested_data [01:08:31]requested_item fm.sn is exist - process it [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 11 00 00 [01:08:31]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 17 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [01:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:08:31]wFMCommunicate OK [01:08:31]requested_item fd.num is exist - process it [01:08:31]SAM_PROTO_GetFieldsCounters [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 13 00 00 [01:08:31]Write to MH i2c: E2 08 00 BB 20 80 13 00 00 00 00 00 00 57 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 62 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 62 00 BB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 8A 02 00 0E 04 04 00 19 02 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 FF [01:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:31]wFMCommunicate OK [01:08:31]SAM_PROTO_GetFieldsCounters done [01:08:31]requested_item shift.num is exist - process it [01:08:31]requested_item shift.opened is exist - process it [01:08:31]req_shift_opened [01:08:31]FM_GetShiftState [01:08:31]SAM_PROTO_GetShiftState [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 13 01 00 [01:08:31]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 0E 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 24 [01:08:31]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:08:31]wFMCommunicate OK [01:08:31]SAM_PROTO_GetShiftState done [01:08:31]FM_GetShiftState done [01:08:31]req_shift_opened done [01:08:31]requested_item shift.open_date is exist - process it [01:08:31]req_shift_open_date [01:08:31]req_shift_open_date done [01:08:31]produce_requested_data done [01:08:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166593,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:08:31]process_action_free close_receipt [01:08:31]json_value_free [01:08:31]json_value_free done [01:08:31]process_json_proto returns [01:08:31]Send response to host [01:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166593,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:08:31]free response buf [01:08:31]execute_script done [01:08:31]execute_script returns [01:08:31]free content buf [01:08:31]Sock 7.Close socket [01:08:31]Sock 7.Thread stoped [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:45]accept exits with 9 [01:18:45]New connection [01:18:45]New thread 3067489636 created [01:18:45]Thread 3067632996 joined [01:18:45]Waiting for new connection... [01:18:45] Sock 9.Parse request [01:18:45]Sock 9.Check first char [01:18:45]Sock 9.First char is OK [01:18:45]request: POST /json_proto HTTP/1.0 [01:18:45]Method: POST [01:18:45]URL: /json_proto [01:18:45]Method is POST - this is cgi request [01:18:45]url: /json_proto [01:18:45]query_string will be loaded in cgi processing [01:18:45]execute_cgi json_proto POST (null) [01:18:45]execute_cgi path=json_proto method=POST [01:18:45]POST find Content-Length [01:18:45]Host: 172.17.53.195:8080 [01:18:45]Content-Length: 790 [01:18:45]Content-Type: application/json [01:18:45] [01:18:45]POST finish read [01:18:45]Found Content-Length = 790 [01:18:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 328.090, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:45]execute_script... [01:18:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 328.090, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:45]POST & json_proto [01:18:45]process_json_proto [01:18:45]json parsed OK: [01:18:45]protocol is kg_v1.0 [01:18:45]action value=close_receipt [01:18:45]process_action close_receipt [01:18:45]cmd_close_receipt [01:18:45]MH_GetDate [01:18:45]Write to MH i2c: F0 00 00 BD 20 CC [01:18:45]Write i2c OK [01:18:45]MH_I2C_Read... [01:18:45]Read from MH i2c: F0 [01:18:45]MH_I2C_Read... [01:18:45]Read from MH i2c: F0 09 00 [01:18:45]MH_I2C_Read... [01:18:45]Read from MH i2c: F0 09 00 BD 20 00 F8 4E 18 67 21 48 4A 65 B2 [01:18:45]GetLastDocTimeStamp 1729645709 [01:18:45]current date 1729646328 [01:18:45]FM_GetShiftState [01:18:45]SAM_PROTO_GetShiftState [01:18:45]wFMCommunicate request_size=4 [01:18:45]MH_SAM_APDU [01:18:45]CAPDU: 80 13 01 00 [01:18:45]Write to MH i2c: E2 08 00 BE 20 80 13 01 00 00 00 00 00 5B [01:18:45]Write i2c OK [01:18:45]MH_I2C_Read... [01:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:45]Read from MH i2c: E2 [01:18:45]MH_I2C_Read... [01:18:45]Read from MH i2c: E2 0E 00 [01:18:45]MH_I2C_Read... [01:18:45]Read from MH i2c: E2 0E 00 BE 20 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 26 [01:18:45]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:18:45]wFMCommunicate OK [01:18:45]SAM_PROTO_GetShiftState done [01:18:45]FM_GetShiftState done [01:18:45]opened in 1729643772 [01:18:45]opened+sec_in_day 1729730172 [01:18:45]quantity*price = 0 [01:18:45]sum+1 = 1 [01:18:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 9 23.10.2024 01:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166594 ФПД: 19557393731200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011848&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166594&fm=19557393731200&tin=02508201610067®Number=0000000000091764&sum=0 [01:18:47]StoreToDocumentArchive [01:18:47]shift 537 fd 166594 [01:18:47]save to /storage/0537/doc_00166594 [01:18:47]save last doc name /storage/0537/doc_00166594 to /storage/kkm_last_doc_name [01:18:47]save OK [01:18:47]Clear old archive folders... [01:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:18:47]tlvbuf is 0129B6F0 [01:18:47]SAM_PROTO_ClearQueue [01:18:47]wFMCommunicate request_size=4 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 09 00 00 [01:18:47]Write to MH i2c: E2 08 00 CB 20 80 09 00 00 00 00 00 00 5D [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [01:18:47]RAPDU: 90 00 [01:18:47]wFMCommunicate OK [01:18:47]SAM_PROTO_ClearQueue done [01:18:47]KKMCreateOFDPacket [01:18:47]OFDProtocolAddRootSTLVToBuf [01:18:47]FM_MakeSignedData [01:18:47]FM_MakeSignedData [01:18:47]SAM_PROTO_SignData [01:18:47]wFMCommunicate request_size=4 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 0D 01 02 [01:18:47]Write to MH i2c: E2 08 00 CC 20 80 0D 01 02 00 00 00 00 65 [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [01:18:47]RAPDU: 90 00 [01:18:47]wFMCommunicate OK [01:18:47]wFMCommunicate request_size=255 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 01 05 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 4E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8A 02 00 35 04 06 00 11 C9 8F 81 [01:18:47]Write to MH i2c: E2 02 01 CD 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 01 05 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 4E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8A 02 00 35 04 06 00 11 C9 8F 81 00 00 8A [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [01:18:47]RAPDU: 90 00 [01:18:47]wFMCommunicate OK [01:18:47]wFMCommunicate request_size=7 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 0D 02 02 02 8E 80 [01:18:47]Write to MH i2c: E2 0A 00 CE 20 80 0D 02 02 02 00 8E 80 00 00 7A [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [01:18:47]RAPDU: 90 00 [01:18:47]wFMCommunicate OK [01:18:47]wFMCommunicate request_size=4 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 0D 03 02 [01:18:47]Write to MH i2c: E2 08 00 CF 20 80 0D 03 02 00 00 00 00 6A [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 0B 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 0B 00 CF 20 00 63 80 76 D7 01 0C 5B D9 90 00 DC [01:18:47]RAPDU: 63 80 76 D7 01 0C 5B D9 90 00 [01:18:47]wFMCommunicate OK [01:18:47]SAM_PROTO_SignData done [01:18:47]FM_MakeSignedData done [01:18:47]CreateOFDProtocolMessage [01:18:47]wFMCommunicate request_size=4 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 11 00 00 [01:18:47]Write to MH i2c: E2 08 00 D0 20 80 11 00 00 00 00 00 00 6A [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 17 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 17 00 D0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [01:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:18:47]wFMCommunicate OK [01:18:47]CreateOFDProtocolMessage done [01:18:47]OFDSenderStorePacket 166594 [01:18:47]StoreOFDPacket docnum=166594 [01:18:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 70 04 01 E5 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 01 05 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 4E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8A 02 00 35 04 06 00 11 C9 8F 81 8E 80 63 80 76 D7 01 0C 5B D9 [01:18:47]CheckFolder [01:18:47]dirname=/storage/ofd_packets [01:18:47]CheckFolder done [01:18:47]ProducePacketName [01:18:47]name=ofd_packets/00166594 [01:18:47]NVStorageSaveData ofd_packets/00166594 [01:18:47]File name is /storage/ofd_packets/00166594 [01:18:47]Write 298 bytes [01:18:47]NVStorageSaveData done [01:18:47]OFDSenderStorePacket done [01:18:47]KKMCreateOFDPacket done [01:18:47]NVStorageSaveData kkm_last_timestamp [01:18:47]File name is /storage/kkm_last_timestamp [01:18:47]Write 4 bytes [01:18:47]NVStorageSaveData done [01:18:47]ExternCall_PrintAddStr [01:18:47]wPrintStart [01:18:47]Write to MH i2c: 01 00 00 D1 20 F1 [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 07 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 FF 0F 06 [01:18:47]RasterBufferAndPrint [01:18:47]line Счет N : (1)221174 [01:18:47]line ИНН: 02508201610067 [01:18:47]line Контрольно-Кассовый Чек [01:18:47]line ПРОДАЖА [01:18:47]line ТРК (МРК, ГНК) : 11 [01:18:47]line Товар: 2710194210 [01:18:47]line ДТ-К-5 [01:18:47]line 328.090 * 0.00 [01:18:47]line = 0.00 [01:18:47]line НДС 12% НСП 1% [01:18:47]line > о реализуемом товаре [01:18:47]line ИТОГО: 0.00 [01:18:47]line НСП 1% : 0.00 [01:18:47]line НДС 12% : 0.00 [01:18:47]line Наличными: 0.00 [01:18:47]line Безнал.: 0.00 [01:18:47]line Место: АЗС № 161 "Партнер Нефть" [01:18:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:18:47]line СНО: Общий режим [01:18:47]line Чек 9 23.10.2024 01:18 [01:18:47]line Смена: 537 ФФД: 1.0 [01:18:47]line ЗНМ: 0300000104 [01:18:47]line РНМ: 0000000000091764 [01:18:47]line Версия ККМ: 001 [01:18:47]line Талоны: Топливная Карта [01:18:47]line 38286 [01:18:47]line ФМ: 0000000000871759 [01:18:47]line ФД: 166594 [01:18:47]line ФПД: 19557393731200 [01:18:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011848&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166594&fm=19557393731200&tin=02508201610067®Number=0000000000091764&sum=0 [01:18:47]OFD Sender: Processing packet 166594 [packets to send 48, broken 47] [01:18:47]ProducePacketName [01:18:47]name=ofd_packets/00166594 [01:18:47]OFD Sender: To server: pG, [01:18:47]CommunicateWithHost lk.salyk.kg:30040 [01:18:47]ConnectInit lk.salyk.kg [01:18:47]written 0, free lines is 4095 [01:18:47]Connected sock=10 [01:18:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BF 70 04 01 E5 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 01 05 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 F8 4E 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8A 02 00 35 04 06 00 11 C9 8F 81 8E 80 63 80 76 D7 01 0C 5B D9 [01:18:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B 7E 47 00 DC FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 8A 02 00 F4 03 04 00 61 F5 17 67 B6 04 01 00 00 7A B0 4F 8B 4E 82 86 50 [01:18:48]CommunicateWithHost err = 0 [01:18:48]CheckOFDResponse [01:18:48]1017 (14) - 77093643461234 [01:18:48]1041 (16) - 0000000000871759 [01:18:48]1040 (4) - 166594 [01:18:48]1012 (4) - 22.10.2024 18:56 [01:18:48]1206 (1) - 0 [01:18:48]OFD Sender: Remove packet 166594 [01:18:48]ProducePacketName [01:18:48]name=ofd_packets/00166594 [01:18:48]NVStorageDeleteData [01:18:48]Write to MH i2c: 01 00 00 FB 20 1B [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 07 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 07 00 FB 20 00 00 00 00 00 BA 0C E8 [01:18:48]RasterBufferAndPrint [01:18:48]line [01:18:48]line [01:18:48]line [01:18:48]line [01:18:48]line [01:18:48]written 0, free lines is 3265 [01:18:48]MH_Cut [01:18:48]Write to MH i2c: D1 01 00 02 21 01 F5 [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: D1 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: D1 01 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: D1 01 00 02 21 00 F4 [01:18:48]Write to MH i2c: 01 00 00 03 21 24 [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]OFD Sender: No OFD packet to send [01:18:49]*** Cut start [01:18:49]*** Partial cut [01:18:49]*** CUTSNS_PIN = 1 [01:18:49]*** CUTSNS_PIN = 0 [01:18:49]*** Brake cut motor [01:18:49]Read from MH i2c: 01 [01:18:49]MH_I2C_Read... [01:18:49]*** Stop cut motor [01:18:49]*** Cut end [01:18:49]Read from MH i2c: 01 07 00 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: 01 07 00 03 21 00 00 00 00 00 FF 0F 39 [01:18:49]process_action close_receipt done [01:18:49]requested_data is exist [01:18:49]produce_requested_data [01:18:49]requested_item fm.sn is exist - process it [01:18:49]wFMCommunicate request_size=4 [01:18:49]MH_SAM_APDU [01:18:49]CAPDU: 80 11 00 00 [01:18:49]Write to MH i2c: E2 08 00 04 21 80 11 00 00 00 00 00 00 9F [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:49]Read from MH i2c: E2 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: E2 17 00 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: E2 17 00 04 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [01:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:18:49]wFMCommunicate OK [01:18:49]requested_item fd.num is exist - process it [01:18:49]SAM_PROTO_GetFieldsCounters [01:18:49]wFMCommunicate request_size=4 [01:18:49]MH_SAM_APDU [01:18:49]CAPDU: 80 13 00 00 [01:18:49]Write to MH i2c: E2 08 00 05 21 80 13 00 00 00 00 00 00 A2 [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:49]Read from MH i2c: E2 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: E2 62 00 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: E2 62 00 05 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 8A 02 00 0E 04 04 00 19 02 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 4E [01:18:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:49]wFMCommunicate OK [01:18:49]SAM_PROTO_GetFieldsCounters done [01:18:49]requested_item shift.num is exist - process it [01:18:49]requested_item shift.opened is exist - process it [01:18:49]req_shift_opened [01:18:49]FM_GetShiftState [01:18:49]SAM_PROTO_GetShiftState [01:18:49]wFMCommunicate request_size=4 [01:18:49]MH_SAM_APDU [01:18:49]CAPDU: 80 13 01 00 [01:18:49]Write to MH i2c: E2 08 00 06 21 80 13 01 00 00 00 00 00 A4 [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:50]Read from MH i2c: E2 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 06 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 6F [01:18:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:18:50]wFMCommunicate OK [01:18:50]SAM_PROTO_GetShiftState done [01:18:50]FM_GetShiftState done [01:18:50]req_shift_opened done [01:18:50]requested_item shift.open_date is exist - process it [01:18:50]req_shift_open_date [01:18:50]req_shift_open_date done [01:18:50]produce_requested_data done [01:18:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166594,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:18:50]process_action_free close_receipt [01:18:50]json_value_free [01:18:50]json_value_free done [01:18:50]process_json_proto returns [01:18:50]Send response to host [01:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166594,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:18:50]free response buf [01:18:50]execute_script done [01:18:50]execute_script returns [01:18:50]free content buf [01:18:50]Sock 9.Close socket [01:18:50]Sock 9.Thread stoped [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23: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:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:07]accept exits with 7 [01:35:07]New connection [01:35:07]New thread 3067632996 created [01:35:07]Thread 3067489636 joined [01:35:07]Waiting for new connection... [01:35:07] Sock 7.Parse request [01:35:07]Sock 7.Check first char [01:35:07]Sock 7.First char is OK [01:35:07]request: POST /json_proto HTTP/1.0 [01:35:07]Method: POST [01:35:07]URL: /json_proto [01:35:07]Method is POST - this is cgi request [01:35:07]url: /json_proto [01:35:07]query_string will be loaded in cgi processing [01:35:07]execute_cgi json_proto POST (null) [01:35:07]execute_cgi path=json_proto method=POST [01:35:07]POST find Content-Length [01:35:07]Host: 172.17.53.195:8080 [01:35:07]Content-Length: 682 [01:35:07]Content-Type: application/json [01:35:07] [01:35:07]POST finish read [01:35:07]Found Content-Length = 682 [01:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.170, "sum" : 1750.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:07]execute_script... [01:35: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)221175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.170, "sum" : 1750.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:07]POST & json_proto [01:35:07]process_json_proto [01:35:07]json parsed OK: [01:35:07]protocol is kg_v1.0 [01:35:07]action value=close_receipt [01:35:07]process_action close_receipt [01:35:07]cmd_close_receipt [01:35:07]MH_GetDate [01:35:07]Write to MH i2c: F0 00 00 07 21 17 [01:35:07]Write i2c OK [01:35:07]MH_I2C_Read... [01:35:07]Read from MH i2c: F0 [01:35:07]MH_I2C_Read... [01:35:07]Read from MH i2c: F0 09 00 [01:35:07]MH_I2C_Read... [01:35:07]Read from MH i2c: F0 09 00 07 21 00 CE 52 18 67 21 48 4A 65 D7 [01:35:07]GetLastDocTimeStamp 1729646328 [01:35:07]current date 1729647310 [01:35:07]FM_GetShiftState [01:35:07]SAM_PROTO_GetShiftState [01:35:07]wFMCommunicate request_size=4 [01:35:07]MH_SAM_APDU [01:35:07]CAPDU: 80 13 01 00 [01:35:07]Write to MH i2c: E2 08 00 08 21 80 13 01 00 00 00 00 00 A6 [01:35:07]Write i2c OK [01:35:07]MH_I2C_Read... [01:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:07]Read from MH i2c: E2 [01:35:07]MH_I2C_Read... [01:35:07]Read from MH i2c: E2 0E 00 [01:35:07]MH_I2C_Read... [01:35:07]Read from MH i2c: E2 0E 00 08 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 71 [01:35:07]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:35:07]wFMCommunicate OK [01:35:07]SAM_PROTO_GetShiftState done [01:35:07]FM_GetShiftState done [01:35:07]opened in 1729643772 [01:35:07]opened+sec_in_day 1729730172 [01:35:07]quantity*price = 175077 [01:35:07]sum+1 = 175078 [01:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1750.00 Внесено: 5000.00 СДАЧА: 3250.00 НСП 1% : 15.49 НДС 12% : 185.92 Наличными: 1750.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 10 23.10.2024 01:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166595 ФПД: 265718821695474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166595&fm=265718821695474&tin=02508201610067®Number=0000000000091764&sum=175000 [01:35:09]StoreToDocumentArchive [01:35:09]shift 537 fd 166595 [01:35:09]save to /storage/0537/doc_00166595 [01:35:09]save last doc name /storage/0537/doc_00166595 to /storage/kkm_last_doc_name [01:35:09]save OK [01:35:09]Clear old archive folders... [01:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:35:09]tlvbuf is 011F1290 [01:35:09]SAM_PROTO_ClearQueue [01:35:09]wFMCommunicate request_size=4 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 09 00 00 [01:35:09]Write to MH i2c: E2 08 00 15 21 80 09 00 00 00 00 00 00 A8 [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [01:35:09]RAPDU: 90 00 [01:35:09]wFMCommunicate OK [01:35:09]SAM_PROTO_ClearQueue done [01:35:09]KKMCreateOFDPacket [01:35:09]OFDProtocolAddRootSTLVToBuf [01:35:09]FM_MakeSignedData [01:35:09]FM_MakeSignedData [01:35:09]SAM_PROTO_SignData [01:35:09]wFMCommunicate request_size=4 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 0D 01 02 [01:35:09]Write to MH i2c: E2 08 00 16 21 80 0D 01 02 00 00 00 00 B0 [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [01:35:09]RAPDU: 90 00 [01:35:09]wFMCommunicate OK [01:35:09]wFMCommunicate request_size=255 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CE 52 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8A 02 00 35 04 06 00 F1 [01:35:09]Write to MH i2c: E2 02 01 17 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CE 52 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8A 02 00 35 04 06 00 F1 00 00 B8 [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [01:35:09]RAPDU: 90 00 [01:35:09]wFMCommunicate OK [01:35:09]wFMCommunicate request_size=10 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 0D 02 02 05 AB 7B FA 2F F2 [01:35:09]Write to MH i2c: E2 0D 00 18 21 80 0D 02 02 05 00 AB 7B FA 2F F2 00 00 FE [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [01:35:09]RAPDU: 90 00 [01:35:09]wFMCommunicate OK [01:35:09]wFMCommunicate request_size=4 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 0D 03 02 [01:35:09]Write to MH i2c: E2 08 00 19 21 80 0D 03 02 00 00 00 00 B5 [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 0B 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 0B 00 19 21 00 92 03 2C 39 EA 9B D8 C4 90 00 D1 [01:35:09]RAPDU: 92 03 2C 39 EA 9B D8 C4 90 00 [01:35:09]wFMCommunicate OK [01:35:09]SAM_PROTO_SignData done [01:35:09]FM_MakeSignedData done [01:35:09]CreateOFDProtocolMessage [01:35:09]wFMCommunicate request_size=4 [01:35:09]MH_SAM_APDU [01:35:09]CAPDU: 80 11 00 00 [01:35:09]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:09]Read from MH i2c: E2 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 17 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [01:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:35:09]wFMCommunicate OK [01:35:09]CreateOFDProtocolMessage done [01:35:09]OFDSenderStorePacket 166595 [01:35:09]StoreOFDPacket docnum=166595 [01:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 17 07 01 02 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CE 52 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8A 02 00 35 04 06 00 F1 AB 7B FA 2F F2 92 03 2C 39 EA 9B D8 C4 [01:35:09]CheckFolder [01:35:09]dirname=/storage/ofd_packets [01:35:09]CheckFolder done [01:35:09]ProducePacketName [01:35:09]name=ofd_packets/00166595 [01:35:09]NVStorageSaveData ofd_packets/00166595 [01:35:09]File name is /storage/ofd_packets/00166595 [01:35:09]Write 301 bytes [01:35:09]NVStorageSaveData done [01:35:09]OFDSenderStorePacket done [01:35:09]KKMCreateOFDPacket done [01:35:09]NVStorageSaveData kkm_last_timestamp [01:35:09]File name is /storage/kkm_last_timestamp [01:35:09]Write 4 bytes [01:35:09]NVStorageSaveData done [01:35:09]ExternCall_PrintAddStr [01:35:09]wPrintStart [01:35:09]Write to MH i2c: 01 00 00 1B 21 3C [01:35:09]Write i2c OK [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: 01 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: 01 07 00 [01:35:09]MH_I2C_Read... [01:35:09]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [01:35:09]RasterBufferAndPrint [01:35:09]line Счет N : (1)221175 [01:35:09]line ИНН: 02508201610067 [01:35:09]line Контрольно-Кассовый Чек [01:35:09]line ПРОДАЖА [01:35:09]line ТРК (МРК, ГНК) : 23 [01:35:09]line Товар: 2710124130 [01:35:09]line Аи-92-К-5 [01:35:09]line 26.170 * 66.90 [01:35:09]line = 1750.77 [01:35:09]line НДС 12% НСП 1% [01:35:09]line > о реализуемом товаре [01:35:09]line ОКРУГЛЕНИЕ: -0.77 [01:35:09]line ИТОГО: 1750.00 [01:35:09]line Внесено: 5000.00 [01:35:09]line СДАЧА: 3250.00 [01:35:09]line НСП 1% : 15.49 [01:35:09]line НДС 12% : 185.92 [01:35:09]line Наличными: 1750.00 [01:35:09]line Безнал.: 0.00 [01:35:09]line Место: АЗС № 161 "Партнер Нефть" [01:35:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:35:09]line СНО: Общий режим [01:35:09]line Чек 10 23.10.2024 01:35 [01:35:09]line Смена: 537 ФФД: 1.0 [01:35:09]line ЗНМ: 0300000104 [01:35:09]line РНМ: 0000000000091764 [01:35:09]line Версия ККМ: 001 [01:35:09]line ФМ: 0000000000871759 [01:35:09]line ФД: 166595 [01:35:09]line ФПД: 265718821695474 [01:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166595&fm=265718821695474&tin=02508201610067®Number=0000000000091764&sum=175000 [01:35:09]OFD Sender: Processing packet 166595 [packets to send 48, broken 47] [01:35:09]ProducePacketName [01:35:09]name=ofd_packets/00166595 [01:35:09]OFD Sender: To server: pG, [01:35:09]CommunicateWithHost lk.salyk.kg:30040 [01:35:09]ConnectInit lk.salyk.kg [01:35:09]written 0, free lines is 4095 [01:35:10]Connected sock=9 [01:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 17 07 01 02 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 66 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E5 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CE 52 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8A 02 00 35 04 06 00 F1 AB 7B FA 2F F2 92 03 2C 39 EA 9B D8 C4 [01:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A7 E9 47 00 03 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 8A 02 00 F4 03 04 00 37 F9 17 67 B6 04 01 00 00 54 7D 4C 58 61 75 35 4E [01:35:10]CommunicateWithHost err = 0 [01:35:10]CheckOFDResponse [01:35:10]1017 (14) - 77093643461234 [01:35:10]1041 (16) - 0000000000871759 [01:35:10]1040 (4) - 166595 [01:35:10]1012 (4) - 22.10.2024 19:12 [01:35:10]1206 (1) - 0 [01:35:10]OFD Sender: Remove packet 166595 [01:35:10]ProducePacketName [01:35:10]name=ofd_packets/00166595 [01:35:10]NVStorageDeleteData [01:35:10]Write to MH i2c: 01 00 00 46 21 67 [01:35:10]Write i2c OK [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: 01 [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: 01 07 00 [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 AE 0C 28 [01:35:10]RasterBufferAndPrint [01:35:10]line [01:35:10]line [01:35:10]line [01:35:10]line [01:35:10]line [01:35:10]written 0, free lines is 3250 [01:35:10]MH_Cut [01:35:10]Write to MH i2c: D1 01 00 4D 21 01 40 [01:35:10]Write i2c OK [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: D1 [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: D1 01 00 [01:35:10]MH_I2C_Read... [01:35:10]Read from MH i2c: D1 01 00 4D 21 00 3F [01:35:10]Write to MH i2c: 01 00 00 4E 21 6F [01:35:10]Write i2c OK [01:35:10]MH_I2C_Read... [01:35:10]OFD Sender: No OFD packet to send [01:35:11]*** Cut start [01:35:11]*** Partial cut [01:35:11]*** CUTSNS_PIN = 1 [01:35:11]*** CUTSNS_PIN = 0 [01:35:11]*** Brake cut motor [01:35:11]Read from MH i2c: 01 [01:35:11]MH_I2C_Read... [01:35:11]*** Stop cut motor [01:35:11]*** Cut end [01:35:11]Read from MH i2c: 01 07 00 [01:35:11]MH_I2C_Read... [01:35:11]Read from MH i2c: 01 07 00 4E 21 00 00 00 00 00 FF 0F 84 [01:35:11]process_action close_receipt done [01:35:11]requested_data is exist [01:35:11]produce_requested_data [01:35:11]requested_item fm.sn is exist - process it [01:35:11]wFMCommunicate request_size=4 [01:35:11]MH_SAM_APDU [01:35:11]CAPDU: 80 11 00 00 [01:35:11]Write to MH i2c: E2 08 00 4F 21 80 11 00 00 00 00 00 00 EA [01:35:11]Write i2c OK [01:35:11]MH_I2C_Read... [01:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:11]Read from MH i2c: E2 [01:35:11]MH_I2C_Read... [01:35:11]Read from MH i2c: E2 17 00 [01:35:11]MH_I2C_Read... [01:35:11]Read from MH i2c: E2 17 00 4F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [01:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:35:11]wFMCommunicate OK [01:35:11]requested_item fd.num is exist - process it [01:35:11]SAM_PROTO_GetFieldsCounters [01:35:11]wFMCommunicate request_size=4 [01:35:11]MH_SAM_APDU [01:35:11]CAPDU: 80 13 00 00 [01:35:11]Write to MH i2c: E2 08 00 50 21 80 13 00 00 00 00 00 00 ED [01:35:11]Write i2c OK [01:35:11]MH_I2C_Read... [01:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:12]Read from MH i2c: E2 [01:35:12]MH_I2C_Read... [01:35:12]Read from MH i2c: E2 62 00 [01:35:12]MH_I2C_Read... [01:35:12]Read from MH i2c: E2 62 00 50 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [01:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:35:12]wFMCommunicate OK [01:35:12]SAM_PROTO_GetFieldsCounters done [01:35:12]requested_item shift.num is exist - process it [01:35:12]requested_item shift.opened is exist - process it [01:35:12]req_shift_opened [01:35:12]FM_GetShiftState [01:35:12]SAM_PROTO_GetShiftState [01:35:12]wFMCommunicate request_size=4 [01:35:12]MH_SAM_APDU [01:35:12]CAPDU: 80 13 01 00 [01:35:12]Write to MH i2c: E2 08 00 51 21 80 13 01 00 00 00 00 00 EF [01:35:12]Write i2c OK [01:35:12]MH_I2C_Read... [01:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:12]Read from MH i2c: E2 [01:35:12]MH_I2C_Read... [01:35:12]Read from MH i2c: E2 0E 00 [01:35:12]MH_I2C_Read... [01:35:12]Read from MH i2c: E2 0E 00 51 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BA [01:35:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:35:12]wFMCommunicate OK [01:35:12]SAM_PROTO_GetShiftState done [01:35:12]FM_GetShiftState done [01:35:12]req_shift_opened done [01:35:12]requested_item shift.open_date is exist - process it [01:35:12]req_shift_open_date [01:35:12]req_shift_open_date done [01:35:12]produce_requested_data done [01:35:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166595,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:35:12]process_action_free close_receipt [01:35:12]json_value_free [01:35:12]json_value_free done [01:35:12]process_json_proto returns [01:35:12]Send response to host [01:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166595,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:35:12]free response buf [01:35:12]execute_script done [01:35:12]execute_script returns [01:35:12]free content buf [01:35:12]Sock 7.Close socket [01:35:12]Sock 7.Thread stoped [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]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:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:08]accept exits with 10 [01:50:08]New connection [01:50:08]New thread 3067489636 created [01:50:08]Thread 3067632996 joined [01:50:08]Waiting for new connection... [01:50:08] Sock 10.Parse request [01:50:08]Sock 10.Check first char [01:50:08]Sock 10.First char is OK [01:50:08]request: POST /json_proto HTTP/1.0 [01:50:08]Method: POST [01:50:08]URL: /json_proto [01:50:08]Method is POST - this is cgi request [01:50:08]url: /json_proto [01:50:08]query_string will be loaded in cgi processing [01:50:08]execute_cgi json_proto POST (null) [01:50:08]execute_cgi path=json_proto method=POST [01:50:08]POST find Content-Length [01:50:08]Host: 172.17.53.195:8080 [01:50:08]Content-Length: 679 [01:50:08]Content-Type: application/json [01:50:08] [01:50:08]POST finish read [01:50:08]Found Content-Length = 679 [01:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:08]execute_script... [01:50:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:08]POST & json_proto [01:50:08]process_json_proto [01:50:08]json parsed OK: [01:50:08]protocol is kg_v1.0 [01:50:08]action value=close_receipt [01:50:08]process_action close_receipt [01:50:08]cmd_close_receipt [01:50:08]MH_GetDate [01:50:08]Write to MH i2c: F0 00 00 52 21 62 [01:50:08]Write i2c OK [01:50:08]MH_I2C_Read... [01:50:08]Read from MH i2c: F0 [01:50:08]MH_I2C_Read... [01:50:08]Read from MH i2c: F0 09 00 [01:50:08]MH_I2C_Read... [01:50:08]Read from MH i2c: F0 09 00 52 21 00 52 56 18 67 21 48 4A 65 AA [01:50:08]GetLastDocTimeStamp 1729647310 [01:50:08]current date 1729648210 [01:50:08]FM_GetShiftState [01:50:08]SAM_PROTO_GetShiftState [01:50:08]wFMCommunicate request_size=4 [01:50:08]MH_SAM_APDU [01:50:08]CAPDU: 80 13 01 00 [01:50:08]Write to MH i2c: E2 08 00 53 21 80 13 01 00 00 00 00 00 F1 [01:50:08]Write i2c OK [01:50:08]MH_I2C_Read... [01:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:08]Read from MH i2c: E2 [01:50:08]MH_I2C_Read... [01:50:08]Read from MH i2c: E2 0E 00 [01:50:08]MH_I2C_Read... [01:50:08]Read from MH i2c: E2 0E 00 53 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 BC [01:50:08]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:50:08]wFMCommunicate OK [01:50:08]SAM_PROTO_GetShiftState done [01:50:08]FM_GetShiftState done [01:50:08]opened in 1729643772 [01:50:08]opened+sec_in_day 1729730172 [01:50:08]quantity*price = 100050 [01:50:08]sum+1 = 100052 [01:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 11 23.10.2024 01:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166596 ФПД: 55792620171321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166596&fm=55792620171321&tin=02508201610067®Number=0000000000091764&sum=100000 [01:50:09]StoreToDocumentArchive [01:50:09]shift 537 fd 166596 [01:50:09]save to /storage/0537/doc_00166596 [01:50:09]save last doc name /storage/0537/doc_00166596 to /storage/kkm_last_doc_name [01:50:09]save OK [01:50:09]Clear old archive folders... [01:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:50:09]tlvbuf is 011F0BA0 [01:50:09]SAM_PROTO_ClearQueue [01:50:09]wFMCommunicate request_size=4 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 09 00 00 [01:50:09]Write to MH i2c: E2 08 00 60 21 80 09 00 00 00 00 00 00 F3 [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [01:50:09]RAPDU: 90 00 [01:50:09]wFMCommunicate OK [01:50:09]SAM_PROTO_ClearQueue done [01:50:09]KKMCreateOFDPacket [01:50:09]OFDProtocolAddRootSTLVToBuf [01:50:09]FM_MakeSignedData [01:50:09]FM_MakeSignedData [01:50:09]SAM_PROTO_SignData [01:50:09]wFMCommunicate request_size=4 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 0D 01 02 [01:50:09]Write to MH i2c: E2 08 00 61 21 80 0D 01 02 00 00 00 00 FB [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [01:50:09]RAPDU: 90 00 [01:50:09]wFMCommunicate OK [01:50:09]wFMCommunicate request_size=255 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 52 56 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8A 02 00 35 04 06 00 32 BE 3B 4E [01:50:09]Write to MH i2c: E2 02 01 62 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 52 56 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8A 02 00 35 04 06 00 32 BE 3B 4E 00 00 9D [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [01:50:09]RAPDU: 90 00 [01:50:09]wFMCommunicate OK [01:50:09]wFMCommunicate request_size=7 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 0D 02 02 02 70 39 [01:50:09]Write to MH i2c: E2 0A 00 63 21 80 0D 02 02 02 00 70 39 00 00 AB [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [01:50:09]RAPDU: 90 00 [01:50:09]wFMCommunicate OK [01:50:09]wFMCommunicate request_size=4 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 0D 03 02 [01:50:09]Write to MH i2c: E2 08 00 64 21 80 0D 03 02 00 00 00 00 00 [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 0B 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 0B 00 64 21 00 53 63 93 5F 6A 1F 24 14 90 00 6A [01:50:09]RAPDU: 53 63 93 5F 6A 1F 24 14 90 00 [01:50:09]wFMCommunicate OK [01:50:09]SAM_PROTO_SignData done [01:50:09]FM_MakeSignedData done [01:50:09]CreateOFDProtocolMessage [01:50:09]wFMCommunicate request_size=4 [01:50:09]MH_SAM_APDU [01:50:09]CAPDU: 80 11 00 00 [01:50:09]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:09]Read from MH i2c: E2 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 17 00 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [01:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:50:09]wFMCommunicate OK [01:50:09]CreateOFDProtocolMessage done [01:50:09]OFDSenderStorePacket 166596 [01:50:09]StoreOFDPacket docnum=166596 [01:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 82 69 04 01 F5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 52 56 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8A 02 00 35 04 06 00 32 BE 3B 4E 70 39 53 63 93 5F 6A 1F 24 14 [01:50:09]CheckFolder [01:50:09]dirname=/storage/ofd_packets [01:50:09]CheckFolder done [01:50:09]ProducePacketName [01:50:09]name=ofd_packets/00166596 [01:50:09]NVStorageSaveData ofd_packets/00166596 [01:50:09]File name is /storage/ofd_packets/00166596 [01:50:09]Write 298 bytes [01:50:09]NVStorageSaveData done [01:50:09]OFDSenderStorePacket done [01:50:09]KKMCreateOFDPacket done [01:50:09]NVStorageSaveData kkm_last_timestamp [01:50:09]File name is /storage/kkm_last_timestamp [01:50:09]Write 4 bytes [01:50:09]NVStorageSaveData done [01:50:09]ExternCall_PrintAddStr [01:50:09]wPrintStart [01:50:09]Write to MH i2c: 01 00 00 66 21 87 [01:50:09]Write i2c OK [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: 01 [01:50:09]MH_I2C_Read... [01:50:09]Read from MH i2c: 01 07 00 [01:50:09]MH_I2C_Read... [01:50:10]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [01:50:10]RasterBufferAndPrint [01:50:10]line Счет N : (1)221176 [01:50:10]line ИНН: 02508201610067 [01:50:10]line Контрольно-Кассовый Чек [01:50:10]line ПРОДАЖА [01:50:10]line ТРК (МРК, ГНК) : 21 [01:50:10]line Товар: 2710194210 [01:50:10]line ДТ-К-5 [01:50:10]line 13.130 * 76.20 [01:50:10]line = 1000.51 [01:50:10]line НДС 12% НСП 1% [01:50:10]line > о реализуемом товаре [01:50:10]line ОКРУГЛЕНИЕ: -0.51 [01:50:10]line ИТОГО: 1000.00 [01:50:10]line Внесено: 1000.00 [01:50:10]line СДАЧА: 0.00 [01:50:10]line НСП 1% : 8.85 [01:50:10]line НДС 12% : 106.25 [01:50:10]line Наличными: 1000.00 [01:50:10]line Безнал.: 0.00 [01:50:10]line Место: АЗС № 161 "Партнер Нефть" [01:50:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:50:10]line СНО: Общий режим [01:50:10]line Чек 11 23.10.2024 01:50 [01:50:10]line Смена: 537 ФФД: 1.0 [01:50:10]line ЗНМ: 0300000104 [01:50:10]line РНМ: 0000000000091764 [01:50:10]line Версия ККМ: 001 [01:50:10]line ФМ: 0000000000871759 [01:50:10]line ФД: 166596 [01:50:10]line ФПД: 55792620171321 [01:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166596&fm=55792620171321&tin=02508201610067®Number=0000000000091764&sum=100000 [01:50:10]OFD Sender: Processing packet 166596 [packets to send 48, broken 47] [01:50:10]ProducePacketName [01:50:10]name=ofd_packets/00166596 [01:50:10]OFD Sender: To server: pG, [01:50:10]CommunicateWithHost lk.salyk.kg:30040 [01:50:10]ConnectInit lk.salyk.kg [01:50:10]written 0, free lines is 4095 [01:50:10]Connected sock=9 [01:50:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 82 69 04 01 F5 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 52 56 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 8A 02 00 35 04 06 00 32 BE 3B 4E 70 39 53 63 93 5F 6A 1F 24 14 [01:50:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 11 A0 47 00 CE 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 31 37 35 39 10 04 04 00 C4 8A 02 00 F4 03 04 00 BC FC 17 67 B6 04 01 00 00 16 8D 34 22 7C D3 97 5E [01:50:10]CommunicateWithHost err = 0 [01:50:10]CheckOFDResponse [01:50:10]1017 (14) - 77093643461234 [01:50:10]1041 (16) - 0000000000871759 [01:50:10]1040 (4) - 166596 [01:50:10]1012 (4) - 22.10.2024 19:27 [01:50:10]1206 (1) - 0 [01:50:10]OFD Sender: Remove packet 166596 [01:50:10]ProducePacketName [01:50:10]name=ofd_packets/00166596 [01:50:10]NVStorageDeleteData [01:50:10]Write to MH i2c: 01 00 00 91 21 B2 [01:50:10]Write i2c OK [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: 01 [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: 01 07 00 [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: 01 07 00 91 21 00 00 00 00 00 A7 0C 6C [01:50:10]RasterBufferAndPrint [01:50:10]line [01:50:10]line [01:50:10]line [01:50:10]line [01:50:10]line [01:50:10]written 0, free lines is 3245 [01:50:10]MH_Cut [01:50:10]Write to MH i2c: D1 01 00 98 21 01 8B [01:50:10]Write i2c OK [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: D1 [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: D1 01 00 [01:50:10]MH_I2C_Read... [01:50:10]Read from MH i2c: D1 01 00 98 21 00 8A [01:50:10]Write to MH i2c: 01 00 00 99 21 BA [01:50:10]Write i2c OK [01:50:10]MH_I2C_Read... [01:50:11]OFD Sender: No OFD packet to send [01:50:11]*** Cut start [01:50:11]*** Partial cut [01:50:11]*** CUTSNS_PIN = 1 [01:50:11]*** CUTSNS_PIN = 0 [01:50:11]*** Brake cut motor [01:50:12]Read from MH i2c: 01 [01:50:12]MH_I2C_Read... [01:50:12]*** Stop cut motor [01:50:12]*** Cut end [01:50:12]Read from MH i2c: 01 07 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: 01 07 00 99 21 00 00 00 00 00 FF 0F CF [01:50:12]process_action close_receipt done [01:50:12]requested_data is exist [01:50:12]produce_requested_data [01:50:12]requested_item fm.sn is exist - process it [01:50:12]wFMCommunicate request_size=4 [01:50:12]MH_SAM_APDU [01:50:12]CAPDU: 80 11 00 00 [01:50:12]Write to MH i2c: E2 08 00 9A 21 80 11 00 00 00 00 00 00 35 [01:50:12]Write i2c OK [01:50:12]MH_I2C_Read... [01:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:12]Read from MH i2c: E2 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 17 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 17 00 9A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [01:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:50:12]wFMCommunicate OK [01:50:12]requested_item fd.num is exist - process it [01:50:12]SAM_PROTO_GetFieldsCounters [01:50:12]wFMCommunicate request_size=4 [01:50:12]MH_SAM_APDU [01:50:12]CAPDU: 80 13 00 00 [01:50:12]Write to MH i2c: E2 08 00 9B 21 80 13 00 00 00 00 00 00 38 [01:50:12]Write i2c OK [01:50:12]MH_I2C_Read... [01:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:12]Read from MH i2c: E2 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 62 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 62 00 9B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [01:50:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:12]wFMCommunicate OK [01:50:12]SAM_PROTO_GetFieldsCounters done [01:50:12]requested_item shift.num is exist - process it [01:50:12]requested_item shift.opened is exist - process it [01:50:12]req_shift_opened [01:50:12]FM_GetShiftState [01:50:12]SAM_PROTO_GetShiftState [01:50:12]wFMCommunicate request_size=4 [01:50:12]MH_SAM_APDU [01:50:12]CAPDU: 80 13 01 00 [01:50:12]Write to MH i2c: E2 08 00 9C 21 80 13 01 00 00 00 00 00 3A [01:50:12]Write i2c OK [01:50:12]MH_I2C_Read... [01:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:12]Read from MH i2c: E2 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 0E 00 [01:50:12]MH_I2C_Read... [01:50:12]Read from MH i2c: E2 0E 00 9C 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 05 [01:50:12]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:50:12]wFMCommunicate OK [01:50:12]SAM_PROTO_GetShiftState done [01:50:12]FM_GetShiftState done [01:50:12]req_shift_opened done [01:50:12]requested_item shift.open_date is exist - process it [01:50:12]req_shift_open_date [01:50:12]req_shift_open_date done [01:50:12]produce_requested_data done [01:50:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166596,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:50:12]process_action_free close_receipt [01:50:12]json_value_free [01:50:12]json_value_free done [01:50:12]process_json_proto returns [01:50:12]Send response to host [01:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166596,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:50:12]free response buf [01:50:12]execute_script done [01:50:12]execute_script returns [01:50:12]free content buf [01:50:12]Sock 10.Close socket [01:50:12]Sock 10.Thread stoped [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:48]accept exits with 7 [01:57:48]New connection [01:57:48]New thread 3067632996 created [01:57:48]Thread 3067489636 joined [01:57:48]Waiting for new connection... [01:57:48] Sock 7.Parse request [01:57:48]Sock 7.Check first char [01:57:48]Sock 7.First char is OK [01:57:48]request: POST /json_proto HTTP/1.0 [01:57:48]Method: POST [01:57:48]URL: /json_proto [01:57:48]Method is POST - this is cgi request [01:57:48]url: /json_proto [01:57:48]query_string will be loaded in cgi processing [01:57:48]execute_cgi json_proto POST (null) [01:57:48]execute_cgi path=json_proto method=POST [01:57:48]POST find Content-Length [01:57:48]Host: 172.17.53.195:8080 [01:57:48]Content-Length: 677 [01:57:48]Content-Type: application/json [01:57:48] [01:57:48]POST finish read [01:57:48]Found Content-Length = 677 [01:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.690, "sum" : 514.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 514.00, "payments": [ { "type": 0, "sum" : 514.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:48]execute_script... [01:57:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.690, "sum" : 514.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 514.00, "payments": [ { "type": 0, "sum" : 514.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:48]POST & json_proto [01:57:48]process_json_proto [01:57:48]json parsed OK: [01:57:48]protocol is kg_v1.0 [01:57:48]action value=close_receipt [01:57:48]process_action close_receipt [01:57:48]cmd_close_receipt [01:57:48]MH_GetDate [01:57:48]Write to MH i2c: F0 00 00 9D 21 AD [01:57:48]Write i2c OK [01:57:48]MH_I2C_Read... [01:57:48]Read from MH i2c: F0 [01:57:48]MH_I2C_Read... [01:57:48]Read from MH i2c: F0 09 00 [01:57:48]MH_I2C_Read... [01:57:48]Read from MH i2c: F0 09 00 9D 21 00 1E 58 18 67 21 48 4A 65 C3 [01:57:48]GetLastDocTimeStamp 1729648210 [01:57:48]current date 1729648670 [01:57:48]FM_GetShiftState [01:57:48]SAM_PROTO_GetShiftState [01:57:48]wFMCommunicate request_size=4 [01:57:48]MH_SAM_APDU [01:57:48]CAPDU: 80 13 01 00 [01:57:48]Write to MH i2c: E2 08 00 9E 21 80 13 01 00 00 00 00 00 3C [01:57:48]Write i2c OK [01:57:48]MH_I2C_Read... [01:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:48]Read from MH i2c: E2 [01:57:48]MH_I2C_Read... [01:57:48]Read from MH i2c: E2 0E 00 [01:57:48]MH_I2C_Read... [01:57:48]Read from MH i2c: E2 0E 00 9E 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 07 [01:57:48]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:57:48]wFMCommunicate OK [01:57:48]SAM_PROTO_GetShiftState done [01:57:48]FM_GetShiftState done [01:57:48]opened in 1729643772 [01:57:48]opened+sec_in_day 1729730172 [01:57:48]quantity*price = 51446 [01:57:48]sum+1 = 51447 [01:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 514.00 Внесено: 515.00 СДАЧА: 1.00 НСП 1% : 4.55 НДС 12% : 54.63 Наличными: 514.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 12 23.10.2024 01:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166597 ФПД: 57795880299624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166597&fm=57795880299624&tin=02508201610067®Number=0000000000091764&sum=51400 [01:57:49]StoreToDocumentArchive [01:57:49]shift 537 fd 166597 [01:57:49]save to /storage/0537/doc_00166597 [01:57:49]save last doc name /storage/0537/doc_00166597 to /storage/kkm_last_doc_name [01:57:49]save OK [01:57:49]Clear old archive folders... [01:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:57:49]tlvbuf is B6F807B0 [01:57:49]SAM_PROTO_ClearQueue [01:57:49]wFMCommunicate request_size=4 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 09 00 00 [01:57:49]Write to MH i2c: E2 08 00 AB 21 80 09 00 00 00 00 00 00 3E [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [01:57:49]RAPDU: 90 00 [01:57:49]wFMCommunicate OK [01:57:49]SAM_PROTO_ClearQueue done [01:57:49]KKMCreateOFDPacket [01:57:49]OFDProtocolAddRootSTLVToBuf [01:57:49]FM_MakeSignedData [01:57:49]FM_MakeSignedData [01:57:49]SAM_PROTO_SignData [01:57:49]wFMCommunicate request_size=4 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 0D 01 02 [01:57:49]Write to MH i2c: E2 08 00 AC 21 80 0D 01 02 00 00 00 00 46 [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [01:57:49]RAPDU: 90 00 [01:57:49]wFMCommunicate OK [01:57:49]wFMCommunicate request_size=255 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 15 00 00 00 00 07 04 06 00 C8 C8 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 1E 58 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8A 02 00 35 04 06 00 34 [01:57:49]Write to MH i2c: E2 02 01 AD 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 15 00 00 00 00 07 04 06 00 C8 C8 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 1E 58 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8A 02 00 35 04 06 00 34 00 00 6E [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [01:57:49]RAPDU: 90 00 [01:57:49]wFMCommunicate OK [01:57:49]wFMCommunicate request_size=10 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 0D 02 02 05 90 A6 EA 2C 68 [01:57:49]Write to MH i2c: E2 0D 00 AE 21 80 0D 02 02 05 00 90 A6 EA 2C 68 00 00 07 [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 03 00 AE 21 00 90 00 43 [01:57:49]RAPDU: 90 00 [01:57:49]wFMCommunicate OK [01:57:49]wFMCommunicate request_size=4 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 0D 03 02 [01:57:49]Write to MH i2c: E2 08 00 AF 21 80 0D 03 02 00 00 00 00 4B [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 0B 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 0B 00 AF 21 00 9B 6A 20 51 67 25 AF 25 90 00 22 [01:57:49]RAPDU: 9B 6A 20 51 67 25 AF 25 90 00 [01:57:49]wFMCommunicate OK [01:57:49]SAM_PROTO_SignData done [01:57:49]FM_MakeSignedData done [01:57:49]CreateOFDProtocolMessage [01:57:49]wFMCommunicate request_size=4 [01:57:49]MH_SAM_APDU [01:57:49]CAPDU: 80 11 00 00 [01:57:49]Write to MH i2c: E2 08 00 B0 21 80 11 00 00 00 00 00 00 4B [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:49]Read from MH i2c: E2 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 17 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: E2 17 00 B0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [01:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:57:49]wFMCommunicate OK [01:57:49]CreateOFDProtocolMessage done [01:57:49]OFDSenderStorePacket 166597 [01:57:49]StoreOFDPacket docnum=166597 [01:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 0F 07 01 93 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 15 00 00 00 00 07 04 06 00 C8 C8 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 1E 58 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8A 02 00 35 04 06 00 34 90 A6 EA 2C 68 9B 6A 20 51 67 25 AF 25 [01:57:49]CheckFolder [01:57:49]dirname=/storage/ofd_packets [01:57:49]CheckFolder done [01:57:49]ProducePacketName [01:57:49]name=ofd_packets/00166597 [01:57:49]NVStorageSaveData ofd_packets/00166597 [01:57:49]File name is /storage/ofd_packets/00166597 [01:57:49]Write 301 bytes [01:57:49]NVStorageSaveData done [01:57:49]OFDSenderStorePacket done [01:57:49]KKMCreateOFDPacket done [01:57:49]NVStorageSaveData kkm_last_timestamp [01:57:49]File name is /storage/kkm_last_timestamp [01:57:49]Write 4 bytes [01:57:49]NVStorageSaveData done [01:57:49]ExternCall_PrintAddStr [01:57:49]wPrintStart [01:57:49]Write to MH i2c: 01 00 00 B1 21 D2 [01:57:49]Write i2c OK [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: 01 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: 01 07 00 [01:57:49]MH_I2C_Read... [01:57:49]Read from MH i2c: 01 07 00 B1 21 00 00 00 00 00 FF 0F E7 [01:57:49]RasterBufferAndPrint [01:57:49]line Счет N : (1)221177 [01:57:49]line ИНН: 02508201610067 [01:57:49]line Контрольно-Кассовый Чек [01:57:49]line ПРОДАЖА [01:57:49]line ТРК (МРК, ГНК) : 13 [01:57:49]line Товар: 2710124130 [01:57:49]line Аи-92-К-5 [01:57:49]line 7.690 * 66.90 [01:57:49]line = 514.46 [01:57:49]line НДС 12% НСП 1% [01:57:49]line > о реализуемом товаре [01:57:49]line ОКРУГЛЕНИЕ: -0.46 [01:57:49]line ИТОГО: 514.00 [01:57:49]line Внесено: 515.00 [01:57:49]line СДАЧА: 1.00 [01:57:49]line НСП 1% : 4.55 [01:57:49]line НДС 12% : 54.63 [01:57:49]line Наличными: 514.00 [01:57:49]line Безнал.: 0.00 [01:57:49]line Место: АЗС № 161 "Партнер Нефть" [01:57:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:57:49]line СНО: Общий режим [01:57:49]line Чек 12 23.10.2024 01:57 [01:57:49]line Смена: 537 ФФД: 1.0 [01:57:49]line ЗНМ: 0300000104 [01:57:49]line РНМ: 0000000000091764 [01:57:49]line Версия ККМ: 001 [01:57:49]line ФМ: 0000000000871759 [01:57:49]line ФД: 166597 [01:57:49]line ФПД: 57795880299624 [01:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T015750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166597&fm=57795880299624&tin=02508201610067®Number=0000000000091764&sum=51400 [01:57:50]OFD Sender: Processing packet 166597 [packets to send 48, broken 47] [01:57:50]ProducePacketName [01:57:50]name=ofd_packets/00166597 [01:57:50]OFD Sender: To server: pG, [01:57:50]CommunicateWithHost lk.salyk.kg:30040 [01:57:50]ConnectInit lk.salyk.kg [01:57:50]written 0, free lines is 4095 [01:57:50]Connected sock=10 [01:57:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 0F 07 01 93 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 15 00 00 00 00 07 04 06 00 C8 C8 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 1E 58 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8A 02 00 35 04 06 00 34 90 A6 EA 2C 68 9B 6A 20 51 67 25 AF 25 [01:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 00 47 00 F1 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 8A 02 00 F4 03 04 00 87 FE 17 67 B6 04 01 00 00 09 73 03 E1 4F 65 77 50 [01:57:50]CommunicateWithHost err = 0 [01:57:50]CheckOFDResponse [01:57:50]1017 (14) - 77093643461234 [01:57:50]1041 (16) - 0000000000871759 [01:57:50]1040 (4) - 166597 [01:57:50]1012 (4) - 22.10.2024 19:35 [01:57:50]1206 (1) - 0 [01:57:50]OFD Sender: Remove packet 166597 [01:57:50]ProducePacketName [01:57:50]name=ofd_packets/00166597 [01:57:50]NVStorageDeleteData [01:57:50]Write to MH i2c: 01 00 00 DC 21 FD [01:57:50]Write i2c OK [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: 01 [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: 01 07 00 [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: 01 07 00 DC 21 00 00 00 00 00 AB 0C BB [01:57:50]RasterBufferAndPrint [01:57:50]line [01:57:50]line [01:57:50]line [01:57:50]line [01:57:50]line [01:57:50]written 0, free lines is 3249 [01:57:50]MH_Cut [01:57:50]Write to MH i2c: D1 01 00 E3 21 01 D6 [01:57:50]Write i2c OK [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: D1 [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: D1 01 00 [01:57:50]MH_I2C_Read... [01:57:50]Read from MH i2c: D1 01 00 E3 21 00 D5 [01:57:50]Write to MH i2c: 01 00 00 E4 21 05 [01:57:50]Write i2c OK [01:57:50]MH_I2C_Read... [01:57:51]OFD Sender: No OFD packet to send [01:57:51]*** Cut start [01:57:51]*** Partial cut [01:57:51]*** CUTSNS_PIN = 1 [01:57:51]*** CUTSNS_PIN = 0 [01:57:51]*** Brake cut motor [01:57:52]Read from MH i2c: 01 [01:57:52]MH_I2C_Read... [01:57:52]*** Stop cut motor [01:57:52]*** Cut end [01:57:52]Read from MH i2c: 01 07 00 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: 01 07 00 E4 21 00 00 00 00 00 FF 0F 1A [01:57:52]process_action close_receipt done [01:57:52]requested_data is exist [01:57:52]produce_requested_data [01:57:52]requested_item fm.sn is exist - process it [01:57:52]wFMCommunicate request_size=4 [01:57:52]MH_SAM_APDU [01:57:52]CAPDU: 80 11 00 00 [01:57:52]Write to MH i2c: E2 08 00 E5 21 80 11 00 00 00 00 00 00 80 [01:57:52]Write i2c OK [01:57:52]MH_I2C_Read... [01:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:52]Read from MH i2c: E2 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 17 00 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 17 00 E5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [01:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:57:52]wFMCommunicate OK [01:57:52]requested_item fd.num is exist - process it [01:57:52]SAM_PROTO_GetFieldsCounters [01:57:52]wFMCommunicate request_size=4 [01:57:52]MH_SAM_APDU [01:57:52]CAPDU: 80 13 00 00 [01:57:52]Write to MH i2c: E2 08 00 E6 21 80 13 00 00 00 00 00 00 83 [01:57:52]Write i2c OK [01:57:52]MH_I2C_Read... [01:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:57:52]Read from MH i2c: E2 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 62 00 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 62 00 E6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [01:57:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:57:52]wFMCommunicate OK [01:57:52]SAM_PROTO_GetFieldsCounters done [01:57:52]requested_item shift.num is exist - process it [01:57:52]requested_item shift.opened is exist - process it [01:57:52]req_shift_opened [01:57:52]FM_GetShiftState [01:57:52]SAM_PROTO_GetShiftState [01:57:52]wFMCommunicate request_size=4 [01:57:52]MH_SAM_APDU [01:57:52]CAPDU: 80 13 01 00 [01:57:52]Write to MH i2c: E2 08 00 E7 21 80 13 01 00 00 00 00 00 85 [01:57:52]Write i2c OK [01:57:52]MH_I2C_Read... [01:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:52]Read from MH i2c: E2 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 0E 00 [01:57:52]MH_I2C_Read... [01:57:52]Read from MH i2c: E2 0E 00 E7 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 50 [01:57:52]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [01:57:52]wFMCommunicate OK [01:57:52]SAM_PROTO_GetShiftState done [01:57:52]FM_GetShiftState done [01:57:52]req_shift_opened done [01:57:52]requested_item shift.open_date is exist - process it [01:57:52]req_shift_open_date [01:57:52]req_shift_open_date done [01:57:52]produce_requested_data done [01:57:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166597,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [01:57:52]process_action_free close_receipt [01:57:52]json_value_free [01:57:52]json_value_free done [01:57:52]process_json_proto returns [01:57:52]Send response to host [01:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166597,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [01:57:52]free response buf [01:57:52]execute_script done [01:57:52]execute_script returns [01:57:52]free content buf [01:57:52]Sock 7.Close socket [01:57:52]Sock 7.Thread stoped [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11: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]accept exits with 9 [02:14:16]New connection [02:14:16]New thread 3067489636 created [02:14:16]Thread 3067632996 joined [02:14:16]Waiting for new connection... [02:14:16] Sock 9.Parse request [02:14:16]Sock 9.Check first char [02:14:16]Sock 9.First char is OK [02:14:16]request: POST /json_proto HTTP/1.0 [02:14:16]Method: POST [02:14:16]URL: /json_proto [02:14:16]Method is POST - this is cgi request [02:14:16]url: /json_proto [02:14:16]query_string will be loaded in cgi processing [02:14:16]execute_cgi json_proto POST (null) [02:14:16]execute_cgi path=json_proto method=POST [02:14:16]POST find Content-Length [02:14:16]Host: 172.17.53.195:8080 [02:14:16]Content-Length: 682 [02:14:16]Content-Type: application/json [02:14:16] [02:14:16]POST finish read [02:14:16]Found Content-Length = 682 [02:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:16]execute_script... [02:14:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:16]POST & json_proto [02:14:16]process_json_proto [02:14:16]json parsed OK: [02:14:16]protocol is kg_v1.0 [02:14:16]action value=close_receipt [02:14:16]process_action close_receipt [02:14:16]cmd_close_receipt [02:14:16]MH_GetDate [02:14:16]Write to MH i2c: F0 00 00 E8 21 F8 [02:14:16]Write i2c OK [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: F0 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: F0 09 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: F0 09 00 E8 21 00 FB 5B 18 67 21 48 4A 65 EE [02:14:16]GetLastDocTimeStamp 1729648670 [02:14:16]current date 1729649659 [02:14:16]FM_GetShiftState [02:14:16]SAM_PROTO_GetShiftState [02:14:16]wFMCommunicate request_size=4 [02:14:16]MH_SAM_APDU [02:14:16]CAPDU: 80 13 01 00 [02:14:16]Write to MH i2c: E2 08 00 E9 21 80 13 01 00 00 00 00 00 87 [02:14:16]Write i2c OK [02:14:16]MH_I2C_Read... [02:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:16]Read from MH i2c: E2 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 0E 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 0E 00 E9 21 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 52 [02:14:16]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:14:16]wFMCommunicate OK [02:14:16]SAM_PROTO_GetShiftState done [02:14:16]FM_GetShiftState done [02:14:16]opened in 1729643772 [02:14:16]opened+sec_in_day 1729730172 [02:14:16]quantity*price = 100021 [02:14:16]sum+1 = 100023 [02:14:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 13 23.10.2024 02:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166598 ФПД: 185068715868172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T021419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166598&fm=185068715868172&tin=02508201610067®Number=0000000000091764&sum=100000 [02:14:17]StoreToDocumentArchive [02:14:17]shift 537 fd 166598 [02:14:17]save to /storage/0537/doc_00166598 [02:14:17]save last doc name /storage/0537/doc_00166598 to /storage/kkm_last_doc_name [02:14:17]save OK [02:14:17]Clear old archive folders... [02:14:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:14:17]tlvbuf is 0120B490 [02:14:17]SAM_PROTO_ClearQueue [02:14:17]wFMCommunicate request_size=4 [02:14:17]MH_SAM_APDU [02:14:17]CAPDU: 80 09 00 00 [02:14:17]Write to MH i2c: E2 08 00 F6 21 80 09 00 00 00 00 00 00 89 [02:14:17]Write i2c OK [02:14:17]MH_I2C_Read... [02:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:17]Read from MH i2c: E2 [02:14:17]MH_I2C_Read... [02:14:17]Read from MH i2c: E2 03 00 [02:14:17]MH_I2C_Read... [02:14:17]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [02:14:17]RAPDU: 90 00 [02:14:17]wFMCommunicate OK [02:14:17]SAM_PROTO_ClearQueue done [02:14:17]KKMCreateOFDPacket [02:14:17]OFDProtocolAddRootSTLVToBuf [02:14:17]FM_MakeSignedData [02:14:17]FM_MakeSignedData [02:14:17]SAM_PROTO_SignData [02:14:17]wFMCommunicate request_size=4 [02:14:17]MH_SAM_APDU [02:14:17]CAPDU: 80 0D 01 02 [02:14:17]Write to MH i2c: E2 08 00 F7 21 80 0D 01 02 00 00 00 00 91 [02:14:17]Write i2c OK [02:14:17]MH_I2C_Read... [02:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:17]Read from MH i2c: E2 [02:14:17]MH_I2C_Read... [02:14:17]Read from MH i2c: E2 03 00 [02:14:17]MH_I2C_Read... [02:14:17]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [02:14:17]RAPDU: 90 00 [02:14:17]wFMCommunicate OK [02:14:17]wFMCommunicate request_size=255 [02:14:17]MH_SAM_APDU [02:14:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FB 5B 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8A 02 00 35 04 06 00 A8 [02:14:17]Write to MH i2c: E2 02 01 F8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FB 5B 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8A 02 00 35 04 06 00 A8 00 00 3B [02:14:17]Write i2c OK [02:14:17]MH_I2C_Read... [02:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:18]Read from MH i2c: E2 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 03 00 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [02:14:18]RAPDU: 90 00 [02:14:18]wFMCommunicate OK [02:14:18]wFMCommunicate request_size=10 [02:14:18]MH_SAM_APDU [02:14:18]CAPDU: 80 0D 02 02 05 51 AB 11 80 0C [02:14:18]Write to MH i2c: E2 0D 00 F9 21 80 0D 02 02 05 00 51 AB 11 80 0C 00 00 37 [02:14:18]Write i2c OK [02:14:18]MH_I2C_Read... [02:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:18]Read from MH i2c: E2 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 03 00 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [02:14:18]RAPDU: 90 00 [02:14:18]wFMCommunicate OK [02:14:18]wFMCommunicate request_size=4 [02:14:18]MH_SAM_APDU [02:14:18]CAPDU: 80 0D 03 02 [02:14:18]Write to MH i2c: E2 08 00 FA 21 80 0D 03 02 00 00 00 00 96 [02:14:18]Write i2c OK [02:14:18]MH_I2C_Read... [02:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:18]Read from MH i2c: E2 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 0B 00 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 0B 00 FA 21 00 98 18 0B CD B6 B3 40 CD 90 00 95 [02:14:18]RAPDU: 98 18 0B CD B6 B3 40 CD 90 00 [02:14:18]wFMCommunicate OK [02:14:18]SAM_PROTO_SignData done [02:14:18]FM_MakeSignedData done [02:14:18]CreateOFDProtocolMessage [02:14:18]wFMCommunicate request_size=4 [02:14:18]MH_SAM_APDU [02:14:18]CAPDU: 80 11 00 00 [02:14:18]Write to MH i2c: E2 08 00 FB 21 80 11 00 00 00 00 00 00 96 [02:14:18]Write i2c OK [02:14:18]MH_I2C_Read... [02:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:18]Read from MH i2c: E2 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 17 00 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: E2 17 00 FB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [02:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:14:18]wFMCommunicate OK [02:14:18]CreateOFDProtocolMessage done [02:14:18]OFDSenderStorePacket 166598 [02:14:18]StoreOFDPacket docnum=166598 [02:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A C8 07 01 C1 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FB 5B 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8A 02 00 35 04 06 00 A8 51 AB 11 80 0C 98 18 0B CD B6 B3 40 CD [02:14:18]CheckFolder [02:14:18]dirname=/storage/ofd_packets [02:14:18]CheckFolder done [02:14:18]ProducePacketName [02:14:18]name=ofd_packets/00166598 [02:14:18]NVStorageSaveData ofd_packets/00166598 [02:14:18]File name is /storage/ofd_packets/00166598 [02:14:18]Write 301 bytes [02:14:18]NVStorageSaveData done [02:14:18]OFDSenderStorePacket done [02:14:18]KKMCreateOFDPacket done [02:14:18]NVStorageSaveData kkm_last_timestamp [02:14:18]File name is /storage/kkm_last_timestamp [02:14:18]Write 4 bytes [02:14:18]NVStorageSaveData done [02:14:18]ExternCall_PrintAddStr [02:14:18]wPrintStart [02:14:18]Write to MH i2c: 01 00 00 FC 21 1D [02:14:18]Write i2c OK [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: 01 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: 01 07 00 [02:14:18]MH_I2C_Read... [02:14:18]Read from MH i2c: 01 07 00 FC 21 00 00 00 00 00 FF 0F 32 [02:14:18]RasterBufferAndPrint [02:14:18]line Счет N : (1)221178 [02:14:18]line ИНН: 02508201610067 [02:14:18]line Контрольно-Кассовый Чек [02:14:18]line ПРОДАЖА [02:14:18]line ТРК (МРК, ГНК) : 34 [02:14:18]line Товар: 2710124500 [02:14:18]line Аи-95-К-5 [02:14:18]line 13.480 * 74.20 [02:14:18]line = 1000.22 [02:14:18]line НДС 12% НСП 1% [02:14:18]line > о реализуемом товаре [02:14:18]line ОКРУГЛЕНИЕ: -0.22 [02:14:18]line ИТОГО: 1000.00 [02:14:18]line Внесено: 1000.00 [02:14:18]line СДАЧА: 0.00 [02:14:18]line НСП 1% : 8.85 [02:14:18]line НДС 12% : 106.22 [02:14:18]line Наличными: 1000.00 [02:14:18]line Безнал.: 0.00 [02:14:18]line Место: АЗС № 161 "Партнер Нефть" [02:14:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:14:18]line СНО: Общий режим [02:14:18]line Чек 13 23.10.2024 02:14 [02:14:18]line Смена: 537 ФФД: 1.0 [02:14:18]line ЗНМ: 0300000104 [02:14:18]line РНМ: 0000000000091764 [02:14:18]line Версия ККМ: 001 [02:14:18]line ФМ: 0000000000871759 [02:14:18]line ФД: 166598 [02:14:18]line ФПД: 185068715868172 [02:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T021419&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166598&fm=185068715868172&tin=02508201610067®Number=0000000000091764&sum=100000 [02:14:18]OFD Sender: Processing packet 166598 [packets to send 48, broken 47] [02:14:18]ProducePacketName [02:14:18]name=ofd_packets/00166598 [02:14:18]OFD Sender: To server: pG, [02:14:18]CommunicateWithHost lk.salyk.kg:30040 [02:14:18]ConnectInit lk.salyk.kg [02:14:18]written 0, free lines is 4095 [02:14:18]Connected sock=10 [02:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A C8 07 01 C1 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FB 5B 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8A 02 00 35 04 06 00 A8 51 AB 11 80 0C 98 18 0B CD B6 B3 40 CD [02:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF F6 47 00 6B F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 8A 02 00 F4 03 04 00 64 02 18 67 B6 04 01 00 00 C1 3B FB 94 F8 4E BD E6 [02:14:18]CommunicateWithHost err = 0 [02:14:18]CheckOFDResponse [02:14:18]1017 (14) - 77093643461234 [02:14:18]1041 (16) - 0000000000871759 [02:14:18]1040 (4) - 166598 [02:14:18]1012 (4) - 22.10.2024 19:52 [02:14:18]1206 (1) - 0 [02:14:18]OFD Sender: Remove packet 166598 [02:14:18]ProducePacketName [02:14:18]name=ofd_packets/00166598 [02:14:18]NVStorageDeleteData [02:14:19]Write to MH i2c: 01 00 00 27 22 49 [02:14:19]Write i2c OK [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: 01 [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: 01 07 00 [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: 01 07 00 27 22 00 00 00 00 00 B2 0C 0E [02:14:19]RasterBufferAndPrint [02:14:19]line [02:14:19]line [02:14:19]line [02:14:19]line [02:14:19]line [02:14:19]written 0, free lines is 3257 [02:14:19]MH_Cut [02:14:19]Write to MH i2c: D1 01 00 2E 22 01 22 [02:14:19]Write i2c OK [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: D1 [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: D1 01 00 [02:14:19]MH_I2C_Read... [02:14:19]Read from MH i2c: D1 01 00 2E 22 00 21 [02:14:19]Write to MH i2c: 01 00 00 2F 22 51 [02:14:19]Write i2c OK [02:14:19]MH_I2C_Read... [02:14:19]OFD Sender: No OFD packet to send [02:14:19]*** Cut start [02:14:19]*** Partial cut [02:14:19]*** CUTSNS_PIN = 1 [02:14:19]*** CUTSNS_PIN = 0 [02:14:20]*** Brake cut motor [02:14:20]Read from MH i2c: 01 [02:14:20]MH_I2C_Read... [02:14:20]*** Stop cut motor [02:14:20]*** Cut end [02:14:20]Read from MH i2c: 01 07 00 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: 01 07 00 2F 22 00 00 00 00 00 FF 0F 66 [02:14:20]process_action close_receipt done [02:14:20]requested_data is exist [02:14:20]produce_requested_data [02:14:20]requested_item fm.sn is exist - process it [02:14:20]wFMCommunicate request_size=4 [02:14:20]MH_SAM_APDU [02:14:20]CAPDU: 80 11 00 00 [02:14:20]Write to MH i2c: E2 08 00 30 22 80 11 00 00 00 00 00 00 CC [02:14:20]Write i2c OK [02:14:20]MH_I2C_Read... [02:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:20]Read from MH i2c: E2 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 17 00 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 17 00 30 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [02:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:14:20]wFMCommunicate OK [02:14:20]requested_item fd.num is exist - process it [02:14:20]SAM_PROTO_GetFieldsCounters [02:14:20]wFMCommunicate request_size=4 [02:14:20]MH_SAM_APDU [02:14:20]CAPDU: 80 13 00 00 [02:14:20]Write to MH i2c: E2 08 00 31 22 80 13 00 00 00 00 00 00 CF [02:14:20]Write i2c OK [02:14:20]MH_I2C_Read... [02:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:20]Read from MH i2c: E2 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 62 00 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 62 00 31 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [02:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:14:20]wFMCommunicate OK [02:14:20]SAM_PROTO_GetFieldsCounters done [02:14:20]requested_item shift.num is exist - process it [02:14:20]requested_item shift.opened is exist - process it [02:14:20]req_shift_opened [02:14:20]FM_GetShiftState [02:14:20]SAM_PROTO_GetShiftState [02:14:20]wFMCommunicate request_size=4 [02:14:20]MH_SAM_APDU [02:14:20]CAPDU: 80 13 01 00 [02:14:20]Write to MH i2c: E2 08 00 32 22 80 13 01 00 00 00 00 00 D1 [02:14:20]Write i2c OK [02:14:20]MH_I2C_Read... [02:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:20]Read from MH i2c: E2 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 0E 00 [02:14:20]MH_I2C_Read... [02:14:20]Read from MH i2c: E2 0E 00 32 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9C [02:14:20]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:14:20]wFMCommunicate OK [02:14:20]SAM_PROTO_GetShiftState done [02:14:20]FM_GetShiftState done [02:14:20]req_shift_opened done [02:14:20]requested_item shift.open_date is exist - process it [02:14:20]req_shift_open_date [02:14:20]req_shift_open_date done [02:14:20]produce_requested_data done [02:14:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166598,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [02:14:20]process_action_free close_receipt [02:14:20]json_value_free [02:14:20]json_value_free done [02:14:20]process_json_proto returns [02:14:20]Send response to host [02:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166598,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [02:14:20]free response buf [02:14:20]execute_script done [02:14:20]execute_script returns [02:14:20]free content buf [02:14:20]Sock 9.Close socket [02:14:20]Sock 9.Thread stoped [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:19]accept exits with 7 [02:36:19]New connection [02:36:19]New thread 3067632996 created [02:36:19]Thread 3067489636 joined [02:36:19]Waiting for new connection... [02:36:19] Sock 7.Parse request [02:36:19]Sock 7.Check first char [02:36:19]Sock 7.First char is OK [02:36:19]request: POST /json_proto HTTP/1.0 [02:36:19]Method: POST [02:36:19]URL: /json_proto [02:36:19]Method is POST - this is cgi request [02:36:19]url: /json_proto [02:36:19]query_string will be loaded in cgi processing [02:36:19]execute_cgi json_proto POST (null) [02:36:19]execute_cgi path=json_proto method=POST [02:36:19]POST find Content-Length [02:36:19]Host: 172.17.53.195:8080 [02:36:19]Content-Length: 677 [02:36:19]Content-Type: application/json [02:36:19] [02:36:19]POST finish read [02:36:19]Found Content-Length = 677 [02:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:19]execute_script... [02:36:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:19]POST & json_proto [02:36:19]process_json_proto [02:36:19]json parsed OK: [02:36:19]protocol is kg_v1.0 [02:36:19]action value=close_receipt [02:36:19]process_action close_receipt [02:36:19]cmd_close_receipt [02:36:19]MH_GetDate [02:36:19]Write to MH i2c: F0 00 00 33 22 44 [02:36:19]Write i2c OK [02:36:19]MH_I2C_Read... [02:36:19]Read from MH i2c: F0 [02:36:19]MH_I2C_Read... [02:36:19]Read from MH i2c: F0 09 00 [02:36:19]MH_I2C_Read... [02:36:19]Read from MH i2c: F0 09 00 33 22 00 26 61 18 67 21 48 4A 65 6B [02:36:19]GetLastDocTimeStamp 1729649659 [02:36:19]current date 1729650982 [02:36:19]FM_GetShiftState [02:36:19]SAM_PROTO_GetShiftState [02:36:19]wFMCommunicate request_size=4 [02:36:19]MH_SAM_APDU [02:36:19]CAPDU: 80 13 01 00 [02:36:19]Write to MH i2c: E2 08 00 34 22 80 13 01 00 00 00 00 00 D3 [02:36:19]Write i2c OK [02:36:19]MH_I2C_Read... [02:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:19]Read from MH i2c: E2 [02:36:19]MH_I2C_Read... [02:36:19]Read from MH i2c: E2 0E 00 [02:36:19]MH_I2C_Read... [02:36:19]Read from MH i2c: E2 0E 00 34 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 9E [02:36:19]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:36:19]wFMCommunicate OK [02:36:19]SAM_PROTO_GetShiftState done [02:36:19]FM_GetShiftState done [02:36:19]opened in 1729643772 [02:36:19]opened+sec_in_day 1729730172 [02:36:19]quantity*price = 50010 [02:36:19]sum+1 = 50012 [02:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 14 23.10.2024 02:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166599 ФПД: 24582213970812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023622&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166599&fm=24582213970812&tin=02508201610067®Number=0000000000091764&sum=50000 [02:36:20]StoreToDocumentArchive [02:36:20]shift 537 fd 166599 [02:36:20]save to /storage/0537/doc_00166599 [02:36:20]save last doc name /storage/0537/doc_00166599 to /storage/kkm_last_doc_name [02:36:20]save OK [02:36:20]Clear old archive folders... [02:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:36:20]tlvbuf is 0120BAD0 [02:36:20]SAM_PROTO_ClearQueue [02:36:20]wFMCommunicate request_size=4 [02:36:20]MH_SAM_APDU [02:36:20]CAPDU: 80 09 00 00 [02:36:20]Write to MH i2c: E2 08 00 41 22 80 09 00 00 00 00 00 00 D5 [02:36:20]Write i2c OK [02:36:20]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [02:36:21]RAPDU: 90 00 [02:36:21]wFMCommunicate OK [02:36:21]SAM_PROTO_ClearQueue done [02:36:21]KKMCreateOFDPacket [02:36:21]OFDProtocolAddRootSTLVToBuf [02:36:21]FM_MakeSignedData [02:36:21]FM_MakeSignedData [02:36:21]SAM_PROTO_SignData [02:36:21]wFMCommunicate request_size=4 [02:36:21]MH_SAM_APDU [02:36:21]CAPDU: 80 0D 01 02 [02:36:21]Write to MH i2c: E2 08 00 42 22 80 0D 01 02 00 00 00 00 DD [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [02:36:21]RAPDU: 90 00 [02:36:21]wFMCommunicate OK [02:36:21]wFMCommunicate request_size=255 [02:36:21]MH_SAM_APDU [02:36:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 26 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8A 02 00 35 04 06 00 16 [02:36:21]Write to MH i2c: E2 02 01 43 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 26 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8A 02 00 35 04 06 00 16 00 00 E3 [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [02:36:21]RAPDU: 90 00 [02:36:21]wFMCommunicate OK [02:36:21]wFMCommunicate request_size=10 [02:36:21]MH_SAM_APDU [02:36:21]CAPDU: 80 0D 02 02 05 5B 7E 21 AB 7C [02:36:21]Write to MH i2c: E2 0D 00 44 22 80 0D 02 02 05 00 5B 7E 21 AB 7C 00 00 0B [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [02:36:21]RAPDU: 90 00 [02:36:21]wFMCommunicate OK [02:36:21]wFMCommunicate request_size=4 [02:36:21]MH_SAM_APDU [02:36:21]CAPDU: 80 0D 03 02 [02:36:21]Write to MH i2c: E2 08 00 45 22 80 0D 03 02 00 00 00 00 E2 [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 0B 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 0B 00 45 22 00 ED 87 8D 5B BF 4A 6B 11 90 00 C4 [02:36:21]RAPDU: ED 87 8D 5B BF 4A 6B 11 90 00 [02:36:21]wFMCommunicate OK [02:36:21]SAM_PROTO_SignData done [02:36:21]FM_MakeSignedData done [02:36:21]CreateOFDProtocolMessage [02:36:21]wFMCommunicate request_size=4 [02:36:21]MH_SAM_APDU [02:36:21]CAPDU: 80 11 00 00 [02:36:21]Write to MH i2c: E2 08 00 46 22 80 11 00 00 00 00 00 00 E2 [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:21]Read from MH i2c: E2 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 17 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: E2 17 00 46 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [02:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:36:21]wFMCommunicate OK [02:36:21]CreateOFDProtocolMessage done [02:36:21]OFDSenderStorePacket 166599 [02:36:21]StoreOFDPacket docnum=166599 [02:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 73 07 01 52 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 26 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8A 02 00 35 04 06 00 16 5B 7E 21 AB 7C ED 87 8D 5B BF 4A 6B 11 [02:36:21]CheckFolder [02:36:21]dirname=/storage/ofd_packets [02:36:21]CheckFolder done [02:36:21]ProducePacketName [02:36:21]name=ofd_packets/00166599 [02:36:21]NVStorageSaveData ofd_packets/00166599 [02:36:21]File name is /storage/ofd_packets/00166599 [02:36:21]Write 301 bytes [02:36:21]NVStorageSaveData done [02:36:21]OFDSenderStorePacket done [02:36:21]KKMCreateOFDPacket done [02:36:21]NVStorageSaveData kkm_last_timestamp [02:36:21]File name is /storage/kkm_last_timestamp [02:36:21]Write 4 bytes [02:36:21]NVStorageSaveData done [02:36:21]ExternCall_PrintAddStr [02:36:21]wPrintStart [02:36:21]Write to MH i2c: 01 00 00 47 22 69 [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 07 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 07 00 47 22 00 00 00 00 00 FF 0F 7E [02:36:21]RasterBufferAndPrint [02:36:21]line Счет N : (1)221179 [02:36:21]line ИНН: 02508201610067 [02:36:21]line Контрольно-Кассовый Чек [02:36:21]line ПРОДАЖА [02:36:21]line ТРК (МРК, ГНК) : 24 [02:36:21]line Товар: 2710124500 [02:36:21]line Аи-95-К-5 [02:36:21]line 6.740 * 74.20 [02:36:21]line = 500.11 [02:36:21]line НДС 12% НСП 1% [02:36:21]line > о реализуемом товаре [02:36:21]line ОКРУГЛЕНИЕ: -0.11 [02:36:21]line ИТОГО: 500.00 [02:36:21]line Внесено: 500.00 [02:36:21]line СДАЧА: 0.00 [02:36:21]line НСП 1% : 4.43 [02:36:21]line НДС 12% : 53.11 [02:36:21]line Наличными: 500.00 [02:36:21]line Безнал.: 0.00 [02:36:21]line Место: АЗС № 161 "Партнер Нефть" [02:36:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:36:21]line СНО: Общий режим [02:36:21]line Чек 14 23.10.2024 02:36 [02:36:21]line Смена: 537 ФФД: 1.0 [02:36:21]line ЗНМ: 0300000104 [02:36:21]line РНМ: 0000000000091764 [02:36:21]line Версия ККМ: 001 [02:36:21]line ФМ: 0000000000871759 [02:36:21]line ФД: 166599 [02:36:21]line ФПД: 24582213970812 [02:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023622&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166599&fm=24582213970812&tin=02508201610067®Number=0000000000091764&sum=50000 [02:36:21]written 0, free lines is 4095 [02:36:21]OFD Sender: Processing packet 166599 [packets to send 48, broken 47] [02:36:21]ProducePacketName [02:36:21]name=ofd_packets/00166599 [02:36:21]OFD Sender: To server: pG, [02:36:21]CommunicateWithHost lk.salyk.kg:30040 [02:36:21]ConnectInit lk.salyk.kg [02:36:21]Connected sock=9 [02:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 73 07 01 52 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 26 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8A 02 00 35 04 06 00 16 5B 7E 21 AB 7C ED 87 8D 5B BF 4A 6B 11 [02:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 24 BB 47 00 9D F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 8A 02 00 F4 03 04 00 8F 07 18 67 B6 04 01 00 00 32 37 97 D2 D7 7A FB 86 [02:36:21]CommunicateWithHost err = 0 [02:36:21]CheckOFDResponse [02:36:21]1017 (14) - 77093643461234 [02:36:21]1041 (16) - 0000000000871759 [02:36:21]1040 (4) - 166599 [02:36:21]1012 (4) - 22.10.2024 20:14 [02:36:21]1206 (1) - 0 [02:36:21]OFD Sender: Remove packet 166599 [02:36:21]ProducePacketName [02:36:21]name=ofd_packets/00166599 [02:36:21]NVStorageDeleteData [02:36:21]Write to MH i2c: 01 00 00 72 22 94 [02:36:21]Write i2c OK [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 07 00 [02:36:21]MH_I2C_Read... [02:36:21]Read from MH i2c: 01 07 00 72 22 00 00 00 00 00 B0 0C 57 [02:36:21]RasterBufferAndPrint [02:36:21]line [02:36:21]line [02:36:21]line [02:36:21]line [02:36:21]line [02:36:22]written 0, free lines is 3256 [02:36:22]MH_Cut [02:36:22]Write to MH i2c: D1 01 00 79 22 01 6D [02:36:22]Write i2c OK [02:36:22]MH_I2C_Read... [02:36:22]Read from MH i2c: D1 [02:36:22]MH_I2C_Read... [02:36:22]Read from MH i2c: D1 01 00 [02:36:22]MH_I2C_Read... [02:36:22]Read from MH i2c: D1 01 00 79 22 00 6C [02:36:22]Write to MH i2c: 01 00 00 7A 22 9C [02:36:22]Write i2c OK [02:36:22]MH_I2C_Read... [02:36:22]OFD Sender: No OFD packet to send [02:36:22]*** Cut start [02:36:22]*** Partial cut [02:36:22]*** CUTSNS_PIN = 1 [02:36:22]*** CUTSNS_PIN = 0 [02:36:23]*** Brake cut motor [02:36:23]Read from MH i2c: 01 [02:36:23]MH_I2C_Read... [02:36:23]*** Stop cut motor [02:36:23]*** Cut end [02:36:23]Read from MH i2c: 01 07 00 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 FF 0F B1 [02:36:23]process_action close_receipt done [02:36:23]requested_data is exist [02:36:23]produce_requested_data [02:36:23]requested_item fm.sn is exist - process it [02:36:23]wFMCommunicate request_size=4 [02:36:23]MH_SAM_APDU [02:36:23]CAPDU: 80 11 00 00 [02:36:23]Write to MH i2c: E2 08 00 7B 22 80 11 00 00 00 00 00 00 17 [02:36:23]Write i2c OK [02:36:23]MH_I2C_Read... [02:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:23]Read from MH i2c: E2 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 17 00 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 17 00 7B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [02:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:36:23]wFMCommunicate OK [02:36:23]requested_item fd.num is exist - process it [02:36:23]SAM_PROTO_GetFieldsCounters [02:36:23]wFMCommunicate request_size=4 [02:36:23]MH_SAM_APDU [02:36:23]CAPDU: 80 13 00 00 [02:36:23]Write to MH i2c: E2 08 00 7C 22 80 13 00 00 00 00 00 00 1A [02:36:23]Write i2c OK [02:36:23]MH_I2C_Read... [02:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:23]Read from MH i2c: E2 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 62 00 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 62 00 7C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [02:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:36:23]wFMCommunicate OK [02:36:23]SAM_PROTO_GetFieldsCounters done [02:36:23]requested_item shift.num is exist - process it [02:36:23]requested_item shift.opened is exist - process it [02:36:23]req_shift_opened [02:36:23]FM_GetShiftState [02:36:23]SAM_PROTO_GetShiftState [02:36:23]wFMCommunicate request_size=4 [02:36:23]MH_SAM_APDU [02:36:23]CAPDU: 80 13 01 00 [02:36:23]Write to MH i2c: E2 08 00 7D 22 80 13 01 00 00 00 00 00 1C [02:36:23]Write i2c OK [02:36:23]MH_I2C_Read... [02:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:23]Read from MH i2c: E2 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 0E 00 [02:36:23]MH_I2C_Read... [02:36:23]Read from MH i2c: E2 0E 00 7D 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E7 [02:36:23]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:36:23]wFMCommunicate OK [02:36:23]SAM_PROTO_GetShiftState done [02:36:23]FM_GetShiftState done [02:36:23]req_shift_opened done [02:36:23]requested_item shift.open_date is exist - process it [02:36:23]req_shift_open_date [02:36:23]req_shift_open_date done [02:36:23]produce_requested_data done [02:36:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166599,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [02:36:23]process_action_free close_receipt [02:36:23]json_value_free [02:36:23]json_value_free done [02:36:23]process_json_proto returns [02:36:23]Send response to host [02:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166599,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [02:36:23]free response buf [02:36:23]execute_script done [02:36:23]execute_script returns [02:36:23]free content buf [02:36:23]Sock 7.Close socket [02:36:23]Sock 7.Thread stoped [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [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]accept exits with 10 [02:38:02]New connection [02:38:02]New thread 3067489636 created [02:38:02]Thread 3067632996 joined [02:38:02]Waiting for new connection... [02:38:02] Sock 10.Parse request [02:38:02]Sock 10.Check first char [02:38:02]Sock 10.First char is OK [02:38:02]request: POST /json_proto HTTP/1.0 [02:38:02]Method: POST [02:38:02]URL: /json_proto [02:38:02]Method is POST - this is cgi request [02:38:02]url: /json_proto [02:38:02]query_string will be loaded in cgi processing [02:38:02]execute_cgi json_proto POST (null) [02:38:02]execute_cgi path=json_proto method=POST [02:38:02]POST find Content-Length [02:38:02]Host: 172.17.53.195:8080 [02:38:02]Content-Length: 682 [02:38:02]Content-Type: application/json [02:38:02] [02:38:02]POST finish read [02:38:02]Found Content-Length = 682 [02:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:02]execute_script... [02:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:02]POST & json_proto [02:38:02]process_json_proto [02:38:02]json parsed OK: [02:38:02]protocol is kg_v1.0 [02:38:02]action value=close_receipt [02:38:02]process_action close_receipt [02:38:02]cmd_close_receipt [02:38:02]MH_GetDate [02:38:02]Write to MH i2c: F0 00 00 7E 22 8F [02:38:02]Write i2c OK [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 09 00 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 09 00 7E 22 00 8C 61 18 67 21 48 4A 65 1C [02:38:02]GetLastDocTimeStamp 1729650982 [02:38:02]current date 1729651084 [02:38:02]FM_GetShiftState [02:38:02]SAM_PROTO_GetShiftState [02:38:02]wFMCommunicate request_size=4 [02:38:02]MH_SAM_APDU [02:38:02]CAPDU: 80 13 01 00 [02:38:02]Write to MH i2c: E2 08 00 7F 22 80 13 01 00 00 00 00 00 1E [02:38:02]Write i2c OK [02:38:02]MH_I2C_Read... [02:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:02]Read from MH i2c: E2 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: E2 0E 00 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: E2 0E 00 7F 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 E9 [02:38:02]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:38:02]wFMCommunicate OK [02:38:02]SAM_PROTO_GetShiftState done [02:38:02]FM_GetShiftState done [02:38:02]opened in 1729643772 [02:38:02]opened+sec_in_day 1729730172 [02:38:02]quantity*price = 100021 [02:38:02]sum+1 = 100023 [02:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 15 23.10.2024 02:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166600 ФПД: 132066471231343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023804&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166600&fm=132066471231343&tin=02508201610067®Number=0000000000091764&sum=100000 [02:38:03]StoreToDocumentArchive [02:38:03]shift 537 fd 166600 [02:38:03]save to /storage/0537/doc_00166600 [02:38:03]save last doc name /storage/0537/doc_00166600 to /storage/kkm_last_doc_name [02:38:03]save OK [02:38:03]Clear old archive folders... [02:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:38:03]tlvbuf is 0120B490 [02:38:03]SAM_PROTO_ClearQueue [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 09 00 00 [02:38:03]Write to MH i2c: E2 08 00 8C 22 80 09 00 00 00 00 00 00 20 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]SAM_PROTO_ClearQueue done [02:38:03]KKMCreateOFDPacket [02:38:03]OFDProtocolAddRootSTLVToBuf [02:38:03]FM_MakeSignedData [02:38:03]FM_MakeSignedData [02:38:03]SAM_PROTO_SignData [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 01 02 [02:38:03]Write to MH i2c: E2 08 00 8D 22 80 0D 01 02 00 00 00 00 28 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=255 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 8C 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8A 02 00 35 04 06 00 78 [02:38:03]Write to MH i2c: E2 02 01 8E 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 8C 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8A 02 00 35 04 06 00 78 00 00 3D [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=10 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 02 02 05 1D 1F 1A BF 6F [02:38:03]Write to MH i2c: E2 0D 00 8F 22 80 0D 02 02 05 00 1D 1F 1A BF 6F 00 00 B9 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 03 02 [02:38:03]Write to MH i2c: E2 08 00 90 22 80 0D 03 02 00 00 00 00 2D [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 0B 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 0B 00 90 22 00 03 2A FF D6 AE E6 08 B4 90 00 80 [02:38:03]RAPDU: 03 2A FF D6 AE E6 08 B4 90 00 [02:38:03]wFMCommunicate OK [02:38:03]SAM_PROTO_SignData done [02:38:03]FM_MakeSignedData done [02:38:03]CreateOFDProtocolMessage [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 11 00 00 [02:38:03]Write to MH i2c: E2 08 00 91 22 80 11 00 00 00 00 00 00 2D [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 17 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 17 00 91 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [02:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:38:03]wFMCommunicate OK [02:38:03]CreateOFDProtocolMessage done [02:38:03]OFDSenderStorePacket 166600 [02:38:03]StoreOFDPacket docnum=166600 [02:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD CB 07 01 D4 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 8C 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8A 02 00 35 04 06 00 78 1D 1F 1A BF 6F 03 2A FF D6 AE E6 08 B4 [02:38:03]CheckFolder [02:38:03]dirname=/storage/ofd_packets [02:38:03]CheckFolder done [02:38:03]ProducePacketName [02:38:03]name=ofd_packets/00166600 [02:38:03]NVStorageSaveData ofd_packets/00166600 [02:38:03]File name is /storage/ofd_packets/00166600 [02:38:03]Write 301 bytes [02:38:03]NVStorageSaveData done [02:38:03]OFDSenderStorePacket done [02:38:03]KKMCreateOFDPacket done [02:38:03]NVStorageSaveData kkm_last_timestamp [02:38:03]File name is /storage/kkm_last_timestamp [02:38:03]Write 4 bytes [02:38:03]NVStorageSaveData done [02:38:03]ExternCall_PrintAddStr [02:38:03]wPrintStart [02:38:03]Write to MH i2c: 01 00 00 92 22 B4 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 07 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 07 00 92 22 00 00 00 00 00 FF 0F C9 [02:38:03]RasterBufferAndPrint [02:38:03]line Счет N : (1)221181 [02:38:03]line ИНН: 02508201610067 [02:38:03]line Контрольно-Кассовый Чек [02:38:03]line ПРОДАЖА [02:38:03]line ТРК (МРК, ГНК) : 24 [02:38:03]line Товар: 2710124500 [02:38:03]line Аи-95-К-5 [02:38:03]line 13.480 * 74.20 [02:38:03]line = 1000.22 [02:38:03]line НДС 12% НСП 1% [02:38:03]line > о реализуемом товаре [02:38:03]line ОКРУГЛЕНИЕ: -0.22 [02:38:03]line ИТОГО: 1000.00 [02:38:03]line Внесено: 1000.00 [02:38:03]line СДАЧА: 0.00 [02:38:03]line НСП 1% : 8.85 [02:38:03]line НДС 12% : 106.22 [02:38:03]line Наличными: 1000.00 [02:38:03]line Безнал.: 0.00 [02:38:03]line Место: АЗС № 161 "Партнер Нефть" [02:38:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:38:03]line СНО: Общий режим [02:38:03]line Чек 15 23.10.2024 02:38 [02:38:03]line Смена: 537 ФФД: 1.0 [02:38:03]line ЗНМ: 0300000104 [02:38:03]line РНМ: 0000000000091764 [02:38:03]line Версия ККМ: 001 [02:38:03]line ФМ: 0000000000871759 [02:38:03]line ФД: 166600 [02:38:03]line ФПД: 132066471231343 [02:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T023804&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166600&fm=132066471231343&tin=02508201610067®Number=0000000000091764&sum=100000 [02:38:04]OFD Sender: Processing packet 166600 [packets to send 48, broken 47] [02:38:04]ProducePacketName [02:38:04]name=ofd_packets/00166600 [02:38:04]OFD Sender: To server: pG, [02:38:04]CommunicateWithHost lk.salyk.kg:30040 [02:38:04]ConnectInit lk.salyk.kg [02:38:04]written 0, free lines is 4095 [02:38:04]Connected sock=9 [02:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD CB 07 01 D4 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 8C 61 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8A 02 00 35 04 06 00 78 1D 1F 1A BF 6F 03 2A FF D6 AE E6 08 B4 [02:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 99 47 00 76 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 8A 02 00 F4 03 04 00 F6 07 18 67 B6 04 01 00 00 18 A0 28 7A 84 5B 1D 68 [02:38:04]CommunicateWithHost err = 0 [02:38:04]CheckOFDResponse [02:38:04]1017 (14) - 77093643461234 [02:38:04]1041 (16) - 0000000000871759 [02:38:04]1040 (4) - 166600 [02:38:04]1012 (4) - 22.10.2024 20:15 [02:38:04]1206 (1) - 0 [02:38:04]OFD Sender: Remove packet 166600 [02:38:04]ProducePacketName [02:38:04]name=ofd_packets/00166600 [02:38:04]NVStorageDeleteData [02:38:04]Write to MH i2c: 01 00 00 BD 22 DF [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 07 00 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 AF 0C A1 [02:38:04]RasterBufferAndPrint [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]written 0, free lines is 3253 [02:38:04]MH_Cut [02:38:04]Write to MH i2c: D1 01 00 C4 22 01 B8 [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 01 00 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 01 00 C4 22 00 B7 [02:38:04]Write to MH i2c: 01 00 00 C5 22 E7 [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:05]OFD Sender: No OFD packet to send [02:38:05]*** Cut start [02:38:05]*** Partial cut [02:38:05]*** CUTSNS_PIN = 1 [02:38:05]*** CUTSNS_PIN = 0 [02:38:05]*** Brake cut motor [02:38:06]Read from MH i2c: 01 [02:38:06]MH_I2C_Read... [02:38:06]*** Stop cut motor [02:38:06]*** Cut end [02:38:06]Read from MH i2c: 01 07 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 FF 0F FC [02:38:06]process_action close_receipt done [02:38:06]requested_data is exist [02:38:06]produce_requested_data [02:38:06]requested_item fm.sn is exist - process it [02:38:06]wFMCommunicate request_size=4 [02:38:06]MH_SAM_APDU [02:38:06]CAPDU: 80 11 00 00 [02:38:06]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [02:38:06]Write i2c OK [02:38:06]MH_I2C_Read... [02:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:06]Read from MH i2c: E2 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 17 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [02:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:38:06]wFMCommunicate OK [02:38:06]requested_item fd.num is exist - process it [02:38:06]SAM_PROTO_GetFieldsCounters [02:38:06]wFMCommunicate request_size=4 [02:38:06]MH_SAM_APDU [02:38:06]CAPDU: 80 13 00 00 [02:38:06]Write to MH i2c: E2 08 00 C7 22 80 13 00 00 00 00 00 00 65 [02:38:06]Write i2c OK [02:38:06]MH_I2C_Read... [02:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:06]Read from MH i2c: E2 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 62 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 62 00 C7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [02:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:06]wFMCommunicate OK [02:38:06]SAM_PROTO_GetFieldsCounters done [02:38:06]requested_item shift.num is exist - process it [02:38:06]requested_item shift.opened is exist - process it [02:38:06]req_shift_opened [02:38:06]FM_GetShiftState [02:38:06]SAM_PROTO_GetShiftState [02:38:06]wFMCommunicate request_size=4 [02:38:06]MH_SAM_APDU [02:38:06]CAPDU: 80 13 01 00 [02:38:06]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [02:38:06]Write i2c OK [02:38:06]MH_I2C_Read... [02:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:06]Read from MH i2c: E2 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 0E 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 32 [02:38:06]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [02:38:06]wFMCommunicate OK [02:38:06]SAM_PROTO_GetShiftState done [02:38:06]FM_GetShiftState done [02:38:06]req_shift_opened done [02:38:06]requested_item shift.open_date is exist - process it [02:38:06]req_shift_open_date [02:38:06]req_shift_open_date done [02:38:06]produce_requested_data done [02:38:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166600,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [02:38:06]process_action_free close_receipt [02:38:06]json_value_free [02:38:06]json_value_free done [02:38:06]process_json_proto returns [02:38:06]Send response to host [02:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166600,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [02:38:06]free response buf [02:38:06]execute_script done [02:38:06]execute_script returns [02:38:06]free content buf [02:38:06]Sock 10.Close socket [02:38:06]Sock 10.Thread stoped [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:50]accept exits with 7 [03:11:50]New connection [03:11:50]New thread 3067632996 created [03:11:50]Thread 3067489636 joined [03:11:50]Waiting for new connection... [03:11:50] Sock 7.Parse request [03:11:50]Sock 7.Check first char [03:11:50]Sock 7.First char is OK [03:11:50]request: POST /json_proto HTTP/1.0 [03:11:50]Method: POST [03:11:50]URL: /json_proto [03:11:50]Method is POST - this is cgi request [03:11:50]url: /json_proto [03:11:50]query_string will be loaded in cgi processing [03:11:50]execute_cgi json_proto POST (null) [03:11:50]execute_cgi path=json_proto method=POST [03:11:50]POST find Content-Length [03:11:50]Host: 172.17.53.195:8080 [03:11:50]Content-Length: 677 [03:11:50]Content-Type: application/json [03:11:50] [03:11:50]POST finish read [03:11:50]Found Content-Length = 677 [03:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:50]execute_script... [03:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:50]POST & json_proto [03:11:50]process_json_proto [03:11:50]json parsed OK: [03:11:50]protocol is kg_v1.0 [03:11:50]action value=close_receipt [03:11:50]process_action close_receipt [03:11:50]cmd_close_receipt [03:11:50]MH_GetDate [03:11:50]Write to MH i2c: F0 00 00 C9 22 DA [03:11:50]Write i2c OK [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 09 00 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 09 00 C9 22 00 78 69 18 67 21 48 4A 65 5B [03:11:50]GetLastDocTimeStamp 1729651084 [03:11:50]current date 1729653112 [03:11:50]FM_GetShiftState [03:11:50]SAM_PROTO_GetShiftState [03:11:50]wFMCommunicate request_size=4 [03:11:50]MH_SAM_APDU [03:11:50]CAPDU: 80 13 01 00 [03:11:50]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [03:11:50]Write i2c OK [03:11:50]MH_I2C_Read... [03:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:50]Read from MH i2c: E2 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: E2 0E 00 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 34 [03:11:50]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [03:11:50]wFMCommunicate OK [03:11:50]SAM_PROTO_GetShiftState done [03:11:50]FM_GetShiftState done [03:11:50]opened in 1729643772 [03:11:50]opened+sec_in_day 1729730172 [03:11:50]quantity*price = 30038 [03:11:50]sum+1 = 30039 [03:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 16 23.10.2024 03:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166601 ФПД: 118643671645013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031152&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166601&fm=118643671645013&tin=02508201610067®Number=0000000000091764&sum=30000 [03:11:51]StoreToDocumentArchive [03:11:51]shift 537 fd 166601 [03:11:51]save to /storage/0537/doc_00166601 [03:11:51]save last doc name /storage/0537/doc_00166601 to /storage/kkm_last_doc_name [03:11:51]save OK [03:11:51]Clear old archive folders... [03:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:11:51]tlvbuf is 01248D60 [03:11:51]SAM_PROTO_ClearQueue [03:11:51]wFMCommunicate request_size=4 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 09 00 00 [03:11:51]Write to MH i2c: E2 08 00 D7 22 80 09 00 00 00 00 00 00 6B [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [03:11:51]RAPDU: 90 00 [03:11:51]wFMCommunicate OK [03:11:51]SAM_PROTO_ClearQueue done [03:11:51]KKMCreateOFDPacket [03:11:51]OFDProtocolAddRootSTLVToBuf [03:11:51]FM_MakeSignedData [03:11:51]FM_MakeSignedData [03:11:51]SAM_PROTO_SignData [03:11:51]wFMCommunicate request_size=4 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 0D 01 02 [03:11:51]Write to MH i2c: E2 08 00 D8 22 80 0D 01 02 00 00 00 00 73 [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [03:11:51]RAPDU: 90 00 [03:11:51]wFMCommunicate OK [03:11:51]wFMCommunicate request_size=255 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 78 69 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8A 02 00 35 04 06 00 6B [03:11:51]Write to MH i2c: E2 02 01 D9 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 78 69 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8A 02 00 35 04 06 00 6B 00 00 48 [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [03:11:51]RAPDU: 90 00 [03:11:51]wFMCommunicate OK [03:11:51]wFMCommunicate request_size=10 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 0D 02 02 05 E7 E1 E7 3B 55 [03:11:51]Write to MH i2c: E2 0D 00 DA 22 80 0D 02 02 05 00 E7 E1 E7 3B 55 00 00 BF [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [03:11:51]RAPDU: 90 00 [03:11:51]wFMCommunicate OK [03:11:51]wFMCommunicate request_size=4 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 0D 03 02 [03:11:51]Write to MH i2c: E2 08 00 DB 22 80 0D 03 02 00 00 00 00 78 [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 0B 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 0B 00 DB 22 00 F9 0C 06 6D 1D 67 1D E9 90 00 7B [03:11:51]RAPDU: F9 0C 06 6D 1D 67 1D E9 90 00 [03:11:51]wFMCommunicate OK [03:11:51]SAM_PROTO_SignData done [03:11:51]FM_MakeSignedData done [03:11:51]CreateOFDProtocolMessage [03:11:51]wFMCommunicate request_size=4 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 11 00 00 [03:11:51]Write to MH i2c: E2 08 00 DC 22 80 11 00 00 00 00 00 00 78 [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:51]Read from MH i2c: E2 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 17 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: E2 17 00 DC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [03:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:11:51]wFMCommunicate OK [03:11:51]CreateOFDProtocolMessage done [03:11:51]OFDSenderStorePacket 166601 [03:11:51]StoreOFDPacket docnum=166601 [03:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 41 07 01 85 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 78 69 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8A 02 00 35 04 06 00 6B E7 E1 E7 3B 55 F9 0C 06 6D 1D 67 1D E9 [03:11:51]CheckFolder [03:11:51]dirname=/storage/ofd_packets [03:11:51]CheckFolder done [03:11:51]ProducePacketName [03:11:51]name=ofd_packets/00166601 [03:11:51]NVStorageSaveData ofd_packets/00166601 [03:11:51]File name is /storage/ofd_packets/00166601 [03:11:51]Write 301 bytes [03:11:51]NVStorageSaveData done [03:11:51]OFDSenderStorePacket done [03:11:51]KKMCreateOFDPacket done [03:11:51]NVStorageSaveData kkm_last_timestamp [03:11:51]File name is /storage/kkm_last_timestamp [03:11:51]Write 4 bytes [03:11:51]NVStorageSaveData done [03:11:51]ExternCall_PrintAddStr [03:11:51]wPrintStart [03:11:51]Write to MH i2c: 01 00 00 DD 22 FF [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: 01 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: 01 07 00 [03:11:51]MH_I2C_Read... [03:11:51]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [03:11:51]RasterBufferAndPrint [03:11:51]line Счет N : (1)221183 [03:11:51]line ИНН: 02508201610067 [03:11:51]line Контрольно-Кассовый Чек [03:11:51]line ПРОДАЖА [03:11:51]line ТРК (МРК, ГНК) : 23 [03:11:51]line Товар: 2710124130 [03:11:51]line Аи-92-К-5 [03:11:51]line 4.490 * 66.90 [03:11:51]line = 300.38 [03:11:51]line НДС 12% НСП 1% [03:11:51]line > о реализуемом товаре [03:11:51]line ОКРУГЛЕНИЕ: -0.38 [03:11:51]line ИТОГО: 300.00 [03:11:51]line Внесено: 300.00 [03:11:51]line СДАЧА: 0.00 [03:11:51]line НСП 1% : 2.66 [03:11:51]line НДС 12% : 31.90 [03:11:51]line Наличными: 300.00 [03:11:51]line Безнал.: 0.00 [03:11:51]line Место: АЗС № 161 "Партнер Нефть" [03:11:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [03:11:51]line СНО: Общий режим [03:11:51]line Чек 16 23.10.2024 03:11 [03:11:51]line Смена: 537 ФФД: 1.0 [03:11:51]line ЗНМ: 0300000104 [03:11:51]line РНМ: 0000000000091764 [03:11:51]line Версия ККМ: 001 [03:11:51]line ФМ: 0000000000871759 [03:11:51]line ФД: 166601 [03:11:51]line ФПД: 118643671645013 [03:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031152&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166601&fm=118643671645013&tin=02508201610067®Number=0000000000091764&sum=30000 [03:11:52]OFD Sender: Processing packet 166601 [packets to send 48, broken 47] [03:11:52]ProducePacketName [03:11:52]name=ofd_packets/00166601 [03:11:52]OFD Sender: To server: pG, [03:11:52]CommunicateWithHost lk.salyk.kg:30040 [03:11:52]ConnectInit lk.salyk.kg [03:11:52]written 0, free lines is 4095 [03:11:52]Connected sock=10 [03:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0C 41 07 01 85 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 78 69 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8A 02 00 35 04 06 00 6B E7 E1 E7 3B 55 F9 0C 06 6D 1D 67 1D E9 [03:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 11 47 00 45 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 8A 02 00 F4 03 04 00 E1 0F 18 67 B6 04 01 00 00 9D C4 25 46 FC 2E 9A CB [03:11:52]CommunicateWithHost err = 0 [03:11:52]CheckOFDResponse [03:11:52]1017 (14) - 77093643461234 [03:11:52]1041 (16) - 0000000000871759 [03:11:52]1040 (4) - 166601 [03:11:52]1012 (4) - 22.10.2024 20:49 [03:11:52]1206 (1) - 0 [03:11:52]OFD Sender: Remove packet 166601 [03:11:52]ProducePacketName [03:11:52]name=ofd_packets/00166601 [03:11:52]NVStorageDeleteData [03:11:52]Write to MH i2c: 01 00 00 08 23 2B [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 07 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 07 00 08 23 00 00 00 00 00 B5 0C F3 [03:11:52]RasterBufferAndPrint [03:11:52]line [03:11:52]line [03:11:52]line [03:11:52]line [03:11:52]line [03:11:52]written 0, free lines is 3259 [03:11:52]MH_Cut [03:11:52]Write to MH i2c: D1 01 00 0F 23 01 04 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: D1 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: D1 01 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: D1 01 00 0F 23 00 03 [03:11:52]Write to MH i2c: 01 00 00 10 23 33 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]OFD Sender: No OFD packet to send [03:11:53]*** Cut start [03:11:53]*** Partial cut [03:11:53]*** CUTSNS_PIN = 1 [03:11:53]*** CUTSNS_PIN = 0 [03:11:53]*** Brake cut motor [03:11:53]Read from MH i2c: 01 [03:11:53]MH_I2C_Read... [03:11:53]*** Stop cut motor [03:11:53]*** Cut end [03:11:53]Read from MH i2c: 01 07 00 [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: 01 07 00 10 23 00 00 00 00 00 FF 0F 48 [03:11:53]process_action close_receipt done [03:11:53]requested_data is exist [03:11:53]produce_requested_data [03:11:53]requested_item fm.sn is exist - process it [03:11:53]wFMCommunicate request_size=4 [03:11:53]MH_SAM_APDU [03:11:53]CAPDU: 80 11 00 00 [03:11:53]Write to MH i2c: E2 08 00 11 23 80 11 00 00 00 00 00 00 AE [03:11:53]Write i2c OK [03:11:53]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 17 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 17 00 11 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [03:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:11:54]wFMCommunicate OK [03:11:54]requested_item fd.num is exist - process it [03:11:54]SAM_PROTO_GetFieldsCounters [03:11:54]wFMCommunicate request_size=4 [03:11:54]MH_SAM_APDU [03:11:54]CAPDU: 80 13 00 00 [03:11:54]Write to MH i2c: E2 08 00 12 23 80 13 00 00 00 00 00 00 B1 [03:11:54]Write i2c OK [03:11:54]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 62 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 62 00 12 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [03:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:54]wFMCommunicate OK [03:11:54]SAM_PROTO_GetFieldsCounters done [03:11:54]requested_item shift.num is exist - process it [03:11:54]requested_item shift.opened is exist - process it [03:11:54]req_shift_opened [03:11:54]FM_GetShiftState [03:11:54]SAM_PROTO_GetShiftState [03:11:54]wFMCommunicate request_size=4 [03:11:54]MH_SAM_APDU [03:11:54]CAPDU: 80 13 01 00 [03:11:54]Write to MH i2c: E2 08 00 13 23 80 13 01 00 00 00 00 00 B3 [03:11:54]Write i2c OK [03:11:54]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 0E 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 0E 00 13 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 7E [03:11:54]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [03:11:54]wFMCommunicate OK [03:11:54]SAM_PROTO_GetShiftState done [03:11:54]FM_GetShiftState done [03:11:54]req_shift_opened done [03:11:54]requested_item shift.open_date is exist - process it [03:11:54]req_shift_open_date [03:11:54]req_shift_open_date done [03:11:54]produce_requested_data done [03:11:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166601,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [03:11:54]process_action_free close_receipt [03:11:54]json_value_free [03:11:54]json_value_free done [03:11:54]process_json_proto returns [03:11:54]Send response to host [03:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166601,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [03:11:54]free response buf [03:11:54]execute_script done [03:11:54]execute_script returns [03:11:54]free content buf [03:11:54]Sock 7.Close socket [03:11:54]Sock 7.Thread stoped [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:10]accept exits with 9 [03:17:10]New connection [03:17:10]New thread 3067489636 created [03:17:10]Thread 3067632996 joined [03:17:10]Waiting for new connection... [03:17:10] Sock 9.Parse request [03:17:10]Sock 9.Check first char [03:17:10]Sock 9.First char is OK [03:17:10]request: POST /json_proto HTTP/1.0 [03:17:10]Method: POST [03:17:10]URL: /json_proto [03:17:10]Method is POST - this is cgi request [03:17:10]url: /json_proto [03:17:10]query_string will be loaded in cgi processing [03:17:10]execute_cgi json_proto POST (null) [03:17:10]execute_cgi path=json_proto method=POST [03:17:10]POST find Content-Length [03:17:10]Host: 172.17.53.195:8080 [03:17:10]Content-Length: 682 [03:17:10]Content-Type: application/json [03:17:10] [03:17:10]POST finish read [03:17:10]Found Content-Length = 682 [03:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:17:10]execute_script... [03:17:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)221184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:17:10]POST & json_proto [03:17:10]process_json_proto [03:17:10]json parsed OK: [03:17:10]protocol is kg_v1.0 [03:17:10]action value=close_receipt [03:17:10]process_action close_receipt [03:17:10]cmd_close_receipt [03:17:10]MH_GetDate [03:17:10]Write to MH i2c: F0 00 00 14 23 26 [03:17:10]Write i2c OK [03:17:10]MH_I2C_Read... [03:17:10]Read from MH i2c: F0 [03:17:10]MH_I2C_Read... [03:17:10]Read from MH i2c: F0 09 00 [03:17:10]MH_I2C_Read... [03:17:10]Read from MH i2c: F0 09 00 14 23 00 B9 6A 18 67 21 48 4A 65 E9 [03:17:10]GetLastDocTimeStamp 1729653112 [03:17:10]current date 1729653433 [03:17:10]FM_GetShiftState [03:17:10]SAM_PROTO_GetShiftState [03:17:10]wFMCommunicate request_size=4 [03:17:10]MH_SAM_APDU [03:17:10]CAPDU: 80 13 01 00 [03:17:10]Write to MH i2c: E2 08 00 15 23 80 13 01 00 00 00 00 00 B5 [03:17:10]Write i2c OK [03:17:10]MH_I2C_Read... [03:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:10]Read from MH i2c: E2 [03:17:10]MH_I2C_Read... [03:17:10]Read from MH i2c: E2 0E 00 [03:17:10]MH_I2C_Read... [03:17:10]Read from MH i2c: E2 0E 00 15 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 80 [03:17:10]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [03:17:10]wFMCommunicate OK [03:17:10]SAM_PROTO_GetShiftState done [03:17:10]FM_GetShiftState done [03:17:10]opened in 1729643772 [03:17:10]opened+sec_in_day 1729730172 [03:17:10]quantity*price = 150032 [03:17:10]sum+1 = 150033 [03:17:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 17 23.10.2024 03:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166602 ФПД: 149796881674395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031713&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166602&fm=149796881674395&tin=02508201610067®Number=0000000000091764&sum=150000 [03:17:12]StoreToDocumentArchive [03:17:12]shift 537 fd 166602 [03:17:12]save to /storage/0537/doc_00166602 [03:17:12]save last doc name /storage/0537/doc_00166602 to /storage/kkm_last_doc_name [03:17:12]save OK [03:17:12]Clear old archive folders... [03:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:17:12]tlvbuf is 012AB900 [03:17:12]SAM_PROTO_ClearQueue [03:17:12]wFMCommunicate request_size=4 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 09 00 00 [03:17:12]Write to MH i2c: E2 08 00 22 23 80 09 00 00 00 00 00 00 B7 [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [03:17:12]RAPDU: 90 00 [03:17:12]wFMCommunicate OK [03:17:12]SAM_PROTO_ClearQueue done [03:17:12]KKMCreateOFDPacket [03:17:12]OFDProtocolAddRootSTLVToBuf [03:17:12]FM_MakeSignedData [03:17:12]FM_MakeSignedData [03:17:12]SAM_PROTO_SignData [03:17:12]wFMCommunicate request_size=4 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 0D 01 02 [03:17:12]Write to MH i2c: E2 08 00 23 23 80 0D 01 02 00 00 00 00 BF [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [03:17:12]RAPDU: 90 00 [03:17:12]wFMCommunicate OK [03:17:12]wFMCommunicate request_size=255 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B9 6A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8A 02 00 35 04 06 00 88 [03:17:12]Write to MH i2c: E2 02 01 24 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B9 6A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8A 02 00 35 04 06 00 88 00 00 64 [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [03:17:12]RAPDU: 90 00 [03:17:12]wFMCommunicate OK [03:17:12]wFMCommunicate request_size=10 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 0D 02 02 05 3D 4D EB B0 9B [03:17:12]Write to MH i2c: E2 0D 00 25 23 80 0D 02 02 05 00 3D 4D EB B0 9B 00 00 8C [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [03:17:12]RAPDU: 90 00 [03:17:12]wFMCommunicate OK [03:17:12]wFMCommunicate request_size=4 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 0D 03 02 [03:17:12]Write to MH i2c: E2 08 00 26 23 80 0D 03 02 00 00 00 00 C4 [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 0B 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 0B 00 26 23 00 18 E0 17 05 B1 07 7B 25 90 00 31 [03:17:12]RAPDU: 18 E0 17 05 B1 07 7B 25 90 00 [03:17:12]wFMCommunicate OK [03:17:12]SAM_PROTO_SignData done [03:17:12]FM_MakeSignedData done [03:17:12]CreateOFDProtocolMessage [03:17:12]wFMCommunicate request_size=4 [03:17:12]MH_SAM_APDU [03:17:12]CAPDU: 80 11 00 00 [03:17:12]Write to MH i2c: E2 08 00 27 23 80 11 00 00 00 00 00 00 C4 [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:12]Read from MH i2c: E2 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 17 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: E2 17 00 27 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [03:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:17:12]wFMCommunicate OK [03:17:12]CreateOFDProtocolMessage done [03:17:12]OFDSenderStorePacket 166602 [03:17:12]StoreOFDPacket docnum=166602 [03:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF A1 07 01 46 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B9 6A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8A 02 00 35 04 06 00 88 3D 4D EB B0 9B 18 E0 17 05 B1 07 7B 25 [03:17:12]CheckFolder [03:17:12]dirname=/storage/ofd_packets [03:17:12]CheckFolder done [03:17:12]ProducePacketName [03:17:12]name=ofd_packets/00166602 [03:17:12]NVStorageSaveData ofd_packets/00166602 [03:17:12]File name is /storage/ofd_packets/00166602 [03:17:12]Write 301 bytes [03:17:12]NVStorageSaveData done [03:17:12]OFDSenderStorePacket done [03:17:12]KKMCreateOFDPacket done [03:17:12]NVStorageSaveData kkm_last_timestamp [03:17:12]File name is /storage/kkm_last_timestamp [03:17:12]Write 4 bytes [03:17:12]NVStorageSaveData done [03:17:12]ExternCall_PrintAddStr [03:17:12]wPrintStart [03:17:12]Write to MH i2c: 01 00 00 28 23 4B [03:17:12]Write i2c OK [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: 01 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: 01 07 00 [03:17:12]MH_I2C_Read... [03:17:12]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [03:17:12]RasterBufferAndPrint [03:17:12]line Счет N : (1)221184 [03:17:12]line ИНН: 02508201610067 [03:17:12]line Контрольно-Кассовый Чек [03:17:12]line ПРОДАЖА [03:17:12]line ТРК (МРК, ГНК) : 14 [03:17:12]line Товар: 2710124500 [03:17:12]line Аи-95-К-5 [03:17:12]line 20.220 * 74.20 [03:17:12]line = 1500.32 [03:17:12]line НДС 12% НСП 1% [03:17:12]line > о реализуемом товаре [03:17:12]line ОКРУГЛЕНИЕ: -0.32 [03:17:12]line ИТОГО: 1500.00 [03:17:12]line Внесено: 1500.00 [03:17:12]line СДАЧА: 0.00 [03:17:12]line НСП 1% : 13.28 [03:17:12]line НДС 12% : 159.33 [03:17:12]line Наличными: 1500.00 [03:17:12]line Безнал.: 0.00 [03:17:12]line Место: АЗС № 161 "Партнер Нефть" [03:17:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [03:17:12]line СНО: Общий режим [03:17:12]line Чек 17 23.10.2024 03:17 [03:17:12]line Смена: 537 ФФД: 1.0 [03:17:12]line ЗНМ: 0300000104 [03:17:12]line РНМ: 0000000000091764 [03:17:12]line Версия ККМ: 001 [03:17:12]line ФМ: 0000000000871759 [03:17:12]line ФД: 166602 [03:17:12]line ФПД: 149796881674395 [03:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T031713&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166602&fm=149796881674395&tin=02508201610067®Number=0000000000091764&sum=150000 [03:17:12]OFD Sender: Processing packet 166602 [packets to send 48, broken 47] [03:17:12]ProducePacketName [03:17:12]name=ofd_packets/00166602 [03:17:12]OFD Sender: To server: pG, [03:17:12]CommunicateWithHost lk.salyk.kg:30040 [03:17:12]ConnectInit lk.salyk.kg [03:17:12]written 0, free lines is 4095 [03:17:13]Connected sock=10 [03:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF A1 07 01 46 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B9 6A 18 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8A 02 00 35 04 06 00 88 3D 4D EB B0 9B 18 E0 17 05 B1 07 7B 25 [03:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DA 91 47 00 30 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 8A 02 00 F4 03 04 00 22 11 18 67 B6 04 01 00 00 00 D0 27 50 5D FC 6D ED [03:17:13]CommunicateWithHost err = 0 [03:17:13]CheckOFDResponse [03:17:13]1017 (14) - 77093643461234 [03:17:13]1041 (16) - 0000000000871759 [03:17:13]1040 (4) - 166602 [03:17:13]1012 (4) - 22.10.2024 20:54 [03:17:13]1206 (1) - 0 [03:17:13]OFD Sender: Remove packet 166602 [03:17:13]ProducePacketName [03:17:13]name=ofd_packets/00166602 [03:17:13]NVStorageDeleteData [03:17:13]Write to MH i2c: 01 00 00 53 23 76 [03:17:13]Write i2c OK [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: 01 [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: 01 07 00 [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 B3 0C 3C [03:17:13]RasterBufferAndPrint [03:17:13]line [03:17:13]line [03:17:13]line [03:17:13]line [03:17:13]line [03:17:13]written 0, free lines is 3258 [03:17:13]MH_Cut [03:17:13]Write to MH i2c: D1 01 00 5A 23 01 4F [03:17:13]Write i2c OK [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: D1 [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: D1 01 00 [03:17:13]MH_I2C_Read... [03:17:13]Read from MH i2c: D1 01 00 5A 23 00 4E [03:17:13]Write to MH i2c: 01 00 00 5B 23 7E [03:17:13]Write i2c OK [03:17:13]MH_I2C_Read... [03:17:13]OFD Sender: No OFD packet to send [03:17:14]*** Cut start [03:17:14]*** Partial cut [03:17:14]*** CUTSNS_PIN = 1 [03:17:14]*** CUTSNS_PIN = 0 [03:17:14]*** Brake cut motor [03:17:14]Read from MH i2c: 01 [03:17:14]MH_I2C_Read... [03:17:14]*** Stop cut motor [03:17:14]*** Cut end [03:17:14]Read from MH i2c: 01 07 00 [03:17:14]MH_I2C_Read... [03:17:14]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 FF 0F 93 [03:17:14]process_action close_receipt done [03:17:14]requested_data is exist [03:17:14]produce_requested_data [03:17:14]requested_item fm.sn is exist - process it [03:17:14]wFMCommunicate request_size=4 [03:17:14]MH_SAM_APDU [03:17:14]CAPDU: 80 11 00 00 [03:17:14]Write to MH i2c: E2 08 00 5C 23 80 11 00 00 00 00 00 00 F9 [03:17:14]Write i2c OK [03:17:14]MH_I2C_Read... [03:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:14]Read from MH i2c: E2 [03:17:14]MH_I2C_Read... [03:17:14]Read from MH i2c: E2 17 00 [03:17:14]MH_I2C_Read... [03:17:14]Read from MH i2c: E2 17 00 5C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [03:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [03:17:14]wFMCommunicate OK [03:17:14]requested_item fd.num is exist - process it [03:17:14]SAM_PROTO_GetFieldsCounters [03:17:14]wFMCommunicate request_size=4 [03:17:14]MH_SAM_APDU [03:17:14]CAPDU: 80 13 00 00 [03:17:14]Write to MH i2c: E2 08 00 5D 23 80 13 00 00 00 00 00 00 FC [03:17:14]Write i2c OK [03:17:14]MH_I2C_Read... [03:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:17:15]Read from MH i2c: E2 [03:17:15]MH_I2C_Read... [03:17:15]Read from MH i2c: E2 62 00 [03:17:15]MH_I2C_Read... [03:17:15]Read from MH i2c: E2 62 00 5D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [03:17:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 8A 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:17:15]wFMCommunicate OK [03:17:15]SAM_PROTO_GetFieldsCounters done [03:17:15]requested_item shift.num is exist - process it [03:17:15]requested_item shift.opened is exist - process it [03:17:15]req_shift_opened [03:17:15]FM_GetShiftState [03:17:15]SAM_PROTO_GetShiftState [03:17:15]wFMCommunicate request_size=4 [03:17:15]MH_SAM_APDU [03:17:15]CAPDU: 80 13 01 00 [03:17:15]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [03:17:15]Write i2c OK [03:17:15]MH_I2C_Read... [03:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:15]Read from MH i2c: E2 [03:17:15]MH_I2C_Read... [03:17:15]Read from MH i2c: E2 0E 00 [03:17:15]MH_I2C_Read... [03:17:15]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 FC 44 18 67 00 00 00 00 90 00 C9 [03:17:15]RAPDU: 09 00 01 FC 44 18 67 00 00 00 00 90 00 [03:17:15]wFMCommunicate OK [03:17:15]SAM_PROTO_GetShiftState done [03:17:15]FM_GetShiftState done [03:17:15]req_shift_opened done [03:17:15]requested_item shift.open_date is exist - process it [03:17:15]req_shift_open_date [03:17:15]req_shift_open_date done [03:17:15]produce_requested_data done [03:17:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166602,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772} [03:17:15]process_action_free close_receipt [03:17:15]json_value_free [03:17:15]json_value_free done [03:17:15]process_json_proto returns [03:17:15]Send response to host [03:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166602,"shift.num":537,"shift.opened":1,"shift.open_date":1729643772}}} [03:17:15]free response buf [03:17:15]execute_script done [03:17:15]execute_script returns [03:17:15]free content buf [03:17:15]Sock 9.Close socket [03:17:15]Sock 9.Thread stoped [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send